Breadcrumbs And New Standard Page »  Show posts from    to     

Icy Phoenix


Old Support Topics - Breadcrumbs And New Standard Page



AndyGpy [ Tue 02 Feb, 2016 22:17 ]
Post subject: Breadcrumbs And New Standard Page
Hi

Can someone please help me identify where i am going wrong ?

I have created a Standard Page in CMS

page_1

As you can see i have ticked the Breadcrumbs checkbox and setting are as

page_2

how do i get them to appear on my page like this ( albums page )

3

Also on any page that i have created a standard page for i cannot get the logout button to display the text of logout, but its fine in all other pages, ie album, forum, index etc ( Last button in the clip above and below )

4

my page start code is as shown

Code: [Hide] [Select]

define('IN_ICYPHOENIX', true);
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
include(IP_ROOT_PATH . 'common.' . PHP_EXT);

include(IP_ROOT_PATH . '/ticklists/ticksummaryconfig.'.PHP_EXT);

$sortby = $_REQUEST["REGION_FILTER"];

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
// End session management


$cms_page['page_id'] = 'leaderboard';
$cms_page['page_nav'] = (!empty($cms_config_layouts[$cms_page['page_id']]['page_nav']) ? true : false);
$cms_page['global_blocks'] = (!empty($cms_config_layouts[$cms_page['page_id']]['global_blocks']) ? true : false);
$cms_auth_level = (isset($cms_config_layouts[$cms_page['page_id']]['view']) ? $cms_config_layouts[$cms_page['page_id']]['view'] : AUTH_ALL);
check_page_auth($cms_page['page_id'], $cms_auth_level);



Appreciate any help


mort [ Tue 02 Feb, 2016 22:36 ]
Post subject: Re: Breadcrumbs And New Standard Page
Quote:
Also on any page that i have created a standard page for i cannot get the logout button to display the text of logout


The problem for that would be in the .tpl file - zip me a copy of the template files...


Mighty Gorgon [ Tue 02 Feb, 2016 22:44 ]
Post subject: Re: Breadcrumbs And New Standard Page
Can you try moving this part include(IP_ROOT_PATH . '/ticklists/ticksummaryconfig.'.PHP_EXT); after the check_page_auth function?


AndyGpy [ Wed 03 Feb, 2016 10:29 ]
Post subject: Re: Breadcrumbs And New Standard Page
If i do that the lest of page wont load as it contains login details to a dbase outwith ip database


Mighty Gorgon [ Wed 03 Feb, 2016 10:39 ]
Post subject: Re: Breadcrumbs And New Standard Page
I have just made a test with the GIT version:

Created a file called leaderboard.php

Code: [Hide] [Select]
<?php

define('IN_ICYPHOENIX', true);
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
include(IP_ROOT_PATH . 'common.' . PHP_EXT);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
// End session management

$cms_page['page_id'] = 'leaderboard';
$cms_page['page_nav'] = (!empty($cms_config_layouts[$cms_page['page_id']]['page_nav']) ? true : false);
$cms_page['global_blocks'] = (!empty($cms_config_layouts[$cms_page['page_id']]['global_blocks']) ? true : false);
$cms_auth_level = (isset($cms_config_layouts[$cms_page['page_id']]['view']) ? $cms_config_layouts[$cms_page['page_id']]['view'] : AUTH_ALL);
check_page_auth($cms_page['page_id'], $cms_auth_level);

message_die(GENERAL_MESSAGE, 'GREAT!!!');

?>


Added the page into Standard Pages section in CMS.

ip_leaderboard_01

ip_leaderboard_02

For me everything is working properly...


AndyGpy [ Wed 03 Feb, 2016 16:14 ]
Post subject: [SOLVED] Re: Breadcrumbs And New Standard Page
I replaced this at bottom of script

//$template->pparse('body');

with

full_page_generation($template_to_parse, $meta_content['page_title'], $meta_content['description'], $meta_content['keywords']);

and assigned $template_to_parse at top of script to leaderboard.tpl, now working.

Im learning loads as i playing with this.

Also included the meta fields now working fine


mort [ Sat 06 Feb, 2016 01:58 ]
Post subject: Re: Breadcrumbs And New Standard Page
AndyGpy wrote: [View Post]
I'm learning loads as i playing with this.


You may have to learn how to re-code the database queries for your mods too. Mysql will be dead with the next release of php.


Informpro [ Sat 06 Feb, 2016 08:21 ]
Post subject: Re: Breadcrumbs And New Standard Page
No, that's not true. First off, it's mysql that gets killed, not mysqli (which uses the mysqlnd).

Second off, since we have a SQL abstraction class, user code shouldn't have to change one bit :-).


mort [ Mon 08 Feb, 2016 09:06 ]
Post subject: Re: Breadcrumbs And New Standard Page
So are you saying that phpBB and IP'x are a one-off (On their own), and it comes to using their own special format to address and manipulate the database and not something standard like everyone else uses?




Informpro [ Mon 08 Feb, 2016 10:52 ]
Post subject: Re: Breadcrumbs And New Standard Page
No, that's not what I'm saying. I'm saying phpBB and IP are using a "gateway" or "proxy" between their code and the database.

Otherwise phpBB wouldn't be able to support so many DB layers (mysql, postgresql, oracle, etc)




Powered by Icy Phoenix