The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Extremely simplified PM alert mod.
I've seen a few different mods for making the PM give some sort of visual alert to the user, but I was hoping to add something much simpler and less intrusive.
What I'd like to be able to do is add 1 small .gif to the left of the word "Private Message" whenever there is an unread message. And clicking on that .gif should simply link you to the private message center the same way clicking on "Private Messages" does. ...that's it. :squareeyed: No blinking, or listing of who the messages are from, or direct linking to profiles or messages. I'm just looking for something that gives the user a slightly less subtle alert than the bold private message text. I was going to try to modify a mod, but honestly I am not very good at coding. Does anyone know how to do this? Thanks! |
#2
|
|||
|
|||
Open the NAVBAR template and find this code:
Code:
<a href="private.php?$session[sessionurl]">$vbphrase[private_messages]</a> Code:
<if condition="$bbuserinfo['pmunread']"><img src="image1" alt="Unread PMs" /><else /><img src="image2" alt="No Unread PMs" /></if> edit: btw if you want it to just have an image for unread PMs and not for if there's none then use this: Code:
<if condition="$bbuserinfo['pmunread']"><img src="image1" alt="Unread PMs" /></if> |
#3
|
|||
|
|||
Hmmmm... I must be doing something wrong...
I've entered the following directly before the code you pasted above: Code:
<tr><td class="thead">$vbphrase[miscellaneous]</td></tr> <if condition="$show['pmstats']"><tr><td class="vbmenu_option"><if condition="$bbuserinfo['pmunread']"><img src="images/statusicon/pm_new.gif" alt="Unread PMs" /></if><a href="private.php?$session[sessionurl]">$vbphrase[private_messages]</a></td></tr></if> |
#4
|
||||
|
||||
This is what I use
find Code:
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if> Code:
<if condition="$bbuserinfo[pmunread] == 0"> <img src="http://www.yourwebsite.com/forums/images/misc/pmoff.gif"> <else /> <img src="http://www.yourwebsite.com/forums/images/misc/pmon.gif"> </if> pmoff pmon the pmon is animated, so it gets your attention. |
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
That works great Tomshawk... Thanks you very much!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|