
Wie auch immer, von mir gibts jetzt ein bisserl Code fürs Seo phpbb2, welcher eine Bookmark-Seite generiert welche nur noch abgespeichert und dann hochgeladen werden muss.
Funzt bei Mr. Wong, bluedot.us und ein paar anderen die ich so ausprobiert habe. Zwar kamen bei diversen komische/gar keine Tags bei raus oder es wurde was komisch verstümmelt, aber die Links zu mir funzen alle soweit und darum gehts ja

Mal sehen, ob das ganze zu dreist ist.......

Falls jemand Lust hat dieses "höchst-komplizierte" Script für andere Foren-Systeme oder sonstwas anzupassen, macht doch

Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//Url zum Forum
$url="http://www.domain.de/";
//Allgemeine Tags, falls unerwünscht "untagged" einfügen
$tags="untagged";
/* Maximale/Minimale Zeit in Sekunden, die von der topic_time (Bookmark erstellt) und
post_time (Bookmark zuletzt modifiziert) abgezogen wird. Für Mehrfach-Uploader
mit mehreren Accs oder für die Weitergabe an Bekannte etc.
Keine Ahnung, ob da überhaupt was geprüft wird, aber sicher ist sicher*/
$rand_max=172800;
$rand_min=0;
echo"<!DOCTYPE NETSCAPE-Bookmark-file-1>
<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset=UTF-8\">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
";
$url_search = array( 'Ö', 'Ä', 'Ü', 'ö', 'ä', 'à', 'é', 'è', 'ü', ' ', ".", "'", '#', '&', '/','ß','+','€','§','$','%','?','!',':',';','[',']',',');
$url_replace = array( 'oe', 'ae', 'ue', 'oe', 'ae', 'a', 'e', 'e', 'ue', '-', "", "", '', '-und-', '-','ss','','euro','','','','','','','','','','');
$sql = "SELECT topic_id,
topic_title,
topic_time,
topic_last_post_id
FROM " . TOPICS_TABLE . "
";
if( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, 'Could not query topics', '', __LINE__, __FILE__, $sql);
while( $row = $db->sql_fetchrow($result) ){
$rand=rand($rand_min,$rand_max);
$id=$row['topic_id'];
$title = urlencode(strtolower(str_replace($url_search, $url_replace, $row['topic_title'])));
$title2=$row['topic_title'];
$time=$row['topic_time']-$rand;
$pid=$row['topic_last_post_id'];
$sql2 = "SELECT post_time
FROM " . POSTS_TABLE . "
WHERE post_id = $pid";
if( !($result2 = $db->sql_query($sql2)) ) message_die(GENERAL_ERROR, 'Could not query posts', '', __LINE__, __FILE__, $sql);
while( $row2 = $db->sql_fetchrow($result2) ){
$ptime=$row2['post_time']-$rand;
}
//---------------------------------------------------------------------------------
//Sofern oben unter $tags was eingetragen wurde, 2te Zeile auskommentieren.
//Falls Wörter im Threadtitel als Tags gewünscht sind, erste Zeile auskommentieren.
//$tags2=$tags;
$tags2=str_replace('-', ' ', $title);
//---------------------------------------------------------------------------------
echo"<DT><A HREF=\"$url$title-t$id.html\" ADD_DATE=\"$time\" LAST_MODIFIED=\"$ptime\" TAGS=\"$tags2\">$url - $title2</A>
<DD>
(tags: $tags2)
";
}
echo"</DL><p>";
?>