[PhpWebGallery] GG référence "Accueil", pas le nom

WRInaute passionné
Mets au moins les balises suivantes ;-)

<title></title>
<meta name="description" content="
<meta name="keywords" content="

De plus si tu mets 'Cichlid's Reflex' en titre rajoute un truc du style 'Cichlid's Reflex : photos de cichlidés'

ça aide au niveau référencement ;-)

P.S : voudrai bien un Tropheus moorii (magnifique ce poisson) si tu as des tuyaux.
 
Nouveau WRInaute
Quand j'affiche la source, je trouve bien "<title>Accueil</title>", mais avec Editplus, impossible de la trouver, il n'affiche pas les mêmes lignes...
 
Nouveau WRInaute
Notepad ne me trouve pas la balise "title" non plus dans "category.php" alors que quand j'affiche la source en ligne il n'y a pas de souci...

Ca me paraît insensé. 8O


PS: "category.php" est en fait l'"index.php" de ce php.
 
WRInaute accro
il serait pas dans un "header.php" ou un truc comme ça ?

Check ton "index.php ou "category.php" et regarde quels sont les premiers fichiers php en include, c'est surement là dedans.
 
WRInaute accro
C'est bon...

Maintenant, il te faudrait aller chercher un titre, description, keywords différents pour chacune des pages ;)
 
Nouveau WRInaute
HawkEye_TpfH a dit:
C'est bon...

Maintenant, il te faudrait aller chercher un titre, description, keywords différents pour chacune des pages ;)
En fait, tu asis, c'est plutôt un truc de passionné, donc je ne cherche pas le badaud ni des clics sur des bannières.
Une fois sur l'accueil, je pense que si ça intéresse, on s'attarde, sinon on zappe, je veux juste que les passionnés ne me loupent pas.
De plus, comme tu peux le constater, la page d'accueil reprend exactement l'architecture des galeries dans sa partie droite avec le nom de tous les poissons représentés. Je pense que ça suffira.

Merci en tout cas pour votre aide précieuse, et bonne continuation dans vos projets respectifs !
 
WRInaute accro
Cichlidés.com a dit:
HawkEye_TpfH a dit:
C'est bon...

Maintenant, il te faudrait aller chercher un titre, description, keywords différents pour chacune des pages ;)
En fait, tu asis, c'est plutôt un truc de passionné, donc je ne cherche pas le badaud ni des clics sur des bannières.
Une fois sur l'accueil, je pense que si ça intéresse, on s'attarde, sinon on zappe, je veux juste que les passionnés ne me loupent pas.
De plus, comme tu peux le constater, la page d'accueil reprend exactement l'architecture des galeries dans sa partie droite avec le nom de tous les poissons représentés. Je pense que ça suffira.

Merci en tout cas pour votre aide précieuse, et bonne continuation dans vos projets respectifs !

Je comprends, mais si toutes tes pages ont le même titre, les mêmes keywords et les mêmes descriptions, elles seront classées par Google en "pages similaires", et tu y perds...

Si je me rappelle bien l'architecture de ton site, tu passes via index.php?id=XYZ (ou qqch du genre).

puisque pour chaque page tu connais d'ID, tu peux utiliser ce paramètre pour récupérer par exemple l'info comme quoi cette page parle de tel chichlidé ou d'un autre, et faire varier ainsi les titles, descriptions, et même keywords si nécessaire ;)
 
WRInaute accro
Notepad ne me trouve pas la balise "title" non plus dans "category.php" alors que quand j'affiche la source en ligne il n'y a pas de souci...

Ca me paraît insensé. Shocked

Ben non le php est transformé en html par le serveur... y'a donc une différence entre la source est le fichier. Surtout si y'a des includes qui appelle d'autres fichier dans le code php :wink:
 
Nouveau WRInaute
Ce que j'ai fait c'est un copier de ce que me donnait l'affichage de la source en html et le mettais dans le fichier php ouvert par l'éditeur php à la place des codes php.

Bon là je recommence tout car j'ai merdé. :D
 
Nouveau WRInaute
Bon bin ça ne marche pas car quand je copie le code source d'une page déjà en ligne pour remplacer le contenu de la page php, évidemment (à posteriori), je me retrouve avec une page figée...

Je ne sais pas comment éditer cette page de php pour insèrer mes mots clefs...
Code:
<?php
// +-----------------------------------------------------------------------+
// | PhpWebGallery - a PHP based picture gallery                           |
// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
// | Copyright (C) 2003-2005 PhpWebGallery Team - http://phpwebgallery.net |
// +-----------------------------------------------------------------------+
// | branch        : BSF (Best So Far)
// | file          : $RCSfile: category.php,v $
// | last update   : $Date: 2005/04/30 15:23:28 $
// | last modifier : $Author: plg $
// | revision      : $Revision: 1.67.2.1 $
// +-----------------------------------------------------------------------+
// | This program is free software; you can redistribute it and/or modify  |
// | it under the terms of the GNU General Public License as published by  |
// | the Free Software Foundation                                          |
// |                                                                       |
// | This program is distributed in the hope that it will be useful, but   |
// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
// | General Public License for more details.                              |
// |                                                                       |
// | You should have received a copy of the GNU General Public License     |
// | along with this program; if not, write to the Free Software           |
// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
// | USA.                                                                  |
// +-----------------------------------------------------------------------+

//--------------------------------------------------------------------- include
define('PHPWG_ROOT_PATH','./');
include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
//---------------------------------------------------------------------- logout
if ( isset( $_GET['act'] )
     and $_GET['act'] == 'logout'
     and isset( $_COOKIE['id'] ) )
{
  // cookie deletion if exists
  setcookie( 'id', '', 0, cookie_path() );
  $url = 'category.php';
  redirect( $url );
}
//-------------------------------------------------- access authorization check
if (isset($_GET['cat']))
{
  check_cat_id($_GET['cat']);
}
check_login_authorization();
if (isset($page['cat']) and is_numeric($page['cat']))
{
  check_restrictions($page['cat']);
}
//-------------------------------------------------------------- initialization
// detection of the start picture to display
if ( !isset( $_GET['start'] )
     or !is_numeric( $_GET['start'] )
     or ( is_numeric( $_GET['start'] ) and $_GET['start'] < 0 ) )
{
  $page['start'] = 0;
}
else
{
  $page['start'] = $_GET['start'];
}

// Sometimes, a "num" is provided in the URL. It is the number
// of the picture to show. This picture must be in the thumbnails page.
// We have to find the right $page['start'] that show the num picture
// in this category
if ( isset( $_GET['num'] )
     and is_numeric( $_GET['num'] )
     and $_GET['num'] >= 0 )
{
  $page['start'] = floor( $_GET['num'] / $user['nb_image_page'] );
  $page['start']*= $user['nb_image_page'];
}

initialize_category();

// creation of the array containing the cat ids to expand in the menu
// $page['tab_expand'] contains an array with the category ids
// $page['expand'] contains the string to display in URL with comma
$page['tab_expand'] = array();
if ( isset( $page['cat'] ) and is_numeric( $page['cat'] ) )
{
  // the category displayed (in the URL cat=23) must be seen in the menu ->
  // parent categories must be expanded
  $uppercats = explode( ',', $page['uppercats'] );
  foreach ( $uppercats as $uppercat ) {
    array_push( $page['tab_expand'], $uppercat );
  }
}
// in case of expanding all authorized cats $page['tab_expand'] is empty
if ( $user['expand'] )
{
  $page['tab_expand'] = array();
}
//----------------------------------------------------- template initialization
//
// Start output of page
//
$title = $page['title'];
include(PHPWG_ROOT_PATH.'include/page_header.php');

$template->set_filenames( array('category'=>'category.tpl') );
//-------------------------------------------------------------- category title
if (isset($page['cat']) and is_numeric($page['cat']))
{
  $template_title = get_cat_display_name($page['cat_name'],
                                         'category.php?cat=',
                                         false);
}
else
{
  $template_title = $page['title'];
}

if ( isset( $page['cat_nb_images'] ) and $page['cat_nb_images'] > 0 )
{
  $template_title.= ' ['.$page['cat_nb_images'].']';
}

$icon_recent = get_icon(date('Y-m-d'));

