|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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  . CTM for the "pseudocode", and Allen for using  far too much 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.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
nice one Al 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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
|
|
|
|
Joined: Jan 2000
Posts: 5,073
Admin Emeritus
|
Admin Emeritus
Joined: Jan 2000
Posts: 5,073 |
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.
UBB.classic: Love it or hate it, it was mine.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
ok, it's official, I have no clue how to do that 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
I guess you could move this to requests, cause I'd still like to have this hack.
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
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]Use this:
</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
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... 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
it wouldn't work for me, does it work for anyone else?
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
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" 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
can anyone help with this?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
updated txt, now final. post any problems you have with it 
|
|
|
|
Joined: Aug 2001
Posts: 103
Member
|
Member
Joined: Aug 2001
Posts: 103 |
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?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
updated txt to include both upgrade and fresh install instructions. if there is any confusion, just reply here, and I'll help
|
|
|
|
Joined: Nov 2003
Posts: 13
Junior Member
|
Junior Member
Joined: Nov 2003
Posts: 13 |
Any chance of this hack being upgraded to 6.7? In Step 2. you are to find: 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. 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. thanks
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
updated  download the one marked 6.7
|
|
|
|
Joined: Nov 2003
Posts: 13
Junior Member
|
Junior Member
Joined: Nov 2003
Posts: 13 |
Thank-you ever so much. Not only will this help me get the hack installed, it will serve as a lesson in Perl. The code is ugly as hell, but I do like its power and flexability. (Perl that is... Not your hack.  )
|
|
|
|
Joined: May 2001
Posts: 684
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 684 |
Hi is it possible that users can chosse at their profile if users whant the pop-up or not?
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
not as of now, it would require a rewrite that I don't have time for right now
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
School isn't important ;-) What's important is to change a pop-up to "Open PM in new Window" 
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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
|
|
|
|
Joined: Nov 2003
Posts: 156
Member
|
Member
Joined: Nov 2003
Posts: 156 |
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. ;-)
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
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. 
|
|
|
|
Joined: Jul 2002
Posts: 42
Member
|
Member
Joined: Jul 2002
Posts: 42 |
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.
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
This isn't the right topic for that. PM Folders is a different mod altogether.
|
|
|
|
Joined: Jul 2002
Posts: 42
Member
|
Member
Joined: Jul 2002
Posts: 42 |
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. 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|