W?a?nie wpad? mi do g?owy banalnypomys?, na rozwi?zanie problemuzes?owami kluczowymi ró?nymi na ka?dej podstronie :)
otwieramy przyk?adowo plik newsy, i dopisujemy na
górze jedn? linijk? (zaznaczona na czerwono)
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
[color=red]$page = 'newsy';[/color]
Teraz otwieramy subheader.php i dopisujemyna górzekilka linijek (zaznaczone na czerwono)
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }
require_once THEME."theme.php";
if ($settings['maintenance'] == "1" && !iADMIN) fallback(BASEDIR."maintenance.php");
if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'");
[color=red]if (empty($page)) {
$keywords = $settings['keywords'];
}
elseif ($page == 'newsy') {
$keywords = 'newsy, newsy2, newsy3';[/color]
}
i nieco ni?ej zamieniamy fragment
<meta name='keywords' content='".$keywords."'>
na
<meta name='keywords' content='".$settings['keywords'];."'>
Analogicznie post?pujemy z innymi odstronami. Prawda, ?e proste :) ??
Zapraszam na motoklimat.pl - Baza wiedzy o samochodach, modele, spalanie, specyfikacje.
|