$template->assign_vars(array(
  'NB_PICTURE' => count_user_total_images(),
  'TITLE' => $template_title,
  'USERNAME' => $user['username'],
  'TOP_NUMBER'=>$conf['top_number'],
  'MENU_CATEGORIES_CONTENT'=>get_categories_menu(),

  'L_CATEGORIES' => $lang['categories'],
  'L_HINT_CATEGORY' => $lang['hint_category'],
  'L_SUBCAT' => $lang['sub-cat'],
  'L_IMG_AVAILABLE' => $lang['images_available'],
  'L_TOTAL' => $lang['total'],
  'L_SPECIAL_CATEGORIES' => $lang['special_categories'],
  'L_SUMMARY' => $lang['title_menu'],
  'L_UPLOAD' => $lang['upload_picture'],
  'L_COMMENT' => $lang['comments'],
  'L_IDENTIFY' => $lang['identification'],
  'L_SUBMIT' => $lang['menu_login'],
  'L_USERNAME' => $lang['login'],
  'L_PASSWORD' => $lang['password'],
  'L_HELLO' => $lang['hello'],
  'L_REGISTER' => $lang['ident_register'],
  'L_LOGIN' => $lang['menu_login'],
  'L_LOGOUT' => $lang['logout'],
  'L_ADMIN' => $lang['admin'],
  'L_ADMIN_HINT' => $lang['hint_admin'],
  'L_PROFILE' => $lang['customize'],
  'L_PROFILE_HINT' => $lang['hint_customize'],
  'L_REMEMBER_ME' => $lang['remember_me'],
  
  'F_IDENTIFY' => add_session_id( PHPWG_ROOT_PATH.'identification.php' ),
  'T_RECENT' => $icon_recent,

  'U_HOME' => add_session_id( PHPWG_ROOT_PATH.'category.php' ),
  'U_REGISTER' => add_session_id( PHPWG_ROOT_PATH.'register.php' ),
  'U_LOGOUT' => PHPWG_ROOT_PATH.'category.php?act=logout',
  'U_ADMIN'=>add_session_id( PHPWG_ROOT_PATH.'admin.php' ),
  'U_PROFILE'=>add_session_id(PHPWG_ROOT_PATH.'profile.php?'.str_replace( '&', '&amp;', $_SERVER['QUERY_STRING'] ))
  )
);
//---------------------------------------------------------- special categories
// favorites categories
if ( !$user['is_the_guest'] )
{
  $template->assign_block_vars('username', array());

  $template->assign_block_vars(
    'special_cat',
    array(
      'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=fav'),
      'TITLE' => $lang['favorite_cat_hint'],
      'NAME' => $lang['favorite_cat']
      ));
}
// most visited
$template->assign_block_vars(
  'special_cat',
  array(
    'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=most_visited'),
    'TITLE' => $lang['most_visited_cat_hint'],
    'NAME' => $lang['most_visited_cat']
    ));
// best rated
if ($conf['rate'])
{
  $template->assign_block_vars(
    'special_cat',
    array(
      'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=best_rated'),
      'TITLE' => $lang['best_rated_cat_hint'],
      'NAME' => $lang['best_rated_cat']
      ));
}
// random
$template->assign_block_vars(
  'special_cat',
  array(
    'URL' => add_session_id(PHPWG_ROOT_PATH.'random.php'),
    'TITLE' => $lang['random_cat_hint'],
    'NAME' => $lang['random_cat']
    ));
// recent pics
$template->assign_block_vars(
  'special_cat',
  array(
    'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=recent_pics'),
    'TITLE' => $lang['recent_pics_cat_hint'],
    'NAME' => $lang['recent_pics_cat']
    ));
// recent cats
$template->assign_block_vars(
  'special_cat',
  array(
    'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=recent_cats'),
    'TITLE' => $lang['recent_cats_cat_hint'],
    'NAME' => $lang['recent_cats_cat']
    ));
// calendar
$template->assign_block_vars(
  'special_cat',
  array(
    'URL' => add_session_id(PHPWG_ROOT_PATH.'category.php?cat=calendar'),
    'TITLE' => $lang['calendar_hint'],
    'NAME' => $lang['calendar']
    ));
//--------------------------------------------------------------------- summary

