Announcement

Collapse
No announcement yet.

How do I make sticky thread links bold?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • markblair
    replied
    I know you now have the answer but I found another way to do this that might help others. I just went to Admin CP > Styles & Templates > Replacement Variable Manager > Add New Replacement Variable and in the Search for Text field, I typed 'sticky:' and in the Replace with Text field I typed <b>. That removes the word Sticky: from those threads but the entire title is bold.

    Leave a comment:


  • Club3G
    replied
    Got it. Thanks as always guys.

    Leave a comment:


  • Jake Bunce
    replied
    If you only want sticky threads to be bold then use the red code in place of the condition that is there in the default template:

    Code:
    			$thread[movedprefix]
    			$thread[typeprefix]
    			<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="[color=red]$show['sticky'][/color]"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a>

    Leave a comment:


  • poolking
    replied
    Originally posted by Club3G
    Wouldn't that make new posts bold as well?

    I'm wanting to do just stickies, not new posts. Sorry for the confusion.
    No the part the strong tag is round is the threadtitle part of that line, so just the thread title will be on bold.

    Leave a comment:


  • Club3G
    replied
    Wouldn't that make new posts bold as well?

    I'm wanting to do just stickies, not new posts. Sorry for the confusion.

    Leave a comment:


  • Jake Bunce
    replied
    Originally posted by poolking
    Club3G,

    Count 15 lines down from the top of what you quoted.
    That is the correct line.

    It looks like you removed the strong tags from that line. You need to add those back in as they are shown in the code I posted. That strong tag is what makes the text bold.

    Leave a comment:


  • poolking
    replied
    Club3G,

    Count 15 lines down from the top of what you quoted.

    Leave a comment:


  • rebelsrock06
    replied
    you could do mine also

    Leave a comment:


  • Club3G
    replied
    Hm, I don't seem to have that bit in my threadbit. I already edited this once before so that the thread links aren't bold, perhaps that's why?

    Here's my threadbit:

    Code:
    <tr>
     <td class="alt1"><img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" 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>
     <if condition="$show['threadicons']">
      <td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else />&nbsp;</if></td>
     </if>
     <td class="alt1Active" id="t$thread[threadid]" title="$thread[preview]">
      
      <div>
       <span style="float:$stylevar[right]">
    	<if condition="$show['paperclip']"><img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" alt="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" /></if>
    	<if condition="$show['subscribed']"><img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /></if>
    	<if condition="$show['sticky']"><img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /></if>
       </span>
    	  $thread[movedprefix]
       $thread[typeprefix]
       <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']">$thread[threadtitle]<else />$thread[threadtitle]</if></a>
    <if condition="$thread['pagenav']"><span class="smallfont" style="white-space:nowrap">( <img class="inlineimg" src="$stylevar[imgdir_misc]/multipage.gif" alt="$vbphrase[multipage_thread]" border="0" /> $thread[pagenav] <if condition="$show[pagenavmore]">... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;goto=lastpost$thread[highlight]">$vbphrase[last_page]</a></if> )</span></if>
    <span style="float:$stylevar[right]"><if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if></span>
      </div>
     
      <div class="smallfont">
       <if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if>
       <if condition="$show['guestuser']">
    	$thread[postusername]
       <else />
    	<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span>
       </if>
      </div>
      
      <if condition="$show['unsubscribe']">
       <div class="smallfont">
    	<a href="newreply.php?$session[sessionurl]do=newreply&amp;t=$thread[threadid]">$vbphrase[reply]</a> |
    	<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;return=ucp&amp;t=$thread[threadid]">$vbphrase[unsubscribe]</a>
       </div>
      </if>
      
     </td>
     
     <td class="alt2" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>">
      <div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap">
       $thread[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if><br />
       <phrase 1="showthread.php?$session[sessionurl]goto=lastpost&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase>  
      </div>
     </td>
     
     <if condition="$show['notificationtype']">
      <td class="alt1"><div class="smallfont" align="$stylevar[right]">
       <label for="sub$subscribethread[$threadid]">$thread[notification]<input type="checkbox" name="deletebox[$subscribethread[$threadid]]" id="sub$subscribethread[$threadid]" value="yes" /></label>
       <input type="hidden" name="oldemailupdate[$subscribethread[$threadid]]" id="oe_$subscribethread[$threadid]" value="$emailupdate[$threadid]" />
      </div></td>
     <else />
      <td class="alt1" align="center"><a href="#" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></td>
      <td class="alt2" align="center">$thread[views]</td>
       
      <if condition="$show['forumlink']">
       <td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td>
      </if>
     </if>
    </tr>

    Leave a comment:


  • Jake Bunce
    replied
    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]"><if condition="$show['gotonewpost'] [color=red]OR $show['sticky'][/color]"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a>
    That should work.

    Leave a comment:


  • Club3G
    replied
    That's for the word "sticky", I believe. I want to change the actual link itself.

    I think sticky_thread is the phrase I want to change, but I don't see how I could un-bold it if I add <b> to it.

    Leave a comment:


  • rebelsrock06
    replied
    ACP> Languages and Phrases> Search in Phrases> *Search for * sticky> Go to " sticky_thread_prefix > Edit > Translation = <b>Sticky</b>

    Leave a comment:


  • Club3G
    started a topic How do I make sticky thread links bold?

    How do I make sticky thread links bold?

    All of my links are un-bold right now, but it would be nice if I could make stickies bold.

    Easy to do? Possible?
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X