Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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 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.

Sponsored Links
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 thumbsup


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Offline
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

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
ok, it's official, I have no clue how to do that frown

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
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
[/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

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
CTM Offline
Moderator / Da Masta
Moderator / Da Masta
Offline
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" wink

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
updated txt, now final. post any problems you have with it smile

Joined: Aug 2001
Posts: 103
Member
Member
Offline
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
Offline
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
Offline
Joined: Nov 2003
Posts: 13
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

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
updated smile download the one marked 6.7

Joined: Nov 2003
Posts: 13
Junior Member
Junior Member
Offline
Joined: Nov 2003
Posts: 13
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 )

Joined: May 2001
Posts: 684
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 684
Hi is it possible that users can chosse at their profile if users whant the pop-up or not?


Webmaster of d-talk & Kabel-Forum.com
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Offline
Joined: Nov 2003
Posts: 156
School isn't important ;-)

What's important is to change a pop-up to "Open PM in new Window" tipsy

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
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
Offline
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
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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

Joined: Jul 2002
Posts: 42
Member
Member
Offline
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
Offline
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
Offline
Joined: Jul 2002
Posts: 42
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


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)