Icy Phoenix

     
 

Breadcrumbs And New Standard Page

Breadcrumbs And New Standard Page

Article
Reply with quote    Download Post  
Post 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: [Download] [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



 
AndyGpy - View user's profile Send private message  
AndyGpy [ Tue 02 Feb, 2016 22:17 ]
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us


Breadcrumbs And New Standard Page

Comments
Reply with quote    Download Post  
Post 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...



 
mort - View user's profile Send private message  
mort [ Tue 02 Feb, 2016 22:36 ]
Reply with quote    Download Post  
Post 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?



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Tue 02 Feb, 2016 22:44 ]
Reply with quote    Download Post  
Post 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



 
AndyGpy - View user's profile Send private message  
AndyGpy [ Wed 03 Feb, 2016 10:29 ]
Reply with quote    Download Post  
Post Re: Breadcrumbs And New Standard Page 
 
I have just made a test with the GIT version:

Created a file called leaderboard.php

Code: [Download] [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...



 
Mighty Gorgon - View user's profile Send private message  
Mighty Gorgon [ Wed 03 Feb, 2016 10:39 ]
Reply with quote    Download Post  
Post [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



 
AndyGpy - View user's profile Send private message  
AndyGpy [ Wed 03 Feb, 2016 16:14 ]
Reply with quote    Download Post  
Post 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.



 
mort - View user's profile Send private message  
mort [ Sat 06 Feb, 2016 01:58 ]
Reply with quote    Download Post  
Post 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 :-).



 
Informpro - View user's profile Send private message  
Informpro [ Sat 06 Feb, 2016 08:21 ]
Reply with quote    Download Post  
Post 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?
 

 



 
mort - View user's profile Send private message  
mort [ Mon 08 Feb, 2016 09:06 ]
Reply with quote    Download Post  
Post 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)



 
Informpro - View user's profile Send private message  
Informpro [ Mon 08 Feb, 2016 10:52 ]
Display posts from previous:    

HideWas this topic useful?

Post new topic  Reply to topic  Page 1 of 1
 
 




 


 

  cron