![]() |
Hey all,
I've run into a strange problem with this. As you can see on the attachement, the colored code continues after the highlight should end. Any idea what could be causing this? |
Does this Addon work correctly with 3.7.2pl1?
|
Plugin works fine with 3.7.3.
But i am still figguring out how to get some buttons into the editor. 1) You cant use the build-in method to add the bbcode, because the 'normal' tag is just given out, no highlight will be made. 2) You cant just change the toolbar_on template within the buttonmenu, and add a new entry with _cmd_wrap0_BBCODENAME=language, because then it will be [BBCODENAME=language][/BBCODENAME=language] instead of so we need to change the vbulletin_textedit.js file, because there the choise will be made what to happen with our string. But i cant find a solution that work. Is there somebody who can help me? Thank you very much. Developed a Solution. Check next Post. |
Alright, i found a solution for the Button-Problem.
Just follow the Tutorial, and you will be able to use the Highlighter with the latest vBulletin (3.7.3 i think). You maybe find other information on this, but thats the only code which works perfectly with the WYSIWYG-Editor AND the normal Codeeditor. It allows you to select already inserted Code and wraps your Selection between the Tags, instead of replacing your code. Step 1) Download the uncompressed Javascript Package of your Customer Center Step 2) Open the File /clientscript/vbulletin_textedit.js Step 3) Edit the File Search for Code:
/** after this function enter the following: Code:
/** Search for Code:
case 'insertimage': Insert following Code, after the Case statement Code:
Step 4) Edit the editor_toolbar_on template in ACP Select Styles and Templates, then Search for template. Enter "editor_toolbar_on" and do a search. Remember to edit the template in all your Styles! Search for: Code:
<if condition="$show['php_bbcode']"> Quote:
Code:
<td><div class="imagebutton" id="{$editorid}_cmd_vbnet"><img src="$stylevar[imgdir_editor]/vb.png" width="16" height="16" alt="Visual Basic .NET Quellcode einf?gen" /></div></td> It works fine. Additionally, you can add some Phrases and so on, but this will work as well. Remember to create some Icons for the Editor. Use the default Resolutionof 16x16 Pixels. Quote:
|
There is an error while converting [ and ] - Characters. Here is the Solution:
Open the product-advhighlight.xml and find: Code:
$codefind2 = array( Code:
$codefind2 = array( |
ok so can we change the variable of "hightlight" to like "language" or something like that?
Im trying to use WP and this to work just fine. Example , in wordpress getti uses , <pre lang=css> and how would i make vBulletin or Wordpress hack to ether use similar post code? thanks a bunch. |
I still havent figured out a solution for the highlight-relacement, but it works still fine with Version 3.8.0./ 3.8.1, if you follow my instructions i postet some posts before.
|
DevFuture.de dou you know how to get it to auto indent the code?, i'm currently trying to use it for VBA (Microsofts version of VB) and i'm using teh vb.net language as the highlighting seems closest in that, but all the code stays "as is", it doesn't capitalize or indent the code so highlighted code still looks a bit messy.
|
Hello Simon Lloyd,
I am sorry, i havent subscribed the topic, so that I just saw your entry now. I am sorry, but I dont know how to indent them. Normally this function is not provided by GeShi (afaik). But it should worker proper, if you copy the Sourceode with indented style, and paste them into a thread. Normally it should be displayed intended then. |
Quote:
Code:
For Each..... |
All times are GMT. The time now is 03:52 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:
|