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/O Code)
 Log in from homepage?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Delaen
Starting Member

6 Posts

Posted - 24 March 2002 :  08:37:05  Show Profile
I'm trying to set up my website with an easy way to log directly into the forum from the home page.

IE: On the home page I want the username and password entry boxes if someone isn't logged in. Or "You are logged on as 'whatever'" if they are.



Any suggestions?

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 24 March 2002 :  09:08:23  Show Profile  Send ruirib a Yahoo! Message
The code that does that in Snitz is in inc_top.asp. Take a look at it to see how it's done.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

Tmpj
Junior Member

Denmark
467 Posts

Posted - 24 March 2002 :  09:49:31  Show Profile
Send me an email and I will send you some code you could build it with


------------------------------
Magic is an Orange
http://www.nintendo4you.dk/tmpj/
Go to Top of Page

Delaen
Starting Member

6 Posts

Posted - 24 March 2002 :  11:32:23  Show Profile
Thanks for the info ruirub :)

And thanks a lot for the offer Tmpj, but I got off my lazy ass and figured it out on my own :p It was actually much easier than I was expecting.


Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 24 March 2002 :  11:37:10  Show Profile  Send ruirib a Yahoo! Message
quote:

Thanks for the info ruirub :)



You are welcome

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

Delaen
Starting Member

6 Posts

Posted - 25 March 2002 :  07:46:19  Show Profile
Actually, on a similar note:

I want to build an add-on. The problem I can't quite get is where the code is located that verify's if the person viewing is an admin. Where is this chuck of code located? And how would I implement it on a new page?

Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 25 March 2002 :  08:00:16  Show Profile  Visit Kat's Homepage
Admin is checked using mLev = 4 in the normal forum pages. You just need to out an if around the code you want to show if it is admin saying if mLev = 4 then ... blah blah end if.

Search for mLev = 4 in something like default.asp and you will see how it is used.


KatsKorner

For Installation help: http://www.aslickpage.com/snitz_help.html
For Snitz Mods: http://ls3k.com/snitz/

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 March 2002 :  08:06:22  Show Profile  Send ruirib a Yahoo! Message
I'm not actually that familiar with Snitz code.

I think member level is tested by checking the value of the mlev variable. For an Admin you need to check if mlev = 4 for a moderator mlev will be 3. For a given member the M_LEVEL column in the FORUM_MEMBERS table will have that info.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 March 2002 :  08:07:59  Show Profile  Send ruirib a Yahoo! Message
Arghhg..., took too long to answer this one .

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

Kat
Advanced Member

United Kingdom
3065 Posts

Posted - 25 March 2002 :  08:14:48  Show Profile  Visit Kat's Homepage
gotcha rui...

KatsKorner

For Installation help: http://www.aslickpage.com/snitz_help.html
For Snitz Mods: http://ls3k.com/snitz/

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 March 2002 :  08:20:12  Show Profile  Send ruirib a Yahoo! Message


-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
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