Jump to content
vBWarez - Rest In Peace

Recommended Posts

[B][COLOR="#FF0000"]vB Version: 5.0.0[/COLOR][/B]

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

[CODE].z-unread-icon {
float: right;
margin-top: -45px;
position: relative;
right: 75px;
top: 52px;
z-index: 1;
}[/CODE]

Step 2: Adding Code
Find the following code in display_contenttype_conversationreply_threadview_Text template

[CODE]<br />[/CODE]

Right after this line, add on its own line

[CODE]<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>[/CODE]

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

[CODE]<div class="list-item-body conversation-body">[/CODE]

Change it to

[CODE]<div class="list-item-body conversation-body <vb:if condition="$user['lastvisit'] <= $conversation['created']">z-unread-bg-icon</vb:if>">[/CODE]

If you wish to use the “Spartan” style

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

[CODE].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;
}[/CODE]

Step 2: Adding the code
Find the following in display_contenttype_conversationreply_threadview_Text

[CODE]<div class="list-item-body conversation-body">[/CODE]

Change it to

[CODE]<div class="list-item-body conversation-body <vb:if condition="$user['lastvisit'] <= $conversation['created']">z-unread-bg-spartan</vb:if>">[/CODE]

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

  • Like 2
Link to post
Share on other sites
  • 11 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...