Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-10-2002, 01:41 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 04-11-2002, 12:56 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 04-11-2002, 01:04 PM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've never had problems with this, unless I fscked up and did a typo or whavever.
Reply With Quote
  #4  
Old 04-13-2002, 01:28 PM
el3m3nt's Avatar
el3m3nt el3m3nt is offline
 
Join Date: Jan 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just don't touch it .
Reply With Quote
  #5  
Old 04-13-2002, 01:33 PM
Rose's Avatar
Rose Rose is offline
 
Join Date: Nov 2001
Location: K-Town, Germany
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by el3m3nt
just don't touch it .

*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.
Reply With Quote
  #6  
Old 04-13-2002, 01:39 PM
el3m3nt's Avatar
el3m3nt el3m3nt is offline
 
Join Date: Jan 2002
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Reply With Quote
  #7  
Old 04-13-2002, 08:17 PM
mr e's Avatar
mr e mr e is offline
 
Join Date: Dec 2001
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 04-20-2002, 01:25 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try to make sure you dont make syntax errors, or delete any brackets ( { )...

Satan
Reply With Quote
  #9  
Old 05-11-2002, 01:21 AM
JediKNight JediKNight is offline
 
Join Date: Jan 2002
Location: Houston
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 05-14-2002, 07:59 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05380 seconds
  • Memory Usage 2,251KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete