try another color scheme:


Go Back   TECH6.0 > Web Design/Development and SEO > Internet Forum Softwares > vBulletin


vBulletin Variables List

This is a discussion on vBulletin Variables List within the vBulletin section, part of the Internet Forum Softwares category; vB variables list comes in handy now:- If you know some more.. list them out !!...

Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1  
Old 19-05-2008, 02:21 AM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Icon6 vBulletin Variables List

vB variables list comes in handy now:-

If you know some more.. list them out !!
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #2  
Old 19-05-2008, 02:22 AM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

$BBuserinfo Array, this can show anything thats stored in the user table
  • $bbuserinfo[username] - Username
    $bbuserinfo[userid] - User ID number
    $bbuserinfo[posts] - Users postcount
    $bbuserinfo[signature] - Users signature
    $bbuserinfo[email] - User Email Address
    $bbuserinfo[homepage] - Users homepage in profile
    $bbuserinfo[msn] - Users MSN address from profile
    $bbuserinfo[yahoo] - "" Yahoo ""
    $bbuserinfo[icq] - "" ICQ ""
    $bbuserinfo[usertitle] - Users custom usertitle
$VBoptions Array, these are the options stored in the settings table, i.e things that you configured from vbulletin AdminCP>>vbulletin Options.
  • $vboptions[forumactive] - Status of whether forum is turned on/off
    $vboptions[bbclosedreason] - Reason why forum turned off
    $vboptions[bbtitle] - Forum title
    $vboptions[bburl] - Forum URL
    $vboptions[hometitle] - Site homepage Title
    $vboptions[homeurl] - Site homepage URL
    $vboptions[copyrighttext] - Site copyright text
    $vboptions[privacyurl] - URL to forum privacy statement
    $vboptions[webmasteremail] - Webmaster email address
    $vboptions[contactuslink] - contact us URL
    $vboptiions[enablehooks] - Status of plugin/hook system
    $vboptions[imagetype] - Determine if using GD or Imagemagick
    $vboptions[timeoffset] - forum time offset
    $vboptions[cookiepath] - forum cookie path
    $vboptions[legacypostbit] - Determine if using legacy (side) postbit or new horizontal postbit
    $vboptions[use_smtp] - If SMTP mail is enabled
    $vboptions[smtp_host] - SMTP hostname
    $vboptions[smtp_port] - SMTP port number
    $vboptions[allowregistrations] - Determine if new users can register
    $vboptions[welcomemail] - Determine if welcome mail is sent on registration
    $vboptions[avatarenabled] - Check if avatars are enabled
    $vboptions[reputationenable] - Check if reputation system is enabled
$stylevar Array, this contains all the paths to forum images and other style variables that are editable in the Styles and templates >> Stylevars
  • $stylevar[titleimage] - Path/filename for top banner
    $stylevar[outertablewidth] - The width of your forum
    $stylevar[spacersize] - Spacing betwen main body and content
    $stylevar[cellspacing] - Inner border width
    $stylevar[cellpadding] Table cell padding
    $stylevar[formwidth] - Form width in pixels
    $stylevar[imgdir_button] - Path for forum buttons
    $stylevar[imgdir_statusicon] - Path for status icons
    $stylevar[imgdir_attach] - Path for attachment icons
    $stylevar[imgdir_misc] - Path for misc icons
$css array, this is where all the CSS attributed can be located
  • $css variables[body][background] - Body background colour
    $css[body][color] - Body text colour
    $css[body][LINK_N][color] - Body normal links
    $css[body][LINK_V][color] - Body visited links
    $css[body][LINK_M][color] - Body link hover colour
    $css[.page][background] - Page background colour
    $css[.page][color] - Page text colour
    $css[.tborder][background] - Table border background colour
    $css[.tborder][color] - Table border font colour
    $css[.tcat][background] - Category strip background/colour
    $css[.tcat][color] - Category strip font colour
    $css[.thead][background] - Table header background gradient/colour
    $css[.thead][color] - Table header background colour
    $css[.tfoot][background] - Table footer background colour/gradient
    $css[.tfoot][color] - Table footer text colour
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #3  
Old 19-05-2008, 03:16 AM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default Some more useful variables introduced with vB 3.7

