View Full Version : [Article] Why you should choose and use vBulletin phrases


Floris
22nd August 2004, 11:15 AM
Why you should choose and use vBulletin phrases

Here is a mini article about why you should choose and use vBulletin phrases for your source code and template modifications. 2thumbsup thank you for publishing your article on our web site.

Author: 2thumbsup
Web site: http://www.gfxhaven.com/forums (http://www.gfxhaven.com/forums)


Most vBulletin administrators like to experiment with portions of their style. Mabye add a small source code or template modification, a text box, minor additions. At the same time, however, most of these admins install their modification incorrectly. Hardcoding everything, in example instead of using vBulletin phrases, they use plain text. Why? The simply don't understand the power of the vBulletin phrase system. vBulletin phrases allow an admin to repeat the same string of text over and over again, without having to retype it. In addition, it allows an admin to simply change the content of the phrase, rather then search through all the templates and files and replace everything. That said, using phrases of course allows your members to view the additional in their own language - if you have more then one language on your board for them to choose from.

For users who don't know how to add a phrase and then use it, I suggest reading through the on-line vBulletin manual here: http://www.vbulletin.com/docs/html. However, here is a simple little walkthrough on how to do it.

Login to your Admin Control Panel. Under the group "Languages & Phrases", click on "Phrase Manager". Chose the phrase type you would like to use in the drop down list.

The most common phrases are GLOBAL, however, for your particular use, you might need to change it. Click on "Add New Phrase", and it will redirect you to a new page.

Give the phrase a unique name that isn't taken already. If you do chose a variable name that is already taken vBulletin will automatically warn you. Then, add the specific text you want the phrase to contain. Finally click on "Save".

Open up the template you want to input the phrase into, and find where you want the text. Now, instead of putting the hardcoded text, add the vBulletin phrase by using the following code:
$vbphrase[variable_name]"Save" the template, and marvel in awe at your new vBulletin phrase. You have now not only made your template to the vBulletin standard, but you've saved yourself a lot of time and work.

I hope this is of help to anybody!

© Copyright 2004 2thumbsup & http://www.vBulletin.nl/ (http://www.vbulletin.nl/)


You can discuss this thread here (http://www.vBulletin-Fans.com/showthread.php?t=6197).


Floris & Staff