Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
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
Mod Version: 2.10, by Alan_SP (Designer) Alan_SP is offline
Developer Last Online: Nov 2016 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (0 vote - 0 average) Installs: 12
Released: 13 Apr 2012 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And, to make thread title function like it always should have, go and make this change:

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace it with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now thread title leads to first new post if there's a one, or leads to a last post. If there's more than one page, we could use page numbers below, like shown on this picture:



---------------------------------------

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

back to (that's original id)

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

For some who maybe would like to use image , I'll leave version 1.00 below, but I corrected id error (i.e. id stays same).
---------------------------------------------------
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace it with this code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

This code makes little image leads you to the first post of thread, not as before to first unread post.

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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Don't forget to remove closing if statment:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now you'll always have link that leads to first post of thread. This may be important to you because thread title (if you apply this template modification) leads to last post in thread if there are no new posts.

Second, more important change as it changes where thread title leads is this:

Find:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Replace it with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now, when you and your users click on thread title it leads them to first unread post in the thread (or last, if there are no new posts) and if they click on icon, it leads them to the first post of thread.

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.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 04 May 2015, 22:06
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Thanks always saw this stuff on some of my regular sites..
Probably some of biggest vbulletin sites..
Reply With Quote
  #3  
Old 07 May 2015, 19:35
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Yes, this seem way more logical to use thread titles for finding unread posts and not trying to hit little image in front of it.
Reply With Quote
  #4  
Old 27 Feb 2016, 04:08
broncoshq broncoshq is offline
 
Join Date: Feb 2012
Guys I'm having a bit of trouble with this, and I can't understand why.

I have set it up so users have the choice via their profile, using VB:IF to alternate between the original code, and the one listed here.

It works perfectly, unless the user is in a special permission group forum.

It's obviously a pain to test, because I need to be on when there are plenty of people posting.

Really appreciate any help.
Reply With Quote
  #5  
Old 27 Feb 2016, 18:37
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
You can create test user with same permissions, log as that test user in one browser and test, while monitoring with other browser where you're logged as admin. I always have test user created and just change permissions depending on what I need to test.

Also, it would be interesting to see what code you're actually using to achieve this.
Reply With Quote
  #6  
Old 28 Feb 2016, 08:26
broncoshq broncoshq is offline
 
Join Date: Feb 2012
It seems to not be special forums as I thought earlier. It seems random as to whether it loads the last unread or the last. However, it certainly works more times than it doesn't, and not always on the same thread.

Code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #7  
Old 28 Feb 2016, 15:12
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Last unread post is last post if there aren't new posts in thread. If it acts randomly, it may be problem in the way your forum tracks what is last read post. You have option to select the way it is tracked.

Changed code (what I changed) just points to what vB thinks is last unread post that also could be last post of thread, nothing else.

I'd check this.
Reply With Quote
  #8  
Old 29 Feb 2016, 01:13
broncoshq broncoshq is offline
 
Join Date: Feb 2012
Where is this option available to look at?

I'm aware of what the change does, and how it should work. It just seems odd to me that this would be acting like this.

If I could see some options, that would be good.
Reply With Quote
  #9  
Old 29 Feb 2016, 14:35
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Yes, you go to ACP->Settings->Options->General Settings->Thread/Forum Read Marking Type

I'm using last option: Database (automatic forum marking)
Reply With Quote
  #10  
Old 02 Mar 2016, 14:06
JesWhite JesWhite is offline
 
Join Date: Apr 2014
Real name: Jes
is there any pic ?

i didnt understand...
Reply With Quote
  #11  
Old 02 Mar 2016, 15:37
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
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.
Reply With Quote
  #12  
Old 19 Sep 2016, 20:46
mtlurb mtlurb is offline
 
Join Date: Sep 2010
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?
Reply With Quote
  #13  
Old 22 Sep 2016, 01:17
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
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.
Reply With Quote
  #14  
Old 27 Oct 2016, 12:34
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Real name: Richie
This is very good for the user but are there any negative effects on seo?
__________________

Let us take care of your forum, seo, seo reports, maintenance, what ever you need.

Reply With Quote
  #15  
Old 27 Oct 2016, 21:04
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Can't tell. But I guess if it works for Xenforo, it should work in the same way for vBulletin.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 10:29.

Layout Options | Width: Wide Color: