Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Hyphen Hack Details »»
Hyphen Hack
Version: 1.00, by FleaBag FleaBag is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 06-20-2002 Last Update: Never Installs: 7
 
No support by the author.

Well here it is, my 2nd hack - Hyphen Hack! It only took about half an hour to make, it's very simple but very useful [well, at least I think it is ].

What's it do?

If you want to replace the hyphen [ the - symbol ] in the <title> tag of your vBulletin styles [the part that appears at the top of your browser, for example on the forumhome it's "YourForum - powered by vBulletin"], with other characters such as for example :: [which is what my vB uses] then this hack may be useful for you! Normally, doing this is a long process, you have to edit 49 [that's how many I counted, I might have missed a couple] templates, and if you changed your mind or revamped your site, you'd have to go and do them all again. This hack lets you edit them all by using 1 template.

What does it do to my forums?

Edits 1 file [root/global.php].
Adds 1 new template [hyphenhack].
Edits 49 templates.

How do I install it?

First of all you need to have vBHacker uploaded to your admin folder. Once you have that, upload the hyphenhack.hack.php file to your admin folder, and install it by using vBHacker.
That's all there is to it!

NOTE: If you have edited your <title> tags previously, some parts of this hack my fail to install automatically, and you will have to add the $hyphenhack variable in replacement of the - character yourself.

How do I use it?

Your hyphen replacement is stored in a custom template called 'hyphenhack'. By default, your hyphen will be replaced by ::, to change this, edit your hyphenhack template [CP > Templates > Modify] and put in whatever characters you like. You can also add the $hyphenhack variable to any template in which you would like to use the hyphen replacement.

Anything else?

Support is limited to this thread.
Thanks to everyone at vBulletin.org who have helped me with my hacking to date, especially FireFly who steps in whenever I mess things up!
If you install this hack, please comment and click Install.

Thanks very much, enjoy! Happy hacking!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-21-2002, 05:05 PM
Takara's Avatar
Takara Takara is offline
 
Join Date: Apr 2002
Location: :bunny:
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by GamerForums
Normally, doing this is a long process, you have to edit 49 [that's how many I counted, I might have missed a couple]
There is 52 specifically, hehe. Aswell, if you wanted you could go to the admin cp, templates -> search.. and fill it in to replace the string "$bbtitle -" with "$bbtitle <your dash here>" without quotes of course, then click find/replace. That is, if you dont have vbhacker installed.

I dunno if its just me, but I wouldnt ever let a script do the replacing of my code. I dont trust it not to screw up something I alredy modified, hehe <^_^;;;
Reply With Quote
  #3  
Old 06-21-2002, 05:20 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any ideas which ones I missed? Ya know, I NEVER ever noticed that Search function before. But anyway, you're right - you can do it like that, but with this people don't have to risk messing something up, they can change it by changing one template, and they can add it to any other area of their site. I used to think the same about vBHacker, then I found a hack that only had a hack.php file - tried it, and never looked back since!
Reply With Quote
  #4  
Old 06-21-2002, 07:13 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

Nice...

Satan
Reply With Quote
  #5  
Old 06-21-2002, 07:43 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reply With Quote
  #6  
Old 06-21-2002, 11:19 PM
Lovaboye Lovaboye is offline
 
Join Date: Apr 2002
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can we have a pic?
Reply With Quote
  #7  
Old 06-22-2002, 09:19 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There isn't really anything I can give you a pic of, is there?
Reply With Quote
  #8  
Old 07-18-2002, 06:10 PM
Mystic Gohan's Avatar
Mystic Gohan Mystic Gohan is offline
 
Join Date: Jul 2002
Location: Iowa
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very Nice I will install on my forums
Reply With Quote
  #9  
Old 07-18-2002, 11:51 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you like it.
Reply With Quote
  #10  
Old 02-25-2003, 03:30 AM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And working on all versions through to 2.3.0.
Reply With Quote
Reply

Thread Tools

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 10:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06014 seconds
  • Memory Usage 2,284KB
  • Queries Executed 23 (?)
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)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)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