TyrantElf Posted March 13, 2010 Share Posted March 13, 2010 I've moved my blog to a sub-directory, and and i want to make a website (i don't know what yet) in the main directory, but i want only registered/signed in users to be able to view some pages. I'm going to use mysql to hold user names/passwords/emails ect. and i'm going to use php for signup scripts ect. but how do i restrict access to parts of the website.I'd also like to be able to have different user groups (member, super member, admin, mod ect.) with diffrent access levels. any help? thanks! Proud Ubuntu User!There are no stupid questions, just stupid people. -Scott AdamsA computer once beat me at chess, but it was no match for me at kick boxing.-Emo PhillipsMy Blog! Link to comment Share on other sites More sharing options...
Slayr Posted March 14, 2010 Share Posted March 14, 2010 If you're running on wordpress, just use that as your site's CMS. It's powerful enough to do it.You can just switch your blog's posts to appear on another page. If you're insistant on doing it the long way, then this guide may be of help. I haven't really looked at it that much, but it looks sound. If that's not good, just google "Wordpres integration". If you're not using Wordpress, just google "YourBlogPlatform Integration". I'm sure someone's found a way. Link to comment Share on other sites More sharing options...
JoeDaStudd Posted March 16, 2010 Share Posted March 16, 2010 Use the $_SESSION and $_COOKIE variables to hold the data about there login. Then have an check setup to run before they view the page, if the cookie/session is good show the page otherwise redirect to a login page or display a message. [hide=Drops]Dragon Axe x11Berserker Ring x9Warrior Ring x8SeercullDragon MedDragon Boots x4 - all less then 30 kcGodsword Shard (bandos)Granite Maul x 3Solo only - doesn't include barrows[/hide][hide=Stats][/hide] Link to comment Share on other sites More sharing options...
obfuscator Posted March 16, 2010 Share Posted March 16, 2010 Use the $_SESSION and $_COOKIE variables to hold the data about there login. Then have an check setup to run before they view the page, if the cookie/session is good show the page otherwise redirect to a login page or display a message.This. If you want all the different levels, then you can assign the levels a number and check what the number is, then choose what to display. "It's not a rest for me, it's a rest for the weights." - Dom Mazzetti Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now