mariovaldez.net http://www.mariovaldez.net/webapps/forums/ |
|
Amazing Code, but a few things.. http://www.mariovaldez.net/webapps/forums/viewtopic.php?f=11&t=186 |
Page 1 of 1 |
Author: | RJT [ 30 Jan 2005, 06:08 ] |
Post subject: | Amazing Code, but a few things.. |
This code is amazing, well done . But i was wondering a few things.. 1. How do i make it so each user has an individual page 2. How can i make it so that the members can edit their details. I want to do this WITHOUT using MySQL Thanks, |
Author: | mvaldez [ 06 Feb 2005, 10:57 ] |
Post subject: | Extra features... |
RJT: > This code is amazing, well done > But i was wondering a few things.. > 1. How do i make it so each user has > an individual page 2. How can i make > it so that the members can edit their details. > I want to do this WITHOUT using MySQL Hi. I'll answer question number 2, first. I think that when you write "details" you mean the password, because there is really no other data except username and password. I think a "change your password" script can be written to modify the password file. But I've not written any code for that. Maybe in the next version I'll provide that. The first question requires customization on you pages, not in the sitefilo scripts. But first I need to know what do you mean with "individual page". Does it mean that each user has a page in your site? For example, the user Mary has a page www.yoursite.com/mary.php ? Or, does it mean that each user has a different view of your pages? For example, Mary can see some content but John, viewing the same page, sees different content? Or does it mean that each user has a page they can edit and upload to your site? Or maybe is something else? Please tell me what you have in mind so I can try to hep you, RJT. Regards, Mario A. Valdez-Ramirez. |
Author: | Bill [ 20 Feb 2005, 10:43 ] |
Post subject: | Extra features |
Hi Mario How do i make each user have a different page in my site example, the user name Mary has a page www.mysite.com/friend/mary.php the user name Tom has a page www.mysite.com/friend/tom.php Thanks, |
Author: | Guest [ 09 Apr 2005, 04:19 ] |
Post subject: | |
Just found this login script, it's nearly script for my need. Like the others, i have the similar purpose with them. The different is each go to their folder instead to to their files : user batman go to www.superhero.com/guy/batman/ user catwoman go to www.superhero.com/lame/catwoman/ Great script btw. Thanks, have a good day ! |
Author: | mvaldez [ 30 Jun 2005, 18:57 ] |
Post subject: | Redirection to user page... |
There are several ways to redirect users to different directories. I think the easiest is to redirect the user to a directory named after his username. For example, the user "lapo" could be redirected to "www.mysite.com/lapo/", while user "mario" would be redirected to "www.mysite.com/mario/". Would that work for you? The following changes require version SiTeFiLo 1.0.5. So, edit the file slogin_lib.inc.php, around line 283 there is this line: Code: header ("Location: " . $slogin_redirect); Change it to this: Code: header ("Location: " . $slogin_redirect . $slogin_loginname); Then modify line 60 from this: Code: $slogin_default_redirect = ""; To something like this: Code: $slogin_default_redirect = "http://www.mysite.com/";
And that's all. Of course note that this is redirection only, it doesn't affects the access, so user "lapo" would still be able to view the page of user "mario". If you want to restrict the access of each user to its own page then the script need a more extensive rewrite. Also, to redirect to individual URLs that are not uniform (for example, "/lapo" for user "lapo" but "/rh/rej/mario" to user "mario") would require that you store the URLs somewhere else (maybe in the password file) and the script would require some modifications to recover that data field. Hope this helps. Regards, Mario A. Valdez-Ramirez. |
Page 1 of 1 | All times are UTC - 7 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |