Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Membership?

 

 


dougdrury
User

Feb 15, 2008, 12:12 PM

Post #1 of 12 (761 views)
Shortcut
Membership? Can't Post

I have a client who wants to be able to add usernames/passwords and have a certain section of the website member only.

I have done this with straight PHP, MySQL and PHP Sessions before. Are there any tools already in CMS Builder for this, or should I just build a 'Members' menu with username and password fields and then query that table upon a login event. I could test to see if any records came up (based on the where clause) and then allow them access or not. It is a bit of a kludge, but it would save me having to write a new UI for member administration and a separate database connection class.

Anyone have any thoughts?


Dave
Staff / Moderator


Feb 15, 2008, 1:42 PM

Post #2 of 12 (757 views)
Shortcut
Re: [dougdrury] Membership? [In reply to] Can't Post

If you're comfortable with the PHP/MySQL login part of it then yes, using CMS Builder is a fast way to create the administration UI.

This is actually exactly what we did for managing CMS Builder user accounts. There's a hidden "section editor" called "accounts" and then some custom code then does the login username/password checks. You can see that hidden accounts section by pasting this after the admin.php:

admin.php?menu=database&action=editTable&tableName=accounts

Hope that helps, let me know if you need anything else.

Dave Edis - Senior Developer
interactivetools.com


dougdrury
User

Feb 15, 2008, 1:58 PM

Post #3 of 12 (756 views)
Shortcut
Re: [Dave] Membership? [In reply to] Can't Post

I am comfortable with the PHP/SQL login stuff, but will checkout what you did in the hidden section editor...

Thanks!


soj
User

Mar 12, 2008, 5:18 PM

Post #4 of 12 (597 views)
Shortcut
Re: [Dave] Membership? [In reply to] Can't Post

Hi Dave, is there any chance you could provide the code and instructions to add this feature? I need this for a client too, but am not as comfortable with creating apps in php/mysql - I don't mind finding and modifying the code myself, so long as I have the code to insert/replace.

Alternately (maybe), is there a way to grant a user read only rights to a section?

TIA, soj


Dave
Staff / Moderator


Mar 12, 2008, 6:00 PM

Post #5 of 12 (596 views)
Shortcut
Re: [soj] Membership? [In reply to] Can't Post

So what feature are you looking for? That you can password protect certain php pages on your website so visitors can't view them unless they login with a username and password that is stored in the program?

And read only access - can you tell me more about how that would be used? Why wouldn't the user just read the content on the website? We thought about adding that but didn't have a good enough use case for it.

Have you setup your viewers already so the content is display the way you want and being loaded from CMS Builder? (That would be the first step).

Thanks, let me know! :)

Dave Edis - Senior Developer
interactivetools.com


soj
User

Mar 12, 2008, 7:05 PM

Post #6 of 12 (594 views)
Shortcut
Re: [Dave] Membership? [In reply to] Can't Post

Hi Dave, thanks for your response.

My client wishes to restrict access to a download page, and track who is accessing the page. The product is programming content for radio. They want to keep track of who is logging in and listening each day. It will help them sell any advertisements.

I'm trying to figure out a good way to do that.

I'm still trying to determine if your product will fit all their needs. This would be my first time using it.

Thanks, Soj


(This post was edited by soj on Mar 12, 2008, 7:06 PM)


Dave
Staff / Moderator


Mar 12, 2008, 9:56 PM

Post #7 of 12 (587 views)
Shortcut
Re: [soj] Membership? [In reply to] Can't Post

Hi Soj,

I'm going to say that CMS Builder probably isn't the right fit for that project. It could manage the content but doesn't have the membership features and anything I could create for you would be pretty basic.

I think what you need is either a custom solution or some kind of download management script. Have a look at these directories, they may have something more inline with what you need:

http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/Download_Systems/index.html

http://php.resourceindex.com/Complete_Scripts/File_Management/File_Downloading/

Hope that helps! :)

Dave Edis - Senior Developer
interactivetools.com


soj
User

Mar 20, 2008, 11:40 AM

Post #8 of 12 (477 views)
Shortcut
Re: [Dave] Membership? [In reply to] Can't Post

Hi Dave, thanks so much for your input. I'm considering using a second party script. We can have a link from the home page to a page containing the downloads. The downloads page would need to be protected. Will it be possible to edit such a page with the system?

TIA!

soj


Dave
Staff / Moderator


Mar 20, 2008, 1:58 PM

Post #9 of 12 (472 views)
Shortcut
Re: [soj] Membership? [In reply to] Can't Post

Maybe, I'm not really sure. I think you'd have to experiment with it a bit. It would depend on how the download system worked.

Are you looking to manage part with CMS Builder and part with the download system?

Dave Edis - Senior Developer
interactivetools.com


soj
User

Mar 20, 2008, 2:22 PM

Post #10 of 12 (470 views)
Shortcut
Re: [Dave] Membership? [In reply to] Can't Post

I thinking of not so much a download system as an authentication system to a protected page at this point.

Thanks! soj


Dave
Staff / Moderator


Mar 20, 2008, 3:23 PM

Post #11 of 12 (466 views)
Shortcut
Re: [soj] Membership? [In reply to] Can't Post

Ok, well then you could definitely manage the content with CMS Builder, and for password protecting a page or directory, if you don't need tracking that can be as easy as uploading a .htaccess/.htpasswd file.

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com


soj
User

Mar 20, 2008, 3:26 PM

Post #12 of 12 (465 views)
Shortcut
Re: [Dave] Membership? [In reply to] Can't Post

Okay, thanks!

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4