Announcement

Collapse
No announcement yet.

"New Post" Icon

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

  • "New Post" Icon

    I know with vBulletin a new post is written in "Bold" type, but what i was wondering is how I could add something that says "New" next to it.

    Please notice picture below and any help would be appreciated.
    Attached Files

  • #2
    Edit this template:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates -> threadbit

    For example, add the red code:

    Code:
    			<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
    			$thread[movedprefix]
    			$thread[typeprefix]
    			$thread[moderatedprefix]
    			<if condition="$show['gotonewpost']">
    				NEW
    			</if>
    			<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>
    			<if condition="$thread['pagenav']">$stylevar[dirmark]<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;page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
    		</div>
    	
    		<if condition="$show['rmanage']"><div class="smallfont"><span style="float:$stylevar[right]"><a href="postings.php?$session[sessionurl]do=editthread&amp;t=$thread[redirectthreadid]">$vbphrase[manage]</a></span></div></if>
    			
    		<div class="smallfont">

    Comment


    • #3
      how could i change "NEW" text with some new icon?
      i mean istead of NEW beside new thread it show a small icon

      Comment


      • #4
        Just replace "NEW" with the HTML code to the image.

        HTML Code:
        <img src="PATH TO IMAGE HERE" />
        Regards,
        Nick

        Comment


        • #5
          thanks
          but is it possible, for every forum put a new icon?
          i mean forum1 has a "iconA.gif" and forum2 has a "iconb.gif" and so on...

          Comment


          • #6
            Look over at www.vbulletin.org. You will find a modification that does this.
            James

            Comment


            • #7
              Originally posted by smonabav View Post
              thanks
              but is it possible, for every forum put a new icon?
              i mean forum1 has a "iconA.gif" and forum2 has a "iconb.gif" and so on...
              I wonder if it's possible to use a forum conditional with Jake's code in red?

              Such as:


              Code:
               <if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
                          $thread[movedprefix]
                          $thread[typeprefix]
                          $thread[moderatedprefix]
                           <if condition="$forumid == 1"><if condition="$show['gotonewpost']">
                              NEW Image 1
                           </if></if>
                 <if condition="$forumid == 2"><if condition="$show['gotonewpost']">
                               NEW Image 2
                            </if></if>
                 <if condition="$forumid == 3"><if condition="$show['gotonewpost']">
                               NEW Image 3
                            </if></if>
                 <if condition="$forumid == 4"><if condition="$show['gotonewpost']">
                               NEW Image 4
                           </if></if>
                          <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>
                          <if condition="$thread['pagenav']">$stylevar[dirmark]<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;page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
                      </div>
                  
                      <if condition="$show['rmanage']"><div class="smallfont"><span style="float:$stylevar[right]"><a href="postings.php?$session[sessionurl]do=editthread&amp;t=$thread[redirectthreadid]">$vbphrase[manage]</a></span></div></if>
                          
                      <div class="smallfont">
              My addition is in Blue.

              You would just have to specify the image for each forum, like I have demonstrated.

              Regards,
              Nick

              Comment


              • #8
                That should work.

                Comment


                • #9
                  works!thanks

                  Comment

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