Well, a simple way to create a user specific page from a template page would be to use file_get_contents() , which reads the page code, and then use str_replace () to replace a specific text (i.e. ##username##) with the value of $username, then write the entire code using the $newpage.
However, this is meaningless: what i mean is that if the pages are to be the same, why should one redirect each user to his own page ?
If, instead, the pages are different, then actually there is a meaning in using separate pages for each user, but this method is not applicable anymore.
In my professional scripts I do use only 1 page, but the page content is dynamically retrieved from the info that is stored either in a database or in a file, so actually each user sees content that is related to him only.
Automating the process of creating pages for every new user
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html
TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html
TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
- Navaldesign
-
- Posts: 994
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re:
Hi Navaldesign,Navaldesign wrote:Well, a simple way to create a user specific page from a template page would be to use file_get_contents() , which reads the page code, and then use str_replace () to replace a specific text (i.e. ##username##) with the value of $username, then write the entire code using the $newpage.
However, this is meaningless: what i mean is that if the pages are to be the same, why should one redirect each user to his own page ?
If, instead, the pages are different, then actually there is a meaning in using separate pages for each user, but this method is not applicable anymore.
In my professional scripts I do use only 1 page, but the page content is dynamically retrieved from the info that is stored either in a database or in a file, so actually each user sees content that is related to him only.
I am quite happy you guys are discussing this. I was about starting a forum to explain creating a dynamic page per user like you'd have in a social network or online banking site etc. when I came across this.
Can you kindly explain here as you said "In my professional scripts I do use only 1 page, but the page content is dynamically retrieved from the info that is stored either in a database or in a file, so actually each user sees content that is related to him only."
This will be most appreciated.
Regards,
Alex.
Web: http://www.tenddeapact.com - SEO - Digital Marketing - Web design
Web: https://www.surejobz.com - Online Freelance Job Portal (No Bidding)
Skype: oshunskype
Yahoo IM: oshunalex
MSN: oshunalex@yahoo.com
Web: https://www.surejobz.com - Online Freelance Job Portal (No Bidding)
Skype: oshunskype
Yahoo IM: oshunalex
MSN: oshunalex@yahoo.com
- Navaldesign
-
- Posts: 994
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Automating the process of creating pages for every new u
I use a template that contains PHP code that uses variables like $username, $firstname, $lastname, etc.
When the page is displayed, these get the actual values for the specific user that come from the database.
To build such a page you need to have extended kowledge of PHP and MySQL.
When the page is displayed, these get the actual values for the specific user that come from the database.
To build such a page you need to have extended kowledge of PHP and MySQL.
www.dbtechnosystems.com
Re: Automating the process of creating pages for every new u
Greetings dear Navaldesign
I have read your post on creating an automated new user page for every registered user wanting to access their own page, and this is my challenge right now.
I have an average knowledge of mysql database and forms; please, will you kindly give me a tutorial on this subject, and provide demo download to ease my burden?
Thanks a million!
I have read your post on creating an automated new user page for every registered user wanting to access their own page, and this is my challenge right now.
I have an average knowledge of mysql database and forms; please, will you kindly give me a tutorial on this subject, and provide demo download to ease my burden?
Thanks a million!
regards,
kfi4all!
kfi4all!
- Navaldesign
-
- Posts: 994
- Joined: Sat Mar 01, 2008 8:08 pm
- Location: Italy
- Contact:
Re: Automating the process of creating pages for every new u
I'm sorry, I don't have a template.
However this post is very old. You can simply use the DBTS login extensions, and create the template as explained above,
However this post is very old. You can simply use the DBTS login extensions, and create the template as explained above,
www.dbtechnosystems.com
Re: Automating the process of creating pages for every new u
Thanks for your response.
I will give it a trial. If there is any help i may need, i will let you know.
Thanks so vary much.
I will give it a trial. If there is any help i may need, i will let you know.
Thanks so vary much.
regards,
kfi4all!
kfi4all!