Author |
Topic  |
|
thermal_seeker
Junior Member
 
United Kingdom
430 Posts |
Posted - 11 April 2010 : 18:09:29
|
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
|
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.” |
 |
|
thermal_seeker
Junior Member
 
United Kingdom
430 Posts |
Posted - 12 April 2010 : 09:58:07
|
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 !! |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
|
thermal_seeker
Junior Member
 
United Kingdom
430 Posts |
Posted - 12 April 2010 : 12:41:52
|
No Huw, they are unapproved
Dave |
No good at coding, but I can plough a field !! |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
Posted - 12 April 2010 : 13:31:07
|
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 |
 |
|
thermal_seeker
Junior Member
 
United Kingdom
430 Posts |
Posted - 12 April 2010 : 14:59:39
|
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 !! |
 |
|
HuwR
Forum Admin
    
United Kingdom
20600 Posts |
|
|
Topic  |
|