The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Giving Stickies their own status icon
So I want to give stickied threads a different icon than normal threads and closed threads. Not so hard...
My problem is, I need it to be conditional on if the thread is a sticky, then use the sticky icon, if the thread is not a sticky, then use normal thread icons. Here's where I am at - the sticky icon shows, but it shows along with the normal icon showing closed thread or new post ect instead of replacing it: This is the threadbit template (is there somewhere else they have conditionals for when to use one threadicon or another ?) HTML Code:
<tr> <td class="alt1" id="td_threadstatusicon_$thread[realthreadid]"> $thread[openclose_editable] <if condition="$show['sticky']"> <img src="$stylevar[imgdir_statusicon]/stickyicon.gif" alt="$vbphrase[sticky_thread]" /></if> <else /><img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_statusicon_$thread[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" /> </td> or if the thread is not a sticky then use [statusicon].gif If you need to see and example of what I am talking about: http://www.tech-101.com/windows/ |
#2
|
||||
|
||||
Love to help, but why link to something with VIRUS lol... in title.
Usually its just a case of appending the sticky image. |
#3
|
|||
|
|||
Wow - I didn't even think about that title scaring people - just our virus removal forums have the most stickies
I changed link to our windows forums. |
#4
|
||||
|
||||
K so you want a STATUS ICON for sticky ? hmmmm if thats the case good question.
Surely that isnt too hard. Isnt the code to display the gif: <div> <span style="float:right"> <img class="inlineimg" src="http://www.anyforum.com/forum/images/styles/MyStyle/misc/sticky.gif" alt="Sticky Thread" /> </span> So wouldnt you just need to amend the code within : threadbit Code:
<if condition="$show['sticky']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /> </if> somewhere around here : Code:
<tr class="$rowClass"> <td id="td_threadstatusicon_$thread[realthreadid]"> $thread[openclose_editable] <img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_statusicon_$thread[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" /> </td> |
#5
|
|||
|
|||
Not exactly.
I don't want to change the sticky status icon. I am looking to add a thread status icon for stickies - which is non existent by default. By default, when you stick a thread - it shows either hot topic, closed topic, or new topic, ect for a thread status icon. I want it to show the icon that I create, which it does.. but it also shows the other icon =========================== |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|