New Post indicator

by linkzy - 04-02-2015, 01:10 PM
لا إله إلا الله‎
Posts:
6,328
Joined:
Jan 2015
Likes:
301
Credits:
363
Reputation:
162
2 Years of Service
#1
OP
Posted: 04-02-2015, 01:10 PM
Not By me

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

PHP Code:
.z-unread-icon {
floatright;
margin-top: -45px;
positionrelative;
right75px;
top52px;
z-index1;

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

PHP Code:
{vb:set postStatus''
Right after this line, add on its own line

PHP 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> 
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

PHP Code:
.z-unread-bg-icon {
background-imageurl({vb:raw vboptions.bburl}/.././images/custom/unread-background-majigger.png);
background-positiontop right;
background-repeatno-repeat;

Step 2: Adding Code
Find the following in display_contenttype_conversationreply_threadview_Text

PHP Code:
<div class="list-item-body conversation-body"
Change it too

PHP Code:
<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
PHP Code:
.z-unread-bg-spartan {
background-imageurl({vb:raw vboptions.bburl}/.././images/custom/unread-spartan-majigger.png);
background-positiontop right;
background-repeatno-repeat;

Step 2: Adding the code
Find the following in display_contenttype_conversationreply_threadview_Text

PHP Code:
<div class="list-item-body conversation-body"
Change it too

PHP Code:
<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
| A- Best forever .. | v4hl - ;) | Addicted | Senpai | Nyan | Sensei | H | fdigl |
[Image: gZD4Fba.png]

Novice
Posts:
26
Joined:
Mar 2015
Likes:
0
Credits:
27
Reputation:
0
2 Years of Service
#2
Posted: 22-03-2015, 06:29 PM
Thank you for sharing
Novice
Posts:
28
Joined:
Aug 2015
Likes:
2
Credits:
14
Reputation:
0
2 Years of Service
#3
Posted: 03-08-2015, 03:41 AM
thanks, i'll try it later and see how it looks
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)