FleaBag
06-20-2002, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=36378) 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! ;)
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 (https://vborg.vbsupport.ru/showthread.php?s=&threadid=36378) 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! ;)