Verfasst: 12.03.2005 17:28
gibt es eine version des mod's ohne template system?? also als pure html version?
Die ausgabe mein ich

Code: Alles auswählen
<?php
$result = 0;
$sqlnews = 'SELECT u.user_id user_id, u.username username, t.topic_id topic_id, t.topic_title title, t.topic_time topic_time,'
. ' t.topic_views views, t.topic_replies replies, pt.post_text text'
. ' FROM wowrdhbb_posts_text pt, wowrdhbb_posts p, wowrdhbb_topics t, wowrdhbb_users u'
. ' WHERE pt.post_id = p.post_id'
. ' AND p.topic_id = t.topic_id'
. ' AND p.post_id = t.topic_first_post_id'
. ' AND t.topic_poster = u.user_id'
. ' AND t.forum_id = ' . PAGE_NEWS_FORUM_ID
. ' AND t.topic_type >= ' . PAGE_NEWS_TOPIC_TYPE;
$dbconn = db_connect();
if ($dbconn == 0){
echo "<BR>Datenbank nicht gefunden<BR>";
}
else{
$news_array = mysql_query($sqlnews, $dbconn) or die(mysql_error());
if($news_array){
while($news_rec = mysql_fetch_assoc($news_array)){
$topic_id = $news_rec['topic_id'];
$news_title = $news_rec['title'];
$news_text = $news_rec['text'];
$news_text = bbencode_second_pass($news_text, $topic_id);
$news_text = smilies_pass($news_text);
$news_text = str_replace("\n", "\n<br />\n", $news_text);
format_subtitle_glow($news_title);
echo $news_text;
echo "<TABLE WIDTH='100%'><TR WIDTH='100%'><TD WIDTH='100%' HEIGHT='10px' background='Rahmen unten.png'></TD></TR></TABLE>";
}
}
db_disconnect();
}
?>
Code: Alles auswählen
# forum phpbb includes
define('IN_PHPBB', true);
define('IN_RDHPAGE', true);
$phpbb_root_path = '../forum/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.php');
include($phpbb_root_path . 'includes/bbcode.php');
init_userprefs($userdata);
$phpbb_root_path = '../forum/';
Code: Alles auswählen
[url=www.rat-der-horde.de/WoWScrnShot_070605_124530_big.jpg][img]http://www.rat-der-horde.de/WoWScrnShot_070605_124530_prev.jpg[/img][/url] [url=www.rat-der-horde.de/WoWScrnShot_070605_124637_big.jpg][img]http://www.rat-der-horde.de/WoWScrnShot_070605_124637_prev.jpg[/img][/url]
Pic of the day ^^ Der strahlende Sieger ;-)
Morton und ich hatten ja gewettet dass ich Ihn noch vom Level her einhole bis Mittwoch um 24:00 Uhr.
Fast hätte mir die Zeit vom Server-Down noch ein Schnippchen geschlagen. Aber ab jetzt habe ich auch wieder Zeit für
Euch und bin nicht mehr so oft afk ;-)
[quote]asdfasfasdf[/quote]
[code]sadasd
wie man sieht, wurden die img-tags und meine tests mit code, color usw. nicht umgewandelt.<div style='width:100%; filter:Glow(color=#AA0000, strength=5)'><font face='Nightwarrior' color=#DDDDDD size=4> 06.07.2005 - Eine Wette geht zu Ende...</font></div><a href="http://www.rat-der-horde.de/WoWScrnShot ... 30_big.jpg" target="_blank" class="postlink">[img:bdf63ff794]http://www.rat-der-horde.de/WoWScrnShot ... 0_prev.jpg[/img:bdf63ff794]</a> <a href="http://www.rat-der-horde.de/WoWScrnShot ... 37_big.jpg" target="_blank" class="postlink">[img:bdf63ff794]http://www.rat-der-horde.de/WoWScrnShot ... 7_prev.jpg[/img:bdf63ff794]</a>
<br />
<br />
Pic of the day ^^ Der strahlende Sieger <img src="/forum/images/smilies/icon_wink.gif" alt="Wink" border="0" />
<br />
Morton und ich hatten ja gewettet dass ich Ihn noch vom Level her einhole bis Mittwoch um 24:00 Uhr.
<br />
Fast hätte mir die Zeit vom Server-Down noch ein Schnippchen geschlagen. Aber ab jetzt habe ich auch wieder Zeit für
<br />
Euch und bin nicht mehr so oft afk <img src="/forum/images/smilies/icon_wink.gif" alt="Wink" border="0" />
<br />
<br />
<br />
[quote:bdf63ff794]asdfasfasdf[/quote:bdf63ff794]
<br />
<br />
[code:1:bdf63ff794]sadasd[/code:1:bdf63ff794]
<br />
<br />
[color=red:bdf63ff794]rot[/color:bdf63ff794]
<br />
<br />
[size=24:bdf63ff794]groß[/size:bdf63ff794]<TABLE WIDTH='100%'><TR WIDTH='100%'><TD WIDTH='100%' HEIGHT='10px' background='Rahmen unten.png'></TD></TR></TABLE>
Das würde schon funktionieren, nur ist der Aufwand größer wie ein Komma.BundeHund hat geschrieben:hallo ..
wenn ich aus mehreren unterforen die news auslesen will, muss ich da die ids durch ein komma trennen..oder geht das überhaupt nicht?!