Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (SteveS, Gizmo), 33 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/07/07
Posts: 4
Top Posters (30 Days)
Ruben 51
Gizmo 24
DennyP 24
Dunny 15
SteveS 14
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#192428 - 07/22/07 04:35 PM [FIXED for 7.3] [7.2] Admin+Moderator=2 notifies
Yarp™ Offline
Registered: 08/30/06
Posts: 1513
Loc: Breda, NL
When you are admin and set the option "Do you want to be notified when a user uses the Notify Post option? Normally these are just sent to Moderators." you get double notifies if you are also set as moderator for a certain forum.

Not unlikely to set yourself as moderator for visibibility reasons.

my fix?

change
 Code:
	        $notify_array[] = $admin;;


into:

 Code:
	        if (!in_array($admin,$notify_array)) { $notify_array[] = $admin; };


You can also save a bit of duplicate code in there for the e-mailing by checking for an empty array, and if so, add the main admin id to the array.
_________________________
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#192542 - 07/23/07 12:00 PM Re: [7.2] Admin+Moderator=2 notifies [Re: Yarp™]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Thanks for the fix. Also made the change to remove the duplicate code.
Top
#192792 - 07/25/07 07:25 AM Re: [7.2] Admin+Moderator=2 notifies [Re: Rick]
Yarp™ Offline
Registered: 08/30/06
Posts: 1513
Loc: Breda, NL
 Originally Posted By: Rick
Thanks for the fix. Also made the change to remove the duplicate code.


I saw in the code if the main admin was not set, it would just take number 2, without a check if it was an admin or not. I would suggest a query that takes the first admin user from the userlist.

At our board user number 2 is an ex-admin who left.
_________________________
Top
#192839 - 07/25/07 07:20 PM Re: [7.2] Admin+Moderator=2 notifies [Re: Yarp™]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
I have a comment on that, why use user2? We have a superadmin field, why not use this?
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#192881 - 07/26/07 02:28 AM Re: [7.2] Admin+Moderator=2 notifies [Re: Gizmo]
Yarp™ Offline
Registered: 08/30/06
Posts: 1513
Loc: Breda, NL
 Originally Posted By: Gizmo
I have a comment on that, why use user2? We have a superadmin field, why not use this?


If you look at the code, it takes the super admin field, but if that field is not set, it will take blindly user #2, without any check if it's an admin or not.
_________________________
Top
#192888 - 07/26/07 03:19 AM Re: [7.2] Admin+Moderator=2 notifies [Re: Yarp™]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Ahh, well, then I'd say that'd be the admin's fault for not populating that field...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#198669 - 10/04/07 04:31 PM Re: [7.2] Admin+Moderator=2 notifies [Re: Gizmo]
Yarp™ Offline
Registered: 08/30/06
Posts: 1513
Loc: Breda, NL
It's not copy/pasted right for 7.2.2 Rick.

while(list($admin) = $dbh->fetch_array($sth)) {
if (!in_array(admin,$notify_array)) {

It's missing a $ there.
_________________________
Top
#200916 - 11/08/07 08:21 PM Re: [7.2] Admin+Moderator=2 notifies [Re: Yarp™]
SD Offline
Registered: 04/19/07
Posts: 4056
Loc: SoCal, USA
el fixo for 7.3 \:\)

also there is a dupe email check. \:\)
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
Yesterday at 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10489 Members
36 Forums
33841 Topics
181707 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image