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)
-   -   Profile Enhancements - Skin view In Profile (https://vborg.vbsupport.ru/showthread.php?t=139332)

Xplorer4x4 02-12-2007 10:00 PM

Skin view In Profile
 
As requested, this plug-in shows what skin users are using in their profile.

Place the following in your memberinfo template. It can go anywhere, but I have it before custom profile fields so if you want to do it like this then add:
Quote:

<if condition="$user['stylename']">
<tr>
<td>
<strong>Style</strong>:<br />
$user[stylelink]
</td>
</tr>
</if>
And place it above
Quote:

$customfields
You can change the variable in bold
$user[stylename] - The style name, eg. Smooth Blue
$user[styleid] - The style ID, eg. 13 (it's unlikely that you'll need this)
$user[styleurl] - The URL to the style, eg. /forum/showthread.php?t=133805&styleid=13
$user[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: $user[stylelink]

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

Style: $user[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 Xoligy's other plug-in (highly recommended).

All credit goes to Xoligy for this hack. All I did was modify it to work in the memberinfo template.

Xplorer4x4 02-13-2007 07:47 PM

Reserved.

projectego 02-13-2007 07:54 PM

Thank you!

/me clicks install

gforce75 05-28-2007 01:11 AM

Thanks for the hack!

Aimee1969 05-28-2007 02:11 AM

What am I doing wrong...It just says default.
No matter what skin I am using???

Xplorer4x4 06-02-2007 01:14 PM

Quote:

Originally Posted by Aimee1969 (Post 1255913)
What am I doing wrong...It just says default.
No matter what skin I am using???

Did you do this:
Quote:

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 Xoligy's other plug-in (highly recommended).


All times are GMT. The time now is 07:08 PM.

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.01104 seconds
  • Memory Usage 1,724KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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