Seite 1 von 1

neue Seite

Verfasst: 24.02.2005 18:15
von punker
Hallo,

habe eine Seite in mein Forum angepasst und möchte jetzt gerne auf diese Seite beiträge aus einem bestimmten Unterforum anzeigen lassen.

Wie kann ich das machen?

Code: Alles auswählen

<?php
define('IN_PHPBB', true);

$phpbb_root_path = './'; // <--
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

include($phpbb_root_path . 'includes/page_header.'.$phpEx);
?>

Mein HTML Code

<?
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Danke schon mal im vorraus! :-)

Verfasst: 24.02.2005 19:52
von Mario Siebert
recent v.2.2.3 :wink:

Grüße Mario

Verfasst: 24.02.2005 21:52
von punker
thx

werde ich mal einbauen :)

Verfasst: 24.02.2005 22:53
von punker
bekomme da immer ne folgende fehlermeldunge :(

Fatal error: Call to a member function on a non-object in /var/www/web1/html/forum/recent.php on line 224

Verfasst: 25.02.2005 09:55
von Mario Siebert
Wie genau hast du es in dein Script eingefügt? Poste am besten mal den Quelltext damit man sich das anschauen kann.

Grüße Mario

Verfasst: 28.02.2005 21:19
von punker
Hallo!

Ich weiß, nicht ob das so geht..
aber wenn, ich das so schreibe bekomme ich oben die Fehlermeldung

Code: Alles auswählen

<?php
define('IN_PHPBB', true);

$phpbb_root_path = './'; // <--
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path .'recent.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

include($phpbb_root_path . 'includes/page_header.'.$phpEx);
?>

<table width="100%" cellpadding="1" cellspacing="1" border="0" align="center" class="forumline">
  <tr>
        <th colspan="5">{L_RECENT_TITLE}</th>
  </tr>
  <!-- BEGIN recent -->
  <tr> 
        <td class="{recent.ROW_CLASS}" align="center" valign="middle"><img src="{recent.TOPIC_FOLDER_IMG}" alt="{recent.TOPIC_FOLDER_ALT}" title="{recent.TOPIC_FOLDER_ALT}" /></td>
        <td class="{recent.ROW_CLASS}" nowrap="nowrap"><span class="topictitle">{recent.NEWEST_IMG}{recent.TOPIC_TYPE}<a href="{recent.U_VIEW_TOPIC}" class="topictitle">{recent.TOPIC_TITLE}</a></span>
                                                                                       <span class="gensmall">{recent.GOTO_PAGE}<br />{recent.FIRST_TIME}{recent.FIRST_AUTHOR}<br /></span></td>
        <td class="{recent.ROW_CLASS}" width="8%" align="left"><span class="postdetails">&nbsp;{recent.L_REPLIES}: {recent.REPLIES}
                                                                                                   <br />&nbsp;{recent.L_VIEWS}: {recent.VIEWS}</span></td>
        <td class="{recent.ROW_CLASS}" width="25%" nowrap="nowrap">&nbsp;<span class="forumlink"><a href="{recent.U_VIEW_FORUM}" class="forumlink">{recent.FORUM_NAME}</span></td>
        <td class="{recent.ROW_CLASS}" width="25%" nowrap="nowrap"><span class="postbody">{recent.POST_TEXT}</span><br />
                                                                                                           <span class="gensmall"> {recent.LAST_URL} {recent.LAST_TIME}&nbsp;&nbsp;{recent.LAST_AUTHOR}</span></td>
  </tr>
  <!-- END recent -->
</table>

<?
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Ich denke, mal das es falsch ich.. oder???? :oops: :(