The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Functions.php -- Tips?
Does anyone have any tips for editing functions.php (either admin or root)?
I know this sounds silly, but EVERYTIME I go to edit this file (whether I do it online the dumb way or via EditPlus2) I seem to mess it up and get all kinds of parse codes. :s Eventually I get it working, but only after numerous frustrating attempts and lots of yelling. If I could get some hints or tips, maybe I can get the blasted file working the right way the first (or even second or third) time. *sigh* I even shy away from hacks that have to touch this file. :'( So, hints, tips? Please!! Edited to say There's a forum for hints and tips! I didn't see it, but my topic doesn't seem to be in there. So if this thread goes in there, or if it's hacking discussion, do your duty. Sorry about that! |
#2
|
||||
|
||||
Awwww. Come on, guys! Doesn't anyone have any love for lil' ol' me?
Surely I'm not the only one that has trouble with this file, right? |
#3
|
||||
|
||||
I've never had problems with this, unless I fscked up and did a typo or whavever.
|
#4
|
||||
|
||||
just don't touch it .
|
#5
|
||||
|
||||
Quote:
*lol* That's hard when about half the hacks (or maybe a third) have to edit it. I do the same exact steps with this file as I do any other. Generally I don't make mistakes in the other files (not always, I'm not perfect), but I do in this one every time. :s I tried installing the "Yesterday/Today" hack and stuffed it up pretty well. :s Maybe - do extra lines count in the file? For instance, when I paste the hack in and I put a blank line between the end of the hack and the start of the next line - is that bad? I've tried it several ways but haven't come to a credible solution. |
#6
|
||||
|
||||
no put blank lines where ever you want.. and so many you want . you can also put some comments at the start and the end of the hack-code. so you can find the code segment easier.
for comments put at the beginning of the line '//' (doubleslash) and then write whatever you want . |
#7
|
||||
|
||||
It shouldn't be harder than other files, but some things I miss are the closing }'s or at the end of almost every line you need a ; and make sure commented stuff stays commented.
|
#8
|
||||
|
||||
Try to make sure you dont make syntax errors, or delete any brackets ( { )...
Satan |
#9
|
|||
|
|||
ok, this is my experience...
If you have some type of web-based editors provide by your web host, they can mess your files up. there are times I tried so hard to get my code working but there is still always errors.. I uploaded the original file (sure it working again) and edit it by just deleting 1 space in a commented line... and got the parse error. I think those web-based text editor doesn't save the file in the correct ASCII format, and that causes the problem. always try to edit the file offline with some very crude (notepad, but not MS Word or WordPad...), or very professional text/codes editors (i use UltraEdit, it's excellent)... Jedi |
#10
|
||||
|
||||
Sorry to dissapoint you but editing functions.php (either) is no different than editing any other vbulletin file.
I really dont have any idea why you encountered many problems, but it's a PHP script, just like showthread.php or private.php so I can guarantee there is no curse on it.. Maybe it's the program you use..Maybe switching back to good old Notepad can help.. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|