Alex: bbcode [code] missing language (General)
hello Alex
i see ur bbcode [code] has many language like html / css / xml etc.
but the vision 2.2.6 im using only has inline / block [code]
why ? how to fix it ?
thank you
by kammy, korea, Thursday, August 12, 2010, 01:55 (5018 days ago)
hello Alex
i see ur bbcode [code] has many language like html / css / xml etc.
but the vision 2.2.6 im using only has inline / block [code]
why ? how to fix it ?
thank you
by Micha , Thursday, August 12, 2010, 04:21 (5018 days ago) @ kammy
Hi,
do you activate the BB-Code [CODE]? Geshi, the syntax highlight module, needs special language-files (for html, css, java, ....). Do you have any files in modules/geshi/geshi
?
regards Micha
--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences
by kammy, Thursday, August 12, 2010, 05:40 (5018 days ago) @ Micha
yes i found the geshi in /modules
but what next?
by Micha , Thursday, August 12, 2010, 10:12 (5017 days ago) @ kammy
Hi,
yes i found the geshi in /modules
Okay
but what next?
Do you find some lang-files in modules/geshi/geshi
, too?
Do you activate BB-CODE [CODE] in the admin-area?
regards Micha
--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences
by kammy, Thursday, August 12, 2010, 10:45 (5017 days ago) @ Micha
yes
i found css /javascript / and more
also at admin panel i set bbcode_code value to 1
the problem is i only have inline code and code block showed when i click the code button.
i didnt do anything when i unzip or upload the package.
what's the matter do you think ?
by Micha , Thursday, August 12, 2010, 11:03 (5017 days ago) @ kammy
Hi,
what's the matter do you think ?
I'm not sure. A php-script is reading the geshi-lang-directory and commit this file-list to the javascript, which create the buttons. It seems that the script can not read the directory. Hence, no list is avaible to add the additional buttons.
Maybe you have to change the chmod or the path to the directory is incorrect?!
Auge, Alex any ideas?
regards Micha
--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences
by kammy, Thursday, August 12, 2010, 11:17 (5017 days ago) @ Micha
edited by kammy, Thursday, August 12, 2010, 11:37
i will try everything you tell
which chmod should i use and to which file?
really appreciate you followed my thread
or do i need to change anything on geshi.php ?
/ Define the root directory for the GeSHi code tree if (!defined('GESHI_ROOT')) { /** The root directory for GeSHi */ define('GESHI_ROOT', dirname(__FILE__) . DIRECTORY_SEPARATOR); } /** The language file directory for GeSHi @access private */ define('GESHI_LANG_ROOT', GESHI_ROOT . 'geshi' . DIRECTORY_SEPARATOR); // Define if GeSHi should be paranoid about security if (!defined('GESHI_SECURITY_PARANOID')) { /** Tells GeSHi to be paranoid about security settings */ define('GESHI_SECURITY_PARANOID', false); }
by kammy, Thursday, August 12, 2010, 14:25 (5017 days ago) @ kammy
i re-download 、re-unzip and reinstall the whole package .
then i turn on the bbcode_code to 1. and next i try to post some php code BUT ~~~ the code button only shows two options inlinecode and code.
im going to crazy.
help~~~~~~~~~~~~~~~~~~~~~~~
by Micha , Thursday, August 12, 2010, 16:03 (5017 days ago) @ kammy
Hi,
do you solve the problem?
I found in posting.inc.php the following code:
// checkavailable languages for the syntax highlighter: if($settings['bbcode']==1 && $settings['bbcode_code']==1 && $settings['syntax_highlighter']==1) { // get available language schemas: $handle=opendir('./modules/geshi/geshi'); while($file = readdir($handle)) { #if(is_file($file)) if(strrchr($file, ".")==".php") { $available_languages[] = substr($file, 0, strrpos($file, '.')); } } closedir($handle); if(isset($available_languages)) { natcasesort($available_languages); $smarty->assign('code_languages', $available_languages); } }
in the posting.inc.tpl there are:
{if $code_languages}
{foreach from=$code_languages item=code_language}
<dd id="{$code_language}" title="{#bbcode_code_label_specific#|replace:"[language]":$code_language}">{#bbcode_code_instruction_spec#|replace:"[language]":$code_language}</dd>
{/foreach}
Do you have the same code? Do you have activate the syntax highlighter in the admin-area?
regards
Micha
--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences
by kammy, Thursday, August 12, 2010, 16:10 (5017 days ago) @ Micha
im here please don't leave . i must fix the problem today or i don't sleep
by kammy, Thursday, August 12, 2010, 16:17 (5017 days ago) @ Micha
yes, the same code. but i don't think this is the problem ,because i never change a single word since i unzip and install.
by Micha , Thursday, August 12, 2010, 16:19 (5017 days ago) @ kammy
Hi,
Do you have activate the syntax highlighter in the admin-area?
Micha
--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences
by kammy, Thursday, August 12, 2010, 16:20 (5017 days ago) @ Micha
yes. pls check my site http://zixiuke.com/index.php?mode=posting
do u have a private email i can give you the admin password
by Micha , Thursday, August 12, 2010, 16:27 (5017 days ago) @ kammy
yes. pls check my site http://zixiuke.com/index.php?mode=posting
Once again: You have activate syntax_highlighter AND bbcode_code (set to 1)?
Micha
--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences
by kammy, Thursday, August 12, 2010, 16:32 (5017 days ago) @ Micha
yes. pls check my site http://zixiuke.com/index.php?mode=posting
Once again: You have activate syntax_highlighter AND bbcode_code (set to 1)?Micha
o , it's my bad. i didn't set syntax_highlight to 1.
now it's OK.
thank you so much Milo!!!!
by Micha , Thursday, August 12, 2010, 16:33 (5017 days ago) @ kammy
No Problem; have a nice day!
--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences