Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.

Archivfunktion von Foren nicht so gut?

Hier können Sie Ihre Fragen zum Thema Suchmaschinenoptimierung (SEO) / Positionierung stellen
Mario670
PostRank 9
PostRank 9
Beiträge: 1006
Registriert: 30.04.2004, 20:46
Wohnort: Neu Duvenstedt

Beitrag von Mario670 » 01.10.2004, 16:27

hast du auch sitemap in toast umbenannt, sonst les den anderen Thread mal bis zum letzten topic da gehts auch darum
Bild
SEOigg ... SEO News satt

Anzeige von ABAKUS

von Anzeige von ABAKUS »


Hochwertiger Linkaufbau bei ABAKUS:
  • Google-konformer Linkaufbau
  • nachhaltiges Ranking
  • Linkbuilding Angebote zu fairen Preisen
  • internationale Backlinks
Wir bieten Beratung und Umsetzung.
Jetzt anfragen: 0511 / 300325-0

austrian-i
PostRank 5
PostRank 5
Beiträge: 218
Registriert: 01.10.2004, 14:35

Beitrag von austrian-i » 01.10.2004, 16:42

ja jetzt wird sitemap.php in sitemap.html umgeschrieben, aber ich meinte die links innerhalb des sitemaps. stimmt mit meiner .htaccess was nicht:
php_flag session.use_trans_sid off

RewriteEngine On
RewriteRule ^forums.html index.php [L]
RewriteRule ^forum([0-9]*).html viewforum.php?f=$1&mark=topic [L]
RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).html viewforum.php?f=$1&topicdays=$2&start=$3 [L]
RewriteRule ^forum([0-9]*).html viewforum.php?f=$1[L]
RewriteRule ^ptopic([0-9]*).html viewtopic.php?t=$1&view=previous [L]
RewriteRule ^ntopic([0-9]*).html viewtopic.php?t=$1&view=next [L]
RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).html viewtopic.php?t=$1&postdays=$2&postorder=$3&start=$4 [L]
RewriteRule ^ftopic([0-9]*)-([0-9]*).html viewtopic.php?t=$1&start=$2 [L]
RewriteRule ^ftopic([0-9]*).html viewtopic.php?t=$1 [L]
RewriteRule ^ftopic([0-9]*).html viewtopic.php?t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5 [L]
RewriteRule ^sitemap([0-9][0-9]*).html sitemap.php?next=$1

<files archive>
ForceType application/x-httpd-php
#AcceptPathInfo On # uncomment this if you have apache2
</files>

RewriteEngine On
RewriteRule myphpbb.png whatever.php

# block bad bots, robots and spiders [larsneo]
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^CherryPicker [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
RewriteCond %{HTTP_USER_AGENT} ^Crescent [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailCollector [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]
RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
RewriteCond %{HTTP_USER_AGENT} ^GornKer [OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
RewriteCond %{HTTP_USER_AGENT} ^Irvine [OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
RewriteCond %{HTTP_USER_AGENT} ^Microsoft.URL [OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*NEWT [OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^NICErsPRO [OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
RewriteCond %{HTTP_USER_AGENT} ^oegp [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]
RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]
RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]
RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]
RewriteCond %{HTTP_USER_AGENT} dloader(NaverRobot) [OR]
RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^SearchExpress [OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^Siphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebBandit [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus [OR]
RewriteCond %{HTTP_USER_AGENT} ^ZyBorg
RewriteRule ^.* - [F,L]

Mario670
PostRank 9
PostRank 9
Beiträge: 1006
Registriert: 30.04.2004, 20:46
Wohnort: Neu Duvenstedt

Beitrag von Mario670 » 01.10.2004, 16:46

Hier meine sitemap.php

Code: Alles auswählen

<?php 
define&#40;'IN_PHPBB', true&#41;; 
$phpbb_root_path = './'; 
include&#40;$phpbb_root_path . 'extension.inc'&#41;; 
include&#40;$phpbb_root_path . 'common.'.$phpEx&#41;; 

// 
// Start session management 
// 
$userdata = session_pagestart&#40;$user_ip, PAGE_INDEX&#41;; 
init_userprefs&#40;$userdata&#41;; 
// 
// End session management 
// 

/*************************************************************************** 
* Save this file as&#58;   sitemap.php &#40;or anything you like&#41; 
* Version&#58;      Friday, Oct 4, 2002 
* Email&#58;      angus@phphacks.com 
* Purpose of hack&#58;   Basically generates a list of topics and 
*      displays them with link to the topic. Goal 
*      is to provide search engines like Google 
*      with a static page of links to dynamic pages 
*      You should link to this page from your sites 
*      home page somewhere. 
* Demo&#58;      http&#58;//www.aussiecelebs.com/forums/site_map.php 
* Tested on&#58;   phpBB 2.01, 2.02 
* 
***************************************************************************/ 

/*************************************************************************** 
* 
* 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 
* &#40;at your option&#41; any later version. 
* 
***************************************************************************/ 
?> 
<html> 
<head> 
<meta http-equiv="content-language" content="de"> 
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> 
<title>Forum &#58;&#58; Sitemap</title> 
<meta name="keywords" content="..."> 
<meta name="description" content="..."> 
</head> 
<?php 

echo "<h3>Alle Forum Beiträge</h3>"; 

$sql = "SELECT t.topic_id FROM " . TOPICS_TABLE . " AS t, " . POSTS_TABLE . " AS p, " . FORUMS_TABLE . " AS f 
    WHERE 
        t.forum_id = f.forum_id AND f.auth_view = " . AUTH_ALL . " AND p.topic_id = t.topic_id AND p.post_id = t.topic_last_post_id ORDER BY p.post_time DESC"; 

$topicscount_query = $db->sql_query&#40;$sql&#41;; 
$row_count = $db->sql_numrows&#40;$topicscount_query&#41;; 
$max_count = $row_count/100; 

if&#40;$HTTP_GET_VARS&#91;next&#93;>0 && $HTTP_GET_VARS&#91;next&#93;<=$max_count&#41; &#123; 
    $next = $HTTP_GET_VARS&#91;next&#93;; 
&#125;else &#123; 
    $next=0; 
&#125; 


// SQL statement to fetch active topics of public forums 
$sql = "SELECT t.topic_id, t.topic_title, t.topic_last_post_id 
    FROM " . TOPICS_TABLE . " AS t, " . POSTS_TABLE . " AS p, " . FORUMS_TABLE . " AS f 
    WHERE 
        t.forum_id = f.forum_id 
            AND f.auth_view = " . AUTH_ALL . " 
            AND p.topic_id = t.topic_id 
            AND p.post_id = t.topic_last_post_id 
    ORDER BY p.post_time DESC  LIMIT ".&#40;$next*100&#41;.",100"; 
$topics_query = $db->sql_query&#40;$sql&#41;; 

if &#40; !$topics_query &#41; 
&#123; 
    message_die&#40;GENERAL_ERROR, "Could not query list of active topics", "", __LINE__, __FILE__, $sql&#41;; 
&#125; 
else if &#40; !$db->sql_numrows&#40;$topics_query&#41; &#41; 
&#123; 
    message_die&#40;GENERAL_MESSAGE, $lang&#91;'No_match'&#93;&#41;; 
&#125; 
else 
&#123; 
    while &#40;$topic = $db->sql_fetchrow&#40;$topics_query&#41;&#41; 
    &#123; 
        echo "<a href='" . append_sid&#40;"viewtopic.php?t=".$topic&#91;'topic_id'&#93;&#41;."'>".$topic&#91;"topic_title"&#93;."</a><br>\n"; 
    &#125; 
&#125; 



echo " 
<BR><BR> 
&#91; 
"; 

for&#40;$ii=0; $ii<$max_count; $ii++&#41; &#123; 
    if&#40;$ii+1<$max_count&#41; &#123; 
        if&#40;$ii==$next&#41; &#123; 
            echo&#40;"<A>&nbsp;".&#40;$ii+1&#41;."&nbsp;|</A>"&#41;;          
        &#125;else&#123; 
            echo&#40;"<A HREF='" . append_sid&#40;"sitemap".&#40;$ii&#41;&#41;.".html'>&nbsp;".&#40;$ii+1&#41;."&nbsp;|</A>"&#41;; 
        &#125; 
    &#125;else&#123; 
        if&#40;$ii==$next&#41; &#123; 
            echo&#40;"<A>&nbsp;".&#40;$ii+1&#41;."&nbsp;</A>"&#41;;          
        &#125;else&#123; 
            echo&#40;"<A HREF='" . append_sid&#40;"sitemap".&#40;$ii&#41;&#41;.".html'>&nbsp;".&#40;$ii+1&#41;."&nbsp;</A>"&#41;; 
        &#125; 
    &#125;     
&#125; 

echo " 
&#93; 
</body> 
</html> 
"; 
?>
Damit sollte es klappen!
Bild
SEOigg ... SEO News satt

Anzeige von ABAKUS

von Anzeige von ABAKUS »

Content Erstellung von ABAKUS Internet Marketing
Ihre Vorteile:
  • einzigartige Texte
  • suchmaschinenoptimierte Inhalte
  • eine sinnvolle Content-Strategie
  • Beratung und Umsetzung
Jetzt anfragen: 0511 / 300325-0

austrian-i
PostRank 5
PostRank 5
Beiträge: 218
Registriert: 01.10.2004, 14:35

Beitrag von austrian-i » 01.10.2004, 16:49

ist die session-id absichtlich?

Mario670
PostRank 9
PostRank 9
Beiträge: 1006
Registriert: 30.04.2004, 20:46
Wohnort: Neu Duvenstedt

Beitrag von Mario670 » 01.10.2004, 16:52

jepp
Bild
SEOigg ... SEO News satt

Webby
Administrator
Administrator
Beiträge: 5420
Registriert: 17.10.2001, 01:00

Beitrag von Webby » 01.10.2004, 17:46

Also, meine sitemap funktioniert sehr gut, mercken auch das es nicht nur links ist und das ich die moderiert haben so das normal text neben den link steht. links sind nur bis 60 pro seite und es gibt eine next link die auf den nächste 60 linkt usw. Mit über 70,000 foren seiten indiziert kann ich eigentlich beweisen das die gut funktioniert.
Das code dafür unten...

Code: Alles auswählen

<html>
<head>
<title>Webpromotion und Suchmaschinen-Ranking Spezialisten</title>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<meta name="keywords" content="suchmaschinenoptimierung,webpromotion,suchmaschinen ranking,Web-Promotion,Suchmaschinenoptimierung,Suchmaschineneintrag,Suchmaschinenplatzierung,anmeldung,Optimierung,suchmaschienen,Webpromotion">
<meta name="description" content="Webpromotion und Suchmaschinenoptimierung Service. Komplettes Internet Marketing resource mit suchmaschinen ranking Artikeln, Kostenlos tipps, Newsletter und Forum">
<meta name="robots" content="index,follow">
<link href="../suchmaschinenoptimierung.css" rel="stylesheet" type="text/css">
<body bgcolor="#FFF7E7">
<h1>ABAKUS - Ihre Suchmaschinen-Ranking Spezialisten</h1>
<h3>Webpromotion Forum Themen</h3>
<table width="75%" border="0" align="center" cellpadding="1" cellspacing="1">
  <tr>
    <td>
      <?php
define&#40;'IN_PHPBB', true&#41;;
$phpbb_root_path = './';
include&#40;$phpbb_root_path . 'extension.inc'&#41;;
include&#40;$phpbb_root_path . 'common.'.$phpEx&#41;;

$sql = "SELECT count&#40;t.topic_id&#41; as total_spider_topics
        FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f
        WHERE f.forum_id = t.forum_id
        AND f.auth_view=0";
if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
   message_die&#40;GENERAL_ERROR, 'Could not query count info', '', __LINE__, __FILE__, $sql&#41;;
&#125;
if &#40;$countrow = $db->sql_fetchrow&#40;$result&#41;&#41;
&#123;
    $total_spider_topics = $countrow&#91;'total_spider_topics'&#93;;
&#125;


if&#40; isset&#40;$HTTP_GET_VARS&#91;'offset'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'offset'&#93;&#41; &#41;
&#123;
   $offset = &#40; isset&#40;$HTTP_POST_VARS&#91;'offset'&#93;&#41; &#41; ? intval&#40;$HTTP_POST_VARS&#91;'offset'&#93;&#41; &#58; intval&#40;$HTTP_GET_VARS&#91;'offset'&#93;&#41;;
&#125;
else
&#123;
   $offset = 0;
&#125;

$sql = "SELECT t.topic_id, t.topic_title
        FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f
        WHERE f.forum_id = t.forum_id
        AND f.auth_view=0
        ORDER BY t.topic_last_post_id DESC
        LIMIT $offset, 60";
if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
   message_die&#40;GENERAL_ERROR, 'Could not query topic info', '', __LINE__, __FILE__, $sql&#41;;
&#125;
while&#40; $topicrow = $db->sql_fetchrow&#40;$result&#41;&#41;
&#123;
$thread_id=$topicrow&#91;'topic_id'&#93;;
$thread_title=$topicrow&#91;'topic_title'&#93;;

// ************************ you might have to change the format of this string to match your URLs.

$the_string="<a href='/foren/viewtopic/t-".$thread_id.".html'>".$thread_title."</a><br>".$thread_title."<br>";

    echo $the_string;
&#125;

$offset = $offset + 60;
if &#40; &#40;$total_spider_topics - $offset&#41; > 0 &#41;
&#123;
   $new_url = '<a href="' . $_SCRIPT_NAME . '?offset=' . $offset . '">Next</a>';
    echo $new_url;
&#125;

?>
    </td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>
Wichtig...
wegen die suma freundlich url modifikation musste ich auch die url andere formulieren als normal in die zeile

Code: Alles auswählen

$the_string="<a href='/foren/viewtopic/t-".$thread_id.".html'>".$thread_title."</a><br>".$thread_title."
<br>";
ABAKUS Internet Marketing
Professionelle Suchmaschinenoptimierung und Suchmaschinenmarketing

austrian-i
PostRank 5
PostRank 5
Beiträge: 218
Registriert: 01.10.2004, 14:35

Beitrag von austrian-i » 01.10.2004, 18:10

vielen dank webby! kann man auch bestimmte foren ausblenden? dass als nur die neuesten postings von forum 1, 2, 3, 4, 6, 7 gezeiget wird auf dem sitemap und 5 zb nicht?

Webby
Administrator
Administrator
Beiträge: 5420
Registriert: 17.10.2001, 01:00

Beitrag von Webby » 01.10.2004, 18:13

Bestimmt, aber mit zusätzliches programmierung.
Warum nicht abe ralle posts? Jede post ist ein mögliches eingangspunkt zum forum.

Alan
ABAKUS Internet Marketing
Professionelle Suchmaschinenoptimierung und Suchmaschinenmarketing

austrian-i
PostRank 5
PostRank 5
Beiträge: 218
Registriert: 01.10.2004, 14:35

Beitrag von austrian-i » 01.10.2004, 18:22

ich hab den quiz-mod installiert (der erstellt täglich automatisch viele fragen) und die quizfragen sind nur als spiel gedacht und passen nicht zu den themen meines forums....

austrian-i
PostRank 5
PostRank 5
Beiträge: 218
Registriert: 01.10.2004, 14:35

Beitrag von austrian-i » 01.10.2004, 18:51

kurze frage noch webby: warum ist unter dem link nochmal der titel hingeschrieben? wie kann man das weggeben?

Webby
Administrator
Administrator
Beiträge: 5420
Registriert: 17.10.2001, 01:00

Beitrag von Webby » 01.10.2004, 19:43

Es ist da weil
a. Ich möchte nicht das die seite nur links enthält.
b. Text gerade neben eine link mit den keywords sollte die link extra gewicht geben (ist eigentlich mehr als sollte heutzutages, links sollten normale text mit den keywords neben einander haben. )

zum, löschen einfach die ziele
$the_string="<a href='/foren/viewtopic/t-".$thread_id.".html'>".$thread_title."</a><br>".$thread_title."<br>";

auf

$the_string="<a href='/foren/viewtopic/t-".$thread_id.".html'>".$thread_title."</a><br>";

ändern.

Alan
ABAKUS Internet Marketing
Professionelle Suchmaschinenoptimierung und Suchmaschinenmarketing

austrian-i
PostRank 5
PostRank 5
Beiträge: 218
Registriert: 01.10.2004, 14:35

Beitrag von austrian-i » 01.10.2004, 20:12

perfekt alan, ich danke dir!
in diesem forum fühl ich mich wirklich wohl :D

masterchico
PostRank 1
PostRank 1
Beiträge: 25
Registriert: 26.10.2004, 09:04

Beitrag von masterchico » 26.10.2004, 12:14

manute hat geschrieben:wuppi, dein forum bräuchte sowas: https://www.forum-sex.de/alle-themen/0
sonst wirst du nicht alle themen gespidert bekommen, dazu ist das forum schon zu groß und die interne verlinkung des normal-phpbb zu schlecht.
Wie geht denn so etwas? Ich würde das gerne auch für mein Forum machen, da ich von dem vorhandene Archiv nicht so begeistert bin. www.fitness-foren.de/board

Zur Zeit wird noch alles optimiert und bin daher für Tipps sehr dankbar.

hmueller
PostRank 4
PostRank 4
Beiträge: 144
Registriert: 28.11.2003, 14:19
Wohnort: Neuötting

Beitrag von hmueller » 26.10.2004, 18:28

Hallo,

an diejenigen, die die list.php eingebaut haben: welche Erfahrungen habt ihr mit Spiderhäufigkeit?

Ich hab' das auch schon lange eingebaut und bin sehr zufrieden mit den Results (wahnsinnig viele Treffer von Sumas, gute Platzierungen mit den Beitragstiteln), aber die Seite wird nur sehr selten (alle 2-3 Wochen und länger) gespidert. Die Seite ist im overall_footer verlinkt.

masterchico
PostRank 1
PostRank 1
Beiträge: 25
Registriert: 26.10.2004, 09:04

Beitrag von masterchico » 27.10.2004, 09:03

Webby hat geschrieben:Also, meine sitemap funktioniert sehr gut, mercken auch das es nicht nur links ist und das ich die moderiert haben so das normal text neben den link steht. links sind nur bis 60 pro seite und es gibt eine next link die auf den nächste 60 linkt usw. Mit über 70,000 foren seiten indiziert kann ich eigentlich beweisen das die gut funktioniert.
Das code dafür unten...

Code: Alles auswählen

<html>
<head>
<title>Webpromotion und Suchmaschinen-Ranking Spezialisten</title>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<meta name="keywords" content="suchmaschinenoptimierung,webpromotion,suchmaschinen ranking,Web-Promotion,Suchmaschinenoptimierung,Suchmaschineneintrag,Suchmaschinenplatzierung,anmeldung,Optimierung,suchmaschienen,Webpromotion">
<meta name="description" content="Webpromotion und Suchmaschinenoptimierung Service. Komplettes Internet Marketing resource mit suchmaschinen ranking Artikeln, Kostenlos tipps, Newsletter und Forum">
<meta name="robots" content="index,follow">
<link href="../suchmaschinenoptimierung.css" rel="stylesheet" type="text/css">
<body bgcolor="#FFF7E7">
<h1>ABAKUS - Ihre Suchmaschinen-Ranking Spezialisten</h1>
<h3>Webpromotion Forum Themen</h3>
<table width="75%" border="0" align="center" cellpadding="1" cellspacing="1">
  <tr>
    <td>
      <?php
define&#40;'IN_PHPBB', true&#41;;
$phpbb_root_path = './';
include&#40;$phpbb_root_path . 'extension.inc'&#41;;
include&#40;$phpbb_root_path . 'common.'.$phpEx&#41;;

$sql = "SELECT count&#40;t.topic_id&#41; as total_spider_topics
        FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f
        WHERE f.forum_id = t.forum_id
        AND f.auth_view=0";
if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
   message_die&#40;GENERAL_ERROR, 'Could not query count info', '', __LINE__, __FILE__, $sql&#41;;
&#125;
if &#40;$countrow = $db->sql_fetchrow&#40;$result&#41;&#41;
&#123;
    $total_spider_topics = $countrow&#91;'total_spider_topics'&#93;;
&#125;


if&#40; isset&#40;$HTTP_GET_VARS&#91;'offset'&#93;&#41; || isset&#40;$HTTP_POST_VARS&#91;'offset'&#93;&#41; &#41;
&#123;
   $offset = &#40; isset&#40;$HTTP_POST_VARS&#91;'offset'&#93;&#41; &#41; ? intval&#40;$HTTP_POST_VARS&#91;'offset'&#93;&#41; &#58; intval&#40;$HTTP_GET_VARS&#91;'offset'&#93;&#41;;
&#125;
else
&#123;
   $offset = 0;
&#125;

$sql = "SELECT t.topic_id, t.topic_title
        FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f
        WHERE f.forum_id = t.forum_id
        AND f.auth_view=0
        ORDER BY t.topic_last_post_id DESC
        LIMIT $offset, 60";
if&#40; !&#40;$result = $db->sql_query&#40;$sql&#41;&#41; &#41;
&#123;
   message_die&#40;GENERAL_ERROR, 'Could not query topic info', '', __LINE__, __FILE__, $sql&#41;;
&#125;
while&#40; $topicrow = $db->sql_fetchrow&#40;$result&#41;&#41;
&#123;
$thread_id=$topicrow&#91;'topic_id'&#93;;
$thread_title=$topicrow&#91;'topic_title'&#93;;

// ************************ you might have to change the format of this string to match your URLs.

$the_string="<a href='/foren/viewtopic/t-".$thread_id.".html'>".$thread_title."</a><br>".$thread_title."<br>";

    echo $the_string;
&#125;

$offset = $offset + 60;
if &#40; &#40;$total_spider_topics - $offset&#41; > 0 &#41;
&#123;
   $new_url = '<a href="' . $_SCRIPT_NAME . '?offset=' . $offset . '">Next</a>';
    echo $new_url;
&#125;

?>
    </td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>
Wichtig...
wegen die suma freundlich url modifikation musste ich auch die url andere formulieren als normal in die zeile

Code: Alles auswählen

$the_string="<a href='/foren/viewtopic/t-".$thread_id.".html'>".$thread_title."</a><br>".$thread_title."
<br>";
Hast Du eine idee, welchen Code ich für ein WBB2 nehmen muss?

Antworten
  • Vergleichbare Themen
    Antworten
    Zugriffe
    Letzter Beitrag