Seite 27 von 45
Verfasst: 22.04.2004 19:16
von Jürgen H.
Hallo,
ich würde gern folgendes machen: die Bilder (folder_new.gif. folder.gif) für neue Beiträge etc. in der index_body.tpl im forumrow vor der {catrow.forumrow.U_VIEWFORUM} einfügen. Die Variable dafür wäre {recent.TOPIC_FOLDER_IMG}.
Die entsprechende Stelle in der index_body.tpl:
Code: Alles auswählen
<td class="row3" align="center" valign="middle" width="45" height="36"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="45" height="36" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="620" onmouseover="this.style.backgroundColor='{C_ROW1_OVER}';" onmouseout="this.style.backgroundColor='{C_ROW1}';" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'">
<span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow.forumrow.FORUM_DESC} {catrow.forumrow.ACTIVE_TOTAL} {catrow.forumrow.ACTIVE} {catrow.forumrow.ACTIVE_INFO}<br />
</span></td>
Einfach nur {recent.TOPIC_FOLDER_IMG} einfügen klappt nicht...
Weiss jemand, wie das zu machen wäre?
Danke.
Verfasst: 22.04.2004 19:59
von Doc Lecter
Hey! Habe nach dem Update auf 2.0.8a folgende Fehlermeldung bei Aufruf der Letzten Themen / Version 1.2.0 (wenn ich eingeloggt bin):
Code: Alles auswählen
Could not obtain topic ids
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') GROUP BY topic_id' at line
SELECT topic_id FROM phpbb_posts WHERE post_id IN () GROUP BY topic_id
Line : 72
Wenn ich als ausgeloggter User oder halt Gast die Recent Topics aufrufe kommt folgende meldung:
Code: Alles auswählen
Could not obtain main information
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND p.post_id = t.topic_last_post_id AND UNIX_TIMESTAMP(NOW()
SELECT from_unixtime(p.post_time, '%d.%m.%y %H:%i:%s') as topic_time, f.forum_name as forum_name, f.forum_id as forum_id, u.username as username, u2.username as username2, u2.user_id as user_id2, p.poster_id as poster_id, p.post_username as post_username, p.post_id as post_id, t.*, p.post_time as post_time FROM phpbb_topics t, phpbb_posts p LEFT OUTER JOIN phpbb_forums f on p.forum_id = f.forum_id LEFT OUTER JOIN phpbb_users u on p.poster_id = u.user_id LEFT OUTER JOIN phpbb_users u2 on u2.user_id = t.topic_poster WHERE t.topic_id IN () AND p.post_id = t.topic_last_post_id AND UNIX_TIMESTAMP(NOW()) - p.post_time < 86400 ORDER BY p.post_time desc LIMIT 0, 50
Was muss ich nun machen?!
EDIT: Ich habe das PHPBB noch einmal neu installiert. Es lag eindeutig an dem MySQl Update auf 2.0.8 da jetzt ALLES (mit geänderten Dateien) wieder funzt!!!
Verfasst: 03.05.2004 16:50
von Icey
Hallo,
habe eben die Version "recent_max_220" in mein Forum eingebaut und es klappt auch alles so wie es sollte. Aber ich würde trotzdem gerne das die Themen auf einer gesonderten Seite erscheinen und nicht auf der Startseite.
Ist es möglich diese Version entsprechend umzuändern, so das ich auf der Startseite nacher nur noch einen Button habe mit denen ich diese letzen Themen aufrufen kann?
Und wenn ja, wie kann ich das bewerkstelligen?
Gruß
Icey
Verfasst: 03.05.2004 17:34
von Quovandius
Hi
Ich habe auf meiner HP die 3te variante des Mods installed. Da wo die Topics ausgegeben werden sollten steht jedoch nur " Parse error: parse error in recent.php on line 5"
Weiss jemand woran das liegen könnte?
Verfasst: 03.05.2004 18:01
von Icey
Das dürfte dann diese Zeile sein:
$special_forums = '0'; // 0 = no; 1 = yes
Hast du die in irgendeiner Form verändert @Quovandius? Vergleich diese Zeilen mal......
Gruß
IceBox
Verfasst: 03.05.2004 18:40
von Quovandius
Ne hab ich nicht. Bei mir ist das jedoch auch nicht line 5. Also bei mir sieht das so aus:
Code: Alles auswählen
<?php
// ############ Edit below ###############################
$length = '25'; // length of topic title
$limit = 5'; // how many topics?
$l_recent = 'recent topics';
$l_started = 'started at';
$l_by = 'by';
$special_forums = '0'; // 0 = no; 1 = yes
$forums = ',2,3,4,5,6,7,8,9,10,11,12,13,14,17,18,19,20,21,22,23,24,28,29,30,31,32,33,35,36,37,38,39'; // ID of forums; separate them with a comma
$css = 'http://www.your_domain.com/forum/templates/name/name.css'; //path and name to your css_sheet - optional
// ############ Edit above ###############################
Verfasst: 21.05.2004 23:34
von Berserker
Ich hab mal ne Frage!
Ich benutze die Recent3 Version und bekomme nur den Page Header Angezeigt!
Woran kann denn das liegen?
Verfasst: 22.05.2004 23:01
von jaymuc
Berserker hat geschrieben:Ich hab mal ne Frage!
Ich benutze die Recent3 Version und bekomme nur den Page Header Angezeigt!
Woran kann denn das liegen?
Ich habe eben versucht das Mod einzubinden und habe genau das gleiche Problem. recent3 phpBB2.0.8a
Verfasst: 23.05.2004 03:51
von Berserker
Ach ja ich hab:
PHP Version 4.2.3
phpBB 2.0.6
Verfasst: 25.05.2004 09:20
von Rafterman
Moin moin jungs
ich habe da mal ne Frage die vielleicht nicht so direkt zu diesem Mod hier gehört.
Ich habe vor die erste Version zu installieren, da wo ich die letzten Postings auf einer php seite anzeigen lassen kann.
Jetzt meine frage, ist es möglich die letzten postings auch auf einer html seite einzubinden, durch iframe oder so???
Wäre echt cool wenn jemand mir da einen tipp geben könnte!