$header->replace() function please help
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';
Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.
Comments on $header->replace() function
Forum Regular
Usergroup: Customer
Joined: May 14, 2006
Total Topics: 41
Total Comments: 103
Posted Aug 12, 2012 - 1:14 AM:
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.
The output for the metatag is still the mainmeta. Any idea how to get it done?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
I believe using $settings->mainmeta = $headerinfo2; would work.
Forum Regular
Usergroup: Customer
Joined: May 14, 2006
Total Topics: 41
Total Comments: 103
yeah, that works well, thank you so much!