unemployment Posted July 2, 2011 Share Posted July 2, 2011 Via my admin panel i'd like to be able to blacklist pages on my main site which would also remove links to them and so forth. Happen to know of a good way to do this? I imagine I just need to store which pages are active and inactive. Quote Link to comment https://forums.phpfreaks.com/topic/240943-disable-and-enable-links-pages/ Share on other sites More sharing options...
wildteen88 Posted July 2, 2011 Share Posted July 2, 2011 I imagine I just need to store which pages are active and inactive. Yes that is what you'll need to do. If you're storing your pages within the database then add a field called active to the table that stores your pages. If you want the page to be visible set it to 1. Set to 0 when you dont want it to display. In your PHP code you check to see if the field named active has 1 or a 0. If the field is set to 0 the don't display the link/page, if its set to 1 display the link/page. Quote Link to comment https://forums.phpfreaks.com/topic/240943-disable-and-enable-links-pages/#findComment-1237609 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.