vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Skin view - show skin in postbit (https://vborg.vbsupport.ru/showthread.php?t=133805)

Xoligy 12-11-2006 10:00 PM

Skin view - show skin in postbit
 
As requested, this plug-in shows what skin users are using in their postbit.

The variables are as follows:
$post[stylename] - The style name, eg. Smooth Blue
$post[styleid] - The style ID, eg. 13 (it's unlikely that you'll need this)
$post[styleurl] - The URL to the style, eg. /forum/showthread.php?t=133805&styleid=13
$post[stylelink] - A link to the style and the style name, eg. Smooth blue

The recommended code to put in your postbit/postbit_legacy templatebit is:

Style: $post[stylelink]

If you don't wish to have the skin name link to the skin, use:

Style: $post[stylename]

Please note: Due to the default behaviour of vBulletin, this will only show the skin set in the user's options, and not the skin chosen from the "Quick Style Chooser". You can fix this by installing this plug-in (highly recommended).

Update: If you also want it in the profile, please check out Xplorer4x4's moderation of this plug-in.

You're free to do what you like with this code, although credit is appreciated, it's not required.

Brought to you by eXaltic - vBulletin skins.

peterska2 12-12-2006 10:44 AM

Please include the file as an attachment.

Thank you.

Xoligy 12-12-2006 12:26 PM

Sorry, added.

Allan 12-12-2006 12:55 PM

Thank you, it's cool ;)

A question, it's possible to add for the member which use style differents with "Quick Style Chooser" ?

Because the member don't use the user options generaly :(

Xoligy 12-12-2006 02:30 PM

I think the "Quick Style Chooser" is set by cookies rather than stored by vBulletin so there's no real way to do it. I could however (probably) make it so when changing skin via the "Quick Style Chooser" it changes their settings. I'll look in to it once I've released another plug-in I'm working on.

AMG021 12-12-2006 02:43 PM

Thank you soo much!!! lol just posted the requested last night and you made it that fast excellent dude!!

AMG021 12-12-2006 02:55 PM

I installed it and followed your direction(s) but for some reason it doesn't seem to work :(

Allan 12-12-2006 02:55 PM

Quote:

Originally Posted by Xoligy (Post 1137110)
I think the "Quick Style Chooser" is set by cookies rather than stored by vBulletin so there's no real way to do it. I could however (probably) make it so when changing skin via the "Quick Style Chooser" it changes their settings. I'll look in to it once I've released another plug-in I'm working on.

ok, thanks ^^

Xoligy 12-12-2006 03:02 PM

Quote:

Originally Posted by AMG021 (Post 1137136)
I installed it and followed your direction(s) but for some reason it doesn't seem to work :(

Make sure the users have set their skin in their profile, rather than just using the Quick Style Changer. I'm now going to work on a fix for that ;)

AMG021 12-12-2006 03:03 PM

Quote:

Originally Posted by Xoligy (Post 1137145)
Make sure the users have set their skin in their profile, rather than just using the Quick Style Changer. I'm now going to work on a fix for that ;)

Ok working now :)

But one thing why does it only say the title of the skin and not like [ Style: blah blah blah] ?

Ok solved that too just did it like this Style: $post[stylename] and works like a charm :)


All times are GMT. The time now is 07:56 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.03848 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete