![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Adding EditArea for Template & Plugin Editing
![]() Developer Last Online: Jun 2014 ![]() ![]() ![]() This modification is in the archives.
This isnt a Plugin or Mod, but a collection of code changes to allow the use of Edit Area to edit vbulletin templates and in the plugin code editor areas.
http://cdolivet.net/editarea/
This requires changes to two files, one of them being optional. The first file to edit is the includes/adminfunctions.php file Using the UNMODIFIED 3.7.0 beta 2 version (Unsure of actual locations of the code in 3.6.8 and ealier versions, but the edits are basicly the same) The first edit is adding the javascript to the page. Open up the file includes/adminfunctions.php and look for the first
It should be around line 295. Before that line, add
*Read http://cdolivet.net/editarea/editarea/docs/include.html for advanced options. Now, we will look for the function print_textarea_row which starts around line 894 This is where the majority of the code changes are. Comment out line 915 (add // infront of the line)
And then add the following code after the line you just commented out.
Please read up on http://cdolivet.net/editarea/editare...iguration.html to adjust some of the settings to your new editor interface The last change in this file is a few lines down from the code you just pasted. Should be line 943. Add
to the begining of the following line
It should look like
Save and close this file! Right now, the template editor usable and with a full screen option built into it, you shouldnt need a reason to use the Large Edit Box option. However, those changes are also quite easy to do so i will add those. Open up the file admincp/textarea.php On line 48,
Change too
Before the closing </head> tag, add
*Read http://cdolivet.net/editarea/editarea/docs/include.html for advanced options. Replace the existing <body> tag (the entire line) with the following
And you're done. Some screenshots of the result.. **Note: For whatever reason, you cannot save text from the Large Edit Box into the main window IF you have the Edit Area editor enabled! you MUST uncheck the Toggle Editor checkbox before clicking the Large Edit Box button. If you fail to do that, you may or may not save your changes and you may loose the textarea data all together. For whatever reasons, while
works, the reverse
does not, if anyone knows the secret to getting this to work, please post here! --------------------------------------- **Addition In the adminfunctions.php file, the line that we added that says
change to
Before the line that reads
add
Anything in the template editor will default to HTML syntax, anything in the plugin section will default to PHP syntax and anywhere else, HTML syntax. you can also add other lines here that could disable the javascript editor from showing, one example is adding
before the default: line and this would disable the EditArea box. An alternative to searching and replacing text in many of the files. you can also prevent the Large Area Button from being displayed by adding
in whatever case statements you would like (i have it in the install/uninstall, phpcode and template editors along with the default selection). Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
No members have liked this post.
|
Comments |
#2
|
||||
|
||||
Just gr8!
/me installed No members have liked this post.
|
#4
|
||||
|
||||
This is WAY cool! It's going to save me a lot of cutting and pasting. Thanks for sharing this. Great work!
![]() No members have liked this post.
|
#5
|
||||
|
||||
Dude, this is really awesome. Does it support a replace function of a text editor?
![]() No members have liked this post.
|
#6
|
||||
|
||||
Click the binacular icon, if you're using IE though that stupid "scripted window" warning pops up and either refreshes your page or blows the world up or something like that. i hate that popup warning.
see attached No members have liked this post.
|
#7
|
||||
|
||||
It's awesome. Good job dude.
I'll nominate this for MOTM. No members have liked this post.
|
#8
|
||||
|
||||
Ive noticed that this box appears in places that you may not want it to, such as the Search Templates area.
to disable the box from appearing (Which btw, also disables the Large Edit Box button), you just need to add a few more of the options to the print_textarea_row() function call in the appropriate area. ------------ See the **Addition section to the modifications post No members have liked this post.
Last edited by sweede; 29 Dec 2007 at 17:41. |
#9
|
|||
|
|||
thanx.
No members have liked this post.
|
#10
|
||||
|
||||
There are no changes to the original files between vb 3.7.0 beta 2 and vb 3.7.0 beta 3. if you update to the latest beta, be sure not to overwrite the two files you have edited.
No members have liked this post.
|
#11
|
||||
|
||||
Is there a search function?
__________________
I'm italian, I am learning english.. so, please, if you see any errors in my grammar or spelling, let me know via PM. Danke! No members have liked this post.
|
#12
|
||||
|
||||
Nice release!
No members have liked this post.
|
#13
|
||||
|
||||
No members have liked this post.
|
#14
|
|||
|
|||
i will install . thank
No members have liked this post.
|
#15
|
||||
|
||||
It can be turned off in the options. I do not get prompts for this. I can't remember which option does it though.
__________________
Wayne Luke Get started with your own social network. Purchase and download vBulletin today. No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 18:42.