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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Moderator Options Mod
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 02 April 2001 :  19:20:05  Show Profile
Yep, you totally confused me.

But the way I think it should be is, if the user is an admin, they can access the moderator files without loggin in again to access the modetator files. All you would have to do is an "if mLev = 4 then" check or check to see if the "Session(strCookieURL & "Approval") = "15916941253" is set.
If the mLev is 4 or the Session is set, then they are an admin and you show them the necessary code.
If the mLev is not 4, the admin Session isn't set, they aren't an admin. Then you would do another check to see if the Moderator Session is set. If it isn't, you send them to the moderator login.

Go to Top of Page

Rob Poretti
Junior Member

Canada
435 Posts

Posted - 02 April 2001 :  19:50:24  Show Profile  Visit Rob Poretti's Homepage
Hmmm...this is funny! ... I was just about to start on this exact same mod... (Right Davio! I see you're proposing the "GOR approved" serial number 21986524738! )

I'll take a look at what you have Rick -- before I start... won't be till tomorrow though. I'm fixing some other bugs right now.

Good luck though, a worth while mod.

'Till then...

Cheers

Rob Poretti
Sascom Marketing Group ~ Toronto
vox.905.825.5373 fax.905.825.5960

Edited by - Rob Poretti on 02 April 2001 19:50:59
Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 02 April 2001 :  20:13:56  Show Profile  Visit rick7165's Homepage
Rob.... Big9erfan has been working on this and got it working! Just don't know where to start
on how to do it but I will try...

First redownload the zip file. unzip them into your forums directory.
then change the bit of code in the inc_top.asp that's posted in the first post.

Ok.. Here is a example of the admin_config_badwords.asp file:

You need to change this:

<% If Session(strCookieURL & "Approval") = "15916941253" Then %>

To This:

<% If Session(strCookieURL & "Approval") = "15916941253" Or Session(strCookieURL & "Approval") = "15916941250" Then %>

Then change this:

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="admin_home.asp">Back To Admin Home</font></a></p>
<% else %>

To This:

<%
if Session(strCookieURL & "Approval") = "15916941250" Then
Response.Write "<meta http-equiv='Refresh' content='2; URL=moderator_home.asp'>"
%>

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Congratulations!</font></p>

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="moderator_home.asp">Back To Moderator Home</font></a></p>
<%
else
Response.Write "<meta http-equiv='Refresh' content='2; URL=admin_home.asp'>"%>
<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Congratulations!</font></p>

<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="admin_home.asp">Back To Admin Home</font></a></p>


<% end if%>

<% else %>

Last but least change this:

<% Else %>
<% Response.Redirect "admin_login.asp" %>
<% End IF %>

To this:

<% Else %>
<%
if mLev = 2 Then
Response.Redirect "moderator_home.asp"
else
Response.Redirect "admin_home.asp"
end if
End IF%>


You can do this to any file you want the Moderators to acess



Test Site
www.eastpasco.com
Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.




Edited by - rick7165 on 02 April 2001 20:39:17

Edited by - rick7165 on 02 April 2001 21:06:00
Go to Top of Page

MisterVB
Junior Member

274 Posts

Posted - 03 April 2001 :  05:14:28  Show Profile  Visit MisterVB's Homepage
Okay that worked great for security issues but theres stilla problem, the treeview still says admin and if you click it it goes to the admin login screen. Which is good security wise but in order to get back to the moderators home they need to click the moderators text, this is very minor but if you have a section for moderators like view email, update counts, avatar and poll then it doesn't meta refresh to the moderators home so the tree view addition would make this kick ass mod complete. I love this mod, it's small compared to some but definitely great. Possibly in the future it could be edited to give each moderator there own moderators home with different features for each moderator.. Sort of like different levels for each moderator, the higher the level the more features they recieve. Hopefully someone will take my idea and put it into a working mod.

Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 03 April 2001 :  09:29:52  Show Profile  Visit rick7165's Homepage
Hmmmmm The tree view was a over look... Not sure about the refresh I'll look into it.

The mods that are in the Moderators Home page are examples because most people don't have these mods.

Thanks I made this mod to work for me it's something I really needed and thought I'd pass on the information...
The Levels you are talking about would invole major coding because you would have to modify every admin file
just like you did to the badwords mod. This one was easy because it's only 1 page. The emaillist would
be a monster because it's a couple of pages as is the Avatar mod etc... To get the Levels you want to work would be
as Job!
Maybe someone could go from here? This mod is not going to be for everyone because of the code changes needed
each file you want to use.

But my emails will climb down because my moderators can now do stuff!! They email me about 24/7 then I have
to stop what I'm doing and do what they need done!

Rick


Thanks,
Rick

quote:

Okay that worked great for security issues but theres stilla problem, the treeview still says admin and if you click it it goes to the admin login screen. Which is good security wise but in order to get back to the moderators home they need to click the moderators text, this is very minor but if you have a section for moderators like view email, update counts, avatar and poll then it doesn't meta refresh to the moderators home so the tree view addition would make this kick ass mod complete. I love this mod, it's small compared to some but definitely great. Possibly in the future it could be edited to give each moderator there own moderators home with different features for each moderator.. Sort of like different levels for each moderator, the higher the level the more features they recieve. Hopefully someone will take my idea and put it into a working mod.





Test Site
www.eastpasco.com
Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.

Edited by - rick7165 on 03 April 2001 09:31:28
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 03 April 2001 :  09:48:14  Show Profile
for the refresh you need to change if mLev = 2 to if mLev = 3
Go to Top of Page

DudeSicko
Starting Member

Denmark
2 Posts

Posted - 04 April 2001 :  10:59:44  Show Profile  Visit DudeSicko's Homepage
Now is this mod working?

Can i DL it now without the security hole?
Go to Top of Page

MisterVB
Junior Member

274 Posts

Posted - 04 April 2001 :  12:49:15  Show Profile  Visit MisterVB's Homepage
mlev = 3 would refrsh it to the admins login page every time the moderator finished updating something. Right now it seems to be working perfectly except the minor tree view thing.

Go to Top of Page

DudeSicko
Starting Member

Denmark
2 Posts

Posted - 04 April 2001 :  12:51:28  Show Profile  Visit DudeSicko's Homepage
Ok, thx.

Go to Top of Page

mark
Starting Member

46 Posts

Posted - 09 April 2001 :  04:44:17  Show Profile  Send mark an ICQ Message
i'm comfuse. need help.

1.) Is the script working?
2.) What asp files are to be edit?

im the king of the world
Go to Top of Page

Rob Poretti
Junior Member

Canada
435 Posts

Posted - 02 June 2001 :  23:06:07  Show Profile  Visit Rob Poretti's Homepage
Here's the way I dealt with tree view thing:


<% if mlev = 3 then %>
<img src="icon_blank.gif" height="15" width="15" border="0"><img src="icon_folder_open.gif" height="15" width="15" border="0"> <a href="moderator_home.asp">Moderator Section</a><br>
<% else %>
<img src="icon_blank.gif" height="15" width="15" border="0"><img src="icon_folder_open.gif" height="15" width="15" border="0"> <a href="admin_home.asp">Admin Section</a><br>
<% end if %>


Works fine...

Rob Poretti
Sascom Marketing Group ~ Toronto
vox.905.825.5373 fax.905.825.5960
Go to Top of Page

Rawly
Starting Member

United Kingdom
41 Posts

Posted - 07 June 2001 :  14:31:02  Show Profile  Visit Rawly's Homepage  Send Rawly an AOL message  Send Rawly an ICQ Message  Send Rawly a Yahoo! Message
Okay, is there any chance of a zxip file to be created with a readme file and/or files that have been created to show what needs to be done?
Thank you

Rawly
Go to Top of Page

ttnetworks
New Member

United Kingdom
70 Posts

Posted - 15 July 2001 :  17:51:28  Show Profile  Visit ttnetworks's Homepage
I have a Interesting problem with this mod, what do I need to edit so that I can actually access the Links on the Moderator Options Page.

All the ones that work (as i know I have to have other Mods installed to make some work) are for the admin, but i click them, and then get sent to admin login ??

There has to be a workaround for this, otherwise this mod is kind of useless ??

Andrew Thompson
Sys Admin
TT Networks
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 15 July 2001 :  20:22:13  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
The answer to your question is answered in a few posts near the bottom of the preceeding page(1) of this topic. All the code is there.

@tomic

Go to Top of Page

extrafree
New Member

54 Posts

Posted - 20 August 2001 :  07:51:15  Show Profile  Visit extrafree's Homepage
i'm looking for moderator_home.asp
to install Moderator Option mod.
do you know where i can find it?






http://www.extrafree.it/forum

Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 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.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07