![]() |
I'm interested too in using this mod for vB 4.x
as soon as I will be ready I will try to apply changes suggested by artvs here above. Thanks |
Confirmed working with VB 4.0.1 according to changes suggested by artvs. Thanks mate.
|
Got warning with vb4.0.2:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/includes/class_bbcode.php(185) : eval()'d code on line 11 |
Quote:
|
Does anyone have a patch for vb4.0.2 to fix the above problem?
Edit: Ok, I was able to fix it by adding the following two lines to the product-advhighlight.xml file in artvs attachment: Code:
if(!is_array($specialtemplates)) Code:
$specialtemplates = array_merge($specialtemplates, array('bbcode_highlight','bbcode_highlight_printable')); |
I made few changes to the product-advhighlight.xml file posted by artvs to make this mod work properly with vb4.0.2. I used latest GeSHi (1.0.8.6) with this mod:
- Added the is_array() check mentioned above. - Changed the bbcode_highlight template to use "Maximum [CODE] Lines" defined in BB Code Settings. Previous version printed all the lines to the page regardless how long code you pasted within the code-tags, while this version limits the code window height and adds vertical scrollbar for code with more lines. It's doesn't limit the height exactly to the "Maximum [CODE] Lines" (I guess because of the different fonts used in the standard vB code tag and GeSHi), but is pretty close anyway (: - Changed GeSHi to use GESHI_HEADER_PRE_VALID instead of GESHI_HEADER_DIV. This fixes word wrapping issue in the code window, i.e. previous version wrapped long code lines while this version adds horizontal scrollbar in that case. - Fixed typos ;) Disclaimer: I'm newbie when it comes to php & vb modding, so use this version at your own discretion (: |
Having a problem with this mod on vb4.0.2 in that whenever I rebuild post cache, my [code] blocks in posts dont show up at all and I have to revisit each post/edit and save it again to ensure the code appears.
|
Strange, I tried rebuilding the post cache but don't have the problem.
|
I have a problem. I am running 3.8.
It installs fine and works OK.. The syntax highlighting works but it replaces the [ and ] with HTML code. Eg, & #91; This is displayed as code rather than the actual symbol. Any ideas? |
I hacked this for VB4 and my own personal preferences, then installed it. Works great!
|
All times are GMT. The time now is 08:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|