Viewing profiles [solved]
- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm
Viewing profiles [solved]
I am working on a huge project with two paranormal research groups. Anyway, when a member signs in, (using Halls tutorials) and instead of going to battle.php, they go to a members page where they can post bulletins, upload pictures and video, etc. I am wondering how would one view that profile? Kinda like how people would view others page's on Myspace or Facebook.
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Viewing profiles
As in the latest tutorials where I add in messages and things?
I would just make the page view the profile based on a Get method.
So all your queries would be based on $_GET['userid']
then if ($_GET['userid'] == $playerinfo3['id'])
{
$caneditprofile = 1;
}
this way if it is the players profile they can edit it.
I would just make the page view the profile based on a Get method.
So all your queries would be based on $_GET['userid']
then if ($_GET['userid'] == $playerinfo3['id'])
{
$caneditprofile = 1;
}
this way if it is the players profile they can edit it.
Re: Viewing profiles
Well, you mean like selecting your friend? Or random generated user profiles?
- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm
Re: Viewing profiles
hallsofvallhalla wrote:As in the latest tutorials where I add in messages and things?
I would just make the page view the profile based on a Get method.
So all your queries would be based on $_GET['userid']
then if ($_GET['userid'] == $playerinfo3['id'])
{
$caneditprofile = 1;
}
this way if it is the players profile they can edit it.
Wouldn't one just use a main members page to edit from? Say like I log in and go to membershome.php. You log in and go to the same page, only displays your information instead of mine? But now I want to see your page...how would I save that information?
Re: Viewing profiles
do a seperate page. viewmember.php
use a get variable of id or uid or what ever suits you better. you end up with viewmember.php?id=x (where x is the users id)
use this get variable to reference the users information you want to view.
If you need a hand setting it up give me a pm and ill help best i can when i am about. but honestly its not that difficult
use a get variable of id or uid or what ever suits you better. you end up with viewmember.php?id=x (where x is the users id)
use this get variable to reference the users information you want to view.
If you need a hand setting it up give me a pm and ill help best i can when i am about. but honestly its not that difficult
New Site Coming Soon! Stay tuned 
- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Viewing profiles [solved]
While I know it is never as fun to use third-party solutions, it sounds like one of the literally thousands of social network suites out there could do almost everything you want it to do (and there are several good open source ones, I believe). If you found one with good customization options, you could perhaps have this up and running in just a week or two!
The indelible lord of tl;dr
- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm
Re: Viewing profiles [solved]
And this maybe true, but where would the fun in that be?Jackolantern wrote:While I know it is never as fun to use third-party solutions, it sounds like one of the literally thousands of social network suites out there could do almost everything you want it to do (and there are several good open source ones, I believe). If you found one with good customization options, you could perhaps have this up and running in just a week or two!
- hallsofvallhalla
- Site Admin
- Posts: 12026
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Viewing profiles [solved]
I was suggesting exactly what Torn was talking about, using the ID as the member ID. the page would be the same just use the ID to show the content. Very simple process.
- SpiritWebb
- Posts: 3107
- Joined: Sun Jul 12, 2009 11:25 pm
Re: Viewing profiles [solved]
Ah, see when I read it, I got even more confused. Taking on a project I haven't done before or remotely like it...will be a fun and rewarding experience...I thank you both then!!hallsofvallhalla wrote:I was suggesting exactly what Torn was talking about, using the ID as the member ID. the page would be the same just use the ID to show the content. Very simple process.
Will post this project soon...

