|
CYB3RD0M1N10N
SITE OWNER


Joined: 03 Jun 2006
Posts: 370
|
Posted:
Wed Mar 07 2007 11:48 am Post subject:
User PM POPups activated |
|
|
User PM POPups activated
I activated "user_popup_pm", which is a feature of phpBB that tells the user they have a new private message, in a popup window when they login. The problem is with many browsers these days, popups are just plain blocked. This makes this useful ferature very useless. So I added a mod today that will replace the old phpBB code with a new javascript code that will launch a dialog box instead of a popup window. This works amazingly well!
What it does is, every time there is a private message for you, you get the dialog box to remind you how many private messages you have waiting for you. You can choose to go directly there to read them or cancel and read them another time.
Well not everyone had this feature turned on. Probably because it was useless.
Today I wrote a little SQL hack and inserted it into the GM's database:
Code: |
UPDATE GM4ever_users SET user_popup_pm = REPLACE (
user_popup_pm,
"0",
"1"
)
|
That little piece of code is responsible for resetting every single member that had their "user_popup_pm" setting set to false.
It is now set to true, which means if you have a new private message, regardless of what browser you have, you will get a dialog and it will never be blocked by a popup blocker. _________________
Xan “CYB3RD0M1N10N” Carrico. COD Gamer, YouTube & Twitch
Streamer, Game Developer, Ethical Hacker. From Chico California. |
|