![]() |
So after 2+ hours of working on this I finally found a solution, it's not very clean as you have to edit a class file from vbulletin but such is life.
This is done with version 3.6.7 PL1 open up includes/class_bbcode_alt.php 1. Replace the second foreach loop in the `vB_BbCodeParser_Wysiwyg` function on line 82 with this code: PHP Code:
PHP Code:
|
Hello !
Where can i define the WIDTH of code display ? In Firefox it looks a little bit too small -> http://www.waldbauer.com/vb/showthre...=5552#post5552 EDIT: I see the auto feature has a problem with IE, which correct size in px to use instead ? |
]Hi all!
I have successfully installed Advanced Syntax Highlighting (THX Andreas) with all the modifcations read in the posts above (THX guys). I need to fix at least one more thing: If I use the extended editor, copy paste a colored text and use the [highlight=XXX] vb Code tag the color format (and any othe format) doesn't get delete like using the [php] vb Code tag. example: [highlight=vb][color=red]coloredtext[/color][/highlight] [php]coloredtext[/php] Now i want to fix [highlight=XXX] to work like [php], because inserting preformated code nukes the text between the [highlight] tags. However I can't find where [php] removes the other codes. Can anyone tell me where I can find this, please. THX for help! |
]I did it! With help from vBulletin-germany I could find the line where you need to add the code.
Simply add it to the html and php keywords in functions_wysiwyg.php. So replace: Code:
'#\[(html|php)\]((?>[^\[]+?|(?R)|.))*\[/\\1\]#siUe', // strip html from php tags Code:
'#\[(html|php|highlight)\]((?>[^\[]+?|(?R)|.))*\[/\\1\]#siUe', // strip html from php tags |
Quote:
|
Quote:
PHP Code:
the browser parses the characters, so the line of code i posted should work via copy & paste |
Installed successfully on 3.6.8 pl2 =)
Last problem is, I want to make the [highlight=vb] to [vb] If I try to use a custom bbcode like [vb] which replaces [highlight=vb]{param}[/highlight] it doesn`t work :( Someone knows how to make this working? German/English help for me would be nice :D |
Hi guys, I'm using vBulletin 3.70 RC3 and installed this hack. I tried to make a vB Tag and a button for the editor.
The normal code for highlighting is [highlight=vb]My VB code[/highlight], so I made a new vB Tag with the following content: [highlight=vb]{param}[/highlight] But the problem is when I click on the button and add my text it doesnt highlight anything and just shows [highlight=vb]My Text[/highlight] Do you know how to fix this? |
Will this work with 3.7.0 ?!
|
Hello ! I recently reinstalled this plugin on 3.7.1 but my codeblocks are to width - how can i reduce the codewidthto fit my screen ?
|
All times are GMT. The time now is 10:42 AM. |
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:
|