Author Topic: Meta data  (Read 31629 times)

0 Members and 1 Guest are viewing this topic.

Offline jengwen

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • http://www.jenrichardsphotography.com
No frames
« Reply #15 on: January 14, 2003, 11:08:53 PM »
I am using version 1.7 and when I entered my site w/o frames, I could see the general meta data I entered in my header file.  I think that was my problem.

I have another question... What is the purpose of adding meta data for each image?  Can search engines pick it up if you are using variables like that?

Offline jengwen

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
    • http://www.jenrichardsphotography.com
Meta data
« Reply #16 on: February 11, 2003, 05:19:06 AM »
Finally got this working and it works great!  Since the full directions are kind of broken up, here is a summary.  New lines are in bold.  

Change header.html:
Quote
<title>{site_name}</title>
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<meta name="description" content="{meta_description}">
<meta name="keywords" content="{meta_keywords}">

<link rel="stylesheet" href="{template_url}/style.css" />


Change details.php:
Quote
//-----------------------------------------------------
//--- Show Image --------------------------------------
//-----------------------------------------------------
$image_allow_comments = (check_permission("auth_readcomment", $cat_id)) ? $image_row['image_allow_comments'] : 0;
$image_name = htmlspecialchars($image_row['image_name']);
show_image($image_row, $mode, 0, 1);
$site_template->register_vars(array(
  "meta_keywords" => str_replace(" ", ", ", $image_row['image_keywords']),
  "meta_description" => $image_row['image_description']
));


Other files to change:
index.php
top.php
search.php
register.php
postcards.php
member.php
lightbox.php
categories.php
quotation.php (if you did the lightbox quote mod)
Quote
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  "msg" => $msg,
  "clickstream" => $clickstream
));
  $site_template->register_vars(array(
  "meta_keywords" => "enter your keywords here",
  "meta_description" => "enter your site description here"
  ));

$site_template->print_template($site_template->parse_template($main_template));
include(ROOT_PATH.'includes/page_footer.php');

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Meta data
« Reply #17 on: February 11, 2003, 11:31:34 PM »
Because the subsequent pages are generated by server side scripts, links to other php files represent a possible infinite URL space.  Because of this possibility most search engines won't follow those links links so they're not likely to ever see the meta tags.   :(

Just my experience and what Google, Inktomi, etc have to say about pages that are dynamically generated.

Offline waleed

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: Meta data
« Reply #18 on: March 16, 2005, 04:27:02 AM »
for keywords .. should i insert comma between every work ?

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: Meta data
« Reply #19 on: March 16, 2005, 05:03:16 AM »
What keywords?  Where?

Offline lapinkulta

  • Newbie
  • *
  • Posts: 42
    • View Profile
    • Avatar Essentials
Re: Meta data
« Reply #20 on: June 22, 2005, 03:23:45 PM »
great mod, exactly what i need.


only if i add:

Code: [Select]
<meta name="description" content="{meta_description}" />
<meta name="keywords" content="{meta_keywords}" />

to the header.html, description and keywords are not displayed.

If I add the fields {meta_description} and {meta_keywords} directly in the let's say home.html template, they show up.

What could this be?

Greetings,
lapinkulta
Two hours of try and error can save ten minutes of manual reading.

Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: Meta data
« Reply #21 on: June 27, 2005, 10:13:54 AM »
if i would like to get information to a categorie! how and where could i do this?

in the detail page i belive it works - waiting of a robot!  :wink:

sincerly
vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: Meta data
« Reply #22 on: July 11, 2005, 02:54:55 PM »
I have added this mod a couple of weeks ago!
but the search engine are not using the information in the meta tag!

in my case for problem solving only in the detail.php

why not?

sincerly
vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


orb42

  • Guest
Re: Meta data
« Reply #23 on: August 07, 2007, 09:15:15 AM »
Quote
Change header.html:


<title>{site_name}</title>
<meta http-equiv="content-type" content="text/html; charset={charset}" />
<meta name="description" content="{meta_description}">
<meta name="keywords" content="{meta_keywords}">
<link rel="stylesheet" href="{template_url}/style.css" />


Change details.php:


//-----------------------------------------------------
//--- Show Image --------------------------------------
//-----------------------------------------------------
$image_allow_comments = (check_permission("auth_readcomment", $cat_id)) ? $image_row['image_allow_comments'] : 0;
$image_name = htmlspecialchars($image_row['image_name']);
show_image($image_row, $mode, 0, 1);
$site_template->register_vars(array(
  "meta_keywords" => str_replace(" ", ", ", $image_row['image_keywords']),
  "meta_description" => $image_row['image_description']
));


Other files to change:
index.php
top.php
search.php
register.php
postcards.php
member.php
lightbox.php
categories.php
quotation.php (if you did the lightbox quote mod)

//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  "msg" => $msg,
  "clickstream" => $clickstream
));
  $site_template->register_vars(array(
  "meta_keywords" => "enter your keywords here",
  "meta_description" => "enter your site description here"
  ));
$site_template->print_template($site_template->parse_template($main_template));
include(ROOT_PATH.'includes/page_footer.php');


Where to put this part please?


Code: [Select]
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(array(
  "msg" => $msg,
  "clickstream" => $clickstream
));
  $site_template->register_vars(array(
  "meta_keywords" => "enter your keywords here",
  "meta_description" => "enter your site description here"
  ));
$site_template->print_template($site_template->parse_template($main_template));
include(ROOT_PATH.'includes/page_footer.php');