![]() |
Idea to avoid the query caused by cache_styles:
showthread_start PHP Code:
|
Better yet
Use this plugin in showthread_query Code:
$hook_query_fields .= ",style.title"; Code:
<if condition="$post['styleid'] != 0"><div class="smallfont">Style: EDIT - okay, it needs a lil bit of tweaking LOL, in PMs it shows your style as the title of the pm hehehee. |
Quote:
|
Murrtex, mine doesn't work at all, causes alot of bugs :), was a good idea but bad application :)
I'm going to try Andreas code :) |
O awesome! It worked great, no extra queries by what I can tell :)
Just replace the showthread_start plugin with andreas code :) Thanks Andreas!! |
ok cyricx..what will we do..fist i'll install style name in postbit 0.3.zip plugin than apply andreas code..can u show me the way? how ?
|
Admincp -> plugin system -> download / upload plugins
Scroll to the bottom, Click browse, select the xml in the first post, click import now admincp -> plugin system -> plugin manager scroll down to "Hook Location : showthread_start" - "Styles in Postbit" and click Edit for that one. Replace all the code in the "PHP Plugin Code" box with Andreas code above. Click save. Do the template edit. Tada :) |
Quote:
|
Murrtex,
Did you get this to work, I have Replace all the code in the "PHP Plugin Code" box with Andreas code but still can not see the style. JoeWho |
same on me JoeWho..it works on some user,it doesnt work on some user. :(
|
All times are GMT. The time now is 09:50 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:
|