if ( !$user['is_the_guest'] )
{
  $template->assign_block_vars('logout',array());
  // administration link
  if ( $user['status'] == 'admin' )
  {
    $template->assign_block_vars('logout.admin', array());
  }
}
else
{
  $template->assign_block_vars('login',array());
  if ($conf['authorize_remembering'])
  {
    $template->assign_block_vars('login.remember_me',array());
  }
}

// search link
$template->assign_block_vars('summary', array(
'TITLE'=>$lang['hint_search'],
'NAME'=>$lang['search'],
'U_SUMMARY'=>add_session_id( 'search.php' ),
));

// comments link
$template->assign_block_vars('summary', array(
'TITLE'=>$lang['hint_comments'],
'NAME'=>$lang['comments'],
'U_SUMMARY'=>add_session_id( 'comments.php' ),
));

// about link
$template->assign_block_vars('summary', array(
'TITLE'=>$lang['hint_about'],
'NAME'=>$lang['about'],
'U_SUMMARY'=>add_session_id( 'about.php?'.str_replace( '&', '&amp;', $_SERVER['QUERY_STRING'] ) )
));

//------------------------------------------------------ main part : thumbnails
if (isset($page['cat'])
    and ((is_numeric($page['cat']) and $page['cat_nb_images'] != 0)
         or in_array($page['cat'],
                     array('search'
                           ,'most_visited'
                           ,'recent_pics'
                           ,'best_rated'
                           ,'list'
                           ,'fav'
                       ))))
{
  include(PHPWG_ROOT_PATH.'include/category_default.inc.php');
}
elseif (isset($page['cat']) and $page['cat'] == 'calendar')
{
  include(PHPWG_ROOT_PATH.'include/category_calendar.inc.php');
}
elseif (isset($page['cat']) and $page['cat'] == 'recent_cats')
{
  include(PHPWG_ROOT_PATH.'include/category_recent_cats.inc.php');
}
else
{
  include(PHPWG_ROOT_PATH.'include/category_subcats.inc.php');
}
//------------------------------------------------------- category informations
if ( isset ( $page['cat'] ) )
{
  // upload a picture in the category
  if (is_numeric($page['cat'])
      and $page['cat_site_id'] == 1
      and $page['cat_dir'] != ''
      and $page['cat_uploadable'])
  {
    $url = PHPWG_ROOT_PATH.'upload.php?cat='.$page['cat'];
    $template->assign_block_vars(
      'upload',
      array('U_UPLOAD'=>add_session_id( $url ))
      );
  }

  if ( $page['navigation_bar'] != ''
       or ( isset( $page['comment'] ) and $page['comment'] != '' ) )
  {
    $template->assign_block_vars('cat_infos',array());
  }
  
  // navigation bar
  if ( $page['navigation_bar'] != '' )
  { 
    $template->assign_block_vars(
      'cat_infos.navigation',
      array('NAV_BAR' => $page['navigation_bar'])
      );
  }
  // category comment
  if ( isset( $page['comment'] ) and $page['comment'] != '' )
  {
    $template->assign_block_vars(
      'cat_infos.comment',
      array('COMMENTS' => $page['comment'])
      );
  }
}
//------------------------------------------------------------ log informations
pwg_log( 'category', $page['title'] );
mysql_close();

$template->parse('category');
include(PHPWG_ROOT_PATH.'include/page_tail.php');
?>
 
WRInaute impliqué
Salut !
Désolé j'ai pas pu repondre plus vite .

Tu cherche le fichier header.tpl puis tu met ça .

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{LANG}" lang="{LANG}" dir="{DIR}">

 <head>
  <meta http-equiv="Content-Type" content="text/html; charset={CONTENT_ENCODING}" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <!-- BEGIN refresh -->
  <meta http-equiv="refresh" content="{REFRESH_TIME};url={U_REFRESH}">
  <!-- END refresh -->
  <title>Le Titre que tu veux ici</title>
  <link rel="stylesheet" href="{T_STYLE}" type="text/css" />
  <script type="text/javascript" src="include/scripts.js"></script>
 </head>

 <body>
 <div class="main">

J'espere que ça marchera .

Merci

@+
 
WRInaute impliqué
Salut !
ça a marcher mais vaux mieux ajouter "Photos de Poissons" pour essayer de te positionner sur ce mot clé.

Essaye de changer les couleurs ( css ) car le theme par défaut n'est pas top .

@+
 
Discussions similaires
Haut