[RC] PM Notification (Complete Solution)

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

[RC] PM Notification (Complete Solution)

Post by jalaln » Thu Apr 05, 2007 9:08 am

MOD Title: PM Notification (Complete Solution).
MOD Description: Complete Solution for PM notifications (Alert box instead of Pop-up which will solve Pop-up blocking problems, and a red banner at the top).
MOD Version: 1.0.0 Final

Notes:
1. If your template's main css file is in a separated file (like in some other templates), then you should make step number two's changes there.
2. For those who want to force the PM alert box to show for everyone, delete lines: <!-- BEGIN switch_enable_pm_popup --> and <!-- END switch_enable_pm_popup -->

MOD Download:

Final version: http://www.mediafire.com/?zvp0j0gly1o

Screenshots:

Image

SubSilver template:
Image

DAJ_Glass template:
Image

That's all :).
Last edited by jalaln on Mon Mar 10, 2008 9:31 am, edited 11 times in total.
No more spambots for phpBB2 and phpBB3.

User avatar
lefty74
Registered User
Posts: 3649
Joined: Wed Sep 14, 2005 8:26 pm
Location: NL
Contact:

Re: [BETA] PM Notification (Complete Solution)

Post by lefty74 » Thu Apr 05, 2007 9:29 am

looks nice :)
lefty74
zoocrew.eu - help us save our wildlife
My MODS | Due to lack of time I unfortunately am unable to work on my mods anymore, anyone who has ideas to improve them and would like to take any of them over, please PM me.

Panthios
Registered User
Posts: 48
Joined: Mon Feb 28, 2005 12:13 am
Contact:

Re: [BETA] PM Notification (Complete Solution)

Post by Panthios » Thu Apr 05, 2007 11:11 am

This is awesome!

User avatar
Brf
Support Team Member
Support Team Member
Posts: 50712
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [BETA] PM Notification (Complete Solution)

Post by Brf » Thu Apr 05, 2007 11:25 am

Why are you deleting the switch_enable_pm_popup from the template? That would cause your confirm box (which replaces the popup) to interrupt the user even if he has unchecked the popup... I noticed you left the switch definition in the php script, even though you removed it from the template....

Also, your find and replaces should be in order... you have the "remove" for the end-switch before the code you are replacing, when it should be after. You are probably better off "replacing" the entire block, including the switches and have them omitted in the replacement code.

Panthios
Registered User
Posts: 48
Joined: Mon Feb 28, 2005 12:13 am
Contact:

Re: [BETA] PM Notification (Complete Solution)

Post by Panthios » Thu Apr 05, 2007 11:57 am

Could you make the red background table clickable that will take you to Indbox?

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [BETA] PM Notification (Complete Solution)

Post by jalaln » Thu Apr 05, 2007 12:06 pm

Brf wrote: Why are you deleting the switch_enable_pm_popup from the template? That would cause your confirm box (which replaces the popup) to interrupt the user even if he has unchecked the popup...

Yes, that's why. The alert box *will* prompt for everyone. So for sure he or she will get it.
Brf wrote: I noticed you left the switch definition in the php script, even though you removed it from the template....

Ok, I think the lines should not be deleted since there is an option "Pop up window on new Private Message" in the profile. I left it for if someone wants to re-add the switches in the .tpl he or she can easily put them back.
Brf wrote: Also, your find and replaces should be in order... you have the "remove" for the end-switch before the code you are replacing, when it should be after.

Yes, sorry, I've updated it.
Brf wrote: You are probably better off "replacing" the entire block, including the switches and have them omitted in the replacement code.

About the switch_enable_pm_popup switches, I don't know, I think it's better to remove them, for as I've just said, the PM notification alert box will prompt and therefore the user will for sure know about a new PM(s). What do you think?

Jalal
No more spambots for phpBB2 and phpBB3.

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [BETA] PM Notification (Complete Solution)

Post by jalaln » Thu Apr 05, 2007 12:22 pm

Panthios wrote: Could you make the red background table clickable that will take you to Indbox?

replace

Code: Select all

<br /><strong>{PRIVATE_MESSAGE_INFO}</strong><br />
with

Code: Select all

