Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - stumped by blnModerator
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

stumped by blnModerator

 Post Reply Post Reply Page  12>
Author
kpdillon View Drop Down
Groupie
Groupie


Joined: 29 December 2006
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote kpdillon Quote  Post ReplyReply Direct Link To This Post Topic: stumped by blnModerator
    Posted: 01 January 2007 at 5:44pm

Setting a user to a moderator enables the moderator functions as I can tell OK but when I look at the value of the variable (when logging in with a test moderator account and printing the variable value with a response.write, it always shows false... Any ideas why?  The BlnAdmin variable shows true when apprioriate OK.

Back to Top
Ali Bilgrami View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 April 2005
Location: Pakistan
Status: Offline
Points: 492
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ali Bilgrami Quote  Post ReplyReply Direct Link To This Post Posted: 01 January 2007 at 6:02pm
try "moderate forum" enabling in the admin->permissions section
Lets!
Back to Top
kpdillon View Drop Down
Groupie
Groupie


Joined: 29 December 2006
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote kpdillon Quote  Post ReplyReply Direct Link To This Post Posted: 01 January 2007 at 6:09pm
Sorry, I'm confused by your reply.  Isn't adding a member to the moderator group sufficient?  All the moderator functions (edit, hide) etc seem to work ok when they are part of the moderator group... blnModerator is just not getting set to true...
Back to Top
-koen- View Drop Down
Groupie
Groupie
Avatar

Joined: 22 February 2006
Location: Netherlands
Status: Offline
Points: 54
Post Options Post Options   Thanks (0) Thanks(0)   Quote -koen- Quote  Post ReplyReply Direct Link To This Post Posted: 02 January 2007 at 9:33am
blnModerator is set by the database, if there's no forum where he is mod blnModerator will be 0

I'm not sure how it works at all (Guess in wich forum you are it will look)
But try sometimes and watch you forum admin settings
Don't check me english spelling please...
Back to Top
kpdillon View Drop Down
Groupie
Groupie


Joined: 29 December 2006
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote kpdillon Quote  Post ReplyReply Direct Link To This Post Posted: 02 January 2007 at 2:26pm

I never see blnModerator set to True!  It's always false... Strangely roles with moderator including admin work OK and blnModerator is still False.... How can this be?

Back to Top
kpdillon View Drop Down
Groupie
Groupie


Joined: 29 December 2006
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote kpdillon Quote  Post ReplyReply Direct Link To This Post Posted: 02 January 2007 at 6:20pm
All, I want to do is a little if blnModerator logic on the default.asp page...
Back to Top
kpdillon View Drop Down
Groupie
Groupie


Joined: 29 December 2006
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote kpdillon Quote  Post ReplyReply Direct Link To This Post Posted: 02 January 2007 at 6:55pm
OK, so it looks like blnModerator is set to false for the default.asp page probably because a moderator wouln't have any moderator like functions on this page.  So the question is, if you wanted to display a table such as last 5 posts but you only wanted the admin and the moderator to see it, how would you do this?  blnAdmin seems to work fine, but it would be nice to show the moderators the same table....
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 03 January 2007 at 2:45am
To populate the blnModerator variable you have to run the forumModerator (or something like that) function. You need to dig into the code to figure out how the moderator permissions work. Its not as easy as just using the built in variables.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.