How can I make it so when an topic is made a sticky the thread title will appear in bold and red so it reallt catches attention?
Sticky
Collapse
X
-
Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates -> threadbit
Add the red code:
Code:$thread[movedprefix] $thread[typeprefix] <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]">[color=red]<if condition="$show['sticky']"><span style="color: red; font-weight:bold">$thread[threadtitle]</span><else />[/color]<if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if>[color=red]</if>[/color]</a>
-
I was just about to ask this question!
lol
Thanks Jake, that worked. Is there any way to use a color number instead of just "red" "blue"
??Comment
-
Originally posted by turbidblueThanks Jake, that worked. Is there any way to use a color number instead of just "red" "blue"Comment
-
-
I get this error when I do this, any ideas why?
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /www/m/meogeecom/htdocs/includes/adminfunctions_template.php(3098) : eval()'d code on line 17
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.lincolnsofdistinction.orgComment
-
Originally posted by mikecp421I get this error when I do this, any ideas why?
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /www/m/meogeecom/htdocs/includes/adminfunctions_template.php(3098) : eval()'d code on line 17
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
wot version you using mike?Comment
-
I am using version 3.0.8 and yes I figured to try the closing </if> after I posted but the only problem then was, that it had the title of the sticky in red and bold not the word "sticky" and it had it repeated, meaning one regular and one modified. One after the other.lincolnsofdistinction.orgComment
-
Originally posted by mikecp421Found what?
I have what i think is a problem with my admin cp (about to post a thread on troubleshooting) as my admin cp is missing a search box (think there used to be one there)
what i did was copy the whole of the code and pasted into notepad,searched for the code (i couldn't find it at first but i was searching from the top to the bottom when indeed I was already at the bottom of the page )
I searched found the code to insert the new code from jakes post and copied it back into the threadbit
anyways i then opened another notepad and pasted in the code again (incase of an accident i could revert back )
cheersComment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment