![]() |
threadbit template help please
Hi everyone, Im making a mobile theme for one of my forums and i cant seem to get the threads to use the "first unread post" function. So when a user clicks a thread instead of taking them to the first post of the thread it takes them to the first unread post in that thread.
This is the code im using in the thread bit template , as you can see ive added the Last post icon too which is how i want it . Code:
<li> |
Maybe you're confusing "last post" with "first unread"? The "first unread" link looks like this:
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> (that is, you should have pageinfo_newpost in there instead of just pageinfo). |
Yeah ive tried that code too but all it keeps doing it going to the first post on the last page of the thread. Really cant see what is wrong at the min.
|
Are you sure that the page code (the php for the page) actually creates the variables you want to use and that the postid for the first unread post is actually available for use - is pageinfo_lastpost.p an actual real variable that is defined on the page?
|
I had forgot to include the Post id's in the post bit template, Because the theme has been stripped down so much i didnt realise they had been removed.
Added this back into the post bit and it seems to have solved my issue : Code:
<a name="post{vb:raw post.postid}" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}" class="<vb:if condition="$show['inlinemod']">ie</vb:if>postcounter">#{vb:raw post.postcount}</a><a id="postcount{vb:raw post.postid}" name="{vb:raw post.postcount}"></a> |
All times are GMT. The time now is 05:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|