Go Back   vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Reply 
 
LinkBack Thread Tools Display Modes
Old 12-19-2006, 01:54 PM   #1
Community Manager
Supporters
vBulletin Owner
vBSetup Mods
 
Brandon Sheley's Avatar
 
Join Date: Jul 2006
Location: Topeka, KS
Posts: 14,115
Blog Entries: 35
Brandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to behold
Send a message via AIM to Brandon Sheley Send a message via MSN to Brandon Sheley Send a message via Yahoo to Brandon Sheley
Exclamation vBulletin Variables List

If you have more - List them!


$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_buton] Path for forum buttons
    $stylevar[imgdir_statusicon] Path for status icons
    $stylevar[imgdir_attach] Path for attachment 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


I found this at AF, please go check them out, it's a great site..
here is a link
__________________
Brandon Sheley / vBulletinSetup Staff
Check the Newsletter & Marketplace for the latest deals.
Looking for a place to Support vBulletinSetup?
Submit your Forum and other Quality Websites.


Brandon Sheley is offline   Reply With Quote

Advertisement [Remove Advertisement]

Old 07-29-2007, 07:30 AM   #2
vBulletin Owner
 
foulplay's Avatar
 
Join Date: Mar 2007
Posts: 16
foulplay will become famous soon enough
Re: vBulletin Variables List

................
__________________
rapidshare downloads

Last edited by foulplay; 09-20-2007 at 03:18 AM.
foulplay is offline   Reply With Quote
Old 08-03-2007, 03:51 AM   #3
vBulletin Owner
 
Join Date: Sep 2006
Posts: 109
radarhunter will become famous soon enough
Re: vBulletin Variables List

hey thanks man this can come in handy a big deal
__________________
rapidshare downloads
radarhunter is offline   Reply With Quote
Old 10-18-2007, 08:33 AM   #4
vBulletin Owner
 
Join Date: Oct 2006
Location: India
Posts: 6
Neutral Singh will become famous soon enough
Send a message via Skype™ to Neutral Singh
Re: vBulletin Variables List

Code:
<table cellpadding="0" cellspacing="0"><tbody><tr><td>
To link to this page, copy the following code to your website: 
<input name="detail_link" value="&lt;a href=&quot;http://www.sikhphilosophy.net&quot;&gt;$ vboption[bbtitle]&lt;/a&gt;" class="alt2" readonly="true" size="50" type="text">
</td></tr></tbody></table>
I am looking to change the variable in red to show the actual url of page it is being displayed.

Last edited by Neutral Singh; 10-18-2007 at 08:36 AM.
Neutral Singh is offline   Reply With Quote
Old 10-25-2007, 08:10 PM   #5
Supporters
vBulletin Owner
 
Luigi's Avatar
 
Join Date: Oct 2007
Posts: 406
Luigi has a spectacular aura about
Re: vBulletin Variables List

Hi, Sorry I don't exactly follow. Can someone explain what this list variable list means and how it applies specifically to us and what we would us for the forum?
Luigi is offline   Reply With Quote
Old 10-26-2007, 09:13 PM   #6
Community Manager
Supporters
vBulletin Owner
vBSetup Mods
 
Brandon Sheley's Avatar
 
Join Date: Jul 2006
Location: Topeka, KS
Posts: 14,115
Blog Entries: 35
Brandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to beholdBrandon Sheley is a splendid one to behold
Send a message via AIM to Brandon Sheley Send a message via MSN to Brandon Sheley Send a message via Yahoo to Brandon Sheley
Re: vBulletin Variables List

It's sort of like in your header question. The variable with
<img src=""> The variable that didn't show when you pasted it here.
A variable just takes the place of something else.
so you wouldn't have to put <img src="http://site.com/image.gif"> you can use
<img src="$style[logo]">

This is my understanding at least.
__________________
Brandon Sheley / vBulletinSetup Staff
Check the Newsletter & Marketplace for the latest deals.
Looking for a place to Support vBulletinSetup?
Submit your Forum and other Quality Websites.


Brandon Sheley is offline   Reply With Quote
Old 01-13-2008, 05:34 AM   #7
vBulletin Owner
 
Join Date: Jan 2008
Location: Toronto, ON, Canada
Posts: 27
dgenx210 has a spectacular aura about
Re: vBulletin Variables List

this could come in handy dandy when I want to modify some of my installed hacks

*dgenx210 bookmarked this useful page*
dgenx210 is offline   Reply With Quote
Old 09-10-2008, 12:40 PM   #8
vBulletin Owner
 
Soliloquy's Avatar
 
Join Date: Jun 2007
Location: New York City
Posts: 2,663
Soliloquy is a jewel in the rough
Re: vBulletin Variables List

Hey Brandon, is there a variable for the meta description? (Removing my hard-coded stuff in that LinkMe hack for Caddy.)
Soliloquy is offline   Reply With Quote
Old 09-10-2008, 09:39 PM   #9
vBulletin Owner
 
veenuisthebest's Avatar
 
Join Date: Mar 2008
Location: India
Posts: 145
veenuisthebest has a spectacular aura about
Send a message via Yahoo to veenuisthebest
Re: vBulletin Variables List

Quote:
Originally Posted by Soliloquy View Post
Hey Brandon, is there a variable for the meta description? (Removing my hard-coded stuff in that LinkMe hack for Caddy.)
hopefully this, found in headinclude template.

$vboptions[description]
veenuisthebest is offline   Reply With Quote
Old 09-11-2008, 02:41 AM   #10
Supporters
vBulletin Owner
 
Caddyman's Avatar
 
Join Date: Dec 2006
Location: Delaware
Posts: 4,035
Blog Entries: 1
Caddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud of
Send a message via AIM to Caddyman Send a message via MSN to Caddyman Send a message via Yahoo to Caddyman Send a message via Skype™ to Caddyman
Re: vBulletin Variables List

yeah i think that will work, i remember doing a seo template edit one time and i think that was included
__________________
Delaware Online
Caddyman is offline   Reply With Quote
Old 09-11-2008, 06:53 AM   #11
vBulletin Owner
 
Soliloquy's Avatar
 
Join Date: Jun 2007
Location: New York City
Posts: 2,663
Soliloquy is a jewel in the rough
Re: vBulletin Variables List

Thanks veenu. While I was looking in the header template for it I also saw $vboptions[description_clean], what's the difference between the two?
Soliloquy is offline   Reply With Quote
Old 09-11-2008, 07:04 AM   #12
Supporters
vBulletin Owner
 
Caddyman's Avatar
 
Join Date: Dec 2006
Location: Delaware
Posts: 4,035
Blog Entries: 1
Caddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud of
Send a message via AIM to Caddyman Send a message via MSN to Caddyman Send a message via Yahoo to Caddyman Send a message via Skype™ to Caddyman
Re: vBulletin Variables List

i just did some testing on TalkDE and it looks like there are no differences, same output
__________________
Delaware Online
Caddyman is offline   Reply With Quote
Old 09-11-2008, 08:45 AM   #13
vBulletin Owner
 
Soliloquy's Avatar
 
Join Date: Jun 2007
Location: New York City
Posts: 2,663
Soliloquy is a jewel in the rough
Re: vBulletin Variables List

Is there one for the form width in columns? Trying to make that linkme mod match everyone's styles...
Soliloquy is offline   Reply With Quote
Old 09-11-2008, 08:48 AM   #14
Supporters
vBulletin Owner
 
Caddyman's Avatar
 
Join Date: Dec 2006
Location: Delaware
Posts: 4,035
Blog Entries: 1
Caddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud of
Send a message via AIM to Caddyman Send a message via MSN to Caddyman Send a message via Yahoo to Caddyman Send a message via Skype™ to Caddyman
Re: vBulletin Variables List

looks like its in the orginial list in the first post

$stylevar[outertablewidth] The width of your forum

right?
__________________
Delaware Online
Caddyman is offline   Reply With Quote
Old 09-11-2008, 09:40 AM   #15
vBulletin Owner
 
Soliloquy's Avatar
 
Join Date: Jun 2007
Location: New York City
Posts: 2,663
Soliloquy is a jewel in the rough
Re: vBulletin Variables List

No, that just changes the overall width of the page, not the textarea... oh well, I'll just make a new variable for it I guess.
Soliloquy is offline   Reply With Quote
Old 09-11-2008, 10:23 AM   #16
vBulletin Owner
 
veenuisthebest's Avatar
 
Join Date: Mar 2008
Location: India
Posts: 145
veenuisthebest has a spectacular aura about
Send a message via Yahoo to veenuisthebest
Re: vBulletin Variables List

hey soliloquy, see in StyleVars setting.

