Hi, I run a fire department website that keeps records of each members training hours. Right now, I have a list of the members' names, and when Member "Bob" clicks on his name, a login box (via htaccess) pops up for him to log in. What I'd like to do is get rid of the htaccess, and once "Bob" logs into the main site, and clicks on his name in the list, it will direct him to his specific training page. The problem I'm having is, when any member is logged in, without the htaccess, they can access any members training.
To put it shortly, I need a script that will pull "Bob's" username when he is logged in, and allow him to view his training page, but will not allow any other logged in member to access it.
I've searched and searched, but cannot seem to find exactly what I'm wanting. Please help! It'd be much appreciated.
spottedhog Captain
Joined: Apr 30, 2004
Posts: 566
Posted:
Sun Jan 22, 2006 4:41 am
I have not seen a module that is page specific to a member either..... I do have an idea though that will work....
You could create a Forum board for each member, and make that board only available to the specific member and moderator/admin.
Maybe it is not the easiest or cleanest, but it would work.
SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
mejayne Nuke Soldier
Joined: Jan 03, 2005
Posts: 11
Posted:
Sun Jan 22, 2006 10:02 am
This sounds like a good work-around, but unfortunately, the pages I need to call, the Training pages, are all html, which complicates things a big more. I could convert them to php, I know, but they're updated so often that that would become a hassle real quick. I'll continue working with the htaccess authorization until I can come up with something. Thank you for the prompt relpy though
spottedhog Captain
Joined: Apr 30, 2004
Posts: 566
Posted:
Sun Jan 22, 2006 10:58 am
You can put html in the forums...... not a problem.....
SMF and PHP Nuke integration is ready! Take a look at it by clicking on the link above.
mejayne Nuke Soldier
Joined: Jan 03, 2005
Posts: 11
Posted:
Sun Jan 22, 2006 11:58 am
I'll try it out. I can do it through the forums, with html, I know that. I personally find forums to be a bit ugly though, especially with tables and stuff. I'll work on mine though..see how tight I can get the permissions for it. Thanks for the reply
mejayne Nuke Soldier
Joined: Jan 03, 2005
Posts: 11
Posted:
Fri Apr 21, 2006 12:12 am
I actually built the module myself, and got it working.
Basically, I put a link in Your_Account to link to modules/training/$user.php. Then I have files named for each user with their username.php. In these files, it checks for the username, then directs them to modules/training/hours/username.htm. If they are trying to access the wrong user's files, they get redircted to modules/training/hours/notyou.htm. It works great, and I can dump the updated htm files in the folder without having to rewrite everything every time. I thought I'd post this in case someone else out there is looking for something similar.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum