Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Disable checkbox: approved pending members

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
gary b Posted - 24 July 2007 : 23:31:04
When you are using 'email validation' and 'require registration', visitors "apply for membership" -- that is, they "register". Admins are presented with a list of 'pending members'.

If you 'approve' one (or more) pending memberships, email notification is sent. When the Accounts Pending screen refreshes, the "Approved?" column displays the word 'Yes'. However, the checkbox (used to select applicants for approval or deletion) is still there. Since an approval email has already been sent, I do not want to (incorrectly) click the checkbox of an applicant that has already been approved -- possibly sending a second email to applicant. My remedy: Hide the checkbox for applicants who have already been approved!

This 'mod' requires changes to only two lines of code. If you want to disable the checkbox for 'approved' applicants, follow the instructions below.
Be careful of line wraps.
Find these 2 lines of code in ADMIN_ACCOUNTS_PENDING.ASP (approx Ln 434)

Response.Write " <td bgcolor=""" & CColor & """ align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """><input type=""checkbox"" name=""id"" value=""" & MP_MemberID & """ onclick=""Toggle(this)""></font></td>" & vbNewLine & _

" </tr>" & vbNewLine

REPLACE THE 2 LINES ABOVE WITH THE FOLLOWING SEVEN LINES OF CODE:
if MP_MemberApprove = 1 then
Response.Write " <td bgcolor=""" & CColor & """ align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """> </font></td>" & vbNewLine & _
" </tr>" & vbNewLine
else
Response.Write "<td bgcolor=""" & CColor & """ align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """ color=""" & strForumFontColor & """><input type=""checkbox"" name=""id"" value=""" & MP_MemberID & """ onclick=""Toggle(this)""></font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if


That's it... The checkbox beside applicants that have been approved is hidden.

Caution: Make a backup copy of Admin_Accounts_Pending.asp before changing the code.

Note: Tested on Snitz v3.4.06

Email me if you have questions or have a problem.<
8   L A T E S T    R E P L I E S    (Newest First)
PPSSWeb Posted - 25 July 2007 : 15:24:14
Actually, I just looked at the code for the pending page and the check is already there. It should only send out an email to approved members if they have never been approved before. Otherwise, it goes through the motions, but the following checks bypass the email sending portions for already approved users.

Approve all:
				if MP_MemberApprove = 0 then
'## E-mails Message to all pending members.


Approve selected:
			if not(rsApprove.EOF) and not(rsApprove.BOF) and rsApprove("M_APPROVE") = 0 then
'## E-mails Message to all pending members.


So this should be a non-issue. It will appear to the admin that the emails are being sent again, but they should not be getting sent unless you changed the code.

thermal_seeker,
The reminder email MOD uses the exact opposite check to make sure the user is already approved before sending out the reminder emails.
<
thermal_seeker Posted - 25 July 2007 : 14:14:27
Would that check not conflict if you have the reminder email MOD??<
PPSSWeb Posted - 25 July 2007 : 13:48:06
Why not change the "yes" to a different color to make it stand out more. Or put a check in the approve function that will bypass the email portion if the user has already been approved?<
Shaggy Posted - 25 July 2007 : 12:44:56
Well, it was something you needed on your forums so there's nothing to say that someone else won't have similar need for it as well.

<
gary b Posted - 25 July 2007 : 12:28:45
Hmmm.. I did NOT think about that. Good point... Oh, well... the idea sounded good! It appeared to be a viable way to preclude duplicate 'approval' emails in a multi-Admin forum.

Shaggy or Anon... why don't ya just delete this post. I don't want anyone to use what is turning out to be a not-so-good idea.

I guess we'll just have to pay closer attention to the display... Approved? = Yes/No

Thanks for the input, guys...<
AnonJr Posted - 25 July 2007 : 09:16:31
Its also worth noting that you'll need the check box to activate the account if they are having trouble with the e-mail not getting through and/or problems with the URL being wrapped/truncated by their e-mail client.... or any of a number of other odd situations.<
gary b Posted - 25 July 2007 : 07:16:36
Hi Shaggy...

Yes, I thought about that. If 'approved' applicant completes registration, the name is automatically removed. If he/she never completes registration, that name will have to be deleted from pending members. SOP for our forum is to delete 'approved' (but unregistered after 30 days) applicants using Delete All Pending Members. This clears out the bot-initiated applications and approved but unfinished applications.

Thanks for the observation, Shaggy. Have a good day.

[Edit: Just getting up... need more coffee!!]<
Shaggy Posted - 25 July 2007 : 04:04:00
You're still going to need that checkbox if you want to delete a member after approving them.

<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000 Version 3.4.07