Log in

View Full Version : adding photopost profile to forum usercp?


MamboCube
03-30-2006, 12:45 PM
hi, i have just intsalled photopost and wanted to know whether i could add the "profile" page to the "usercp" on the forum, so i can have the profile for photopost load up in the forum usercp.

anyone know how i would go about doing this?

thnx for your time guys:)

MamboCube
04-03-2006, 07:35 PM
does anybody know how to do this?
i basically want to be able to load a custom page in the usercp

i hope someone can help me:)

MamboCube
04-11-2006, 06:17 AM
does this help anyone understand what i mean

45493

MamboCube
04-12-2006, 11:45 AM
no matter, figured it out myself

glowinggal
04-16-2006, 01:44 PM
how about sharing how you did it? Would love to know :)

MamboCube
04-16-2006, 04:15 PM
ive only managed to get a custom page load up, not the actuall profile,
but the way i got the custom page to work is this:

opened profile.php and found 'removelist' => array(
'modifylist_removeuser',
),

underneath I added 'custom' => array(
'custom_template',
),

I then found // ################################################## ##########################
// ############################### EDIT AVATAR ################################
// ################################################## ##########################

and before that added // ################################################## ##########################
// ############################### custom ################################
// ################################################## ##########################
if ($_REQUEST['do'] == 'custom')
{
// draw cp nav bar
construct_usercp_nav('custom');

$templatename = 'custom_template';
}


i saved that and uploaded it and then opened up the template manager in the admincp, I added a new style called "custom_template" and in the "template" box i put in the code for my custom page (whatever i wanted to load up).

I then opened up the "User Control Panel Templates" and opened USERCP SHELL, in that i found the code:

<if condition="$show['attachments']">
<tr>
<td class="$navclass[attachments]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editattachments">$vbphrase[attachments]</a></td>
</tr>
</if>

under that i put

<tr>
<td class="$navclass[attachments]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=custom">Custom</a></td>
</tr>

and thats it,

in the usercp there is a link at the bottom saying "Custom", you click that and it openes up whatever u put in the "custom_template" template.

i decided to leave putting in the photopost profile for a while, gonna do a couple of other jobs on my site first, will come back to it later. if i manage to do it, ill post it up