for form width I guess, it should be $stylevar[formwidth]
for message area width, it shoud be $stylevar[messagewidth]
veenuisthebest is offline   Reply With Quote
Old 09-11-2008, 10:27 AM   #17
Supporters
vBulletin Owner
 
Caddyman's Avatar
 
Join Date: Dec 2006
Location: Delaware
Posts: 4,035
Blog Entries: 1
Caddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud of
Send a message via AIM to Caddyman Send a message via MSN to Caddyman Send a message via Yahoo to Caddyman Send a message via Skype™ to Caddyman
Re: vBulletin Variables List

you guys are speakin greek to me....
__________________
Delaware Online
Caddyman is offline   Reply With Quote
Old 12-15-2008, 05:10 PM   #18
vBulletin Owner
 
Arrogant-One's Avatar
 
Join Date: Sep 2007
Location: Australia
Posts: 34
Arrogant-One will become famous soon enough
Send a message via MSN to Arrogant-One
Re: vBulletin Variables List

I have a question that somewhat relates to this thread topic (I think - maybe).

Here is my query:

When I view my own profile on my forum the page is:

ht tp://ww w.ozchess.com.au / members/arrogant-one.html

I put spaces in the above address so the URL tags don't steal the show. Unfortunately, as you can see, this page is specific to my account. What I want is the html so that the user can view their profile.

Basically I need to change this html code:

<strong><phrase 1="$bbuserinfo[username]">Welcome, <a href="http://www.ozchess.com.au/profile.php?do=editprofile">$bbuserinfo[username]</a></phrase></strong> <br />

But I don't know how to change this to make it go to a user's profile page. Can someone please tell me what I need to do?

Thanks,

Alex
__________________
rapidshare downloads

Last edited by Arrogant-One; 12-15-2008 at 05:12 PM.
Arrogant-One is offline   Reply With Quote
Old 12-15-2008, 05:35 PM   #19
Supporters
vBulletin Owner
vBSetup Mods
 
Cerberus's Avatar
 
Join Date: Mar 2008
Posts: 1,631
Cerberus is a glorious beacon of lightCerberus is a glorious beacon of lightCerberus is a glorious beacon of lightCerberus is a glorious beacon of light
Re: vBulletin Variables List

Quote:
Originally Posted by Arrogant-One View Post
I have a question that somewhat relates to this thread topic (I think - maybe).

Here is my query:

When I view my own profile on my forum the page is:

ht tp://ww w.ozchess.com.au / members/arrogant-one.html

I put spaces in the above address so the URL tags don't steal the show. Unfortunately, as you can see, this page is specific to my account. What I want is the html so that the user can view their profile.

Basically I need to change this html code:

<strong><phrase 1="">Welcome, <a href="http://www.ozchess.com.au/profile.php?do=editprofile"></a></phrase></strong> <br />

But I don't know how to change this to make it go to a user's profile page. Can someone please tell me what I need to do?

Thanks,

Alex
This is just a quick guess. And because you do have vbseo installed I am kind of winging it here. But this is something you may want to try
Code:
http://forum.vbulletinsetup.com/member.php?u=408
That is how it regularly finds a member

So maybe

http://forum.vbulletinsetup.com/member.php?u=$bbuserinfo[userid]

That is a guess and I have not tested it.
__________________
Cerberus / vBulletinSetup Staff
Check the Newsletter & Marketplace for the latest deals.
Looking for a place to Support vBulletinSetup?
Submit your Forum and other Quality Websites.


Cerberus is offline   Reply With Quote
Old 12-15-2008, 08:29 PM   #20
vBulletin Owner
 
Arrogant-One's Avatar
 
Join Date: Sep 2007
Location: Australia
Posts: 34
Arrogant-One will become famous soon enough
Send a message via MSN to Arrogant-One
Re: vBulletin Variables List

Quote:
Originally Posted by Blake2181 View Post
This is just a quick guess. And because you do have vbseo installed I am kind of winging it here. But this is something you may want to try
Code:
http://forum.vbulletinsetup.com/member.php?u=408
That is how it regularly finds a member

So maybe

http://forum.vbulletinsetup.com/member.php?u=

That is a guess and I have not tested it.
Thanks for trying Blake, very much appreciated. Unfortunately it didn't work. But I have a plan B

Best Regards,

Alex
__________________
rapidshare downloads
Arrogant-One is offline   Reply With Quote
Old 02-22-2009, 12:45 PM   #21
Supporters
vBulletin Owner
 
