How do i take this off the tread name;
So when ur looking though the forum cateriers and u click one then it will sat Sticky or what not, but when you click on the topic i don't want it to say sticky: the hte name of the topic, i only want that in the forum caterigy.
Thanks in advance.
Install Template Conditionals and do a conditional on forumdisplay. Something like:
<if $thread['sticky'] == 1 then>Sticky:</if> {$thread['subject']}
Make sure not to actually name your thread "Sticky: " though.
Install either of these plugins, I recommend the first:
http://mybbhacks.zingaburga.com/showthread.php?tid=464 (Template Conditionals)
http://mybbhacks.zingaburga.com/showthread.php?tid=260 (PHP in Templates)
Open up your forumdisplay_thread template. Find:
{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>
Replace with:
<if $thread['sticky'] == 1 then>Sticky: </if>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>
If any threads show up like this, then edit the thread and make sure "Sticky:" isn't in the subject:
Sticky: Sticky: foobar
Hope this helps.
(2012-12-22, 10:39 PM)Seabody Wrote: [ -> ]Install either of these plugins, I recommend the first:
http://mybbhacks.zingaburga.com/showthread.php?tid=464 (Template Conditionals)
http://mybbhacks.zingaburga.com/showthread.php?tid=260 (PHP in Templates)
Open up your forumdisplay_thread template. Find:
{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>
Replace with:
<if $thread['sticky'] == 1 then>Sticky: </if>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>
If any threads show up like this, then edit the thread and make sure "Sticky:" isn't in the subject:
Sticky: Sticky: foobar
Hope this helps.
That's a plugin right?
Where do I put download at?
This is a very useful thread, bravo!
(2012-12-22, 11:01 PM)Kodaks Wrote: [ -> ] (2012-12-22, 10:58 PM)MYBB GHOST Wrote: [ -> ] (2012-12-22, 10:39 PM)Seabody Wrote: [ -> ]Install either of these plugins, I recommend the first:
http://mybbhacks.zingaburga.com/showthread.php?tid=464 (Template Conditionals)
http://mybbhacks.zingaburga.com/showthread.php?tid=260 (PHP in Templates)
Open up your forumdisplay_thread template. Find:
{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>
Replace with:
<if $thread['sticky'] == 1 then>Sticky: </if>{$prefix} {$gotounread}{$thread['threadprefix']}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>
If any threads show up like this, then edit the thread and make sure "Sticky:" isn't in the subject:
Sticky: Sticky: foobar
Hope this helps.
That's a plugin right?
(2012-12-22, 09:46 AM)Seabody Wrote: [ -> ]Install Template Conditionals
Yes.
Where do I put download at?
In the inc/plugins/ folder on your site. X_X
(2012-12-23, 12:20 AM)Kodaks Wrote: [ -> ]In the inc/plugins/ folder on your site. X_X
For the Template Conditionals?