View Full Version : Mini Mods - Unread Threads Marker
Andreas
10-26-2010, 10:00 PM
This Add-on re-implements "The threads below have not been updated since your last visit but still contain unread posts." for New Posts searches
Important Note
This Add-on has retired as of vBulletin 4.1.8.
If you are using this Add-on and upgrade to 4.1.8 (or higher) please uninstall this Add-on or you will run into problems.
Boofo
10-27-2010, 05:16 PM
The product-unreadthreadsmarker.xml is 0 bytes in the zip file.
Andreas
10-27-2010, 05:21 PM
Strange. I've reuploaded the ZIP and checked the the XML is not empty, should be okay now.
Boofo
10-27-2010, 05:34 PM
It is fine now. Thanks.
LuisManson
10-28-2010, 01:11 PM
Hi, nice idea!
just one question:
2) Modify your Templates according to templateedits-unreadthreadsmarker.txt if you do not use TMS.
whats TMS? do i need to do those edits?
Ramsesx
10-28-2010, 02:07 PM
If you don't know what it is you need to do those edits.
https://vborg.vbsupport.ru/showthread.php?t=152931
COL NIL SATIS
10-28-2010, 06:09 PM
tagged!!! looks good this does ..will install later
COL NIL SATIS
10-28-2010, 07:36 PM
Will this work on 4.0.6 mate??
djbaxter
10-28-2010, 10:23 PM
Will this work on 4.0.6 mate??
More than likely, yes. It works on 4.07.
Andreas
10-29-2010, 03:41 AM
Will this work on 4.0.6 mate??
Not sure about the template edit, but the plugin code should work with all 4.0.X-Versions.
BadgerDog
10-29-2010, 09:39 AM
Installed .. thanks ... :)
Seems to work fine in 4.04pl1 as well ... :up:
Regards,
Badger
sross
10-29-2010, 11:27 PM
You Are My Hero!
-donation sent thanks again :)
Thank you! Works on 4.0.6. Donation sent!
COL NIL SATIS
10-30-2010, 11:59 AM
<li class="imodselector threadbit {vb:if !$thread['del_username'], $thread['statusstring']}" id="thread_{vb:raw thread.realthreadid}" title="{vb:raw thread.preview}">
dont seem to have that in my Template search_threadbit
Gah
COL NIL SATIS
10-30-2010, 12:21 PM
<li class="imodselector threadbit {vb:if !$thread['del_username'], $thread['statusstring']}" id="thread_{vb:raw thread.realthreadid}">
<div class="icon{vb:raw thread.threadiconid} rating{vb:raw thread.rating}<vb:if condition="$thread['sticky']"> sticky<vb:else /> nonsticky</vb:if>{vb:if $thread['del_username'], ' deleted'}">
<div class="threadinfo thread">
<!-- status icon block -->
<a class="threadstatus" rel="vB::AJAX" title="
<vb:if condition="$show['threadcount']">
{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}
</vb:if>
"></a>
<vb:if condition="$show[threadcount]"><span class="shade" style="float:{vb:stylevar right}"><br /><br /><a href="showthread.php?{vb:raw session.sessionurl}goto=mylastpost&t={vb:raw thread.threadid}" class="lastpostdate understate" title="{vb:rawphrase vsajtylpit_jumptomylast}">►</a></span></vb:if>
<!-- title / author block -->
<div class="inner">
<h3 class="searchtitle">
<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>
<vb:if condition="$thread['sticky']">
<img src="{vb:stylevar imgdir_misc}/sticky.gif" alt="{vb:rawphrase sticky_thread}" />
</vb:if>
<vb:if condition="$thread['movedprefix'] OR $thread['typeprefix'] OR $thread['moderatedprefix'] OR $thread['prefix_rich']">
<span class="prefix understate">
{vb:raw thread.movedprefix}
{vb:raw thread.typeprefix}
{vb:raw thread.moderatedprefix}
{vb:raw thread.prefix_rich}
</span>
</vb:if>
<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}" title="{vb:raw thread.preview}">{vb:raw thread.threadtitle}</a>
</h3>
<div class="threadmeta">
<div class="author">
{vb:rawphrase started_by_x_y_z_a, {vb:link member, {vb:raw thread}, null, 'postuserid', 'postusername'}, {vb:raw thread.postusername}, {vb:raw thread.startdate}, {vb:raw thread.starttime}}
<vb:if condition="$show['unsubscribe']">
<a href="newreply.php?{vb:raw session.sessionurl}do=newreply&t={vb:raw thread.threadid}" rel="nofollow">{vb:rawphrase reply}</a>
| <a href="subscription.php?{vb:raw session.sessionurl}do=removesubscription&return=uc p&t={vb:raw thread.threadid}" rel="nofollow">{vb:rawphrase unsubscribe}</a>
</vb:if>
<vb:if condition="$thread['pagenav']">
<dl class="pagination" id="pagination_threadbit_{vb:raw thread.realthreadid}">
<dt class="label">{vb:raw thread.totalpages} {vb:rawphrase pages} <span class="separator">•</span></dt>
<dd>
{vb:raw thread.pagenav}
<vb:if condition="$show['pagenavmore']"> ... <a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpage}, threadid, threadtitle}">{vb:raw thread.totalpages}</a></vb:if>
</dd>
</dl>
</vb:if>
</div>
<vb:if condition="$show['managethread'] && $thread['del_username']">
<ul class="managethread">
<li class="rmanage"><a href="postings.php?{vb:raw session.sessionurl}do=editthread&t={vb:raw thread.redirectthreadid}">{vb:rawphrase manage}</a></li>
</ul>
</vb:if>
</div>
</div>
<!-- iconinfo -->
<div class="threaddetails td">
<div class="threaddetailicons">
<vb:if condition="$show['taglist']">
<img src="{vb:stylevar imgdir_misc}/tag.png" alt="{vb:raw thread.taglist}" />
</vb:if>
<vb:if condition="$show['rexpires']">
<img src="{vb:stylevar imgdir_misc}/expires.gif" alt="{vb:rawphrase expires_on_x_y, {vb:raw thread.expiredate}, {vb:raw thread.expiretime}}" />
</vb:if>
<vb:if condition="$show['moderated']">
<img src="{vb:stylevar imgdir_misc}/moderated_small.gif" alt="{vb:rawphrase x_moderated_posts, {vb:raw thread.hiddencount}}" />
</vb:if>
<vb:if condition="$show['deletedthread']">
<img src="{vb:stylevar imgdir_misc}/trashcan_small.gif" alt="{vb:rawphrase x_deleted_posts, {vb:raw thread.deletedcount}}" />
</vb:if>
<vb:if condition="$show['paperclip']">
<a href="javascript://" onclick="attachments({vb:raw thread.threadid}); return false"> <img src="{vb:stylevar imgdir_misc}/paperclip.png" border="0" alt="{vb:rawphrase x_attachments, {vb:raw thread.attach}}" /></a>
</vb:if>
<vb:if condition="$thread['issubscribed']">
<img src="{vb:stylevar imgdir_misc}/subscribed.png" alt="{vb:rawphrase you_are_subscribed_to_this_thread}" />
</vb:if>
</div>
</div>
</div>
<!-- threadstats -->
<vb:if condition="!$show['notificationtype'] && !$thread['del_username']">
<ul class="threadstats td alt" title="<vb:if condition="$thread['dot_count'] > 0">{vb:rawphrase have_x_posts_in_thread_last_y, {vb:raw thread.dot_count}, {vb:raw thread.dot_lastpost}}</vb:if>">
<li class="stats"><a href="misc.php?do=whoposted&t={vb:raw thread.threadid}" onclick="who({vb:raw thread.threadid}); return false;">{vb:rawphrase replies}</a>: {vb:raw thread.replycount}</li>
<li class="stats">{vb:rawphrase views}: {vb:raw thread.views}</li>
</ul>
</vb:if>
<vb:if condition="$thread['del_username']">
<!-- deleted by -->
<div class="threaddeleted td">
<div class="inner">
<div class="deletedby">
{vb:rawphrase thread_deleted_by_x, {vb:link member, {vb:raw thread}, null, 'del_userid', 'del_username'}, {vb:raw thread.del_username}}
</div>
<vb:if condition="$show['deletereason']">
<dl class="stats deletereason">
<dt class="reason">{vb:rawphrase reason}</dt>
<dd class="reason"> {vb:raw thread.del_reason}</dd>
</dl>
</vb:if>
</div>
</div>
<vb:else />
<!-- lastpost -->
<dl class="threadlastpost td">
<dt class="lastpostby hidden">{vb:rawphrase last_post_by}:</dt>
<dd>{vb:rawphrase last_post}: {vb:raw thread.lastpostdate} <em class="time">{vb:raw thread.lastposttime}</em></dd>
<dd>
<vb:if condition="$thread['lastposterid']">
{vb:rawphrase by_x, {vb:link member, {vb:raw thread}, null, 'lastposterid', 'lastposter'}, {vb:raw thread.lastposter}}
<vb:else />
{vb:rawphrase by_x_guest , {vb:raw thread.lastposter}}
</vb:if>
<a href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_lastpost}, 'threadid', 'threadtitle'}#post{vb:raw thread.lastpostid}"><img src="{vb:stylevar imgdir_button}/lastpost-{vb:stylevar right}.png" alt="{vb:rawphrase go_to_last_post}" /></a>
</dd>
</dl>
</vb:if>
<div class="threadpostedin td alt">
<p>
{vb:rawphrase forum}:<br /><a href="{vb:link forum, {vb:raw thread}, null, 'forumid', 'forumtitle'}" title="{vb:raw thread.forumtitleclean}">{vb:raw thread.forumtitle}</a>
</p>
</div>
<vb:if condition="$show['notificationtype']">
<!-- notification -->
<div class="threadnotification td">
<label for="thread_imod_checkbox_{vb:raw thread.realthreadid}">{vb:raw thread.notification}</label>
</div>
<label class="threadimod td">
<input type="checkbox" name="deletebox[{vb:raw subscribethread.$threadid}]" id="thread_imod_checkbox_{vb:raw thread.realthreadid}" value="yes" />
</label>
</vb:if>
<vb:if condition="$show['inlinemod']">
<!-- fourth block -->
<label class="threadimod">
<input type="checkbox" id="thread_imod_checkbox_{vb:raw thread.realthreadid}" name="imodcheck[{vb:raw thread.realthreadid}]" />
</label>
</vb:if>
</div>
</li>
where would i place the code????
djbaxter
10-30-2010, 03:32 PM
where would i place the code????
Right at the beginning of the template, before anything else.
COL NIL SATIS
10-30-2010, 05:19 PM
Cheers Dj
Andreas
10-31-2010, 06:20 AM
<li class="imodselector threadbit {vb:if !$thread['del_username'], $thread['statusstring']}" id="thread_{vb:raw thread.realthreadid}" title="{vb:raw thread.preview}">
dont seem to have that in my Template search_threadbit
You do, it is just slightly different (because you are using a different version?):
<li class="imodselector threadbit {vb:if !$thread['del_username'], $thread['statusstring']}" id="thread_{vb:raw thread.realthreadid}">
Mr Peabody
10-31-2010, 06:28 AM
Great mod that basically adds a function in that should never been removed.
Thanks :)
COL NIL SATIS
10-31-2010, 01:20 PM
You do, it is just slightly different (because you are using a different version?):
<li class="imodselector threadbit {vb:if !$thread['del_username'], $thread['statusstring']}" id="thread_{vb:raw thread.realthreadid}">
Hmmmm...still cant get it to show on 4.0.6?? nevermind i will keep trying !!
JIMRANGERS
10-31-2010, 04:43 PM
its your first line but does not work for me on 4.08
JIMRANGERS
10-31-2010, 04:51 PM
unread
COL NIL SATIS
10-31-2010, 05:54 PM
yeah ive pasted the code above the 1st line bud...not showing nowt though..Gahh
JIMRANGERS
10-31-2010, 06:28 PM
try in opera, it works in opera but buggy in firefox
COL NIL SATIS
10-31-2010, 06:34 PM
Ahhh nice one mate..i use firefox,will check it now!! cheers
COL NIL SATIS
10-31-2010, 06:42 PM
<vb:if condition="$show['threadsbelowhere']">
<li class="threadbit">
<div class="icon0 rating0 nonsticky">
<div style="text-align:center; padding: 4px; font-weight:bold;">
{vb:rawphrase all_threads_below_here_unread}
</div>
</div>
</li>
</vb:if>
<li class="imodselector threadbit {vb:if !$thread['del_username'], $thread['statusstring']}" id="thread_{vb:raw thread.realthreadid}">
<div class="icon{vb:raw thread.threadiconid} rating{vb:raw thread.rating}<vb:if condition="$thread['sticky']"> sticky<vb:else />
Thats the top of my search_threadbit template now...still not showing owt:eek: Think i may need to give in on this one
Mr Peabody
10-31-2010, 07:17 PM
I'm using 4.0.8 and firefox and its working fine.
Andreas
11-01-2010, 05:48 AM
try in opera, it works in opera but buggy in firefox
Then you are most likely doing smth. wrong as it works just fine with Firefox and 4.0.8 for me.
Boofo
11-01-2010, 05:58 AM
Or he doesn't have any threads that will trigger it after all the testing.
Andreas
11-01-2010, 07:23 AM
... which would imply that he is doing smth. wrong (=not having new threads while testing) ;)
Boofo
11-01-2010, 07:37 AM
True, but it was more for notifying him where else to look, I guess, instead of blaming the mod.
I have yet to see one of your mods not work as it was intended to. ;)
RWerksman
11-03-2010, 11:27 PM
What can I change to make it stand out a bit more? I'm thinking of using the CSS tag for how the sticky threads appear in the search results, but I'm not certain what line to change and what to. :(
★Slap
11-04-2010, 05:11 PM
Not working with vBulletin 4.0.8
Boofo
11-04-2010, 05:38 PM
Not working with vBulletin 4.0.8
Others have it working on 4.0.8 fine.
stained
11-04-2010, 06:42 PM
Thanks for this one. Working perfectly in 4.0.8 for me too. It didn't work straight away but a quick logout and login later it was working perfectly.
Andreas
11-05-2010, 05:34 AM
Not working with vBulletin 4.0.8
Negative, it has been developed on 4.0.8 and works just fine with that version :)
Alfa1
11-06-2010, 01:18 AM
Its quite bizarre that this is not included in vb by default. Thanks Andreas.
Tagged for future use.
Gargi
11-11-2010, 07:13 PM
Hi! Is there a way to make a hack what is sorting the what's new result in forum oder? Also the possibility to show more than 20 hits a page would be nice :)
cu
Gargi
Eq4bits
11-12-2010, 02:28 AM
thanks! have been missing this!
*clicks install*
zackw
11-29-2010, 05:20 PM
Does this only work when logged out?
I have 4.0.7 and I thought it wasn't working until I logged out and noticed that it does show up. When I log in, it never shows up.
Was this supposed to work only logged out? What I'm looking for is when a user logs in, it tells them both new stuff since last log in (not just since last "visit"), as well as posts with unread stuff irregardless of last log in or visit.
Thoughts?
thunderclap82
11-29-2010, 06:32 PM
Why does it say to use TMS when TMS isn't listed as being compatible with 4.0.x?
zackw
12-08-2010, 08:53 PM
Any ideas on this? The only time I can even get the "The threads below have not been updated since your last visit" message is when I'm logged out, OR when I mark all forums read and then click the button to view past messages for the last 24 hours.
Again, my understanding is that this plugin is for when a person is logged in and clicks "What's New", it should show the "new" posts since last login, with the list of "The threads below..." message under that.
What's going on?
Tin Soldier
02-13-2011, 03:52 PM
Is this necessary in 4.1.1 and does it work?
BlueCheri
03-04-2011, 11:12 PM
Very useful, will try.
Installed on 4.1.2 and after modding the template "search_threadbit" on my main template, it does not work yet??
Think I will leave it overnight and see if more threads and passing time makes a difference, but are there known issues with 4.1.2?:confused:
Thanks
hugh_
04-09-2011, 08:56 PM
I'm seeing the two problems with version 4.1.3...
With "Count All Posts Marked as Unread" set links to search results are broken such as:
search.php?do=getnew[ARG:2%20UNDEFINED]
The above works with "Use last visit date".
I'm also seeing what appears to be the message being repeated:
"You Have 5 Unread
You have %1$s unread %2$s"
And the second link doesn't work such as:
%3$ssearch.php?do=getnew%4$s
/%3$ssearch.php?do=getnew%4$s
hugh_
04-11-2011, 04:43 AM
Fixed.
Boofo
04-11-2011, 05:36 AM
You might want to post the fix for anyone else who runs into this.
hugh_
04-11-2011, 07:20 AM
Go to Languages and Phases. Find Updated Phrases with the words Unread and delete the translated / changed versions...
Boofo
04-11-2011, 08:06 AM
I have not had any of the issues you reported when I upgraded to 4.1.3. I just thought it would be nice for those that might have issues to have the fix available.
AusPhotography
04-18-2011, 10:33 AM
4.1.3 all good here as well!
wildheart
07-19-2011, 10:36 AM
Does this only work when logged out?
I have 4.0.7 and I thought it wasn't working until I logged out and noticed that it does show up. When I log in, it never shows up.
Exactly the same with me. I locked out and picked up several threads that I havent seen, so it is not a question of nothing updated while I was locked in.
I installed it several days ago and there is still no change when I am locked in.
Running 4.1.4
FReeSTER
08-27-2011, 01:37 PM
this is NOT showing up on my forum 4.1.3
wildheart
09-16-2011, 12:20 PM
It only works under Quick Links - today's posts. It did not change New Posts.
Andreas
09-19-2011, 03:35 PM
Does this only work when logged out?
No. But it does require database read marking (as did vB 3.8), if you use cookie based read marking it will not work as tehre will never be unread threads that had their last post befor your last visit.
AusPhotography
11-02-2011, 01:29 AM
This product is not required from 4.1.8 onwards (it's been added to vB)
See: http://tracker.vbulletin.com/browse/VBIV-3973 Approved on staging for 4.1.8
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.