Announcement

Collapse
No announcement yet.

Go to Unread Post after clicking Text Title

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

  • [Forum] Go to Unread Post after clicking Text Title

    Hiya guys. I've just downloaded VB4 and am now setting it all up. Most issues I've manged to solve using Google (and my brain). However, I'm stuck on this...

    While on a forum, to go to the first unread post on a topic, a user has to click the blue arrow thing next to the text... Click image for larger version

Name:	firstnew.png
Views:	1
Size:	429 Bytes
ID:	3715675

    However, if they click on the text of the title, they'll simply go to the start of the thread.

    Is there a way to add the "goto=newpost" code feature to the Titles/text of threads?

    Help would be greatly appreciated! It may seem picky, but my forum have been using Invisionfree and Zetaboards for over 6 years - it's what we're used to!

  • #2
    You would have to modify the template to do that as there isn't some option to turn on to make it that way.

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools <- awesome site for html/css help

    Comment


    • #3
      Hi, thanks for the reply.

      Would it be easy to do? My knowledge of HTML and CSS is good, but not PHP. If it's not to hard could you briefly explain?

      Cheers,

      Jack

      Comment


      • #4
        I haven't tried it, but it looks like this is the code for the little button thingie (in template threadbit):
        Code:
        <vb:if condition="$show['gotonewpost']"><a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_gotonew_{vb:raw thread.realthreadid}"><img class="gotonewpost" src="{vb:stylevar imgdir_button}/firstnew.png" alt="{vb:rawphrase go_to_first_new_post}" /></a>
                            </vb:if>
        And this is the code for the thread title:
        Code:
        <a class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}">{vb:raw thread.threadtitle}</a>
        So I would guess you would just change the href link on the second one to be the same as the first one. You'd probably have to do this in the search_threadbit template also. But, as I said, I have NOT tried this.

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools &lt;- awesome site for html/css help

        Comment


        • #5
          Lynne, it works alright! No problems whatsoever. Thanks a lot!

          Comment

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