Topic: Creating a page with the forum header and footer and you own content

I want to create pages. Daris portal used to have this, but unfortunatily it is not supported anymore and doesnt work with 1.4.

I want the page to have the top menu, with all the correct links like login, register, profile etc. And then the content in the middle and footer at the bottom.

i am willing to do this manually without extension, since i am creating few number of pages. i think this can be done by creating a php page with some php line to load the css, menu, footer etc. unfortunatily i am not a coder to i have no idea what to write.

MyFootballCafe.com  is Now Online!

Re: Creating a page with the forum header and footer and you own content

To any admin/mod.

Can i have the php file of the extensions page. i want to dissect its content and replace it with mine and then use it.

MyFootballCafe.com  is Now Online!

3 (edited by bwdeen 2012-09-17 13:02)

Re: Creating a page with the forum header and footer and you own content

This would be useful....would be nice to use the space on the right header...for listing topics or subject matter link....

4 (edited by SuperMAG 2012-09-23 14:32)

Re: Creating a page with the forum header and footer and you own content

SuperMAG wrote:

To any admin/mod.

Can i have the php file of the extensions page. i want to dissect its content and replace it with mine and then use it.

Bump! anyone, this place is totally dead, barley any bug/extension support, even the development on the core punbb is totally dead. the fork of fluxbb was the worst thing that happened to punbb. The devs and users have been separated into 2 places, both are almost equally dead, at least they devs who are working on new stuff.

MyFootballCafe.com  is Now Online!

5

Re: Creating a page with the forum header and footer and you own content

If I have time, I will develop an extensions which add this feature.

Re: Creating a page with the forum header and footer and you own content

Extension, you dont really need to rewrite the whole thing, this portal by daris extension has it in it, and i think it working, but it has all the other stuff that i dont want: http://punbb.wiiem.pl/download_extensio … _2.4.3.zip

You just need to dissect the code and release a separate ext.

Though thanks alot for this.

MyFootballCafe.com  is Now Online!

Re: Creating a page with the forum header and footer and you own content

ok after 2 hrs of research and codeheadace. i finally managed to create a php code.

<?php

    define('FORUM_ROOT', '../../'); // Point to the forum directiry
    define('FORUM_PAGE', 'formation_creator');
    require FORUM_ROOT.'include/common.php';

    $forum_hooks['hd_main_elements'][] = 'unset($main_elements[\'<!-- forum_crumbs_top -->\']); unset($main_elements[\'<!-- forum_crumbs_end -->\']);';

    // Setup breadcrumbs
    $forum_page['crumbs'] = array(
    array($forum_config['o_board_title'], forum_link($forum_url['index'])),
    'Formation Creator' // Set up your page title here
    );

    require FORUM_ROOT.'header.php';

    // START SUBST - <!-- forum_main -->
    ob_start();

?>

    <div id="brd-main">
        <h1 class="main-title">Formation Creator</h1>

        <div id="brd-crumbs-top" class="crumbs">
    <p><span class="crumb crumbfirst"><a href="http://myfootballcafe.com/">MyFootballCafe.com</a></span> <span class="crumb crumblast"><span> &rarr;&#160;</span>Formation Creator</span> </p>
</div>
        
        
        <div class="main-head">
        <h2 class="hn"><span>Formation Creator</span></h2>
    </div>

    <div class="main-content main-frm">
<div style="padding:15px;">
<object width="100%" height="500px">
    <param name="allowScriptAccess" value="always" />
    <param name="wmode" value="transparent" />
    <param name='flashVars' value="send=Draw+this+11&tipText=Click+to+edit&open=open&save=save&saveAs=save+as&add=add&remove=remove&changeShirt=change+shirt&player=player&fileNameLabel=Team+name">

    <embed src="http://this11.com/files/board4.swf" AllowScriptAccess="always" width="100%" height="500px" wmode="transparent" flashVars="send=Draw+this+11&tipText=Click+to+edit&open=open&save=save&saveAs=save+as&add=add&remove=remove&changeShirt=change+shirt&player=player&fileNameLabel=Team+name"></embed>
</object>
</div>
    </div>
        
        <div id="brd-crumbs-end" class="crumbs">
    <p><span class="crumb crumbfirst"><a href="http://myfootballcafe.com/">MyFootballCafe.com</a></span> <span class="crumb crumblast"><span> &rarr;&#160;</span>Formation Creator</span> </p>
</div>
    </div>

<?php

    $tpl_temp = trim(ob_get_contents());
    $tpl_main = str_replace('<!-- forum_main -->', $tpl_temp, $tpl_main);
    ob_end_clean();
    // END SUBST - <!-- forum_main -->

    // Uncomment this if you don't want the footer
    //$tpl_main = preg_replace('#<div id="brd-about" class="gen-content">.*?</div>#us', '', $tpl_main);

    require FORUM_ROOT.'footer.php';

the problem is that i also added this page in the navlinks. now when i open the page, the navlink doesnt show its open.

i am talking about the isactive class. how do i add that rule to it that when that page is open, add the isactive to the page.

<li id="navrules" class="isactive"><a href="http://www.myfootballcafe.com/rules/">Rules</a></li>

anyone have a clue.

MyFootballCafe.com  is Now Online!

8

Re: Creating a page with the forum header and footer and you own content

any update on this?

Re: Creating a page with the forum header and footer and you own content

what exactly are you looking for, creating pages or the navlinks stuff.

MyFootballCafe.com  is Now Online!

10

Re: Creating a page with the forum header and footer and you own content

creating a new page with same header and footer.

Re: Creating a page with the forum header and footer and you own content

http://punbb.informer.com/forums/topic/ … -in-punbb/

MyFootballCafe.com  is Now Online!