March 13, 201016 yr 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!
March 14, 201016 yr 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.
March 16, 201016 yr 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]
March 16, 201016 yr 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
Create an account or sign in to comment