mariovaldez.net

MV.net forums
It is currently 14 Jul 2016, 00:46

All times are UTC - 7 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
PostPosted: 30 Jan 2005, 06:08 
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,


Report this post
Top
  
Reply with quote  
 Post subject: Extra features...
PostPosted: 06 Feb 2005, 10:57 
User avatar

Joined: 06 Mar 2003, 03:21
Posts: 447
Location: Monterrey, NL, Mexico
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Extra features
PostPosted: 20 Feb 2005, 10:43 
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,


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: 09 Apr 2005, 04:19 
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 !


Report this post
Top
  
Reply with quote  
PostPosted: 30 Jun 2005, 18:57 
User avatar

Joined: 06 Mar 2003, 03:21
Posts: 447
Location: Monterrey, NL, Mexico
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 7 hours


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group