1

Topic: Add section to the profile

I made a simple image uploading script, i'd like to add a section ("Images") in the profile, under "essentials", "privacy" etc, so that users can upload their images, how do i do it? i'm quite a newbie on php programming, i saw there's a switch with various cases (essentials, privacy), but i don't know where to put the new section.

thank you very much

2

Re: Add section to the profile

nevermind, i dont know how but i made it

3

Re: Add section to the profile

Can you share what you did?

4

Re: Add section to the profile

ok uhm..
add this line to functions.php, line 312

<li<?php if ($page == 'images') echo ' class="isactive"'; ?>><a href="profile.php?section=images&id=<?php echo $id ?>"><?php echo "whatever you want" ?></a></li>

then in profile.php, line 1484 (or wherever you want in the list of else ifs) add another else if:

else if ($section == 'images')
    {
        $page_title = pun_htmlspecialchars($pun_config['o_board_title']).' / '.$lang_common['Profile'];
        require PUN_ROOT.'header.php';

        generate_profile_menu('images');

?>
    <div class="blockform">
//whatever you want to appear in the blockform on the right

thats it, there's one thing i dont know: what can i do with "switch case ('images')"? there's a case for every action (display, privacy..) can someone tell me what can i do with it, if i can do something?

at this moment i have no "case ('images')" in my profile.php

thanks