STUPID ME FORGOT THAT YOU CANT SEE THE BOLD SO PLEASE LOOK AT THE CODE INBETWEEN THE [ b ] and the [ / b ]....that is where the bold was
I will try to help you. I just downloaded this today and this is the first time looking at the code so there is a simpler way but i dont have time to learn all the code that is in this script and find where the proper code should go. Basically the easiest way is to duplicate your templates. Really this is not as hard as you think. All the information you will need to input into your meta tags are already in your data base you just need to fetch them. Now the reason why we are going to duplicate them(This is the short cut) is your using two different files to display your website...well at least most of the pages. There is the main one and the detailed page. You are going to want to seperate these so you get the max out of the spider that will crawl your page. Now again this is not really the way to do it but it will work...just not with your rating page and top page ect....if you want to see an example go to
peterl.ca...just dont tell my father in law as it is his website
First we are going to need to change your meta tages so open up your template/default/header.html
change all the bold spots
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{direction}">
<head>
<title>{site_name} - {cat_name}</title>
<meta http-equiv="content-type" content="text/html; iso-8859-1">
<meta name="robots" content="INDEX,FOLLOW">
<meta http-equiv="content-language" content="en">
<meta name="description" content="{cat_description}.">
<meta name="keywords" content="{cat_name} {site_name}">
<meta name="author" content="Laagee Web Design">
<meta name="revisit-after" content="10 days">
<meta http-equiv="imagetoolbar" content="no">
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<link rel="stylesheet" href="{template_url}/style.css" />
<script language="javascript" type="text/javascript">
<!--
This will automatically change your site to the input in your data base. Now because we have the detail.php for your pictures this type of meta tag will not due. Cause it will show the category it is in and your site name for the metas. So we need to change this part. This is where it might get complicated so try to follow along.
First we need to start at the source. details.php. again change the bold spots
$main_template = 'details';
define('GET_CACHES', 1);
define('ROOT_PATH', './');
include(ROOT_PATH.'detail_global.php');
require(ROOT_PATH.'includes/sessions.php');
$user_access = get_permission();
include(ROOT_PATH.'includes/header.php');
if (!$image_id) {
redirect($url);
Now in your script there is no detailed_global.php so what we need to do is copy the whole file of global.php and paste it into a blank file and call it detail_global.php. DO NOT DELETE THE GLOBAL.PHP you still need it!
when your done copy and pasting find the line.
include_once(ROOT_PATH.'includes/template.php');
Change it to
include_once(ROOT_PATH.'includes/detail_template.php');
Now again there is no file called detailed_template.php...so you need to open up your file template.php and like before copy all the contents and name it detail_template.php.
Close to the end of the file you will find this code
function print_template($template) {
if (strpos($template, $this->start.'header'.$this->end) !== false) {
$header = $this->parse_template("header");
$template = str_replace($this->start.'header'.$this->end, $header, $template);
}
Change all the bold lines
function print_template($template) {
if (strpos($template, $this->start.'detail_header'.$this->end) !== false) {
$header = $this->parse_template("detail_header");
$template = str_replace($this->start.'detail_header'.$this->end, $header, $template);
}
Almost done...now we need to create the detail_header.html. So go into templates/default/header.html copy it all and paste it again and name it detail_header.html. after that you will need to change all the red lines here
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{direction}">
<head>
<title>{site_name} - {image_name}</title>
<meta http-equiv="content-type" content="text/html; iso-8859-1">
<meta name="robots" content="INDEX,FOLLOW">
<meta http-equiv="content-language" content="en">
<meta name="description" content="{image_description}.">
<meta name="keywords" content="{image_name} {site_name}">
<meta name="author" content="Laagee Web Design">
<meta name="revisit-after" content="10 days">
<meta http-equiv="imagetoolbar" content="no">
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<link rel="stylesheet" href="{template_url}/style.css" />
<script language="javascript" type="text/javascript">
<!--
One more thing and we are done. Open up templates/default/details.html at the very top it will say {header} change this to {detail_header} and your done. You will have a site like this
http://www.peterl.ca All the pages have there own unique tags. I hope this has helped. And for all the people that actually know this script please post a better way of doing this cause for the guys that dont really know what they are doing it could really help them....CHEERS!