Viewing profiles [solved]

Need help with an engine or coding not on the list? Need help with a game or the website and forums here? Direct all questions here.
Post Reply
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Viewing profiles [solved]

Post by SpiritWebb »

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.
Image

Image
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Viewing profiles

Post by hallsofvallhalla »

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.
Xaleph
Posts: 897
Joined: Mon Feb 07, 2011 2:55 am

Re: Viewing profiles

Post by Xaleph »

Well, you mean like selecting your friend? Or random generated user profiles?
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Re: Viewing profiles

Post by SpiritWebb »

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?
Image

Image
User avatar
Torniquet
Posts: 869
Joined: Sun Aug 02, 2009 6:18 am

Re: Viewing profiles

Post by Torniquet »

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 :)
New Site Coming Soon! Stay tuned :D
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Re: Viewing profiles

Post by SpiritWebb »

Think I got this figured out now. Thanks Torn....
Image

Image
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Viewing profiles [solved]

Post by Jackolantern »

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
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Re: Viewing profiles [solved]

Post by SpiritWebb »

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!
And this maybe true, but where would the fun in that be? :lol: It will be one huge learning experience for me, that's for sure. Plus I think it will be fun in the process!! :)
Image

Image
User avatar
hallsofvallhalla
Site Admin
Posts: 12026
Joined: Wed Apr 22, 2009 11:29 pm

Re: Viewing profiles [solved]

Post by hallsofvallhalla »

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.
User avatar
SpiritWebb
Posts: 3107
Joined: Sun Jul 12, 2009 11:25 pm

Re: Viewing profiles [solved]

Post by SpiritWebb »

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.
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!! :)

Will post this project soon...
Image

Image
Post Reply

Return to “Advanced Help and Support”