The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Functions.php
Im running vBulletin 2.2.9 and have tried to modify my functions.php file a hundred times. It doesnt seem to matter what hack Im trying to modify it for, it will produce a parse error and make my site unavailable.
I have tried this for a required block vbportal of code and for a custom photo gallery hack. On both occasion Ive rechecked my edits 100 times and know they are being modified correctly. I have used a text editor, and also even tried directly editing the files from the server. In all cases, a parse error is generated. Does anyone else run into this problem or have a solution for me? I have made sure the edits are correct, made sure there is no blank space at the bottom, etc. and nothing seems to work. This has been going on for at least two months now and nothing seems to resolve this issue. |
#2
|
|||
|
|||
ttt
|
#3
|
||||
|
||||
What text editor are you using? It sounds like the editor is causing the problem.
|
#4
|
|||
|
|||
AEdiX
.... but I have also tried to make the changes right from the server, and the same thing happens. My errors always refer to sessions.php, which I've replaced with the default just to make sure. I have also modified a dozen other files with the same editor and it went fine. |
#5
|
|||
|
|||
I'm only running 4 hacks.
1. Thread Preview 2. Quick Reply 3. vBPortal 4. Photopost Hack Out of the 4 hacks, vbportal requires an edit to functions.php for the topics option to work... and my custom photopost hacks requires a small modification. Neither modification wants to work. |
#6
|
||||
|
||||
A parse error means there's something wrong with either the PHP file or the template. It would help if you posted the complete error message.
|
#7
|
|||
|
|||
Damn... I'm at work
I made a copy of it somewhere, I'll try to find it and post it. It?s obviously something wrong with the PHP file, hence the error message, but can?t figure out what. Especially considering the fact I have tried several times to apply the edits to the original file. |
#8
|
|||
|
|||
ttt
|
#9
|
||||
|
||||
I'm not sure what 'ttt' is supposed to mean but if you're waiting for my help I still need to see the actual error message.
|
#10
|
|||
|
|||
ttt= to the top
LOL Ok, I just tried it again using a THIRD text editor and still get the same damn error. Parse error: parse error in /home/offtopic/public_html/forums/admin/functions.php on line 827 Fatal error: Call to undefined function: vbdate() in /home/offtopic/public_html/forums/admin/sessions.php on line 400 This is line 827 AFTER the new code is added: Code:
$buffer = str_replace(""", "\"", $buffer); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|