https://www.icyphoenix.com/viewtopic.php?f=26&t=5023&p=35131#p35131
-----------------------------------
AndyGpy
Fri 26 Dec, 2008 12:22

Re: Application Integration -- Help Would Be Appreciated.
-----------------------------------
Ok,

I have figured out the user allowed to view issue, MG the method you had me do created CBACK security issues so i compromised.

Can anyone tell me how i can include the main menu in my new page ?

code is below

[spoiler]<?php
/***************************************************************************
 *                                template.php
 *                            -------------------
 *   begin                : Saturday, Okt 10, 2003
 *   copyright         : (C) 2008 Raimon Meuldijk
 *   email                : Raimon@phpBBservice.nl
 *
 *   $Id:  $
 *
 * Modified by Lopalong 3rd Aug 2008 < http://icythemes.com >.
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 * READ THIS! Wherever you see TEMPLATE or Template or template, replace with whatever you
 * want to call your new page.
 *
 ***************************************************************************/

define('IN_PHPBB', true); 
$phpbb_root_path = './'; 
include($phpbb_root_path . 'extension.inc'); 
include($phpbb_root_path . 'common.'.$phpEx);


/***** If you create VARS (Custom) that do not already exist in Icy Phoenix, then you will also need to create the file "variables.php" for variable-transition to the .tpl file(s). So you will need to uncomment the line below.
*****/
include($phpbb_root_path . 'tickvariables.'.$phpEx);


// standard session management
$userdata = session_pagestart($user_ip, PAGE_TICKINDEX);

if ((!$userdata['session_logged_in']) ) 

   {
        redirect(append_sid(LOGIN_MG . '?redirect=tickindex.' . $phpEx ));
	
   }

else

   {
		init_userprefs($userdata);
		// set page title
		$page_title = "Scotbird Ticklists - Members only area !! ";

		// standard page header
		include($phpbb_root_path . 'includes/page_header.'.$phpEx);

		// assign template
		$template->set_filenames(array('body' => 'tickindex.tpl'));

		// This is where you would add a new VARS Array if you intend to use your own custom VARS.

		$template->pparse('body');

		// standard page footer
		include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

   }




?>[/spoiler]


Is it possible to have the menu at the top change depending on what page is being displayed ??

regards


