PDA

View Full Version : New PM Alert (Replacement For PM Popup)


.Tim
04 Dec 2005, 00:01
This is a port of this:

http://www.vbulletin.org/forum/showthread.php?t=59890

Not much was changed from the original, other than a few minor code changes. Don't know if it was done in the best way but it works. :D I don't know of a way this could be done without file edits. If anyone has any ideas, they're more than welcome. And I also plan on making this optional for users, so they can decide if they want this or the normal popup.

-------------------
Open root/global.php
-------------------
------------
Find:
------------



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



-------------
Replace with:
-------------



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



------------
Find:
------------



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



-------------
Replace with:
-------------



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



-----------
Find:
-----------



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




-------------
Replace with:
-------------



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




/* - end file edits, now for the templates!:

---------------------
Open template: navbar
---------------------

At the very end of the template add:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



--------------------------------
Add new template: pm_new_globals
--------------------------------

Populate it with:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

.Tim
04 Dec 2005, 00:09
If you have vbadvanced installed, it still shows the normal popup on your homepage. But works correctly in the forum. Why it does this I don't know but I'm looking into it.

Daniel
04 Dec 2005, 01:00
Any screenshots of what it will look like?

.Tim
04 Dec 2005, 01:02
There's a screenshot in the original post I linked to:

http://www.vbulletin.org/forum/attachment.php?attachmentid=15599

Snake
04 Dec 2005, 13:37
Nice...

ged
05 Dec 2005, 04:30
If you have vbadvanced installed, it still shows the normal popup on your homepage. But works correctly in the forum. Why it does this I don't know but I'm looking into it.You probably need to edit vbadvanced's header templates of files, I'm not exactly sure which is correct.

.Tim
05 Dec 2005, 04:37
You probably need to edit vbadvanced's header templates of files, I'm not exactly sure which is correct.

Yeah I asked at their board and will mess around with it later.

Chris-FH
05 Feb 2006, 00:28
THX for this modification...

Is there a chance to hold the pm alert on top until the pm is viewed? Like here:

http://www.vbulletin.org/forum/showpost.php?p=459112&postcount=27

C.

.Tim
05 Feb 2006, 01:53
I'll look into it.

Smiry Kin's
05 Feb 2006, 03:20
/me saves for later

OneFastM3
25 Aug 2006, 01:45
THX for this modification...

Is there a chance to hold the pm alert on top until the pm is viewed? Like here:

http://www.vbulletin.org/forum/showpost.php?p=459112&postcount=27

C.

Replace his if statement with:

if ($vbulletin->userinfo['pmunread'] >= 1)

and unread pm's will alway appear. Also, it doesn't matter what their popup option is set to.