![]() |
New PM Alert (Replacement For PM Popup)
This is a port of this:
https://vborg.vbsupport.ru/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:
// new private message script Replace with: ------------- Code:
// new private message script Find: ------------ Code:
// ############################################################################# Replace with: ------------- Code:
// get new private message alert - hack Find: ----------- Code:
if ($shownewpm) ------------- Replace with: ------------- Code:
if ($shownewpm) /* - end file edits, now for the templates!: --------------------- Open template: navbar --------------------- At the very end of the template add: Code:
<br /> Add new template: pm_new_globals -------------------------------- Populate it with: Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> |
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.
|
Any screenshots of what it will look like?
|
There's a screenshot in the original post I linked to:
https://vborg.vbsupport.ru/attachmen...chmentid=15599 |
Nice...
|
Quote:
|
Quote:
|
THX for this modification...
Is there a chance to hold the pm alert on top until the pm is viewed? Like here: https://vborg.vbsupport.ru/showpost....2&postcount=27 C. |
I'll look into it.
|
/me saves for later
|
Quote:
if ($vbulletin->userinfo['pmunread'] >= 1) and unread pm's will alway appear. Also, it doesn't matter what their popup option is set to. |
All times are GMT. The time now is 08:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|