Demoportal (einige Funktionen, wie z.B. Attachments, sind nur für registrierte Benutzer zu sehen, dafür gibts die Screenshots):
- Geburtstage
Suche in der styles/prosilver/template/portal/portal_body.htmlund ersetze durch:Code: Select all
<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST --> <!-- INCLUDE portal/block/birthday_list.html --> <!-- ENDIF -->
Code: Select all
<!-- //IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST --> <!-- INCLUDE portal/block/birthday_list.html --> <!-- //ENDIF -->
Um die Geburtstagsbox anzeigen zu lassen. - Freunde
Suche in der styles/prosilver/template/portal/portal_body.htmlund ersetze durch:Code: Select all
<!-- IF S_DISPLAY_FRIENDS and S_ZEBRA_ENABLED and S_USER_LOGGED_IN --> <!-- INCLUDE portal/block/online_friends.html --> <!-- ENDIF -->
Die Liste wird mit diesem Code nur für angemeldete Benutzer angezeigt.Code: Select all
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN and S_ZEBRA_ENABLED --> <!-- //IF S_DISPLAY_FRIENDS and S_ZEBRA_ENABLED and S_USER_LOGGED_IN --> <!-- INCLUDE portal/block/online_friends.html --> <!-- //ENDIF --> <!-- ENDIF -->
Um die Freundebox anzeigen zu lassen. - Styleswitcher
Suche in der styles/prosilver/template/portal/portal_body.htmlund ersetze durch:Code: Select all
<!-- IF S_DISPLAY_CHANGE_STYLE --> <!-- INCLUDE portal/block/change_style.html --> <!-- ENDIF -->
Wobei ich auch hier empfehlen würde den IF not S_IS_BOT and S_USER_LOGGED_IN Tag zu setzen.Code: Select all
<!-- //IF S_DISPLAY_CHANGE_STYLE --> <!-- INCLUDE portal/block/change_style.html --> <!-- //ENDIF -->
Um den Sytyleswitcher anzeigen zu lassen. - Dateianhänge
Zusätzlich habe ich die Darstellung etwas geändert und die Anzahl der Downloads eingefügt.
Suche in der portal/block/attachments.phpund ersetze durch:Code: Select all
'FILESIZE' => $row['filesize'] . ' ' . $size_lang, 'FILETIME' => $user->format_date($row['filetime']), 'REAL_FILENAME' => $replace, 'PHYSICAL_FILENAME' => basename($row['physical_filename']), 'ATTACH_ID' => $row['attach_id'], 'POST_IDS' => (!empty($post_ids[$row['attach_id']])) ? $post_ids[$row['attach_id']] : '', 'U_FILE' => append_sid($phpbb_root_path . 'download.' . $phpEx, 'id=' . $row['attach_id']),
Suche in der styles/prosilver/template/portal/block/attachments.htmlCode: Select all
'FILESIZE' => $row['filesize'] . ' ' . $size_lang, 'FILETIME' => $user->format_date($row['filetime']), 'DOWNLOAD_COUNT' => (int) $row['download_count'], // Anzahl Downloads hinzu 'REAL_FILENAME' => $replace, 'PHYSICAL_FILENAME' => basename($row['physical_filename']), 'ATTACH_ID' => $row['attach_id'], 'POST_IDS' => (!empty($post_ids[$row['attach_id']])) ? $post_ids[$row['attach_id']] : '', 'U_FILE' => append_sid($phpbb_root_path . 'download/file.' . $phpEx, 'id=' . $row['attach_id']),
und ersetze durch:Code: Select all
<span style="float:left;"><strong>{L_FILENAME}</strong></span> <span style="float:right;padding-right:10px;"><strong>{L_FILESIZE}</strong></span><br /> <!-- BEGIN attach --> <span style="float:left;" class="gensmall"><img src="portal/images/icon_topic_attach.gif" /><a href="{attach.U_FILE}" target="_blank">{attach.REAL_FILENAME}</a></span> <span style="float:right;padding-right:10px;" class="gensmall">{attach.FILESIZE}</span><br style="clear:both" /> <!-- END attach -->
Jetzt wieder in der styles/prosilver/template/portal/portal_body.htmlCode: Select all
<span style="float:left;"><strong>{L_FILENAME}</strong></span><br /> <!-- <span style="float:right;padding-right:10px;"><strong>{L_FILESIZE}</strong></span><br /> --> <!-- BEGIN attach --> <span style="float:left;" class="gensmall"><img src="portal/images/icon_topic_attach.gif" /><a href="{attach.U_FILE}" target="_blank"><strong>{attach.REAL_FILENAME}</strong></a></span><br style="clear:both" /> <!-- <span style="float:right;padding-right:10px;" class="gensmall">{attach.FILESIZE}</span><br style="clear:both" /> --> <span style="float:left;padding-right:10px;">{L_FILESIZE}:</span><span style="float:right;padding-right:10px;" class="gensmall"><strong>{attach.FILESIZE}</strong></span><br style="clear:both" /> <span style="float:left;padding-right:10px;">Downloads:</span><span style="float:right;padding-right:10px;" class="gensmall"><strong>{attach.DOWNLOAD_COUNT}</strong></span><br style="clear:both" /> <hr width="95%" /> <!-- END attach -->
und ersetze durch:Code: Select all
<!-- IF S_DISPLAY_ATTACHMENTS and ATTACH_ID --> <!-- INCLUDE portal/block/attachments.html --> <!-- ENDIF -->
Mit diesem Code werden die Attachments nur für angemeldete Benutzer angezeigt.Code: Select all
<!-- IF not S_IS_BOT and S_USER_LOGGED_IN --> <!-- IF S_DISPLAY_ATTACHMENTS --> <!-- INCLUDE portal/block/attachments.html --> <!-- ENDIF --> <!-- ENDIF -->
Wichtig: Es werden keine Berechtigungen geprüft! Also auch Attachments aus Foren angezeigt, für die ein User eigentlich keine Brechtigung hat.
Um den Attachment Block anzeigen zu lassen und damit er vernünftig funktioniert, muss ein bisschen mehr gemacht werden.