Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 pending member notification
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

thermal_seeker
Junior Member

United Kingdom
430 Posts

Posted - 11 April 2010 :  18:09:29  Show Profile
I have just noticed that I do not have the pending member notification on the default page (logged in as admin) Which chunk of code and in which file triggers this?? I must have changed something without noticing when I was adding a mod

Thanks

Dave

No good at coding, but I can plough a field !!

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 12 April 2010 :  04:48:32  Show Profile
It's in inc_header.asp. In a fresh install, it's on line 413, highlighted in green below:
	if (mlev = 4) or (lcase(strNoCookies) = "1") then
		Response.Write	"        <tr>" & vbNewLine & _
				"          <td align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><a href=""admin_home.asp""" & dWStatus("Access the Forum Admin Functions...") & " tabindex=""-1"">Admin Options</a>"
		if mLev = 4 and (strEmailVal = "1" and strRestrictReg = "1" and strEmail = "1" and User_Count > 0) then Response.Write(" | <a href=""admin_accounts_pending.asp""" & dWStatus("(" & User_Count & ") Member(s) awaiting approval") & " tabindex=""-1"">(" & User_Count & ") Member(s) awaiting approval</a>")
		Response.Write	"<br /><br /></font></td>" & vbNewLine & _
				"        </tr>" & vbNewLine
	end if

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

thermal_seeker
Junior Member

United Kingdom
430 Posts

Posted - 12 April 2010 :  09:58:07  Show Profile
Thanks for that Shaggy, that's pretty much what I have. I have cleared cache etc but still don't see it although if I go into admin options I see 2 pending members.

could anything else be causing it not to trigger??

inc_header.txt

Dave

No good at coding, but I can plough a field !!
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 12 April 2010 :  11:44:38  Show Profile  Visit HuwR's Homepage
have they been approved? only unapproved pending registrations appear in the header

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

thermal_seeker
Junior Member

United Kingdom
430 Posts

Posted - 12 April 2010 :  12:41:52  Show Profile
No Huw, they are unapproved

Dave

No good at coding, but I can plough a field !!
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 12 April 2010 :  13:31:07  Show Profile  Visit HuwR's Homepage
ok, your problem maybe in the section where it does the user_count check (starting line 206 in standard Snitz, but line 232 in your inc_header) in a standard Snitz the first line of the section is

if mLev = 4 and strEmailVal = "1" and strRestrictReg = "1" and strEmail = "1" then
but in yur code you have an extra parameter in the if
if mLev = 4 and aAllowed>0 and strEmailVal = "1" and strRestrictReg = "1" and strEmail = "1" then

so maybe aAllowed is not > 0 and therfore user_count is not being set corectly. what is aAllowed ?

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page

thermal_seeker
Junior Member

United Kingdom
430 Posts

Posted - 12 April 2010 :  14:59:39  Show Profile
Huw, you are a credit to the Snitz Community, the minute I saw aAllowed I knew where I had gone wrong.
aAllowed is part of the admin levels mod which I had on a forum a couple of years ago but working with PPSSWeb changed to allow moderators to have a bit more freedom without the extra admin stuff the mod supplies.
I have just removed the offending parts and we now have the "members waiting approval" line back.
I think some aAllowed loose code may also be the problem that is stopping the usergroups/file upload from tying together.

Thanks once again

Dave

No good at coding, but I can plough a field !!
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 12 April 2010 :  17:08:44  Show Profile  Visit HuwR's Homepage
no problem, glad to point you in the right direction

MVC .net dev/test site | MVC .net running on Raspberry Pi
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.33 seconds. Powered By: Snitz Forums 2000 Version 3.4.07