vBulletin Variables List
vB variables list comes in handy now. Should be useful to all. Credits to vBulletinsetup.com
Site Statistics:-
$BBuserinfo Array, this can show anything thats stored in the user table
$VBoptions Array, these are the options stored in the settings table, i.e things that you configured from vbulletin AdminCP>>vbulletin Options.
$css array, this is where all the CSS attributed can be located
Ad Location Template variables:-
Miscellenous:-
Source: http://tech6.com/f51/vbulletin-variables-list-t123/ |
Thanks for sharing.
|
Thank you tons :)
|
Thanks very much for sharing. :)
|
thank you, is there some variable that makes the subforum it was reported? i want to use it to the report titles post...
|
wasn't this posted already?
thanks either way :D |
ya it was !! and it shows now ..
|
Thanks
|
What about the total number of members of a usergroup?
say usergroup 37 |
Also where do I get the current users styleid that they have set?
|
What would I use if i wanted to show an image if a curtain user is online and if they are off show a different one.
|
What about trying to get themt o display in two different spots, when I have them both in the forumhome template and in the footer template, it won't display in the footer one, is there something I need to do to make it display?
|
Thanks ...
I doubt I can use it anywhere in my vb |
Is there a variable that contains the name of the current page? I can't seem to find one.
|
THIS_SCRIPT
But it's a constant, not a variable, so don't use $ |
One more that should be added to the BBuserinfo list is $bbuserinfo[usergroupid]
This one is really useful, so I think it should be added. |
How do I use THIS_SCRIPT in a conditional to check if on the forum index page?
This is what I have right now but it's not working: Code:
<if condition="THIS_SCRIPT != 'index.php'"> I've tried using the $vboptions[homeurl] and $vboptions[bburl] to no avail. :confused: --------------- Added [DATE]1237927008[/DATE] at [TIME]1237927008[/TIME] --------------- I've just found the answer to my question here: http://forum.vbulletinsetup.com/f18/...list-2185.html In other words it should be this: Code:
<if condition="THIS_SCRIPT != 'index'"> |
What would i use to make a "Home" buton that links to each persons OWN profile.?
Thanks :) |
Quote:
HTML Code:
<a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">Home</a> |
This is what is there now..so i will need to make some adjustments for the button, etc..
Code:
<a href="$vboptions[forumhome].php$session[sessionurl_q]" class="home">Home</a> |
Thank you so much, really useful!
|
Oh this is going to be very helpful.
|
how can I get the first post's title of a thread?
|
how can i use it in templates ? please
|
I wanted to use some of the site statistic variables in a side column but I noticed that some don't show up on the showthread page. Any idea how to get them to show up?
|
How can I show the user(s) rank? Using the $bbuserinfo one?
|
$post[rank] inside the postbit.
$bbuserinfo[rank] outside the postbit. |
Neither of them worked for me, but thanks for trying to help.
|
Quote:
|
Is there a tutorial or easy way to learn how to use these and design with them, as in pulling certain elements up to the front page? Seems very powerful!!!
|
What do we have to do to make these available in a custom product or script?
I see that $vbulletin->userinfo works, but when I try to use $bbuserinfo it's not there. |
That's a very nice list! Thank you very much I can definitely put this to some use I guess :-P
|
Quote:
|
Quote:
& Thank you!!! |
which variable for Styleid number?
|
Quote:
|
thanks mate, handy stuff
|
Variable for Version #?
|
Hi... is there a variable for what template group the current template is in?
I'm trying to figure out if a template is a Custom Template or not. |
Quote:
|
All times are GMT. The time now is 06:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|