PDA

View Full Version : Show Thread Enhancements - New Post Indicators


Zachery
05 Apr 2013, 03:53
This has been tested to work in 5.0.0 and 5.0.1.

How to install Unread Icons for vBulletin 5.0.1

If you wish to use the full icon overlay:
Step 1: Adding CSS
Add the following to css_additional.css

.z-unread-icon {
float: right;
margin-top: -45px;
position: relative;
right: 75px;
top: 52px;
z-index: 1;
}
Step 2: Adding Code
Find the following code in display_contenttype_conversationreply_threadview_Text template
{vb:set postStatus, ''}

Right after this line, add on its own line


<vb:if condition="$user['lastvisit'] <= $conversation['created']"><div class="z-unread-icon"><img src="{vb:raw vboptions.bburl}/.././images/custom/unread-whatchamajigger4.png" alt="New since your last visit" title="New since your last visit" /></div></vb:if>



If you wish to use the icon in the background of the post instead of the overlay

Step 1: Adding CSS
Add the following to css_additional.css

.z-unread-bg-icon {
background-image: url({vb:raw vboptions.bburl}/.././images/custom/unread-background-majigger.png);
background-position: top right;
background-repeat: no-repeat;
}
Step 2: Adding Code
Find the following in display_contenttype_conversationreply_threadview_Text
<div class="list-item-body conversation-body">
Change it too
<div class="list-item-body conversation-body <vb:if condition="$user['lastvisit'] <= $conversation['created']">z-unread-bg-icon</vb:if>">

If you wish to use the “Spartan” style

Step 1: Adding CSS
Add the following to css_additional.css

.z-unread-bg-spartan {
background-image: url({vb:raw vboptions.bburl}/.././images/custom/unread-spartan-majigger.png);
background-position: top right;
background-repeat: no-repeat;
}

Step 2: Adding the code
Find the following in display_contenttype_conversationreply_threadview_Text
<div class="list-item-body conversation-body">
Change it too
<div class="list-item-body conversation-body <vb:if condition="$user['lastvisit'] <= $conversation['created']">z-unread-bg-spartan</vb:if>">

You need to also upload the icon you want to the images/custom folder

Hornstar
07 Apr 2013, 03:17
So will this be the solution for finding those unread posts/comments?

Zachery
08 Apr 2013, 19:58
I hope to see it added back to the product. For the time being, this is how I'd take care of it.

In Omnibus
13 Apr 2013, 00:26
Thank You ...

Merenguista
21 Apr 2013, 09:15
Is there a hack for New Post Indicators ?

Zachery
23 Apr 2013, 00:13
Why would you need a hack?

Zachery
12 May 2013, 18:05
Made a small change so people on 5.0.1 will be able to use it.

stb74
19 Jul 2013, 08:31
Should this work in 5.0.3

Zachery
19 Jul 2013, 20:35
Should be fine, I'm working on a newer version of this, but this gets the basic across.

Crocodine
08 Nov 2013, 14:13
Couldn't make it work on 5.0.5.

Zachery
08 Nov 2013, 17:59
Sorry to hear that, I'll see what I can do about getting a newer version out.

peterdadams
26 Jul 2015, 21:15
Hi Zachery,

Do you have a version of this mod for vBulletin 5.1.7?

I cannot find the following in display_contenttype_conversationreply_threadview_Text template:

<div class="list-item-body conversation-body">

Zachery
27 Jul 2015, 01:59
If I can shake some free time this week, I'll work on updating it.

Sagobal
16 Dec 2015, 10:13
I'm Using 5.1.10 and it seems that there are Changes:
For full Icon Overlay I had to Use "display_contenttype_threadview_header" Template.
In this Template after

{vb:set postStatus, ''}

Insert

<vb:if condition="$user['lastvisit'] <= $conversation['created']"><div class="z-unread-icon"><img src="{vb:raw vboptions.bburl}/.././images/custom/unread-whatchamajigger4.png" alt="New since your last visit" title="New since your last visit" /></div></vb:if>




For Background/Spartan the Right Template should also be "display_contenttype_threadview_header"
I got it to work there, but NOT on the first Post of a thread. (Seens to be something with the Headline)
Find an Replace

<div class="b-post__body h-restore--on-preview h-padding-horiz-xxl h-padding-top-xl h-padding-bottom-m h-clearfix">

for Background with

<div class="b-post__body h-restore--on-preview h-padding-horiz-xxl h-padding-top-xl h-padding-bottom-m h-clearfix <vb:if condition="$user['lastvisit'] <= $conversation['created']">z-unread-bg-icon</vb:if>">

or for Spartan with

<div class="b-post__body h-restore--on-preview h-padding-horiz-xxl h-padding-top-xl h-padding-bottom-m h-clearfix <vb:if condition="$user['lastvisit'] <= $conversation['created']">-unread-bg-spartan</vb:if>">



Maybe this may help you all. And maybe there is someone who can figure out, how to use it on the first post.
Greetz

HowToEvery
08 Jun 2016, 06:56
Is there a way to make it work on version 5.2.2?