The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
PM RedAlert - show unread PMs on every page Details »» | |||||||||||||||||||||||||||
PM RedAlert - show unread PMs on every page
Developer Last Online: Jun 2004
Disclaimer:
-No support is offered for this hack. If you PM or email for support, it will be joyfully ignored. When I have time, I will answer questions in this thread. PM RedAlert Problem: PM Popups are OK but not everyone likes them or uses them. Sometimes you'll cancel them and forget you have new ones to read. Solution: If your site has a "Private Messages" link on every page, like mine, then an effective way to notify people that they have new PMs is to subtly change that link. PM Popup will still work if they have that activated.. and this is not like Chen's hack since that is only concerned with the index page. This hack is meant for site wide private message links that you would likely have in the header. (See attached screenshot) Design Spec: Alert users that they have new PMs on every page by subtly changing a link style. Steps for installation: -add one field to table user 'unreadpm' -edit two files 'private.php' 'private2.php' -upload the two files -edit header Tested on: 2.2.1 Show Your Support
|
Comments |
#22
|
|||
|
|||
could someone explain how to use a image? i can not figure it out and would really like to add this to my site
right now i have a image in the header that points to the members PM. how would i change this to another image (a flashing image) when that user has a new PM this is a great hack just stuck on the end part thanks |
#23
|
|||
|
|||
Quote:
already have a PM image and a flashing PM image all ready to go! maybe some of the more experience guys can help us out. |
#24
|
|||
|
|||
bump to the top for some answers
thanks |
#25
|
|||
|
|||
went with just the straight text to make sure this hack was working correctly before trying to change it over to a gif.
the text highlights only on the first page loaded when there is a new PM. hit i hit another page then the text is no longer highlighted even when i still have unread PM's any suggestions or ideas? |
#26
|
|||
|
|||
anyone?
|
#27
|
|||
|
|||
To Trainer:
This is how u add the blinking imgae: PHP Code:
|
#28
|
|||
|
|||
Quote:
how do i call it in the header? using pm-button.gif as the non-flashing button using pm-button_ani.gif as the flashing button |
#29
|
||||
|
||||
Still no straight answer..
Where is this supposed to go!?? 4) Change your site-wide Private Messaging link. Mine is located in my PHP parsed header file and I do something like this: if ($bbuserinfo[userid] > 0 and $bbuserinfo[pmunread]==1) $pmstyle=" style=\"color:#ffdc00;\"";" |
#30
|
||||
|
||||
Anyone?
I don't understand how this can be called a final release when there are no instructions on where to place the last peice of code. I'm using an animated .gif. Currently I just have a simple edited header template that shows a button and link to PM's. I've tried to place Code:
if ($bbuserinfo[userid] > 0 and $bbuserinfo[pmunread]==1) $pmstyle="{ imagesfolder }/pmgif1.gif" { else } $pmstyle="{ imagesfolder }/pmgif.gif" <a href="private.php?s=$session[sessionhash]"><img src="$pmstyle" alt="Here you can view your private messages" border="0"></a> Into the header but as you can tell it will not work. Any help on this half released mod would be appreciative. |
#31
|
||||
|
||||
Quote:
Your hack works well if you're a registered user on the forum. But when you're not logged in (guest user), the status will show, that you have unread private messages! Weird :-) I don't think thats ok, do you think you can solve that matter/problem? Thanks in advance... |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|