 |

dougdrury
User
Feb 15, 2008, 12:12 PM
Post #1 of 12
(761 views)
Shortcut
|
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
|
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
|
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
|
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
|
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
|
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)
|
|
|  |
 |

soj
User
Mar 20, 2008, 11:40 AM
Post #8 of 12
(477 views)
Shortcut
|
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
|
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
|
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
|
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
|
Okay, thanks!
|
|
|  |
|