UBB.Dev
Modification Name: PM Notification Addon

Author(s): Weird Al

Description: Will create a popup telling a member that he has a new PM

Demo: http://www.alforadmin.com/_personal/pmnot.gif

Requirements: Valid UBB.classic license

Download Links:
[6.5 - 6.6] here
[6.7] here

Credits: LK for a little code from the shoutbox. Charles Capps for not letting me settle for the easy way tipsy . CTM for the "pseudocode", and Allen for using thumbsup far too much wink

Notes: This will not work on 6.4 and lower, because this needs the base code from 6.5. I cannot support any ports to users using the PM Inbox hack.

Amendments: No longer uses the body code, and is used right beforethe closing html tag, so that the whole page will load before the popup.
nice one Al thumbsup
thanks, I'm looking at adding 1 more version of it. It will take you straight to check your PMs when you click ok. I just don't know how to make the OK button make you go to your profile
This adds a body tag to the page, which may break it.

Instead, create a new JS variable and set it to 1 when there are PMs. Add new code at the bottom of the page (in the Footer) that then checks the variable and causes the alert if it's 1. No messy tag hacks thatway.
ok, I'll look into that, I'm very new with javascript (if that's what JS means). Would I use the same code (the body part), but it won't mess anything up cause it's after everything else?

I'm sorry about this, I'm just learning
ok, it's official, I have no clue how to do that frown
I guess you could move this to requests, cause I'd still like to have this hack.
To do what Charles said to do isn't too hard, really... JS is executed in the order it appears in the HTML, so instead of this:

Code
[/code]Use this:

Code
</pre></div></div>And near the end (by the closing HTML tag) add this:<br><br>[code]
Untested, but it should work... Alternatively you may just be able to check if the JS variable haspms exists at the bottom, it'd save on one line of code smile

But yeah, good job and a great idea, which could possibly even be included in the stock code and turned on/off from the CP... smile
it wouldn't work for me, does it work for anyone else?
That's really just pseudocode, I'm not great when it comes to JS so there might be something wrong in there... I think I should leave it for someone else to "proof-read" wink
can anyone help with this?
updated txt, now final. post any problems you have with it smile
yeah, i used the beta code when you first posted this.
do you have the instructions on what to cut and paste over from the beta version since i do not have the original file anymore?
updated txt to include both upgrade and fresh install instructions. if there is any confusion, just reply here, and I'll help
Any chance of this hack being upgraded to 6.7?

In Step 2. you are to find:

Quote
quote:

~ unless ($vars_registration{DisplayRegistration} ne "YES");

The closest I can find to this is on line 317.
quote:
[qb]if($vars_registration{DisplayRegistration} eq "NO") {[/qb]
I have tried messing with this on a test install of 6.7 Beta release 1 with some unpredicable results.

I am a complete newbe with Perl and am working through the Llama book right now. Next will be the Camel. thumbsup

This looks like it should not be a major problem for one of you expert "Haxxors". If you happen find the time to look into this, I'd be ever so grateful. laugh

thanks
updated smile download the one marked 6.7
Thank-you ever so much. thumbsup

Not only will this help me get the hack installed, it will serve as a lesson in Perl. wink

The code is ugly as hell, but I do like its power and flexability. (Perl that is... Not your hack. laugh )
Hi is it possible that users can chosse at their profile if users whant the pop-up or not?
not as of now, it would require a rewrite that I don't have time for right now
School isn't important ;-)

What's important is to change a pop-up to "Open PM in new Window" tipsy
Can't do that for many reasons.

1. I don't get that kind of information with PM Notification, only the number of PMs.

2. If 9 PMs... a lot of windows.

3. I've actually had it requested that it never do that, cause many find it frustrating being forced to view the PM
I surf pirate4x4.com a lot. Their PM notification pops up with "You have new Private Massages. Open in new window?" and buttons for OK and Cancel. If you hit OK, it just takes you to your PM page to list all of them. ;-)
Quote
Originally posted by PhillipBurum:

I surf pirate4x4.com a lot. Their PM notification pops up with "You have new Private Massages. Open in new window?" and buttons for OK and Cancel. If you hit OK, it just takes you to your PM page to list all of them. ;-)
Added for 6.7 version. smile
Hmmmmm...my old PM folders worked fine on 6.5, but for some reason something doesn't look right on 6.7.1.

Certain areas, the colors are off.

There is no outline trim around the folders and in the inbox the words "Subject", "From:", "Date:" are the same color as the header strip.

I've tried to change them in the "Style" section but that doesn't work either.

If anyone has the time, would you please take a look and offer any suggestions.

http://www.ronaldreagan.com/ubb/ultimatebb.php

Login = Tester3
Password = testing

I've tried reinstalling it 3 times and I keep getting the same results.

Thanks in advance for any help anyone can offer.
This isn't the right topic for that. PM Folders is a different mod altogether.
Quote
Originally posted by Ian Spence:

This isn't the right topic for that. PM Folders is a different mod altogether.
Eek, my apologies...I clicked on the wrong thread. shocked
© UBB.Developers