Public vs. Private Pages

This is a discussion on "Public vs. Private Pages" within the Website Planning section. This forum, and the thread "Public vs. Private Pages are both part of the Planning Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Planning Your Website > Website Planning

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old May 23rd, 2007, 19:39
Junior Member
Join Date: Apr 2007
Location: New York
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Question Public vs. Private Pages

Hey all, I'm extremely confused about something and I thought you guys could help me out. On my website (http://www.ventureteams.com), I have a navbar that is common to all pages. There are some links on the navbar, however, that I only put there to encourage users to register, while only logged in users can really USE. Like, "Meet Up" or "Create"....public users can click on those links and go to pages that show the FEATURES of each section [so it is essentially there to advertise whats inside]. Once a user actually signs up and logs in, these features will be in their log-in dashboard (a separate segment that they will be redirected to once they log in.). So essentially, the Meet Up and Create pages are like advertisement pages for public users. The problem arises, however, when a user visits the LEARN section because this is available to both free and registered users. If someone logs in, and then from their log-in dashboard deicdes to visit the learn section, they will re-enter the PUBLIC part of the site and the Meet Up and Create links will be the PUBLIC pages once again, even though they have logged in. Is there a way that a webpage can "check" the user and then display or enable content on the page based on that? I know I can do something with PHP, but I dont want to re-do all my pages! If i could just insert a snippet of code that could check the user's log-in status, then redirect them to an appropriate page. So if the REGISTERED user clicks on the learn link to re-enter the public part of the site, and then clicks on Meet up, it would take them back to their DASHBOARD and not the public page. I HOPE THAT MADE SENSE! ANY and all help/guidance would be appreciated.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old May 23rd, 2007, 20:42
New Member
Join Date: May 2007
Location: Toronto
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Public vs. Private Pages

There are a numerous amount of ways that you can do this. Being that I am lazy and at work I barely looked over your site/post so im not sure exactally what you are using to code your site. You said not php so thats good.

If you happen to be using asp.net this is very simple, is so just goto http://www.asp.net/learn/videos/default.aspx?tabid=63 and watch the videos (there are a few similiar ones) on customer login/portals and role management.

Basically you can put all the secure pages for logged in users into a folder and if a user is not logged in the site will not display any link to or info(pages) contained in that folder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old May 23rd, 2007, 21:05
Junior Member
Join Date: Apr 2007
Location: New York
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Public vs. Private Pages

Thanks for the response and the site keyboard cowboy! I just wanted to get this straight: so all my "secure" pages, go into a folder for logged in users only. Now what if that logged in user goes back to un-secured or public pages via a link on a secured page. (Such as a publicly accessible knowledge resource section). The NAVBAR that they will see in those public pages will contain links that all point to public pages...making them like a regular user again; whereas I want the navbar to detect that the user is registered and when they click on a link that would normally be public, it would redirect them to the REGISTERED version of that page. The ASP.net video just finished downloading, so I'll watch it and come back but if u have any thoughts on this, let me know. Thanks for your help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old May 24th, 2007, 11:42
Highly Reputable Member
Join Date: Apr 2007
Location: Willich, Germany
Age: 20
Posts: 593
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Public vs. Private Pages

2 words: php sessions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old May 25th, 2007, 05:32
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Public vs. Private Pages

Yeah the above guy is right although it is a bit more complicated then just PHP sessions...hehe.

In order to create a user registration system you will need to have a solid understanding of PHP & MySQL. Also it would need to be somewhat secure. Ummm, you use php sessions to develop...well sessions for the user. I would recommend starting by taking a look at w3schools.com.

Good Luck!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
login, php, private, public, users

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
Safari 3 Public Beta dcpweb Webforumz Cafe 11 Aug 9th, 2007 19:45
How to use Public Variable in access forms faizee36 Databases 0 Jan 17th, 2006 08:23
public variable accessman Databases 1 Sep 27th, 2005 12:32


All times are GMT. The time now is 09:45.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization 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