Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 11 Jun 2009, 21:27
jchamber2010 jchamber2010 is offline
 
Join Date: Mar 2009
styleid variable?

I would like to know the variable to display the style id of the user, so that i can put it in (for example) the postbit, and display the style id.

If there is no variable that does this, could you tell me a way that i might be able to do this?
Reply With Quote
  #2  
Old 11 Jun 2009, 21:37
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You can try $post[styleid]
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 11 Jun 2009, 23:01
jchamber2010 jchamber2010 is offline
 
Join Date: Mar 2009
thank you, that worked
Reply With Quote
  #4  
Old 12 Jun 2009, 08:09
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Note that the "styleid" value only reflects the correct setting if it was set from the User CP. If the user changes the style from the style drop-down in the footer, it only adds a cookie to the user's session.
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #5  
Old 12 Jun 2009, 16:32
jchamber2010 jchamber2010 is offline
 
Join Date: Mar 2009
i've already fixed that problem with a script that i have created. Thanks tho.


Another question I have is how would I display this variable in the profile
$profile[styleid]
$prepared[styleid]

do not work.

Thanks again.

Last edited by jchamber2010; 13 Jun 2009 at 17:58.
Reply With Quote
  #6  
Old 13 Jun 2009, 06:48
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Originally Posted by jchamber2010 View Post
Another question I have is how would I display this variable in the profile
$profile[styleid]
$prepared[styleid]

do not work.
Try $userinfo[styleid].
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #7  
Old 13 Jun 2009, 17:52
jchamber2010 jchamber2010 is offline
 
Join Date: Mar 2009
ok sorry to be a pain, but how do you get the default styleid and name?
Reply With Quote
  #8  
Old 13 Jun 2009, 18:17
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by jchamber2010 View Post
ok sorry to be a pain, but how do you get the default styleid and name?
You would have to make sure the styleid is in the query for the user information on the profile.php page. Did it show up when you used the variable Hanson posted? As for the style name, you will have to do a JOIN statement in that same query in order to get the style name.

You'll need to look at the profile.php page to see how the user info is grabbed and used.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #9  
Old 13 Jun 2009, 18:22
jchamber2010 jchamber2010 is offline
 
Join Date: Mar 2009
that variable did work, thanks.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 23:18.

Layout Options | Width: Wide Color: