| |  | | vBulletin Setup > vBulletinSetup Information > Troubleshooting vBulletin Problems | Troubleshooting vBulletin Problems Discuss vBulletin Variables List in the vBulletinSetup Information forums; 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 ... | |  |
12-19-2006, 01:54 PM
|
#1 | | Community Manager Supporters vBulletin Owner vBSetup Mods
Join Date: Jul 2006 Location: Topeka, KS
Posts: 14,115
| 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 |
| |
07-29-2007, 07:30 AM
|
#2 | | vBulletin Owner
Join Date: Mar 2007
Posts: 16
| Re: vBulletin Variables List ................
Last edited by foulplay; 09-20-2007 at 03:18 AM.
|
| |
08-03-2007, 03:51 AM
|
#3 | | vBulletin Owner
Join Date: Sep 2006
Posts: 109
| Re: vBulletin Variables List hey thanks man this can come in handy a big deal |
| |
10-18-2007, 08:33 AM
|
#4 | | vBulletin Owner
Join Date: Oct 2006 Location: India
Posts: 6
| 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="<a href="http://www.sikhphilosophy.net">$ vboption[bbtitle]</a>" 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.
|
| |
10-25-2007, 08:10 PM
|
#5 | | Supporters vBulletin Owner
Join Date: Oct 2007
Posts: 406
| 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? |
| |
10-26-2007, 09:13 PM
|
#6 | | Community Manager Supporters vBulletin Owner vBSetup Mods
Join Date: Jul 2006 Location: Topeka, KS
Posts: 14,115
| 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. |
| |
01-13-2008, 05:34 AM
|
#7 | | vBulletin Owner
Join Date: Jan 2008 Location: Toronto, ON, Canada
Posts: 27
| 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* |
| |
09-10-2008, 12:40 PM
|
#8 | | vBulletin Owner
Join Date: Jun 2007 Location: New York City
Posts: 2,663
| 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.) |
| |
09-10-2008, 09:39 PM
|
#9 | | vBulletin Owner
Join Date: Mar 2008 Location: India
Posts: 145
| Re: vBulletin Variables List Quote:
Originally Posted by Soliloquy 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] |
| |
09-11-2008, 02:41 AM
|
#10 | | Supporters vBulletin Owner
Join Date: Dec 2006 Location: Delaware
Posts: 4,035
| 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 |
| |
09-11-2008, 06:53 AM
|
#11 | | vBulletin Owner
Join Date: Jun 2007 Location: New York City
Posts: 2,663
| 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? |
| |
09-11-2008, 07:04 AM
|
#12 | | Supporters vBulletin Owner
Join Date: Dec 2006 Location: Delaware
Posts: 4,035
| Re: vBulletin Variables List i just did some testing on TalkDE and it looks like there are no differences, same output |
| |
09-11-2008, 08:45 AM
|
#13 | | vBulletin Owner
Join Date: Jun 2007 Location: New York City
Posts: 2,663
| Re: vBulletin Variables List Is there one for the form width in columns? Trying to make that linkme mod match everyone's styles... |
| |
09-11-2008, 08:48 AM
|
#14 | | Supporters vBulletin Owner
Join Date: Dec 2006 Location: Delaware
Posts: 4,035
| Re: vBulletin Variables List looks like its in the orginial list in the first post
$stylevar[outertablewidth] The width of your forum
right? |
| |
09-11-2008, 09:40 AM
|
#15 | | vBulletin Owner
Join Date: Jun 2007 Location: New York City
Posts: 2,663
| 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. |
| |
09-11-2008, 10:23 AM
|
#16 | | vBulletin Owner
Join Date: Mar 2008 Location: India
Posts: 145
| 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] |
| |
09-11-2008, 10:27 AM
|
#17 | | Supporters vBulletin Owner
Join Date: Dec 2006 Location: Delaware
Posts: 4,035
| Re: vBulletin Variables List you guys are speakin greek to me.... |
| |
12-15-2008, 05:10 PM
|
#18 | | vBulletin Owner
Join Date: Sep 2007 Location: Australia
Posts: 34
| 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
Last edited by Arrogant-One; 12-15-2008 at 05:12 PM.
|
| |
12-15-2008, 05:35 PM
|
#19 | | Supporters vBulletin Owner vBSetup Mods
Join Date: Mar 2008
Posts: 1,631
| Re: vBulletin Variables List Quote:
Originally Posted by Arrogant-One 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. |
| |
12-15-2008, 08:29 PM
|
#20 | | vBulletin Owner
Join Date: Sep 2007 Location: Australia
Posts: 34
| Re: vBulletin Variables List Quote:
Originally Posted by Blake2181 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 |
| |
02-22-2009, 12:45 PM
|
#21 | | Supporters vBulletin Owner
Join Date: Jul 2007 Location: Rochester, New York
Posts: 500
| 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 |
| |
02-23-2009, 08:11 AM
|
#22 | | Supporters vBulletin Owner
Join Date: Mar 2008 Location: Scotland
Posts: 1,058
| 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> |
| |
04-18-2009, 02:07 AM
|
#23 | | vBulletin Owner
Join Date: Mar 2008
Posts: 1
| Re: vBulletin Variables List Hi!
For Thread ID: |
| |
05-19-2009, 10:28 AM
|
#24 | | vBulletin Owner
Join Date: Mar 2008
Posts: 26
| Re: vBulletin Variables List Hi, im just starting out on the very long road in coding!
Is there a variable for a users rank? |
| |
05-19-2009, 12:59 PM
|
#25 | | vBulletin Owner
Join Date: Nov 2006 Location: Florida
Posts: 195
| 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? |
| |
05-19-2009, 01:28 PM
|
#26 | | vBulletin Owner
Join Date: Mar 2008
Posts: 26
| 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? |
| |
05-19-2009, 04:32 PM
|
#27 | | Supporters vBulletin Owner
Join Date: Mar 2008 Location: Scotland
Posts: 1,058
| 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. |
| |
05-19-2009, 05:36 PM
|
#28 | | Supporters vBulletin Owner
Join Date: Dec 2006 Location: Delaware
Posts: 4,035
| Re: vBulletin Variables List ive been using these lots today |
| | |