The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to use vbuletin wysiwyg in a parent directory of the forum one
Hi,
Well, i'll try to explain my problem. I'm trying to make a php script whch allows the use of the wysiwyg editor in a parent directory of the forum one. So Everything loads ok, I have something similar to the code given in this thread https://vborg.vbsupport.ru/showthread.php?t=66895 In order to make the editor work, I did a str_replace (or eregi_replace) for the $messagearea var, to replace relative urls (clientscript/... and images/...) into real urls ($vboptions[bburl]/...). Now, in the source code of the html page generated the urls of called javascripts and images are fine (the editor loads with pitures ... ). The probleme : it's for me impossible to write any message (impossible to have the cursor in the message area) and impossible to click the B, I, U ... buttons. So, how to make it work ? (without copying the clientscript directory in the root folder ). Thank you for any help. |
#2
|
|||
|
|||
Hehe, I just took the time to learn this last night.
Assuming you can handle your paths to the JS... 1) check your body tag 2) check your form tag 3) check for define('GET_EDIT_TEMPLATES', 4) check your $phrasegroups = array( 5) check your $specialtemplates = array( 6) Check your requires, there are several needed. For the proper configuration to get those controls going. Look at the code for editing a signature, good clean easy example. |
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
There are solutions, but not knowing what your code is on the php page in use, I'm not sure how to implement a fix or suggestion.
|
#5
|
|||
|
|||
Here is the code with comments for filed in address http://www.yoursite.com/dir1/dir2/ and forum called this way : http://www.yoursite.com/forum/
PHP Code:
|
#6
|
|||
|
|||
Nobody can help ?
Thanks |
#7
|
|||
|
|||
Not sure what to tell ya, but something is missing. Posting Phrases seem missing?
BTW, you are only handling Enhanced mode text. |
#8
|
|||
|
|||
Well, I said : with this script it works when in the forum directory but not in the parent.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|