Can I add blocks to profile pages??

Permalink 1 user found helpful
Is it possible to add blocks (like guestbooks and photo galleries) to individual member profile pages? I know you can add one that is a "universal" instance of that block (that will appear as identical content on ALL profile pages) but I need to allow a member to add their own personal content without it showing up on everyone else's pages.

HELP?!?!?

 
Mnkras replied on at Permalink Reply
Mnkras
It would require either custom blocks, or a different profile page for each user.
facinghistory replied on at Permalink Reply
Well, I am certainly out of my depth with the custom blocks idea, but the individual profile pages sounds like something I might be able to handle. Do I basically clone the profile.php file and rename it 1000 times? Does the auto-nav block recognize these new pages?
Mnkras replied on at Permalink Reply
Mnkras
Well you could also hack the profile page to have a different area based on
userid
On Aug 31, 2011 10:24 PM, "Concrete5 Community" <discussions@concretecms.com>
wrote:
mibookscom replied on at Permalink Reply
i'd like to be able to add a form to the profile page so that all members can upload/submit their files to the file manager though i cant seem to find a way of adding a block to the profile page? can anyone help with this?
RobertJNL replied on at Permalink Reply
RobertJNL
Copy the profile page to your root level and then add one or more editable areas.
For uploading files/info you'd probably want to look at the available form blocks such as extended form which allows for fileuploading & saves username of formfiller. There's also a block which takes form input and then displays it in a certain presetup way.

Actually having a member being the admin of his profile page to have full c5 functionality seems to be a way bigger task and maybe a bit to much for what you want to achieve?
spjuphigh replied on at Permalink Reply
spjuphigh
I did as you suggested and added an editable area, but all it did was add another "universal" instance of the block where it appears on every profile page displaying the same content everywhere instead of just on that person's profile.

What I want - NEED - to do is allow each member to have their own photo gallery, video library, guestbook, etc... just as they would on any social network. I know C5 wasn't built to be a social network, but it certainly seems as if it's capable of acting as one. All I need to do is figure out this one pesky issue and my site will immediately be converted from the horrorshow that is SocialEngine to C5.

Please, can anyone help me?
1976Ltd replied on at Permalink Reply
1976Ltd
Bump. Anyone got any advice on this?
mkly replied on at Permalink Reply
mkly
That's not how the profile "page"(note that there is no "s") works. The page takes user data and does something with it. But it is still just one page.

At this point you can get creative. Some possible ideas off the top of my head and not tested. Actually I have done number 2.

1. Create a new directory and create a new page for each user.

2. Create or adapt blocks specifically to react to which profile page they are on.

3. Get crafty with the profile single page and have it display a differently name Area depending on what user profile page its on.
$profile_area = 'Profile Area ' . $profile->getUserID();
$a = new Area($profile_area);
$a->display($c);

I don't even know if this last one will work or what weird issues you might have trying it.

Best of luck.
scriptvesting replied on at Permalink Reply
scriptvesting
How do you get the userID of the profile page into a custom block? I've tried everything and can't get it.
rosie607 replied on at Permalink Reply
rosie607
Did you have any luck with this? This is exactly what I need to do as well.
Thanks
mattcalvo replied on at Permalink Reply
Can this be done with Stacks now? Customize a Stack for each user with permissions for the stack set to each user individually. Then the designated stack would only appear when the specific user is signed in. Just a thought because I'm thinking of doing something similar.
rosie607 replied on at Permalink Reply
rosie607
Hi
Did this work out for you, I need to allow users to add galleries etc to their own profile pages and am looking for a solution.
Thanks
scriptvesting replied on at Permalink Reply
scriptvesting
This is what I did to get the user ID of the profile page being viewed so I could display content specific to that profile...In my case it was a custom block that would show a list of classes if the user is an Instructor. If they aren't an Instructor then the block would still be present but empty.

global $v;
$profile = $v->controller->getSets();
$pID = $profile['profile']->uID;


Seems like there should be an easier way, but I spent a lot of time trying to figure it out and this is all I could come up with.
rosie607 replied on at Permalink Reply
rosie607
Ahh thank you for replying, that's not what I'm trying to do unfortunately. I'm trying to figure out how I can allow site users to add their own blocks to their public profile page. Thanks anyhow :-)