Webmastersite.net
Register Log In

$header->replace() function
please help

Comments on $header->replace() function

mc19
Forum Regular

Usergroup: Customer
Joined: May 14, 2006

Total Topics: 41
Total Comments: 103
mc19
$header->replace() function
Posted Aug 11, 2012 - 11:14 PM:

I have a customized page which was built several years ago, and i don't want to use the system function under Tempaltes -> Custom Pages.

and it looks like the $header->replace('{MAINMETA}', 'something here'), is no longer worked.


require_once 'start.php';

$template = new template('a_customized_page.tpl');

$area = "Customized Page Title";
$headerinfo2 = "<meta name=\"keywords\" content=\"something keywords here\" /><meta name=\"description\" content=\"some description here.\" />";
$header->replace('{MAINMETA}', $headerinfo2);

require 'end.php';


The output for the metatag is still the mainmeta. Any idea how to get it done?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 13, 2012 - 4:35 PM:

I believe using $settings->mainmeta = $headerinfo2; would work.
mc19
Forum Regular

Usergroup: Customer
Joined: May 14, 2006

Total Topics: 41
Total Comments: 103
mc19
Posted Aug 14, 2012 - 9:10 AM:

yeah, that works well, thank you so much!
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.