Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
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)
Mod Version: 1.00, by nerbert (Coder) nerbert is offline
Developer Last Online: Aug 2017 I like it Show Printable Version Email this Page

vB Version: 4.2.2 Rating: (3 votes - 5.00 average) Installs: 14
Released: 04 Aug 2014 Last Update: Never Downloads: 70
Not Supported Code Changes Additional Files Re-usable Code  

This product replaces my earlier EditArea version http://www.vbulletin.org/forum/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

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	admincp.jpg
Views:	212
Size:	112.5 KB
ID:	149963   Click image for larger version

Name:	textarea.jpg
Views:	177
Size:	83.4 KB
ID:	149964  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Administrative and Maintenance Tools EditArea Code Editor for Templates & Plugins in Admin CP (vB3, vB4) nerbert vBulletin 4.x Add-ons 18 01 Nov 2017 21:29
BB Code Enhancements NEW Editor Tags allow you to embed the CodeMirror code editor in posts nerbert vBulletin 4.x Add-ons 2 03 Nov 2013 14:09
BB Code Enhancements Editor BBcode Tags to embed EditArea code editor in posts nerbert vBulletin 4.x Add-ons 15 03 Nov 2013 04:03

Comments
  #2  
Old 04 Aug 2014, 14:01
nerbert nerbert is offline
 
Join Date: May 2008
reserved for later
Reply With Quote
  #3  
Old 04 Aug 2014, 14:17
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
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
Reply With Quote
  #4  
Old 04 Aug 2014, 14:32
nerbert nerbert is offline
 
Join Date: May 2008
Originally Posted by Scanu View Post
..... hope i'll find a way to integrate the vbulletin mode from vb5 or rewrite it for vb4
I'm not familiar with vB5. Is the admin CP different? What changes have they made?
Reply With Quote
  #5  
Old 04 Aug 2014, 15:03
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
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...
Reply With Quote
  #6  
Old 04 Aug 2014, 15:24
nerbert nerbert is offline
 
Join Date: May 2008
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.
Reply With Quote
  #7  
Old 04 Aug 2014, 15:38
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
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...
__________________
Shoot me a PM if I didn't reply in your post when you needed help. I can't remember things easily

Last edited by fxdigi-cash; 04 Aug 2014 at 15:49.
Reply With Quote
  #8  
Old 04 Aug 2014, 15:59
nerbert nerbert is offline
 
Join Date: May 2008
Originally Posted by fxdigi-cash View Post
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...
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"

Last edited by nerbert; 04 Aug 2014 at 16:16.
Reply With Quote
  #9  
Old 04 Aug 2014, 19:57
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Originally Posted by nerbert View Post
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.
Version is 3.1
Reply With Quote
  #10  
Old 04 Aug 2014, 21:09
nerbert nerbert is offline
 
Join Date: May 2008
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.
Reply With Quote
  #11  
Old 13 Sep 2014, 22:56
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
I just installed this, and OMG, it looks amazing!! And the Browser Search (CTRL + F) works fine in the Text Area, I just have to press "CTRL + F" twice for the Search Bar to pop up. But that's not a big deal at all.

Thank you!

*Installed & Nominated for MOTM*

Last edited by thetechgenius; 14 Sep 2014 at 04:06.
Reply With Quote
  #12  
Old 23 Nov 2014, 09:25
nerowolfe nerowolfe is offline
 
Join Date: Mar 2011
Perfect!
*Installed & Nominated for MOTM*
Reply With Quote
  #13  
Old 15 Feb 2017, 10:43
Sonik_elf's Avatar
Sonik_elf Sonik_elf is offline
 
Join Date: Aug 2015
In - vBulletin 4.2.3 Patch Level 2 - its work!
Very nice!

__________________
iddqd, idkfa
Reply With Quote
  #14  
Old 23 Feb 2017, 21:29
seb5594's Avatar
seb5594 seb5594 is offline
 
Join Date: Jun 2011
Real name: Sebastian
Installed on vB4.2.3, but the Search Button is now missing in ACP -> Style and Templates -> Browse/Search

https://gyazo.com/07c9cd3223e437d62698fcb2e788bc0d
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:14.

Layout Options | Width: Wide Color: