Print Page | Close Window

stumped by blnModerator

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=22307
Printed Date: 08 April 2026 at 9:48am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: stumped by blnModerator
Posted By: kpdillon
Subject: stumped by blnModerator
Date 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.




Replies:
Posted By: Ali Bilgrami
Date Posted: 01 January 2007 at 6:02pm
try "moderate forum" enabling in the admin->permissions section

-------------
Lets!


Posted By: kpdillon
Date 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...


Posted By: -koen-
Date 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...


Posted By: kpdillon
Date 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?



Posted By: kpdillon
Date Posted: 02 January 2007 at 6:20pm
All, I want to do is a little if blnModerator logic on the default.asp page...


Posted By: kpdillon
Date 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....


Posted By: MadDog
Date 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.

-------------
http://www.iportalx.net" rel="nofollow">


Posted By: kpdillon
Date Posted: 03 January 2007 at 4:38am
But what I find interesting is that there is code in the default.asp that checks for blnModerator is true but it never is true on the default.asp page, so why is the code checking for it?


Posted By: -koen-
Date Posted: 03 January 2007 at 9:16am
You can use the groups on the defaultpage,
<% if intGroupID = 1 or intGroupID = 3 then %>
Some code to run then
<% End if %>


-------------
Don't check me english spelling please...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net