Author |
Topic  |
|
mickras
Starting Member
2 Posts |
Posted - 27 March 2001 : 13:39:36
|
Has anyone tried to remove the password/login function in the Snitz forum code?. I want users to be able to post messages without register/login first.
|
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 27 March 2001 : 13:50:09
|
You can't remove the registration without practically re-writing the code. It's tightly integrated into the forum. An alternative is to register an account and let everyone use that account to post. ANd if they check the "Save Password?" option, they won't have to login after the first time.
|
 |
|
mickras
Starting Member
2 Posts |
Posted - 28 March 2001 : 02:52:04
|
Hi Davio,
Thank you so far. So would it be possible to create a default account, and then lett the forum automatic "login" on this? (And then of course remove the login form at the top of the screen).
|
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 28 March 2001 : 09:12:43
|
You know, I was thinking the exact same thing. What if you could create a default account. There would be an admin option to allow anonymous access, and if that is on, all users will automatically be logged in as the default account, the login box will be hidden and they won't be able to edit the profile. You can use the admin email address for the default account too.
It's a good idea. I think I'll work on it and see if it's possible, then I'll give you the modified files to download.
|
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 03 April 2001 : 14:09:07
|
Is this something like what you wanted? http://www.dsilvera.com/beta/32_a6/
There is somethings that need brushing up on like the active.asp page and some more checking here and there. But it's basically done.
|
 |
|
tangoc9999
Junior Member
 
USA
158 Posts |
Posted - 26 April 2001 : 14:40:04
|
davio, i would be interested in the download. thanks
TANGO
Computers run on smoke, when the smoke comes out, they quit running!

Edited by - tangoc9999 on 26 April 2001 14:42:59 |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 26 April 2001 : 18:46:57
|
I'll release it for the next version of the Snitz Forums. Version 3.2
|
 |
|
MorningZ
Junior Member
 
USA
169 Posts |
Posted - 26 April 2001 : 20:03:15
|
maybe i am oversimplifying this....
but cant you at the very very top of "deafult.asp" do this
if len( Request.Cookies(strUniqueID & "user")("name") ) > 0 then Response.Cookies(strUniqueID & "user")("name") = "Board Member" Response.Cookies(strUniqueID & "user")("pword") = "pass" Response.Cookies(strUniqueID & "user")("level") = "1" Response.Cookies(strUniqueID & "user").Expires = DateAdd("y",1,Now()) Response.Redirect("default.asp") end if
that should set the user as logged in as "Board Member"
and go into "inc_top.asp" and remove the "logout" button
done deal.....
 |
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 26 April 2001 : 23:36:11
|
Well, that was the idea I had originally. But one of the Admins suggested why not allow members to be able to login in anonymous mode also allowing the non-members to be able to post anonymously. So I couldn't just force the user to be logged in as "Board User".
What I did was, if the user wants to post anonymously, get the username and password of the anonymous account that the admin selected and send that along with the post. And instead of using the account name, use the nickname the user provided.
It seemed logical too, because it integrates better into the board and there were some checks that just doing what you simply suggested couldn't work.
Trust me, I didn't want to do any extra coding either, but saw that it did need a lot of coding. Couldn't avoid that. 
|
 |
|
|
Topic  |
|