![]() |
style name in postbit 0.3
this is my implementation of the hack used here that shows what style each one is using under their usernames
it will only show the style if the user chose something else then "default style" in the usercp. also this wont show styles choosen with the "quick style chooser", because those are stored in cookies and not in the database. if you logoff your style is resetted to the one in the usercp. Installation - Upload and activate "style name in postbit.xml" plugins - Put this where you want it to appear Code:
<if condition="$post['styleid'] != 0"><div class="smallfont">Style: <a href="{$GLOBALS[vbulletin]->scriptpath}&styleid=$post[styleid]">$post[styletitle]</a></div></if> |
Easy money thanks!
|
Instead of it re-directing to index.php, do you think you could make it so it re-loads the thread? ;)
Satan |
*YAWN*
ill see what I can do. im thinking of changing it so it will only show styles for people that does not use the default one (ie. style 0, if you choose the default style in the usercp it shows) im a little worried with that require_once() too, its called for each construct_postbit, not sure the performance implications of that |
Is there a way to port this to where it shows the info in the profile? I feel that's a more appropriate place for such a minor detail on a user.
|
Quote:
Is there any way you can require /includes/adminfunctions_template.php earlier on in the code, i.e. when showthread is initialised? This might stop it having to be called for every post... Satan |
Quote:
it seems to be a little faster but I didnt test with microstats ========================================== 0.3 links to the current thread, and only shows the style if the user didnt choose "default style" in the usercp. if you installed the old one you have to edit the templates again. ========================================== and here is the old version that shows the style of all users Code:
<div class="smallfont">Style: <a href="{$GLOBALS[vbulletin]->scriptpath}&styleid=$post[styleid]">$post[styletitle]</a></div> |
I have just noticed a small bug. If you use quick reply then the AJAX system doesn't pull the style name down. Once you do a hard reload of the page all is ok. Just not when the new post is added via AJAX.
|
im discontinuing this one cause it adds a query to showthread.php, and thats not a good place to add queries as its a very requested script. anyone have my permission to develop it from here.
you can use this one instead that adds the style to the user's profile |
Quote:
|
All times are GMT. The time now is 03:22 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|