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 :)

Xoligy 12-12-2006 04:32 PM

I've just finished the plug-in that makes the quick style changer update the database, I'll update the main post in a minute.

SCRIPT3R 12-12-2006 04:46 PM

any screenshots?

Xoligy 12-12-2006 05:09 PM

Look at your postbit :P

SCRIPT3R 12-12-2006 06:16 PM

ok, uninstalling then as there no point to reference.

Goat Boy 12-12-2006 08:24 PM

I have installed both hacks for this to work. The Style does not show up in everyones Postbit. When I say the style does not show up it does not even show the word Style at all either so it must be something with the conditional

I inserted the line in bold print

Invalid ID 12-13-2006 02:21 AM

Thanks, but it's not working for me. I have put it under Reputation Power, but it does not show.

Please help.

R1lover 12-13-2006 02:49 AM

Quote:

Originally Posted by GearTripper (Post 1137246)
ok, uninstalling then as there no point to reference.


He was referring to this forum.... they use this here on THIS SITE...

Xoligy 12-13-2006 09:02 AM

I'll look in to the problem, but for the other hack to work, the user has to re-visit the forum for it to update their settings.

EDIT: You're right. When a user is using the default skin, it shows up as empty. I've fixed it, and now uploading the updated file.

nadinem. 12-13-2006 11:18 AM

:up: its all perfect now

Thank You! :)

AzH 12-13-2006 11:18 AM

Installed. Thanks for this.

AzH 12-13-2006 11:22 AM

This is a possible fix for the issue I had with psiStats 2006 with the default style being listed as being used by 100% of the memberbase due to people using quick reply. I never bothered to put psiStats back on after my upgrade to 3.6.4 because of that flaw. Fingers crossed it will fix it.

Xoligy 12-13-2006 01:25 PM

Quote:

Originally Posted by AzH (Post 1137688)
This is a possible fix for the issue I had with psiStats 2006 with the default style being listed as being used by 100% of the memberbase due to people using quick reply. I never bothered to put psiStats back on after my upgrade to 3.6.4 because of that flaw. Fingers crossed it will fix it.

If you mean they used the quick style changer, then this will fix your problem :)

AzH 12-13-2006 02:11 PM

I mean to post the post above in the thread for the product/plug in you have linked to. I have it installed.

Xoligy 12-13-2006 02:29 PM

Yeah I guessed, I also notice you linked to it on psiStat's thread, thanks :)

DPSR 12-13-2006 03:04 PM

Hello Xoligy, firstly thanks a lot for this mod :D

One questing, can you make it to add the link to the style with the style name? Like-
Style: Smooth Blue

Xoligy 12-13-2006 03:26 PM

Good idea, I'll add that now.

MrPHD 12-13-2006 04:43 PM

Instaled and working very nice. Regards

Xoligy 12-13-2006 05:36 PM

Quote:

Originally Posted by DPSR (Post 1137827)
One questing, can you make it to add the link to the style with the style name? Like-
Style: Smooth Blue

Done. I've updated the instructions to make them clearer. Hope this helps.

Allan 12-13-2006 06:24 PM

After updated, on postbit, i have white page

Xoligy 12-13-2006 06:30 PM

You're right, the variables shouldn't contain the quotes ('). I'll update the post.

Thanks for spotting that out.

Invalid ID 12-14-2006 12:13 AM

After installing the latest one, I got the following error messages:

Code:

string(39) "/forum/showthread.php?t=3877&styleid=43" string(61) "Default" string(39) "/forum/showthread.php?t=3877&styleid=43" string(61) "Default" string(39) "/forum/showthread.php?t=3877&styleid=43" string(61) "Default" string(39) "/forum/showthread.php?t=3877&styleid=43" string(61) "Default"
And ...

Code:

Unable to add cookies, header already sent.
File: /home/apni/public_html/forum/showthread.php(1044) : eval()'d code
Line: 25


DPSR 12-14-2006 01:16 AM

Thanks a lot for the update Xoligy

But after upgrading its showing this error-
Code:

string(77) "/celebrities-models/2761-cameron-diaz-19-new-wallpapers-added.html&styleid=14" string(96) "FRV8"
so i'm back with previous version :D

Xoligy 12-14-2006 07:41 AM

Oops, I must have uploaded the wrong version, sorry!!!! Updated. Also I notice you've got some kind of URL rewritter, so I'll fix the URLs to make them work with that.

EDIT: Done. You (hopefully) shouldn't have any problems now.

DPSR 12-14-2006 08:59 AM

Quote:

Originally Posted by Xoligy (Post 1138336)
Oops, I must have uploaded the wrong version, sorry!!!! Updated. Also I notice you've got some kind of URL rewritter, so I'll fix the URLs to make them work with that.

EDIT: Done. You (hopefully) shouldn't have any problems now.

Many many thanks for the update and your hard work :up:

Allan 12-14-2006 09:45 AM

Work perfectly , thanks :)

Matt Slick 12-14-2006 08:21 PM

Please excuse my obvious stupidity, but how do you implement this?

What code do you put where?

I've installed lots of hacks, but I don't know where to put the code in the postbit.

Need some help.

Invalid ID 12-15-2006 12:53 AM

It's visiable next to the Reputation Icon, may I know how can I make it visiable under the post counter of members in postbitlegacy?

Thanks

DPSR 12-15-2006 01:24 AM

@ Matt Slick- In your 'postbit' template, look for--
Code:

<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
after add--
Code:

<if condition="$post['stylename']">Style: $post[stylelink]</if>
@InValid ID- In your 'postbit_legacy' template, look for--
Code:

                        <div>
                                        $vbphrase[posts]: $post[posts]
                                </div>

after add--
Code:

<if condition="$post['stylename']">Style: $post[stylelink]</if>
be sure to keep a backup before editing any file :)

Bison 12-15-2006 03:02 AM

Correction:

PHP Code:

<if condition="$post['stylename']"><div class="smallfont">Style$post[stylelink]</div></if> 


Xoligy 12-15-2006 09:30 AM

Thanks DPSR and Bison :)

The conditional shouldn't be needed, since if it can't find anything it will show the default skin, but it's better to have it in there just to be safe.


All times are GMT. The time now is 06:18 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.01287 seconds
  • Memory Usage 1,818KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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