Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 3 Years, 1 Month, 1 Week ago PHP Page | Page Manager | Pull Custom Template
#1
Solved: 3 Years, 1 Month, 1 Week ago
Hey there,

I'm wanting to pull a custom template into a php page made with page manager. I've tried the following:
<?php
global $headerinclude, $header, $theme, $footer, $db;
add_breadcrumb($pages['name']);
$template='<html><head><title>'.$mybb->settings['bbname']." - ".$pages['name'].'</title>{$headerinclude}</head><body>{$header}




Testing beep? <br /><br />

{$guidebook}



{$footer}</body></html>';
$template=str_replace("\'", "'", addslashes($template));
eval("\$page=\"".$template."\";");
eval("\$guidebook=\"".$templates->get.("guidebook")."\";");
output_page($page);
?>

The page loads but the
{$guidebook}

Does not load. The template is located in my global templates. I'm just not sure how to call it forth and show in the php page of the Page Manager plugin page.

Any help is appreciated! Smile
> SELECT finger FROM hand WHERE id='3'
Reply
Jump to the post that solved this thread.


Messages In This Thread
PHP Page | Page Manager | Pull Custom Template - by isoldehn - 2017-02-20, 07:06 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)