The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
$allowvbcode problems...
I am having problems with the smilies and vbcode buttons showing up all the time in the sig editor hack when I use the second code below. If I use the first code, I get an undefined variable error.
Here is the original code (this code is from the sig editor hack): PHP Code:
PHP Code:
PHP Code:
|
#2
|
||||
|
||||
What happens when you add the $cbutton variable? What's the error?
Hwulex |
#3
|
||||
|
||||
No error happens, but the vbcode buttons and the smilies can not be turned off or on in the Admin CP.
Quote:
|
#4
|
||||
|
||||
Make sure there is a [minicode]error_reporting(7);[/minicode] line in the hack's file.
|
#5
|
||||
|
||||
That code wasn't there, so I put it in right after the [minicode]<?php[/minicode]. It still doesn't show the vbcode buttons or the smilies whether they are on or off in the Admin CP. Is the code I added correct for the if statements?
Quote:
|
#6
|
||||
|
||||
Now undo the changes you did.
|
#7
|
||||
|
||||
I put in the "error reporting line" like you told me. The sedit file gave me the same errors I had in the beginning. I had to add back the $cbutton part to stop the errors:
PHP Code:
Quote:
|
#8
|
||||
|
||||
I think I found a solution to my problem with the smilies and bbcode either not showing up when they should or showing up when they shouldn't with the sig-editor hack installed. Here is the code I used to make it work right. I also took out the custom button hack ($cbutton) since it seemed to be messing with a few things concerning bbcode.
PHP Code:
PHP Code:
And, also, what does the erorr_reporting 7 thing do at the top of the files? Should it be in all php files we use on our forums or is there something else that has to be in the files to make it work with that? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|