Results 1 to 4 of 4

Thread: Anyone have a "primmer" for integrating things into Dolphin?

  1. #1
    vanarie
    Guest

    Default Anyone have a "primmer" for integrating things into Dolphin?

    Can anyone tell me that basics of integrating any kind of new function (like a forum, flash game page, etc) into Dolphin?

    Generally I'm used to something like:

    Code:
    header();
    custom_stuff();
    footer();
    etc.
    That's very simplistic, but you get the idea. Can anyone point me to a good primmer for this before I go digging into the code? It might save me some time.

    Thanks!

  2. #2
    thetazz's Avatar
    Join Date
    Oct 2007
    Posts
    93

    Default

    Not that i think it would really save a lot of time, but this should work:

    Code:
    require_once( './inc/header.inc.php' );
    require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
    
    // --------------- page variables and login
    
    $_page['name_index'] 	= 13;
    $_page['css_name']		= 'faq.css';
    
    if ( !( $logged['admin'] = member_auth( 1, false ) ) )
    {
    	if ( !( $logged['member'] = member_auth( 0, false ) ) )
    	{
    		if ( !( $logged['aff'] = member_auth( 2, false ) ) )
    		{
    			$logged['moderator'] = member_auth( 3, false );
    		}
    	}
    }
    
    $_page['header'] = ( "Page Title" );
    $_page['header_text'] = ( "Header text" );
    
    // --------------- page components
    
    $_ni = $_page['name_index'];
    $_page_cont[$_ni]['page_main_code'] = PageCompPageMainCode();
    
    // --------------- [END] page components
    
    PageCode();
    
    // --------------- page components functions
    
    /**
     * page code function
     */
    function PageCompPageMainCode()
    {
    	global $oTemplConfig;
    
        $ret = ( "page content" );
    
    
        return DesignBoxContent(_t( "_FAQ_H1", $site['title'] ), $ret, $oTemplConfig -> PageCompThird_db_num );
    }
    
    
    
    ?>
    Things to change is marked with red

  3. #3
    vanarie
    Guest

    Default

    Thanks. I'll try that.

    I was looking at /inc/menu_content.inc.php. I assume that you can insert new items in the menu with the array build, then use that to call other pages, like the forum. Am I on the right track here?

    I'm trying not to find a hack for something that can be done via the admin gui!

  4. #4
    thetazz's Avatar
    Join Date
    Oct 2007
    Posts
    93

    Default

    If i get the direction you're going in right - then yes its very easy to make new links to pages in the menu builder... might have misunderstood what you meant though lol

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replace "Quick Search" with "Browse Profiles" ????
    By Spexmex in forum Dolphin General Discussion v6.00 and above
    Replies: 0
    Last Post: 02-02-2008, 01:18 PM
  2. "About Us" - "Contact Us" in Main Menu
    By Spexmex in forum General Troubleshooting
    Replies: 8
    Last Post: 02-02-2008, 12:41 PM
  3. How to modify "about us" "terms" etc in Dolphin 6
    By gripa in forum Dolphin General Discussion v5.3 to v5.6.5
    Replies: 2
    Last Post: 09-08-2007, 12:52 AM
  4. Replies: 2
    Last Post: 10-01-2006, 05:51 PM
  5. Editing "faqs".. "contact".... etc...
    By sillywabbit in forum Dolphin General Discussion v5.0 to v5.21
    Replies: 5
    Last Post: 08-05-2006, 12:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •