![]() |
Quick switch Editor Interface (b/w Standard and Enhanced)
Hack name: Quick switch Editor Interface
Author: HacNho Version: 1.0.1 Description: This hack will switch Editor Interface to Standard or Enhanced Editor (WYSIWYG) (in user profile) by one click when you are editing/posting File to edit: 0 File to upload: 1 (changeinterface.php) Template to edit: 4 ( editpost, newthread, newreply, pm_newpm) Limitation: The pm_newpm only work when sending to 1 user, or pmid exists Screenshot: EditorInterface.gif (20.2 KB) Installation: changeinterface-install.txt (3.4 KB) Step 1: Upload changeinterface.php to your forum directory Step2: Edit templates editpost ... Step 3: Edit templates newthread ... Step 4 Edit templates newreply ... Step 5 Edit template pm_newpm Step 6 Test change interface when (1) edit, (2) post new reply, (3) post new thread, (4) send new PM and reply PM Do I miss anything? Maybe a script to autodetect the sending process (edit or reply or newthread or PM) would be nice, so you dont have to edit individual templates ... but I dont know how yet :D, dont want to execute too many scripts either. Update: version 1.0.1 - add switch for sending pm - optimize the php file and templates (upgrade instruction: redo all the steps) https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/ https://vborg.vbsupport.ru/ |
2 problems.
|
Quote:
... and the instruction file too |
Please post the instructions in a text file. That way it will be easier to download and save for future use also, instead of having to come to this thread the re-install it on an upgrade. Thank you. ;)
|
Quote:
|
Thankyou for sharing your modification with the community :)
|
Nice work mtha - I'll probably use this.
|
Quote:
[high]* Boofo clicks the install button repeatedly.[/high] |
In step 5:
Look for: $vbphrase[reply_to_thread] should be Look for: $vbphrase[post_new_private_message] right? |
Added a little functionality:
Replace all: Code:
$bbuserinfo[showvbcode]</a> Code:
<if condition="$bbuserinfo[showvbcode]=='2'">WYSIWYG Editor<else />Standard Editor</if></a> |
Install and added mod from Ming
Thx to all :) |
Quote:
actually, you just need to use condition once: HTML Code:
<if condition="$bbuserinfo[showvbcode]=='2'"> do the same with other templates. However, if Guest is allowed to post, you may get error if you dont have userid=0. then, adding <if condition="$bbuserinfo[userid]!=0"> above, and </if> bellow the code should help. In my case, if guest, $bbuserinfo[showvbcode] = empty, there's no link :D |
Nice hack installed :).. infact I need it to help some users with bbcodes as one editor does it beter :)
thanks |
Quote:
|
Many thanks, I needed this so much...
|
when opting for number 2 it is automatically inserting a Quote from the last post.
How to fix? |
Quote:
look for PHP Code:
replace by PHP Code:
I wouldnt mind just seeing the quote, select all, and delete it. :) |
Quote:
Whatever was in the text-entry window is carried over into the new editor-window. Nothing added or removed. |
Quote:
I'd love to see it implemented somehow :D This is only quick mod and I didnt put all posibilities into account. Adding auto quote detection option shouldnt be too hard, just need toread the noquote value from url,put into changeinterface.php, and youare done. I might add the addition sometime later |
This comes in handy. I use the advanced, but many times there is a need to clean out the extra tags from the cut n paste. That's where this option is very handy. Thanks.
|
Yea, for me it's probably the most useful hack I've installed so far :)
|
All times are GMT. The time now is 04:47 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:
|