Sitemapte Sorgular oluşmuyor

Eklentiler ile ilgili soru, sorun ve tartışmalar.

Sitemapte Sorgular oluşmuyor

İleti yawez 15.03.2006, 22:45

Google sitemaps modunu kurdum fakat sitemap sayfalarında sorgular oluşmuyor? :? Yardımcı olabilcek var mı?
yawez
Üye
Üye
 
İleti: 28
Kayıt: 16.01.2006, 15:55

Cvp: Sitemapte Sorgular oluşmuyor

İleti mgazi 16.03.2006, 01:57

Sorgular oluşmuyor demekden kastınızın ne olduğunu anlamış dğeilim ama ben google site maps için bunu kullanıyorum ve sorunsuz bir şekilde çalışıyor.

Kod: Tümünü seç
<?php 
/*************************************************************************** 
*                              googlesitemapgenerator.php 
*                            ------------------- 
*   Copyright/Support          http://www.pentapenguin.com 
*   Last Modified: 06/05/05 

***************************************************************************/ 
 
/*************************************************************************** 

*   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. 

***************************************************************************/ 
 
define('IN_PHPBB', true); 
$phpbb_root_path = './'; 
include($phpbb_root_path . 'extension.inc'); 
include($phpbb_root_path . "common.$phpEx"); 
 
// Begin Configuration Section 
$included_forum_ids = array(); 
$excluded_forum_ids = array(); 
// End Configuration Section 
 
if ( count($included_forum_ids) > 0 ) 

   $included_forum_ids_sql = 'forum_id IN (' . implode(', ', $included_forum_ids) . ')'; 

 
if ( count($excluded_forum_ids) > 0 ) 

   $excluded_forum_ids_sql = 'forum_id NOT IN (' . implode(', ', $excluded_forum_ids) . ')'; 

 
if ( ( count($included_forum_ids) > 0 ) && ( count($excluded_forum_ids) > 0 ) ) 

   $and = 'AND'; 

 
if ( ( count($included_forum_ids) > 0 ) || ( count($excluded_forum_ids) > 0 ) ) 

   $where = 'WHERE'; 

 
$sql = "SELECT topic_id, forum_id, topic_time, topic_type FROM " . TOPICS_TABLE . " $where $included_forum_ids_sql $and $excluded_forum_ids_sql ORDER BY topic_time DESC"; 
 
if ( !$result = $db->sql_query($sql) ) 

   message_die(GENERAL_ERROR, 'Error: could not retrive topic IDs', '', __LINE__, __FILE__, $sql); 

 
$protocol = ( $board_config['cookie_secure'] == 0 ) ? 'http://' : 'https://'; 
$servername = $board_config['server_name']; 
$port = ( $board_config['server_port'] == '80' ) ? '' : ':' . $board_config['server_port']; 
$path = $board_config['script_path']; 
 
$output = '<' . '?xml version="1.0" encoding="UTF-8"?' . '>' . "\n";
$output .= '<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">' . "\n";
$output .= 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' . "\n";
$output .= 'xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84' . "\n";
$output .= ' http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">' . "\n"; 
 
while ( $row = $db->sql_fetchrow($result) ) 

   $topic_id = $row['topic_id']; 
   $forum_id = $row['forum_id'];
   $lastmodified = date('Y-m-d', $row['topic_time']);
   $viewtopic = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id"; 
   $priority = ( $row['topic_type'] == POST_STICKY || $row['topic_type'] == POST_ANNOUNCE ) ? '1.0' : '0.5'; 
     
   $output .= "<url>\n"; 
   $output .= "\t<loc>$protocol$servername$port$path$viewtopic"  . "</loc>\n"; 
   $output .= "\t<lastmod>$lastmodified</lastmod>\n"; 
   $output .= "\t<changefreq>daily</changefreq>\n"; 
   $output .= "\t<priority>$priority</priority>\n"; 
   $output .= "</url>\n\n"; 

$output .= "</urlset>\n"; 
 
header('Content-type: application/xml'); 
echo $output; 
?>
Kullanıcı avatarı
mgazi
Üye
Üye
 
İleti: 124
Kayıt: 10.11.2005, 17:09
Konum: Kayseri

Cvp: Sitemapte Sorgular oluşmuyor

İleti yawez 16.03.2006, 14:29

Benim dediğim mod konuları mesajları forumları ayrı ayrı xml şeklinde topluyor.Fakat çalıştırdığım zaman sayfada hiçbir link oluşmuyor yani sorgular çalışmıyor :?
yawez
Üye
Üye
 
İleti: 28
Kayıt: 16.01.2006, 15:55


Soru(n)lar & Tartışmalar



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron