Webmaster Forumu

Geri git   Webmaster Forumu > Webmaster Kaynak Eğitim Tanıtım Hizmet > Hazır Uygulamalar Forumlar Paket Programlar > phpBB

phpBB phpBB Temalar Eklentiler

Cevapla
 
LinkBack Seçenekler Stil
  #1 (permalink)   iTrader 
Alt 2006-07-26, 20:47
diyadinnet.com - ait Kullanıcı Resmi (Avatar)
Junior Member
 
Üyelik tarihi: Apr 2005
Nerden: Ağrı
Mesajlar: 56
Tecrübe Puanı: 0
iTrader: %0/0
diyadinnet.com is on a distinguished road
Standart phpBB Forumlar için otomatik sitemap

PHP- Kodu:
<?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) > )  
{  
   
$included_forum_ids_sql 'forum_id IN (' implode(', '$included_forum_ids) . ')';  
}  

if ( 
count($excluded_forum_ids) > )  
{  
   
$excluded_forum_ids_sql 'forum_id NOT IN (' implode(', '$excluded_forum_ids) . ')';  
}  

if ( ( 
count($included_forum_ids) > ) && ( count($excluded_forum_ids) > ) )  
{  
   
$and 'AND';  
}  

if ( ( 
count($included_forum_ids) > ) || ( count($excluded_forum_ids) > ) )  
{  
   
$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'] == ) ? '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";  

while ( 
$row $db->sql_fetchrow($result) )  
{  
   
$topic_id $row['topic_id'];  
   
$forum_id $row['forum_id'];  
   
$lastmodified date('Y-m-d\TG:i:s+00:00'$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;  
?>

Konu diyadinnet.com tarafından (2006-07-26 Saat 20:55 ) değiştirilmiştir..
Alıntı ile Cevapla

  #2 (permalink)   iTrader 
Alt 2006-07-26, 21:54
Alexis - ait Kullanıcı Resmi (Avatar)
Member
 
Üyelik tarihi: Oct 2005
Mesajlar: 484
Tecrübe Puanı: 3
iTrader: %100/5
Alexis is on a distinguished road
Standart

uzantıları konu-adi.html yapan sitemap daha kullanışlı:

googlesitemap.php olarak kaydeyin ve tanıtın, Türkçe olacak şekilde modifiye içerir.

Kod:
<?php

function make_url_friendly($url)
{
	$url = trim($url);
	$url = strtolower($url);

	$find = array('<b>', '</b>');
	$url = str_replace ($find, '', $url);

	$url = preg_replace('/<(\/{0,1})img(.*?)(\/{0,1})\>/', 'image', $url);

	$find = array(' ', '&quot;', '&amp;', '&', '\r\n', '\n', '/', '\\', '+', '<', '>');
	$url = str_replace ($find, '-', $url);

	$find = array('é', 'è', 'ë', 'ê', 'É', 'È', 'Ë', 'Ê');
	$url = str_replace ($find, 'e', $url);

	$find = array('í', 'ı', 'ì', 'î', 'ï', 'I', 'İ', 'Í', 'Ì', 'Î', 'Ï');
	$url = str_replace ($find, 'i', $url);

	$find = array('ó', 'ö', 'Ö', 'ò', 'ô', 'Ó', 'Ò', 'Ô');
	$url = str_replace ($find, 'o', $url);

	$find = array('á', 'ä', 'â', 'à', 'â', 'Ä', 'Â', 'Á', 'À', 'Â');
	$url = str_replace ($find, 'a', $url);

	$find = array('ú', 'ü', 'Ü', 'ù', 'û', 'Ú', 'Ù', 'Û');
	$url = str_replace ($find, 'u', $url);

	$find = array('ç', 'Ç');
	$url = str_replace ($find, 'c', $url);

	$find = array('ş', 'Ş');
	$url = str_replace ($find, 's', $url);

	$find = array('ğ', 'Ğ');
	$url = str_replace ($find, 'g', $url);

	$find = array('/[^a-z0-9\-<>]/', '/[\-]+/', '/<[^>]*>/');

	$repl = array('', '-', '');

	$url = preg_replace ($find, $repl, $url);
	$url = str_replace ('--', '-', $url);

	return $url;
}




define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . "common.$phpEx");
//Compresss the sitemap with gzip
//this isn't as pretty as the code in page_header.php, but it's simple & it works :)
if(function_exists(ob_gzhandler) && $board_config['gzip_compress'] == 1)
   {
   ob_start(ob_gzhandler);
   }
// Begin Configuration Section
$included_forum_ids = array();
$excluded_forum_ids = array(49);
// 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_title, 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);
}
$script_name = preg_replace('/^\/?(.*?)\/?$/', "\\1", trim($board_config['script_path']));
$server_name = trim($board_config['server_name']);
$server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://';
$server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/';
$server_url = $server_protocol . $server_name . $server_port . $script_name;
if(substr($server_url, -1, 1) != "/")
{
   $server_url .= "/";
}
$output = '<' . '?xml version="1.0" encoding="UTF-8"?' . '>' . "\n";
$output .= '<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">' . "\n";

while ( $row = $db->sql_fetchrow($result) )
{
   $topic_id = $row['topic_id'];
   $topic_title = $row['topic_title'];
   $lastmodified = date('Y-m-d',$row['topic_time']);
   $viewtopic = $server_url . str_replace ('--', '-', make_url_friendly($row['topic_title']) . "-vt" . $row['topic_id'] . ".html");
   $priority = ( $row['topic_type'] == POST_STICKY || $row['topic_type'] == POST_ANNOUNCE ) ? '1.0' : '0.5';
   
   $output .= "<url>\n";
   $output .= "\t<loc>$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;
?>
Alıntı ile Cevapla

  #3 (permalink)   iTrader 
Alt 2007-11-13, 19:09
Member
 
Üyelik tarihi: Oct 2007
Nerden: istanbul
Mesajlar: 214
Tecrübe Puanı: 1
iTrader: %0/0
saka is an unknown quantity at this point
Standart

bu kodu siteye attığımda aşağıdaki hatayı alıyorum.
Alıntı:
Warning: include(./extension.inc) [function.include]: failed to open stream: No such file or directory in /home/noteboo2/public_html/sitemap.php on line 55

Warning: include() [function.include]: Failed opening './extension.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/notebookgentr/public_html/sitemap.php on line 55

Warning: include(./common.) [function.include]: failed to open stream: No such file or directory in /home/notebookgentr/public_html/sitemap.php on line 56

Warning: include() [function.include]: Failed opening './common.' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/notebookgentr/public_html/sitemap.php on line 56

Fatal error: Call to a member function sql_query() on a non-object in /home/notebookgentr/public_html/sitemap.php on line 90
Alıntı ile Cevapla

  #4 (permalink)   iTrader 
Alt 2008-02-21, 10:25
orhanorak - ait Kullanıcı Resmi (Avatar)
Junior Member
 
Üyelik tarihi: Feb 2008
Mesajlar: 20
Tecrübe Puanı: 0
iTrader: %0/0
orhanorak is an unknown quantity at this point
Standart

paylaşım için sağolasın, bunun birçok örneği forumlarda mevcut

şuan gym sitemap kulanıyorum. sitemap, rss, urllist oluşturmada Gayet başarılı ,admin kontrol paneli mevcut ve her isteğinize cevap verebilir nitelikte. advanced mod rewrite ile başarılı çalışıyor.


detaylı bilgi için
http://www.phpbb-seo.com/boards/gym-...-rss-vt21.html

bu sitede seo amaçlı birçok çalışma bulabilirsiniz.
Alıntı ile Cevapla

Cevapla

Seçenekler
Stil


Benzer Konular
Konu Konuyu Başlatan Forum Cevaplar Son Mesaj
Smf Forum için Sitemap hazırlıcak ücretli theersin Google Optimizasyon 4 2006-08-16 02:41
Php-Nuke News Modülü için otomatik sitemap diyadinnet.com Google Optimizasyon 4 2006-07-26 18:04
MP3 siteleri için dizinden veritabanına otomatik mp3 ekleme scripti Yns PHP 6 2006-03-09 12:59
phpbb için sitemap nomak78 phpBB 1 2005-09-19 15:50
Forumlar için Link değişimi .. c4timer Google PR Link Değişimi 1 2005-03-10 18:38


Bütün Zaman Ayarları WEZ +2 olarak düzenlenmiştir. Şu Anki Saat: 02:34 .


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

Firefox