The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
Code-Mirror Editor for Templates and Plugins in Admin CP (vB3, vB4) Details »» | |||||||||||||||||||||||||||||||||
Code-Mirror Editor for Templates and Plugins in Admin CP (vB3, vB4)
Developer Last Online: Aug 2017
This product replaces my earlier EditArea version https://vborg.vbsupport.ru/showthread.php?t=288362 using the more advanced Code-Mirror editor.
With this product installed you will have a small version of the Code-Mirror editor instead of the plain textarea for editing templates, plugins and other code. You can get the full page version with all the features by clicking the Large Edit Box button. With my toolbars the Code-Mirror editor provides basic code editor features: syntax highlighting, search and replace, text matching, undo/redo, font size and syntax selection, auto indent, tab size, tabs/spaces, go to line, word wrapping toggle and code collapsing (click line numbers) Installation: 1. Upload the entire codemirror-3.0 folder to the clientscript folder. 2. Name out a copy of admincp/textarea.php (for example textarea_ORIGINAL.php) and upload the new version of textarea.php file to the admincp folder. (The best way to do this is first create a "zips" folder in your main forum directory, upload the zip file to it and use cPanel or other server manager to unzip the file into the new folder. Then you can copy or move files wherever you want them.) 3. Open the new version of admincp/textarea.php, scroll down to the commented code at the bottom and copy the print_textarea_row() function. 4. Name out a copy of includes/adminfunctions.php (for example adminfunctions_ORIGINAL.php). Open the file and find the function print_textarea_row() on line 999 in vB4 or earlier in vB3, change the name to print_textarea_row_old() and paste in the new version you copied from textarea.php. It should be ready to go. Download Now
Screenshots
Show Your Support
|
Comments |
#2
|
|||
|
|||
reserved for later
|
#3
|
||||
|
||||
Thanks this is indeed a better solution than mine so i'll install this, but i still need vbulletin template syntax highlighting, hope i'll find a way to integrate the vbulletin mode from vb5 or rewrite it for vb4
Thank you |
#4
|
|||
|
|||
I'm not familiar with vB5. Is the admin CP different? What changes have they made?
|
#5
|
||||
|
||||
Neither do I, actually I just installed it to upgrade my mods, it's still the same old, buggy and bad-coded admincp using iframes but it has new style that looks better, and they also added codemirror to every textarea. When making a new template, looking at the code I've seen it's a custom version of codemirror (slightly different) and that they developed a 'vbulletin mode'. The thing works well and i can bring it to vbulletin 4 just including vb5 codemirror files and vbulletin.js but with this mode there is no possibility to use other codemirror addons like autoclose tag etc...
|
#6
|
|||
|
|||
That's interesting. I'm tempted to create a vB5 developer domain. I hope they don't change the adminCP too much. It's old-fashioned code but it's pretty robust.
Do you know what codemirror version they're using? It may be possible to transplant their html syntax file over to this product to properly highlight vB template syntax. |
#7
|
|||
|
|||
This is the best mod ever. This is something I asked for long time ago in the wishlist on vbulletin.com
I installed it on vb4.2.2 and works great without issues. Thanks for the great job!! Update #1: I just noticed that the search feature doesn't work inside the template to find any exact word or expression. I guess there is an issue here... |
#8
|
|||
|
|||
It's working for me. You can highlight some text (or not) and click "on", then you can either highlight some other text or type in something in the search field then click "find"
|
Благодарность от: | ||
fxdigi-cash |
#9
|
||||
|
||||
Quote:
|
#10
|
|||
|
|||
Versions 3.0 and 3.1 should be mutually compatible. I think I patched this 3.0 version with a 3.1 patch. You might be able to move vB mode files over to this. They probably used modified versions of htmlmixed and xml. If it looks like this would work and you hit a snag, PM me.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|