<br /><strong><a href="{U_PRIVATEMSGS}" class="pm">{PRIVATE_MESSAGE_INFO}</a></strong><br />
and replace

Code: Select all

.pm { color: #ffffff; background: #d3262a; border: 1px solid #000000; text-decoration: none}
with

Code: Select all

.pm { color: #ffffff; background: #d3262a; border: 1px solid #000000; text-decoration: none}
a.pm {text-decoration: none; color:white; border:0px}
a.pm:hover {text-decoration: none; color:white}
(or however you want)
No more spambots for phpBB2 and phpBB3.

User avatar
Brf
Support Team Member
Support Team Member
Posts: 50712
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [BETA] PM Notification (Complete Solution)

Post by Brf » Thu Apr 05, 2007 2:24 pm

jalaln wrote: Yes, that's why. The alert box *will* prompt for everyone. So for sure he or she will get it.


Well... The whole purpose of having the popup switch in the user Profile is so they can turn off the notification... Especially if they are on a busy board and getting pummeled with PMs every 2 minutes.

I think you are better off leaving the switch in the template so people can turn off the annoyance.

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [BETA] PM Notification (Complete Solution)

Post by jalaln » Thu Apr 05, 2007 3:00 pm

Brf wrote: Well... The whole purpose of having the popup switch in the user Profile is so they can turn off the notification... Especially if they are on a busy board and getting pummeled with PMs every 2 minutes.

I think you are better off leaving the switch in the template so people can turn off the annoyance.
Ok, you're right. MOD version updated :).

NOTE: For those who want to force the PM alert box to show for everyone, delete lines:
<!-- BEGIN switch_enable_pm_popup -->
AND: <!-- END switch_enable_pm_popup -->
No more spambots for phpBB2 and phpBB3.

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [BETA] PM Notification (Complete Solution)

Post by jalaln » Sat Jun 02, 2007 2:18 pm

In overall_header.tpl if you remove: <noscript> and </noscript> the table with red background will be displayed for both users who have JavaScript disabled or enabled and this is better.

PS: I am looking forward to release this MOD here, I know this is not at all a great MOD but I'm using it and it's very helpful and working great, till now all the PMs sent have been read by users. (before some PMs still unreadable even though users were logged in).

My questions: How do I validate/submit this MOD? I looked here http://www.phpbb.com/mods/db/ but couldn't fine out how... :roll:
No more spambots for phpBB2 and phpBB3.

User avatar
vrflyer
Registered User
Posts: 503
Joined: Mon Feb 17, 2003 8:27 pm

Re: [BETA] PM Notification (Complete Solution)

Post by vrflyer » Sun Jun 03, 2007 4:03 am

Yum - Yum - Tree! :lol:
Always Under Construction !

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [BETA] PM Notification (Complete Solution)

Post by jalaln » Sun Jun 03, 2007 4:49 am

vrflyer wrote:Yum - Yum - Tree! :lol:
what is that supposed to mean? :roll:
No more spambots for phpBB2 and phpBB3.

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [BETA] PM Notification (Complete Solution)

Post by jalaln » Sun Jun 03, 2007 4:52 am

<I've accidentally double posted> sorry!
No more spambots for phpBB2 and phpBB3.

RLHoldenSr
Registered User
Posts: 140
Joined: Mon May 07, 2007 2:48 pm
Location: Texas
Name: Robin Holden Sr
Contact:

Re: [RC] PM Notification (Complete Solution)

Post by RLHoldenSr » Thu Jun 07, 2007 6:41 pm

Did you make a single download for this mod?
Rather a pain to click and copy it and all of these changes and get it right.

User avatar
jalaln
Registered User
Posts: 1076
Joined: Tue Jul 05, 2005 5:05 am

Re: [RC] PM Notification (Complete Solution)

Post by jalaln » Thu Jun 07, 2007 8:04 pm

RLHoldenSr wrote:Did you make a single download for this mod?
Rather a pain to click and copy it and all of these changes and get it right.
I always update the first post for changes. The code in the first post is latest version.
No more spambots for phpBB2 and phpBB3.

Post Reply

Return to “[2.0.x] MODs in Development”

Who is online

Users browsing this forum: No registered users and 21 guests

cron