popowich's Avatar
 
Join Date: Jul 2007
Location: Rochester, New York
Posts: 500
popowich is just really nicepopowich is just really nice
Re: vBulletin Variables List

Is there a variable for the person who made a post?

For example, if I want a link to the members albums in all of their posts in the postbit legacy template I'm trying something like:

<a href="http://www.myDomain.com/forums/members/$bbuserinfo[username]-albums.html">Member Albums</a>

Which isn't quite right. The links to the person who is reading the thread.

Is there a way to make it link to the posters album page?

-Raymond
popowich is offline   Reply With Quote
Old 02-23-2009, 08:11 AM   #22
Supporters
vBulletin Owner
 
glennybee's Avatar
 
Join Date: Mar 2008
Location: Scotland
Posts: 1,058
glennybee is just really niceglennybee is just really nice
Re: vBulletin Variables List

$bbuserinfo refers to the person that is logged in.

If you want to have a link to 'My Albums' then you would have something like this...

<a href="http://forum.vbulletinsetup.com/f18/album.php?$session[sessionurl]u=$bbuserinfo[userid]">My Albums</a>

$post refers to the person who made the post, so if you want a link in each members postbit, use this code...

<a href="http://forum.vbulletinsetup.com/f18/album.php?$session[sessionurl]u=$post[userid]">My Albums</a>
glennybee is offline   Reply With Quote
Old 04-18-2009, 02:07 AM   #23
vBulletin Owner
 
Join Date: Mar 2008
Posts: 1
cionfs will become famous soon enough
Re: vBulletin Variables List

Hi!

For Thread ID:

Code:
$thread[threadid]
cionfs is offline   Reply With Quote
Old 05-19-2009, 10:28 AM   #24
vBulletin Owner
 
Join Date: Mar 2008
Posts: 26
powerful_rogue will become famous soon enough
Re: vBulletin Variables List

Hi, im just starting out on the very long road in coding!

Is there a variable for a users rank?
powerful_rogue is offline   Reply With Quote
Old 05-19-2009, 12:59 PM   #25
vBulletin Owner
 
Join Date: Nov 2006
Location: Florida
Posts: 195
noppid is a jewel in the rough
Re: vBulletin Variables List

In templates use the $bbuserinfo[x] array.

In hooks use the $vbulletin->userinfo[x] object.

Where [x] is the element you want.

Is that what ya need?
noppid is offline   Reply With Quote
Old 05-19-2009, 01:28 PM   #26
vBulletin Owner
 
Join Date: Mar 2008
Posts: 26
powerful_rogue will become famous soon enough
Re: vBulletin Variables List

I think.

Im working on a mod that will create some text when a users rank increases.

Any tips on where I would start?
powerful_rogue is offline   Reply With Quote
Old 05-19-2009, 04:32 PM   #27
Supporters
vBulletin Owner
 
glennybee's Avatar
 
Join Date: Mar 2008
Location: Scotland
Posts: 1,058
glennybee is just really niceglennybee is just really nice
Re: vBulletin Variables List

This will show a users rank:

Code:
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
I don't know of any way to say, for example, if a users rank is 20 or more, do the following, don't think that exists.
glennybee is offline   Reply With Quote
Old 05-19-2009, 05:36 PM   #28
Supporters
vBulletin Owner
 
Caddyman's Avatar
 
Join Date: Dec 2006
Location: Delaware
Posts: 4,035
Blog Entries: 1
Caddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud ofCaddyman has much to be proud of
Send a message via AIM to Caddyman Send a message via MSN to Caddyman Send a message via Yahoo to Caddyman Send a message via Skype™ to Caddyman
Re: vBulletin Variables List

ive been using these lots today
__________________
Delaware Online
Caddyman is offline   Reply With Quote
Reply 
vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems

Tags
list, variables, vbulletin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
vBulletin Template Conditionals List Brandon Sheley Troubleshooting vBulletin Problems 76 01-27-2010 01:21 PM
Variables, Cookies, Sessions in VB Bodyweb Troubleshooting vBulletin Problems 1 09-05-2009 01:18 PM
List your vBulletin Modifications Rocket 442 Troubleshooting vBulletin Problems 19 05-13-2008 09:31 AM
vBulletin Variables?? Marius PHP Discussions, Tutorials and Help 1 03-18-2007 08:35 AM


All times are GMT -8. The time now is 05:12 PM.