SEO WBB Suchmaschinenoptimierung

    • RE: SEO WBB Suchmaschinenoptimierung WBB PHP HTML Links für euer WBB

      nochmal in die Index_Boardbid.


      suche
      <if($permissioncache[$boards['boardid']]['can_enter_board'] && $boards['password']=="")><then>


      <a href="thread.php?goto=lastpost&threadid=$boards[lastthreadid]{$SID_ARG_2ND}">

      wieder nur den link ersetzen. nur da woanderst ist es nicht notwendig.

      <a href="thread_$boards[lastthreadid]_$seoboardstopic.html" alt="$boards[topic]" title="$boards[topic]">
    • RE: SEO WBB Suchmaschinenoptimierung WBB PHP HTML Links für euer WBB

      OK,

      bau ich in einer Stunde etwa ein.

      Ich hab gesucht, wo ich die nötigen Änderungen im jgs_portal machen kann.
      Finde aber die datei nicht, die zu ändern ist.
      So bau ich mir ja jede Menge DC ein.

      Bis gleich, muss mal was essen.
    • RE: SEO WBB Suchmaschinenoptimierung WBB PHP HTML Links für euer WBB

      So,

      habs doch noch schnell geändert,
      aber die Dateinamen scheinen nicht komplett zu sein.
      Da scheint eine Variable oder eine Zuweisung zu fehlen.

      PHP-Quellcode

      1. <tr>
      2. <if($depth == 1)>
      3. <then>
      4. <td align="left" class="tablea"<if($boards['externalurl'] != '')><then> colspan="<if($hide_modcell==0)><then>6</then><else>5</else></if>"</then><else> colspan="2"</else></if>><table cellpadding="0" cellspacing="0">
      5. <tr class="tablea_fc">
      6. <td><img src="{$style['imagefolder']}/$onoff.gif" alt="" title="" />&nbsp;&nbsp;</td>
      7. <td align="left"><span class="normalfont"><a href="board_$boards[boardid]_$seoboardstitle.html" title="$boards[title]" alt="$boards[title]"><b>$boards[title]</b></a></span><span class="smallfont">
      8. <if($boards['description']!="")><then><br />$boards[description]</then></if><if($subboardbit!="")><then><br />{$lang->items['LANG_START_INCLUSIVE']} $subboardbit</then></if><if(isset($boards['useronline']) && $boards['useronline'])><then><br />($boards[useronline])</then></if></span></td>
      9. </tr>
      10. </table></td>
      11. </then>
      12. <else>
      13. <if($depth == 2)>
      14. <then>
      15. <td class="tableb" align="center"><img src="{$style['imagefolder']}/$onoff.gif" alt="" title="" /></td>
      16. <td align="left" class="tablea"<if($boards['externalurl'] != '')><then> colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>"</then></if>><span class="normalfont"><a href="board_$boards[boardid]_$seoboardstitle.html" title="$boards[title]" alt="$boards[title]"><b>$boards[title]</b></a></span><span class="smallfont">
      17. <if($boards['description']!="")><then><br />$boards[description]</then></if><if($subboardbit!="")><then><br />{$lang->items['LANG_START_INCLUSIVE']} $subboardbit</then></if><if(isset($boards['useronline']) && $boards['useronline'])><then><br />($boards[useronline])</then></if>
      18. <if(isset($favorites) && $favorites)>
      19. <then><br /><b><a href="newthread.php?boardid=$boards[boardid]{$SID_ARG_2ND}">{$lang->items['LANG_START_NEWTHREAD']}</a> <a href="usercp.php?action=removesubscription&amp;boardid=$boards[boardid]{$SID_ARG_2ND}">{$lang->items['LANG_START_UNSUBSCRIBE']}</a></b></then>
      20. </if>
      21. </span></td>
      22. </then>
      23. <else>
      24. <td class="tableb" align="center">&nbsp;</td>
      25. <td class="tablea" align="left"<if($boards['externalurl'] != '')><then> colspan="<if($hide_modcell==0)><then>5</then><else>4</else></if>"</then></if>><table cellpadding="0" cellspacing="0">
      26. <tr class="tablea_fc">
      27. <td><img src="{$style['imagefolder']}/$onoff.gif" alt="" title="" />&nbsp;&nbsp;</td>
      28. <td><span class="normalfont"><a href="board_$boards[boardid]_$seoboardstitle.html" title="$boards[title]" alt="$boards[title]"><b>$boards[title]</b></a></span><span class="smallfont">
      29. <if($boards['description']!="")><then><br />$boards[description]</then></if><if($subboardbit!="")><then><br />{$lang->items['LANG_START_INCLUSIVE']} $subboardbit</then></if><if(isset($boards['useronline']) && $boards['useronline'])><then><br />($boards[useronline])</then></if></span></td>
      30. </tr>
      31. </table></td>
      32. </else>
      33. </if>
      34. </else>
      35. </if>
      36. <if($boards['externalurl'] == '')><then>
      37. <td class="tableb" align="center" nowrap="nowrap"><span class="normalfont">$boards[postcount]</span></td>
      38. <td class="tablea" align="center" nowrap="nowrap"><span class="normalfont">$boards[threadcount]</span></td>
      39. <td class="tableb" nowrap="nowrap" align="left"><if($boards['threadcount']!=0)>
      40. <then>
      41. <if($showlastposttitle==1)>
      42. <then>
      43. <table border="0" cellspacing="0" cellpadding="0">
      44. <tr align="left" class="tableb_fc">
      45. <td nowrap="nowrap">&nbsp;&nbsp;$ViewPosticon&nbsp;</td>
      46. <td nowrap="nowrap"><span class="smallfont"><if($boards['threadprefix']!="" && $permissioncache[$boards['boardid']]['can_enter_board'] && $boards['password']=="")><then><span class="prefix">$boards[threadprefix]</span><br /></then></if> <if($permissioncache[$boards['boardid']]['can_enter_board'] && $boards['password']=="")><then><b><a href="thread_$boards[lastthreadid]_$seoboardstopic.html" alt="$boards[topic]" title="$boards[topic]">$topic</a></b></then><else><b>{$lang->items['LANG_START_UNKNOWN']}</b></else></if><br />$lastpostdate <span class="time">$lastposttime</span>&nbsp;{$lang->items['LANG_START_FROM']}&nbsp;<if($boards['lastposterid'])><then><b><a href="profile.php?userid=$boards[lastposterid]{$SID_ARG_2ND}">$boards[lastposter]</a></b></then><else>$boards[lastposter]</else></if></span></td>
      47. </tr>
      48. </table>
      49. </then>
      50. <else>
      51. <table style="width:100%">
      52. <tr class="tableb_fc">
      53. <td nowrap="nowrap" align="right" style="width:100%"><span class="smallfont">$lastpostdate <span class="time">$lastposttime</span><br />{$lang->items['LANG_START_FROM']} <if($boards['lastposterid'])><then><b><a href="profile.php?userid=$boards[lastposterid]{$SID_ARG_2ND}">$boards[lastposter]</a></b></then><else>$boards[lastposter]</else></if></span></td>
      54. <td><a href="thread.php?goto=lastpost&amp;threadid=$boards[lastthreadid]{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/lastpost.gif" border="0" alt="{$lang->items['LANG_START_GOTO_LASTPOST']}" title="{$lang->items['LANG_START_GOTO_LASTPOST']}" /></a></td>
      55. </tr>
      56. </table>
      57. </else>
      58. </if>
      59. </then>
      60. <else>
      61. <div align="center"><span class="smallfont">{$lang->items['LANG_START_NOPOSTS']}</span></div>
      62. </else>
      63. </if></td>
      64. <if($hide_modcell==0 && (!isset($favorites) || !$favorites))><then><td class="tablea" align="center"><span class="smallfont"><if($moderatorbit!="")><then>$moderatorbit</then><else>&nbsp;</else></if></span></td></then></if>
      65. </then></if>
      66. </tr>
      Alles anzeigen
    • RE: SEO WBB Suchmaschinenoptimierung WBB PHP HTML Links für euer WBB

      Alles was Php ist musst du in der Robots.txt ausperren. das Portal auch. wichtig sind die Beiträge und die Boards. nach dem rest sucht keiner in Suchmaschinen.

      Mach einfach aus der index.php die zum forum geht eine index.html

      Nur die templates bearbeiten.

      und

      Eintrag in die .htaccess

      RewriteRule ^index\.html$ index.php [L]

      Du musst noch mal in die acp/lip/funktions.php

      suche
      $seoboardstitle = seo_modul($boards['title']);

      dadrunter einfügen.

      $seoboardstopic = seo_modul($boards['topic']);
    • RE: SEO WBB Suchmaschinenoptimierung WBB PHP HTML Links für euer WBB

      Die functions.php ist nun geändert.

      Die Anzeige stimmt aber immer noch nicht.

      Ich glaube, weil ich gegen 11:45 die letzte board.php von Dir perl Mail eingespielt habe.

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Jessy ()

    • RE: SEO WBB Suchmaschinenoptimierung WBB PHP HTML Links für euer WBB

      Prima,

      jetzt stimmts!

      Ich werd dann mal nachher die ganzen .php aussperren.
      Das muss bei einem Hackeinbau mal überschrieben worden sein.

      Wie wäre denn nun der nächste Schritt?
    • RE: SEO WBB Suchmaschinenoptimierung WBB PHP HTML Links für euer WBB

      board_threadbit

      Suche:

      PHP-Quellcode

      1. <a href="thread.php?threadid=$threads[threadid]<if($search[searchstring])><then>&amp;hilight=$search[searchstring]</then></if><if($search[searchuserid])><then>&amp;hilightuser=$search[searchuserid]</then></if>{$SID_ARG_2ND}">$threads[topic]</a></span>$multipages<span class="smallfont">


      ersetzen

      PHP-Quellcode

      1. <a href="thread_$threads[threadid]_$seothreadstopic.html" alt="$threads[topic] " title="$threads[topic]" >$threads[topic]</a></span>$multipages<span class="smallfont">
    • RE: SEO WBB Suchmaschinenoptimierung WBB PHP HTML Links für euer WBB

      Das wäre denn schon alles, alles andere ist unwichtig. in einer Woche hast du gute links im Google Index. ;)

      solltest du mal ein update machen musst du alles wieder neu machen.

      Deine Index.php noch umwandeln.

      wie das geht habe ich weiter oben schon beschrieben.
    • RE: SEO WBB Suchmaschinenoptimierung WBB PHP HTML Links für euer WBB

      wow,

      das ging ja schnell, wenn man weis, was zu machen ist! *lol*


      Eine Frage hab ich noch :
      Bei mir wird als Eingang nicht die index.html benutzt, sondern die jgs_potal.php.
      Das habe ich so in der .htaccess stehen.

      Wenn Google nun kommt und das Portal spidern will, dann ist das ja gesperrt.
      Das bedeutet dann ja , dass nur die Links aus der sitemap.xml gecrawlt werden - oder?
      Was mache ich denn dann mit meinen 1000 bereits geschriebenen Themen?
    • RE: SEO WBB Suchmaschinenoptimierung WBB PHP HTML Links für euer WBB

      So,

      das sieht nun ja schon viel besser aus.
      Die neuen Überschriften scheinen auch etwas zu bringen, denn die neuen Themen stehen weiter vor als die alten.

      Ich möchte nun aber gerne noch in der index.html die Hauptkategorie auch als html-Link haben.
      Hierhin sollen nämlich noch einige externe Links führen.
      Kannst Du mir sagen, wo ich das ändern muss?

      Gruß Jürgen
    • RE: SEO WBB Suchmaschinenoptimierung WBB PHP HTML Links für euer WBB

      Hallo Jürgen! Deine Frage von der PN!

      Tausche mal deine Code in der Thread.php mit dem hier aus.

      Quellcode

      1. /* Ähnlich Themen */
      2. function GetAccessableForums() {
      3. global $db, $n, $wbbuserdata, $boardcache;
      4. if (!isset($boardcache) || !is_array($boardcache)) $boardcache = array();
      5. $result = $db->query("SELECT boardid,boardorder,parentid,parentlist FROM bb".$n."_boards ORDER BY parentid ASC, boardorder ASC");
      6. while ($row = $db->fetch_array($result)) {
      7. $boardcache[$row['parentid']][$row['boardorder']][$row['boardid']] = $row;
      8. }
      9. $boardpermissions = getPermissions();
      10. $boardids = '';
      11. foreach ($boardcache as $key => $val) {
      12. foreach ($val as $key2 => $val2) {
      13. foreach ($val2 as $row) if ((!isset($boardpermissions[$row['boardid']]['can_view_board']) || $boardpermissions[$row['boardid']]['can_view_board'] != 0) && (!isset($boardpermissions[$row['boardid']]['can_enter_board']) || $boardpermissions[$row['boardid']]['can_enter_board'] != 0) && (!isset($boardpermissions[$row['boardid']]['can_read_thread']) || $boardpermissions[$row['boardid']]['can_read_thread'] != 0)) $boardids .= ",".$row['boardid'];
      14. }
      15. }
      16. return $boardids;
      17. }
      18. /* Unset Used Vars To Avoid Hacking Attempts */
      19. unset($similar_thread_bit);
      20. unset($like_string);
      21. $ttopic = str_replace("."," ",$threadtopic);
      22. $ttopic = str_replace("!"," ",$ttopic);
      23. $ttopic = str_replace("?"," ",$ttopic);
      24. $ttopic = str_replace("/"," ",$ttopic);
      25. $ttopic = str_replace("§"," ",$ttopic);
      26. $ttopic = str_replace("$"," ",$ttopic);
      27. $ttopic = str_replace("%"," ",$ttopic);
      28. $ttopic = str_replace("&"," ",$ttopic);
      29. $ttopic = str_replace("("," ",$ttopic);
      30. $ttopic = str_replace(")"," ",$ttopic);
      31. $ttopic = str_replace("="," ",$ttopic);
      32. $ttopic = str_replace("\\"," ",$ttopic);
      33. $ttopic = str_replace("?"," ",$ttopic);
      34. $ttopic = str_replace("-"," ",$ttopic);
      35. $ttopic = str_replace("*"," ",$ttopic);
      36. $ttopic = str_replace("+"," ",$ttopic);
      37. $ttopic = str_replace("#"," ",$ttopic);
      38. $ttopic = str_replace("_"," ",$ttopic);
      39. $ttopic = str_replace(","," ",$ttopic);
      40. $ttopic = str_replace(":"," ",$ttopic);
      41. $ttopic = str_replace(";"," ",$ttopic);
      42. $ttopic = str_replace("<"," ",$ttopic);
      43. $ttopic = str_replace(">"," ",$ttopic);
      44. $ttopic = str_replace("|"," ",$ttopic);
      45. $ttopic = str_replace("~"," ",$ttopic);
      46. $ttopic = str_replace("'"," ",$ttopic);
      47. $ttopic = str_replace('"',' ',$ttopic);
      48. $ttopic = explode(" ",$ttopic);
      49. $badwordlist = explode("\n",$badsearchwords);
      50. $y = count($ttopic);
      51. if($y>1) {
      52. foreach($ttopic as $tt) {
      53. if(!in_array($tt, $badwordlist)) {
      54. if(strlen($tt)>=$minwordlength && strlen($tt)<=$maxwordlength) $x++;
      55. if($x>1 && (strlen($tt)>=$minwordlength && strlen($tt)<=$maxwordlength)) $like_string .= " OR t.topic LIKE ";
      56. if(strlen($tt)>=$minwordlength && strlen($tt)<=$maxwordlength) $like_string .= "'%".$tt."%'";
      57. }
      58. }
      59. } else $like_string = "'%$threadtopic%'";
      60. if($like_string) {
      61. $similar = $db->query("SELECT
      62. t.threadid, t.boardid, x.title, x.boardid, t.prefix, t.topic, t.starttime, t.starterid, t.starter, t.lastposttime, t.lastposterid, t.lastposter, t.replycount, t.views, t.attachments, t.closed, t.important, t.pollid
      63. FROM bb".$n."_threads t, bb".$n."_boards x
      64. LEFT JOIN bb".$n."_boards b ON (t.boardid=b.boardid)
      65. WHERE t.visible='1'
      66. AND t.closed <> 3
      67. AND t.threadid <> $threadid
      68. AND b.password=''
      69. AND t.boardid=x.boardid
      70. AND t.boardid IN (0".GetAccessableForums().")
      71. AND (t.topic LIKE ".$like_string.")
      72. ORDER BY t.lastposttime DESC
      73. LIMIT 0, 5;");
      74. }
      75. if($like_string && $db->num_rows($similar)) {
      76. $i = "0";
      77. while ($row = $db->fetch_array($similar)) {
      78. $i++;
      79. $tdclass = getone($i, "tablea", "tableb");
      80. $started = formatdate($wbbuserdata['dateformat'], $row['starttime'],1);
      81. $started .= " <span class=\"time\">".formatdate($wbbuserdata['timeformat'], $row['starttime'])."</span>";
      82. $lastreply = formatdate($wbbuserdata['dateformat'], $row['lastposttime'],1);
      83. $lastreply .= " <span class=\"time\">".formatdate($wbbuserdata['timeformat'], $row['lastposttime'])."</span>";
      84. if ($row['replycount'] >= 1000) $row['replycount'] = number_format($row['replycount'], 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
      85. if ($row['views'] >= 1000) $row['views'] = number_format($row['views'], 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP"));
      86. if (strlen($row['topic']) > 60) $row['topic'] = substr($row['topic'], 0, 600).'';
      87. $row['topic'] = htmlconverter($row['topic']);
      88. $seothreadtop = seo_modul($row['topic']);
      89. eval("\$similar_thread_bit .= \"".$tpl->get("thread_similarthread_bit")."\";");
      90. }
      91. eval("\$similar_thread = \"".$tpl->get("thread_similarthread")."\";");
      92. }
      93. /* Ähnliche Themen Ende */
      Alles anzeigen



      In der Tpl. Ist der Link dann So

      thread_$row[threadid]_$seothreadtop.html



      Den Boardlink habe ich leider noch nicht ändern können.
    • RE: SEO WBB Suchmaschinenoptimierung WBB PHP HTML Links für euer WBB

      Super Rene,

      jetzt läufts bei mir. :]
      Ich musste die Thread.php nur etwas abändern, weil die original-Version nicht mySQL 5 tauglich ist.
      Falls Du die Board-Links noch ändern solltest, schick mir bitte eine Mail oder poste hier.

      Danke schön und viel Erfolg auf Deiner Reise.
      Jürgen
    • RE: SEO WBB Suchmaschinenoptimierung WBB PHP HTML Links für euer WBB

      Original von Avatar
      Das hast du gut gemacht.

      nun ein beispiel für die lastpost. moment, muss mein kind vom kindergarten hollen. ;)


      Hier hab ich ein kleines Problem:

      Meine Linkssehen so aus:
      /board_8_.html

      Also ohne der Forenbeschreibung im Link.

      Liegt es evtl an der zweisprachigen Einstellung bei mir? Ich habe über die OWN-Sprachvariable die Boardtitel bezeichnet.