vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   adding photopost profile to forum usercp? (https://vborg.vbsupport.ru/showthread.php?t=111717)

MamboCube 03-30-2006 12:45 PM

adding photopost profile to forum usercp?
 
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

1 Attachment(s)
does this help anyone understand what i mean

Attachment 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
Code:

'removelist' => array(
                'modifylist_removeuser',
        ),

underneath I added
Code:

'custom' => array(
                'custom_template',
        ),

I then found
Code:

// ############################################################################
// ############################### EDIT AVATAR ################################
// ############################################################################

and before that added
Code:

// ############################################################################
// ############################### 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:

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

Code:

<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


All times are GMT. The time now is 06:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00997 seconds
  • Memory Usage 1,722KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete