Page 1 of 1
[included in 1.0.0 RC1] Forenübersicht (Liste)
Posted: 13. April 2008 18:37
by Technikerforum
Hallo Leute,
Ich habe noch ein kleine Wunsch, und hoffe, dass mir jemand helfen kann.
Ich würde gerne im Bortal ein Teil meines Forum´s anzeigen lassen.
Mhhh. ist etwas schwer zu beschreiben.
-im Portal kann ich doch Beiträge und Bekanntmachungen einblenden lassen. Das ist O.K.
Aber ich würde gerne die Obere Struktur anzeigen lassen.
Also ein Teil der Forenübersicht--z.B. ´wie bei euch die Spalte mit den "Board3.de"=> 2 Hauptthemen
versteht Ihr was ich meine????
Grüßle Heiko
Re: Forum anstelle der Beiträge im Portal anzeigen
Posted: 13. April 2008 18:56
by Redbull254
Hallo, Heiko
versteht Ihr was ich meine????
Ich denke schon, das Thema hatten wir schon einmal, Foren in der Portal-Seite anzeigen zu lassen.
Von uns nicht angedacht und demzufolge keine Support-Anfrage, sondern eher eine Sache eines Add-On oder Snippet, falls sich jemand von unseren Mitgliedern die Arbeit machen möchte.
Jedenfalls keine schnell zu erledigende Arbeit.

Re: Forum anstelle der Beiträge im Portal anzeigen
Posted: 13. April 2008 19:24
by Technikerforum
Ah! " Forenübersicht (Liste) als eigener Block auf dem Portal" das wäre es gewesen.
Ich hatte gehofft, das man das auch mit der eingabe einer ID-Nummer anzeigenlassen kann.
So wie jeder Beitrag eine ID hat, hat doch sicherlich die jeweilige Forumliste auch eine ID?
Na gut. Dann werde ich mal weitersuchen!
Danke
Grüßle Heiko
Re: Forum anstelle der Beiträge im Portal anzeigen
Posted: 17. April 2008 07:56
by Anton
Hier gibt es eine Lösung dafür:
http://www.phpbb.com/community/viewtopi ... 5#p5151625
Saint_hh wrote:To get the forum list on the portal:
open
portal.php
find:
after add:
Code: Select all
display_forums('', $config['load_moderators']);
// Assign index specific vars
$template->assign_vars(array(
'FORUM_IMG' => $user->img('forum_read', 'NO_NEW_POSTS'),
'FORUM_NEW_IMG' => $user->img('forum_unread', 'NEW_POSTS'),
'FORUM_LOCKED_IMG' => $user->img('forum_read_locked', 'NO_NEW_POSTS_LOCKED'),
'FORUM_NEW_LOCKED_IMG' => $user->img('forum_unread_locked', 'NO_NEW_POSTS_LOCKED'),
'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'mark=forums') : '',
'U_MCP' => ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : '')
);
open root\styles\prosilver\template\portal\
portal_body.html
search:
Code: Select all
<!-- IF S_DISPLAY_WELCOME -->
<!-- IF S_DISPLAY_WELCOME_GUEST and S_USER_LOGGED_IN -->
<!-- ELSE -->
<!-- INCLUDE portal/block/welcome.html -->
<!-- ENDIF -->
<!-- ENDIF -->
after add:
Code: Select all
<!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
<ul class="linklist">
<!-- IF S_DISPLAY_SEARCH -->
<li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><!-- IF S_USER_LOGGED_IN --> • <a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><!-- ENDIF --> • <a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li>
<!-- ENDIF -->
<!-- IF not S_IS_BOT and U_MARK_FORUMS --><li class="rightside"><a href="{U_MARK_FORUMS}" accesskey="m">{L_MARK_FORUMS_READ}</a></li><!-- ENDIF -->
</ul>
<!-- ENDIF -->
<!-- INCLUDE forumlist_body.html -->
Feedback is welcome.
Re: Forenübersicht (Liste) als eigener Block auf dem Portal
Posted: 18. April 2008 04:51
by gaz
Hi Anton, how do I put this in a block?
Have responded to saint_hh with some errors I am getting at phpbb.com with this code and it looks like it puts the index on the portal and not as a menu link to replace the center contents of the protal
regards
Re: Forenübersicht (Liste) als eigener Block auf dem Portal
Posted: 20. April 2008 05:06
by gaz
[RC] alphaPORTAL - Pending Admission to MODDB, has linked the index to portal center from menu bar.
Had a look at the code but can't figure it out to apply to Border3........can anyone have a look?
Regards