vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Hyphen Hack (https://vborg.vbsupport.ru/showthread.php?t=40114)

FleaBag 06-20-2002 10:00 PM

Hyphen Hack
 
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! ;)

Takara 06-21-2002 05:05 PM

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 <^_^;;;

FleaBag 06-21-2002 05:20 PM

Any ideas which ones I missed? :p 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! :)

Chris M 06-21-2002 07:13 PM

Nice...:)

Satan

FleaBag 06-21-2002 07:43 PM

:D

Lovaboye 06-21-2002 11:19 PM

can we have a pic?

FleaBag 06-22-2002 09:19 AM

There isn't really anything I can give you a pic of, is there?

Mystic Gohan 07-18-2002 06:10 PM

Very Nice I will install on my forums

FleaBag 07-18-2002 11:51 PM

Glad you like it. :)

FleaBag 02-25-2003 03:30 AM

And working on all versions through to 2.3.0.

Silenced Soul 02-25-2003 03:59 AM

not a bad hack, and nice work, but, I've got no use for it whatsoever...

FleaBag 02-25-2003 04:30 AM

Yeah that's the thing with such a select hack, useful to a few but useless to many!

mx3 03-08-2003 03:02 AM

cool, i might install if i ever have to...lol


All times are GMT. The time now is 04:44 PM.

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.01311 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete