Seite 145 von 175

Verfasst: 25.12.2006 23:59
von mgutt
mastersound hat geschrieben:
Naja, alle Beispiele die Du bisher genannt hast gehen doch. Woher soll man da wissen wo das Problem ist? Wie ich schon fragte. Welche Url geht denn nicht?
Wie meinst du das genau?
Naja gib mal ein paar Beispiele.. z.B. an Hand einer Url.

Gruß

Verfasst: 26.12.2006 00:13
von mastersound
mgutt hat geschrieben:
mastersound hat geschrieben:
Naja, alle Beispiele die Du bisher genannt hast gehen doch. Woher soll man da wissen wo das Problem ist? Wie ich schon fragte. Welche Url geht denn nicht?
Wie meinst du das genau?
Naja gib mal ein paar Beispiele.. z.B. an Hand einer Url.

Gruß
Hmm, meinst du jetzt die URL im Netz? Geht nicht weil ich das ganze lokal laufen hab...
Er schreibt wie gesagt lediglich die News, manches im Portal und die hackslist nicht um. Danke für deine Hilfe!

Verfasst: 26.12.2006 00:26
von mgutt
mastersound hat geschrieben:
mgutt hat geschrieben:
mastersound hat geschrieben: Wie meinst du das genau?
Naja gib mal ein paar Beispiele.. z.B. an Hand einer Url.

Gruß
Hmm, meinst du jetzt die URL im Netz? Geht nicht weil ich das ganze lokal laufen hab...
Er schreibt wie gesagt lediglich die News, manches im Portal und die hackslist nicht um. Danke für deine Hilfe!
Ja aber Du wirst doch trotzdem die Urls kopieren können, die nicht gehen. Ist doch egal ob lokal. Kopier die Url am besten aus dem Browser raus und füge sie hier ein.

Gruß

Verfasst: 26.12.2006 00:43
von mastersound
Ja aber Du wirst doch trotzdem die Urls kopieren können, die nicht gehen. Ist doch egal ob lokal. Kopier die Url am besten aus dem Browser raus und füge sie hier ein.
Ach so meinst du es. War ein Missverständnis :D . Ich habe jetzt noch einmal alle Links überprüft. Z.B. beim Album Mod wird alles ausser der Link zu "Deine persönliche Galerie" in der Breadcrumb-Navigation umgeschrieben...

Also:

NEWS MOD:
news_viewnews.php
Die Kommentarfunktion des Mods: viewtopic.php?t=20
news_viewnews.html?news_id=3
STATISTIK MOD:
statistics.php
HACKS LIST:
hacks_list.php
ALBUM MOD:
album_personal.php?user_id=-1
PORTAL (News):
posting.php?mode=reply&t=20
printview.php?t=20&start=0
profile.php?mode=viewprofile&u=2
ORION_NAVI:
Diese Links zum Portal und zur Suche werden auch nicht umgeschrieben...
http://www.community.cback.de/templates ... omebut.jpg

Alles andere wird ordnungsgemäß umgeschrieben. Vielen Dank für deine Hilfe!

Verfasst: 26.12.2006 04:13
von mgutt
Naja jetzt schaust du einfach in die betreffende Datei wo die Url aufgerufen wird z.b. in dem portal und schaust nach "printview".. dann wirst du feststellen, dass dort irgendwo append_sid() vergessen wurde. navigationen werden in der regel in der page_header.php generiert. hier hilft nur suchen. solche fehler resultieren aus schlecht geschriebenen mods.

gruß

Verfasst: 26.12.2006 14:11
von Gulaschk@none
Gulaschk@none hat geschrieben:Hi... wo bekomme ich eine Aktuelle Sitemap für Google und diesem Mod hier her ???
noch jemnad eine Idee ?

Verfasst: 26.12.2006 16:34
von mgutt
Gulaschk@none hat geschrieben:
Gulaschk@none hat geschrieben:Hi... wo bekomme ich eine Aktuelle Sitemap für Google und diesem Mod hier her ???
noch jemnad eine Idee ?
Da hat Dir schon jemand geantwortet ;)

Verfasst: 26.12.2006 17:54
von Gulaschk@none
mgutt hat geschrieben:
Gulaschk@none hat geschrieben:
Gulaschk@none hat geschrieben:Hi... wo bekomme ich eine Aktuelle Sitemap für Google und diesem Mod hier her ???
noch jemnad eine Idee ?
Da hat Dir schon jemand geantwortet ;)
ja worauf ich auch schon geantwortet habe ! das es mir nicht hilft und ich den ganzen artiekl gelesen habe bzw auch ausprobiert habe und es mir nicht unbedingt hilft ...

deswegen wo bekomme ich eine funktionierende sitemap her ?

Verfasst: 26.12.2006 19:08
von BananaJoe
Gulaschk@none hat geschrieben:
habe ich schon gelesen ! da haben alle ihre versuche vorgestellt ,aber ob da jetze eine gut ist weiß ich immer noch nicht deswegen frage ich ja :wink:
Einfach diesen Code aus dem Thread in eine Datei einfügen und bei Google angeben:

Code: Alles auswählen

<?PHP
/***************************************************************************
*
* Created: Thursday, June 9, 2005 (Second to last day of Uni!)
* Author:   NeoThermic
*
***************************************************************************/

/***************************************************************************
*
* 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);

//for testing, just mod this to be the base URL of your forums.
$secure = $board_config['cookie_secure'] ? 'https://' : 'http://';
$baseURL = $secure.$board_config['server_name'].$board_config['script_path'];

//we do this for hosts that have short tags enabled...
echo "<?xml version="1.0" encoding="UTF-8"?>


";
?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">

   <url>
      <loc><?PHP echo $baseURL; ?></loc>
      <lastmod><?PHP echo date("Y-m-d"); ?></lastmod>
      <changefreq>always</changefreq>
      <priority>0.8</priority>
   </url>
<?PHP

//we need to set up an array so that we can store the fourm_id's of any fourm that has a auth_view larger than 0
$hidtopic = array();
$sql = 'SELECT forum_id, forum_name, forum_desc, auth_view FROM '.FORUMS_TABLE.' ORDER BY forum_name';
if( !($result = $db->sql_query($sql)) )
{
   message_die(CRITICAL_ERROR, "Could not query forum auth information", "", __LINE__, basedir(__FILE__), $sql);
}

while ( $row = $db->sql_fetchrow($result) )
{
      $forum_name = $row['forum_name'];
     if ($row["auth_view"] < 1)
         {
         //note, we have the code de-tabbed like this to provide a cleaner output...
   echo '
   <url>
      <loc>'.$baseURL.append_sid('viewforum.php?f='.htmlspecialchars($row["forum_id"])).'</loc>
      <changefreq>daily</changefreq>
     <priority>0.8</priority>
   </url>';
   }
   else
   {
      //add fourm_id of the one here to an array
      $hidtopic[]= $row["forum_id"]; //ok, we now have populated the array with the fourm_ID of the hidden topics
   }
}

//ok, now we mod the below so that it reads fourm_id as well
$sql = 'SELECT DISTINCT topic_title, topic_id, forum_id, topic_replies FROM '.TOPICS_TABLE.' ORDER BY topic_title';

if( !($result = $db->sql_query($sql)) )
{
   message_die(CRITICAL_ERROR, "Could not query topic information", "", __LINE__, basedir(__FILE__), $sql);
}

if( $db->sql_numrows($result) >= 50000000000 )
{
   message_die(CRITICAL_MESSAGE, "Sitemap generated will be too large. Please modify file to make multiple sitemaps.");
}

$i = 0;
while($row =  $db->sql_fetchrow($result))
{
   if ($hidtopic[$i] != $row["forum_id"])
   {
      //if we get here, then the fourm_id of the post in question can be displaied...
      //same tabbing reason as above

      //Do tell thee, how many pages does one have?
      $perpage = $board_config['posts_per_page'];
      $numpages = intval($row['topic_replies']/$perpage);
     
      if ($numpages == 0)
      {
   $thread_name = $row['topic_title'];
   $topic_name = $row['topic_title'];
   $topic_title = $row['topic_title'];
   echo '
   <url>
      <loc>'.$baseURL.append_sid('viewtopic.php?t='.htmlspecialchars($row["topic_id"])).'</loc>
      <changefreq>daily</changefreq>
     <priority>0.8</priority>
   </url>';
      }
      else
      {
         for ($j = 0; $j < ($numpages+1); $j++)
         {
          $thread_name = $row['topic_title'];
           $topic_name = $row['topic_title'];
         $topic_title = $row['topic_title'];
         $start = $j * $perpage;
   echo'
   <url>
      <loc>'.$baseURL.append_sid('viewtopic.php?t='.htmlspecialchars($row["topic_id"]).'&start='.$start).'</loc>
      <changefreq>daily</changefreq>
     <priority>0.8</priority>
   </url>';
         }
      }
   }
   $i++;
}
$sql = "SELECT u.username, u.user_id FROM ".USERS_TABLE." u WHERE u.user_active = 1 AND u.user_active != '-1' ORDER BY u.user_id ASC";
$result = $db->sql_query($sql);
while( $row = $db->sql_fetchrow($result) )
{
   echo'
   <url>
      <loc>'.$baseURL.append_sid('profile.php?mode=viewprofile&u='.$row['user_id']).'</loc>
      <changefreq>daily</changefreq>
     <priority>0.8</priority>
   </url>';
}
?>

</urlset>

Ich hab den Code damals auch getestet und es hat funktioniert. Ob das was bringt oder nicht ist ne andere Sache - ich lass Google bei mir ohne spidern.

Verfasst: 26.12.2006 19:36
von Gulaschk@none