https://www.icyphoenix.com/viewtopic.php?f=35&t=9535
-----------------------------------
AndyGpy
Tue 02 Feb, 2016 22:17

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 

[img]http://www.icyphoenix.com/files/images/5799/page_1.jpg[/img] 

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

[img]http://www.icyphoenix.com/files/images/5799/page_2.jpg[/img] 

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

 [img]http://www.icyphoenix.com/files/images/5799/3.jpg[/img] 

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 )

 [img]http://www.icyphoenix.com/files/images/5799/4.jpg[/img] 

my page start code is as shown 

[code linenumbers=false]

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);

[/code]

Appreciate any help


-----------------------------------
mort
Tue 02 Feb, 2016 22:36

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[/quote]

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

Re: Breadcrumbs And New Standard Page
-----------------------------------
Can you try moving this part [c]include(IP_ROOT_PATH . '/ticklists/ticksummaryconfig.'.PHP_EXT);[/c] after the [c]check_page_auth[/c] function?


-----------------------------------
AndyGpy
Wed 03 Feb, 2016 10:29

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

Re: Breadcrumbs And New Standard Page
-----------------------------------
I have just made a test with the GIT version:

Created a file called [c]leaderboard.php[/c]

[codeblock]<?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!!!');

?>[/codeblock]

Added the page into Standard Pages section in CMS.

[img]http://www.icyphoenix.com/files/images/2/ip_leaderboard_01.png[/img]

[img]http://www.icyphoenix.com/files/images/2/ip_leaderboard_02.png[/img]

For me everything is working properly...


-----------------------------------
AndyGpy
Wed 03 Feb, 2016 16:14

[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

Re: Breadcrumbs And New Standard Page
-----------------------------------
[quote user="AndyGpy" post="60384"]I'm learning loads as i playing with this.[/quote]

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

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

Re: Breadcrumbs And New Standard Page
-----------------------------------
So are you saying that phpBB and IP'x are a one-off [i][b](On their own)[/b][/i], and it comes to using their own special format to address and manipulate the database and not something standard like everyone else uses?
 :shock: 

 :mricy:


-----------------------------------
Informpro
Mon 08 Feb, 2016 10:52

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)