Ad Location Template variables:-

  • $ad_location[ad_footer_end] - Displays content of ad_footer_end template
    $ad_location[ad_footer_start] - Displays content of ad_footer_start template
    $ad_location[ad_forumdisplay_afterthreads] - Displays content of ad_forumdisplay_afterthreads template
    $ad_location[ad_forumdisplay_afterforums] - Displays content of ad_forumdisplay_afterforums template
    $ad_location[ad_header_logo] - Displays content of ad_header_logo template
    $ad_location[ad_header_end] - Displays content of ad_header_end template
    $ad_location[ad_navbar_below] - Displays content of ad_navbar_below template
    $ad_location[ad_showthread_beforeqr] - Displays content of ad_showthread_beforeqr template
    $ad_location[ad_showthread_firstpost] - Displays content of ad_showthread_firstpost template

Miscellenous:-

  • $notices - Used to display notices
    $notifications_total - Used to display total number of unread notifications
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #4  
Old 19-05-2008, 03:24 AM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

Site Statistics:-

  • $totalthreads - Displays the total number of threads in the forum
    $totalposts - Displays total number of posts in the forum
    $numbermembers - Display total number of members in the forum
    $totalonline - Displays the number of total users currently online
    $numberregistered - Displays the number of total registered users currently online
    $numberguest - Displays the number of total guests currently online
    $recordusers - Displays the number of most users ever online
    $recorddate - Displays the date on which most users were ever online
    $recordtime - Displays the time on which most users were ever online
    $activeusers - Displays a list of currently active/online Users (i.e. logged in)
    $activemembers - Displays the number of members who are active in the forum
    $newusername - Displays the username of the newly registered user
    $birthdays - Displays list of users whose birthday is today
    $upcomingevents - Displays list of upcoming events
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #5  
Old 20-05-2008, 03:20 AM
iBlake's Avatar

Techie
 
Name: Blake
Join Date: May 2008
Location: United States
Phone: Not in the list
Posts: 91
iBlake is on a distinguished road
Send a message via MSN to iBlake
Default

Wow, Maybe I should make it to where you are the only one who can post in this topic. Should I merge all yoyur posts?
__________________
My iPhone is better than yours...........

I Am Back!
Reply With Quote
  #6  
Old 21-05-2008, 06:43 AM
No Avatar

Tech Addict
 
Join Date: Feb 2008
Location: India
Phone: Nokia 1110i
Posts: 164
foodland has a spectacular aura aboutfoodland has a spectacular aura about
Send a message via Yahoo to foodland
Default

can u tell me how to use it...
Reply With Quote
  #7  
Old 21-05-2008, 06:48 AM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

can u tell me how to use it...
As Said by foodland View Post
do you have a vBulletin powered board ??
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #8  
Old 26-08-2008, 02:09 PM
No Avatar

Techie
 
Join Date: Aug 2008
Location: United States
Posts: 54
MisawaPlayer is on a distinguished road
Send a message via Yahoo to MisawaPlayer
Default

$VBoptions Array, these are the options stored in the settings table, i.e things that you configured from vbulletin AdminCP>>vbulletin Options.
  • $vboptions[timeoffset] - forum time offset
As Said by webwizzy View Post
How do I actually use this variable? Or rather, access it? I have tried it like it is shown above and it seems to hold nothing. I believe that there probably is more to it, something like
Code:
$vbulletin->$vboptions[timeoffset]
but I do not know this for sure, nor did this work when I tried it. So, can you please give me the "format" needed to access the value of this variable. Thank you.
Reply With Quote
  #9  
Old 26-08-2008, 08:23 PM
No Avatar

Techie
 
Join Date: Aug 2008
Location: United States
Posts: 54
MisawaPlayer is on a distinguished road
Send a message via Yahoo to MisawaPlayer
Default

If anyone has attempted to look this up and help me, I appreciate the time spent, and I'm sorry for wasting your time. I figured out how to do it (at least one way). The format I used was this:

PHP Code:
$timeoffset $vbulletin->options[timeoffset]; 
Note, I had to drop the vb from "options" and added the $vbulletin->

I hope this can help some of the others who asked the question, "how do I use this."
Reply With Quote
  #10  
Old 22-09-2008, 10:02 PM
No Avatar

Techie
 
Join Date: Aug 2008
Location: United States
Posts: 54
MisawaPlayer is on a distinguished road
Send a message via Yahoo to MisawaPlayer
Default

I'm working in posbit_legacy, and want to use the $thread array in a conditional. The variable I want is whether it is closed or not. Can you tell me what index this is? Better yet, how about a list of all the $thread indexes?

Mostly though, I would just like to know how to do this:

<if condition="$thread['what is this'] == answer for closed">

Thanks in advance
Reply With Quote
  #11  
Old 23-09-2008, 03:54 AM
webwizzy's Avatar

Administrator
 
Name: Vinayak
Join Date: Feb 2008
Location: India
Phone: Samsung Wave
Posts: 1,116
webwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nicewebwizzy is just really nice
Send a message via Yahoo to webwizzy
Default

For thread closed, try these in showthread template:-

HTML Code:
<if condition="$show['closethread']"> 
HTML Code:
<if condition="$threadinfo[open] == 0"> 
__________________
Always TAG and SHARE your threads
Submit your site to TECH6 Directory
TECH6 on Facebook - Like Us

Would you like to Link To Us | Support TECH6 by going Premium
Know more about me at Vinayaks.com | Follow TECH6 at Twitter


Reply With Quote
  #12  
Old 23-09-2008, 06:36 AM
No Avatar

Techie
 
Join Date: Aug 2008
Location: United States
Posts: 54
MisawaPlayer is on a distinguished road
Send a message via Yahoo to MisawaPlayer
Default

I tried
HTML Code:
$show['closethread']
because I had seen it somewhere else, but for some reason it didn't work for me.

That said, the other option
HTML Code:
$threadinfo[open]
did.

So thank you once again.
Reply With Quote
  #13  
Old 15-10-2009, 07:19 AM
LeVampirE's Avatar

Learner
 
Join Date: Oct 2009
Posts: 4
LeVampirE is on a distinguished road
Default

no thing ti say just a biiiiiiig thanx²
Reply With Quote
  #14  
Old 03-03-2011, 03:57 PM
No Avatar

Learner
 
Join Date: Mar 2011
Posts: 5
RoySon is on a distinguished road
Default

stylevar Array, this contains all the paths to forum images and other style variables that are editable in the Styles and templates Stylevars..
Reply With Quote
  #15  
Old 27-10-2011, 02:20 AM
No Avatar

Learner
 
Join Date: Oct 2011
Posts: 3
zabi143 is on a distinguished road
Default

$ad_location[ad_showthread_beforeqr] - Displays content of ad_showthread_beforeqr template
$ad_location[ad_showthread_firstpost] - Displays content of ad_showthread_firstpost template I want is whether it is closed or not. Can you tell me what index this is? Better yet, how about a list of all the $thread indexes?
__________________
bioenergoterapeuta chicago
Reply With Quote
Reply

Bookmarks

Tags
vbulletin, vbulletin variables


Thread Tools
Display Modes


LinkBacks (?)
LinkBack to this Thread: http://tech6.com/f51/vbulletin-variables-list-t123/
Posted By For Type Date
Liste de Variables utilisées dans vBulletin - vBulletin-Ressources This thread Refback 02-03-2009 10:20 AM



All times are GMT +5.5. The time now is 01:39 PM.

Contact Us - Tech6.com - Link to Us - Advertise - Submit Site - Privacy Statement - TOS - Top