vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   styleid variable? (https://vborg.vbsupport.ru/showthread.php?t=215952)

jchamber2010 06-11-2009 08:27 PM

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?

Lynne 06-11-2009 08:37 PM

You can try $post[styleid]

jchamber2010 06-11-2009 10:01 PM

thank you, that worked

Dismounted 06-12-2009 07:09 AM

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.

jchamber2010 06-12-2009 03:32 PM

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.

Dismounted 06-13-2009 05:48 AM

Quote:

Originally Posted by jchamber2010 (Post 1828345)
Another question I have is how would I display this variable in the profile
$profile[styleid]
$prepared[styleid]

do not work.

Try $userinfo[styleid].

jchamber2010 06-13-2009 04:52 PM

ok sorry to be a pain, but how do you get the default styleid and name?

Lynne 06-13-2009 05:17 PM

Quote:

Originally Posted by jchamber2010 (Post 1829068)
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.

jchamber2010 06-13-2009 05:22 PM

that variable did work, thanks.


All times are GMT. The time now is 03:41 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01045 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete