PDA

View Full Version : How to get forum name?


nirvana43
12-23-2009, 01:29 AM
Hello
Is there any way to fetch forum name in some variable?
The one you set in Admincp->Options->Site Name / URL / Contact Details
Forum Name (Name of your forum. This appears in the title of every forum page.)

Like is there any way to fetch that text using $vbulletin->????["????"];
if no then how do i fetch it?

Lynne
12-23-2009, 02:31 AM
If you are in debug mode, you can hover over the option in the Options page and it will tell you the name of the variable. In this case it is $vbulletin->options['bbtitle']

nirvana43
12-23-2009, 06:04 AM
Thank you very much.. that did the trick.
I have another small problem.
When i create 1 global phrase with message :
My Website Name : $vboptions[bbtitle].

It doesnt give me my website name and instead it prints $vboptions as it is.

I also tried with following text :
[B]My Website Name : $vboptions['bbtitle'].

Kindly help.

--------------- Added 1261568012 at 1261568012 ---------------

somebody please help. :)

Lynne
12-23-2009, 04:18 PM
You don't do it that way. You create a phrase like:
My Website Name : {1}

Then you call it in the template like:
{vb:rawphrase your_phrase, {vb:raw vboptions.bbtitle}}

nirvana43
12-24-2009, 06:23 AM
Thanks a million Lynne... yap again!! lolz :p