1
tatane
balise title
  • 2009/2/23 9:36

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


hello

I use my site for the module "Catads 1.50" that appears as Homepage.Currently between the tags my theme.html there-it has
Quote:
<{if $xoops_pagetitle !=''}><{$xoops_pagetitle}> - <{/if}>



when we are on the home page, I would like to see "les petites annonces de la sarthe" and when you click on a category, which is displayed in the title

how?

thank you

2
deka87
Re: balise title
  • 2009/2/23 10:20

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


I'm not sure if I got you right, but I guess you want some custom titles. You can edit your templates for this purpose, or (I can recommend it) you can use XBS MetaTags module to set custom titles and meta tags for any webspage on your website.
Mind anchors

3
tatane
Re: balise title
  • 2009/2/23 10:37

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Yes, I want to customize my title, but your link does not work

4
trabis
Re: balise title
  • 2009/2/23 10:40

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1



5
tatane
Re: balise title
  • 2009/2/23 11:30

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


I tried it on XOOPS 2.0.18.2 but these did not seem to work!
Resized Image


Here is the link

6
tatane
Re: balise title
  • 2009/2/23 13:10

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


Quote:
For XOOPS 2.0.14 installations
------------------------------

before the line (at line 39)

$xoopsTpl->display('db:'.$xoopsOption['template_main']);

Insert

/**
* Hack by A Kitson to enable XBS MetaTags
*/
if (file_exists(XOOPS_ROOT_PATH."/modules/xbs_tags/include/metatags.php")) {
include XOOPS_ROOT_PATH."/modules/xbs_tags/include/metatags.php";
}
/**
* End hack
*/

before the line (at line 75)

$xoTheme->render();

Insert

/**
* Hack by A Kitson to enable XBS MetaTags
*/
if (file_exists(XOOPS_ROOT_PATH."/modules/xbs_tags/include/metatags.php")) {
include XOOPS_ROOT_PATH."/modules/xbs_tags/include/metatags.php";
}
/**
* End hack
*/


but for XOOPS 2.0.18.2 I put it or?

this the footer.php of XOOPS 2.0.18.2
Quote:
// $Id: footer.php 1083 2007-10-16 16:42:51Z phppp $
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
// <https://xoops.org/> //
// ------------------------------------------------------------------------ //
// 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; either version 2 of the License, or //
// (at your option) any later version. //
// //
// You may not change or alter any portion of this comment or credits //
// of supporting developers from this source code or any supporting //
// source code which is considered copyrighted (c) material of the //
// original comment or credit authors. //
// //
// 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 //
// ------------------------------------------------------------------------ //
if (!defined("XOOPS_ROOT_PATH")) {
die("XOOPS root path not defined");
}
if ( !defined("XOOPS_FOOTER_INCLUDED") ) {
define("XOOPS_FOOTER_INCLUDED",1);

$xoopsLogger->stopTime( 'Module display' );
if ($xoopsOption['theme_use_smarty'] == 0) {
// the old way
$footer = htmlspecialchars( $xoopsConfigMetaFooter['footer'] ) . '
Powered by XOOPS © The XOOPS Project
';
if (isset($xoopsOption['template_main'])) {
$xoopsTpl->xoops_setCaching(0);
$xoopsTpl->display('db:'.$xoopsOption['template_main']);
}
if (!isset($xoopsOption['show_rblock'])) {
$xoopsOption['show_rblock'] = 0;
}
themefooter($xoopsOption['show_rblock'], $footer);
xoops_footer();
} else {
// RMV-NOTIFY
include_once XOOPS_ROOT_PATH . '/include/notification_select.php';

if (!headers_sent()) {
header('Content-Type:text/html; charset='._CHARSET);
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
//header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
header('Cache-Control: private, no-cache');
header('Pragma: no-cache');
}
/*
global $xoopsDB, $xoopsConfig;
if ( !$xoopsConfig['theme_fromfile'] ) {
session_write_close();
$xoopsDB->close();
}
*/
//@internal: using global $xoTheme dereferences the variable in old versions, this does not
if ( !isset( $xoTheme ) ) $xoTheme =& $GLOBALS['xoTheme'];

if ( isset( $xoopsOption['template_main'] ) && $xoopsOption['template_main'] != $xoTheme->contentTemplate ) {
trigger_error( "xoopsOption[template_main] should be defined before including header.php", E_USER_WARNING );
if ( false === strpos( $xoopsOption['template_main'], ':' ) ) {
$xoTheme->contentTemplate = 'db:' . $xoopsOption['template_main'];
} else {
$xoTheme->contentTemplate = $xoopsOption['template_main'];
}
}
$xoTheme->render();
}
$xoopsLogger->stopTime();
}
?>

7
deka87
Re: balise title
  • 2009/2/23 13:50

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


think it only works without
?topic_id=1
after the script name
Mind anchors

8
tatane
Re: balise title
  • 2009/2/23 13:53

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1



can you clarify?

9
deka87
Re: balise title
  • 2009/2/23 14:56

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


you specified annonces/listing.php?topic_id=1 as a script name, however it's supposed to be annonces/listing.php only.
Mind anchors

10
tatane
Re: balise title
  • 2009/2/23 14:58

  • tatane

  • Just can't stay away

  • Posts: 649

  • Since: 2008/5/6 1


is good,in catads/index.php
the line $xoopsTpl->assign('xoops_pagetitle', $xoopsModule->name() . ' -' . $ptitle);


replaced by

$xoopsTpl->assign('xoops_pagetitle', ' Les petites annonces de la Sarthe' );

Login

Who's Online

335 user(s) are online (199 user(s) are browsing Support Forums)


Members: 0


Guests: 335


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits