Login Script Problem

This is a discussion on "Login Script Problem" within the PHP Forum section. This forum, and the thread "Login Script Problem are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 18th, 2006, 21:06
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Aaron1988 Send a message via Yahoo to Aaron1988
Login Script Problem

Hello everyone well i have a login script and i want to set certain level i am a total beginner at php so dont know 1 thing about it for example

but if it would be easier to start a New Login script to howz you know then That will be fine 2


U = User
A = Admin
M = Moderator
G = Guest

so if there not registered they show up as a guest as and as i am Admin of the site i want to have the permission



where some one registers and if i know them and they are good to the site then i will concider putting them

M = Moderator

Please can anybody help

and also some of the pages to be protect areas and when they login they can view the pages which was protected.

Thanx
Aaron

Last edited by Aaron1988; Nov 18th, 2006 at 21:12.
Reply With Quote

  #2 (permalink)  
Old Nov 19th, 2006, 18:58
Junior Member
Join Date: Jul 2006
Location: UK
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Login Script Problem

If your an absolute beginner at PHP, this is too far.

You could have a 'permission' field in your DB, values 0-3 (Guest, User, Mod, admin)

Pages then would be like:

Code: Select all
if ($permission > 1){
                                //  Content that only mods and admins can see
                               }
else{
        echo "You do not have the authority to view this section";
       }
You can manipulate that yourself. But again, if your very new to php and have just downloaded a script this is too far. Try a shoutbox to get started
Reply With Quote
  #3 (permalink)  
Old Nov 19th, 2006, 19:19
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Login Script Problem

Yeah, either take a forum, already made and take out the PHP little by little and recode it to work with your current/new website, or shoutbox would be another good option for you Aaron!!
Reply With Quote
  #4 (permalink)  
Old Nov 19th, 2006, 20:59
Reputable Member
Join Date: Jul 2006
Location: Baldock
Age: 20
Posts: 447
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Aaron1988 Send a message via Yahoo to Aaron1988
Re: Login Script Problem

ok thanx - 4 the replies but i will try and figure something out cause i wanna learn php but its hard lol
Reply With Quote
  #5 (permalink)  
Old Nov 20th, 2006, 04:13
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Login Script Problem

It is an important programming language to learn, but if I were you I might consider buying what you are wanting from someone who has already made it.
Reply With Quote
  #6 (permalink)  
Old Nov 20th, 2006, 06:15
Up'n'Coming Member
Join Date: Nov 2006
Location: United Kingdom
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to scribbz
Re: Login Script Problem

There are also plenty of freebie login scripts out there which can be easily found on Google, some come with entire tutorials as well so that's sometimes a good place to get started. PHP is a language like any other (english, german), follow the structure, the commands and out pops understandable entities
Reply With Quote
Reply

Tags
login, register

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
login script mbarr Databases 13 Mar 12th, 2008 03:39
login script help Aaron1988 PHP Forum 2 Oct 25th, 2006 15:03
Simple PHP login script help Aaron1988 PHP Forum 7 Aug 23rd, 2006 23:38
PHP Login script advice chimp PHP Forum 1 Dec 21st, 2005 17:16
client login script? godonlyknows PHP Forum 6 Jul 23rd, 2005 17:47


All times are GMT. The time now is 01:55.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43