The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
Thread title leads to new (unread) posts like Xenforo does, instead to the first post Details »» | |||||||||||||||||||||||||||
Thread title leads to new (unread) posts like Xenforo does, instead to the first post
Developer Last Online: Oct 2023
We now have situtation where we have small image ( - Here I'm using image from vBorg, not image that's used in your forums) that leads us to first unread post in thread and the whole big thread title leads us to first post of thread. This is not the happiest solution in my opinion and I also heard that Xenforo uses thread title to lead you to first unread post.
I'm talking about this: Version 2.10: You need to edit template threadbit. After some thinking I realized that using image is totally unnecessary, as thread title is enough for good UI. If thread has more than one page, we could always use page numbers available under thread title. So, to remove image completely find this code and remove it: HTML 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> Find: HTML 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> HTML Code:
<a class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}">{vb:raw thread.threadtitle}</a> --------------------------------------- Fixed in version 2.10: We need to use same id to be able to edit thread title by double click next to thread title. If we exchange id with image's id, then double click doesn't enable us to edit thread title. In code above change is already made, and changed is this: from HTML Code:
id="thread_gotonew_{vb:raw thread.realthreadid}" HTML Code:
id="thread_title_{vb:raw thread.realthreadid}" --------------------------------------------------- Version 1.00: Anyway, if you want that thread title leads to new (unread) post, and small image () leads to first post of the thread, it's relatively simple template edit. You need to edit template threadbit. Find this code: HTML 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> HTML Code:
<vb:if condition="$show['gotonewpost']"><a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo}, '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> But, this image appears only if there are new posts in thread, so to make this image appear all the time, you need to remove this if statment in front of code: HTML Code:
<vb:if condition="$show['gotonewpost']">
HTML Code:
</vb:if>
Second, more important change as it changes where thread title leads is this: Find: HTML 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> HTML Code:
<a class="title<vb:if condition="$show['gotonewpost']"> threadtitle_unread</vb:if>" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_newpost}, 'threadid', 'threadtitle'}" id="thread_title_{vb:raw thread.realthreadid}">{vb:raw thread.threadtitle}</a> You can also completely remove icon (by removing code, and not just replacing it), if you want that users go only to first unread post (or last, if there are no new posts in thread). But, if you want to keep icon (which I personally prefer, to go to first post in thread easily), I suggest that you also change phrase go_to_first_new_post, as icon now leads to first post, not first new post. To explain what I did, I exchanged link (href) info between the two (icon and thread title), so you could fairly easy make template change even if this particular code changes with future versions of vBulletin. Hope you'll find this useful. :up: Show Your Support
|
5 благодарности(ей) от: | ||
postcd, rollingzone, SaN-DeeP, Sunka, z3r0 |
Comments |
#12
|
||||
|
||||
Images were deleted from imageshack.
Basicall, you loose image of arrow (shown in the first post of the read and you can see it here on vBorg) before thread title that lead to first unread post (or last post of the thread, depending on thread read status). You have only thread title as a link and it has function that arrow image does. If you ever was on any Xenforo site, you know how links work there. This makes vBulletin site works in that way also. Which is more logical in my opinion, I hate when I need to target small image when I have large thread title. |
#13
|
|||
|
|||
Hello I am unable to implement this as the instructions are not too clear.
I tried but couldn't make it work. Can the OP please do a step by step instruction instead of what we have right now? |
#14
|
||||
|
||||
I admit I made a bit of a mess leaving old version on, for people with different tastes to choose from.
Now I made small change, describing which template to edit (threadbit) at the beginning. After that, just remove code that removes arrow (first code) and find code you need to change into given code (second and third code). That's it. |
#15
|
||||
|
||||
This is very good for the user but are there any negative effects on seo?
|
#16
|
||||
|
||||
Can't tell. But I guess if it works for Xenforo, it should work in the same way for vBulletin.
|
#17
|
|||
|
|||
Does this only work on threads inside of subforums or does it also work on searches such as "New Posts???"
|
#18
|
|||
|
|||
Quote:
If you look for the same phrases in the Search_threadbit you can make the same changes inside of searches such as "New Posts" and such. |
2 благодарности(ей) от: | ||
Alan_SP, Kane@airrifle |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|