Verfasst: 25.12.2003 22:46
..kopiere die Datei nach /phpbb2 und führe sie dann aus.
phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Dabei ist dann direkt auch ein Link sichtbar, den man nur anklicken muss um im nachfolgenden Fenster, dann nur noch einen Mausklick tätigen muss und die DB-Änderungen sind erfolgt... Steht auch so in der AnleitungCould not query Intro + Portal configuration !
RUN intro_portal_mod_db_install.php AND DELETE IT AFTER THAT AND CHECK THE FILES TO EDIT !!!
Fehler beim Abfragen der Intro + Portal Konfiguration !
FÜHRE DIE intro_portal_mod_db_install.php AUS UND LÖSCHE SIE DANACH UND ÜBERPRÜFE DIE ZU EDITIERENDEN DATEIEN !!!
HTH AWSW
DEBUG MODE
SQL Error : 1146 Table 'phpbb.phpbb_introportalmod' doesn't exist
SELECT * FROM phpbb_introportalmod
Line : 44
File : C:\AWSW\phpbb2\intro.php
Das mit der Shoutbox habe ich hinbekommen, aber gibt es vielleicht eine Möglichkeit, sich das akuellste Bild im Album (smartor) in einer Box im Portal anzeigen zu lassen?.EGGY:. hat geschrieben:Bin soweit zufrieden: http://www.peggy-para.de/Forum/portal.php![]()
Öhm ... wenn man sich was wünschen darf ... so in naher Zukunft:
- eine Addon mit den aktuellsten 3 Bildern als Box in der mittleren Spalte
(Smartor Album)
- eine Shoutbox zum einbauen![]()
und://
// BEGIN Random or Recent Photo
//
$Display = 'XXXX'; // Replace 'XXXX' with 'Recent' or 'Random'.
$CategoryID = 0; // Replace 0 with a category ID. Otherwise, keep it as it is.
// Example: http://www.seekideas.com/forum/album_cat.php?cat_id=3
// Category ID is 3
if ($Display == 'Random') {
if ($CategoryID != 0) {
$sql = "SELECT * FROM phpbb_album WHERE pic_cat_id = $CategoryID ORDER BY RAND() LIMIT 1";
}
else {
$sql = "SELECT * FROM phpbb_album ORDER BY RAND() LIMIT 1";
}
}
else if ($Display == 'Recent') {
if ($CategoryID != 0) {
$sql = "SELECT pic_id, pic_title, pic_username, pic_time FROM phpbb_album WHERE pic_cat_id = $CategoryID ORDER BY pic_time DESC LIMIT 0,1";
}
else {
$sql = "SELECT pic_id, pic_title, pic_username, pic_time FROM phpbb_album ORDER BY pic_time DESC LIMIT 0,1";
}
}
if (!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not query album information', '', __LINE__, __FILE__, $sql);
}
$picrow = $db->sql_fetchrow($result);
//
// END Random or Recent Photo
//
In die portal-body.tpl sollte dieses eingefügt werden:// Photo Album
'L_NEWEST_PIC' => $lang['Newest_pic'],
'PIC_IMAGE' => append_sid('album_thumbnail.'. $phpEx . '?pic_id=' . $picrow['pic_id']),
'PIC_TITLE' => $picrow['pic_title'],
'PIC_POSTER' => $picrow['pic_username'],
'U_PIC_LINK' => append_sid('album_comment.' . $phpEx . '?pic_id=' . $picrow['pic_id']),
'PIC_TIME' => create_date($board_config['default_dateformat'], $picrow['pic_time'], $board_config['board_timezone']),
Tja, und wie man hier nun sehen kann (linke Spalte, vierte Box):<!-- ##### BEGIN RECENT PHOTO ##### -->
<table width="100%" cellpadding="1" cellspacing="1" border="0" align="center" style="border-collapse: collapse" class="forumline">
<tr>
<td class="catHead" colspan="2" height="25"><span class="cattitle"><center><b>Aktuelles Bild</b></center></span></td>
</tr>
<tr>
<td class="row1" width="100%">
<span class="gensmall" style="line-height:150%"><center><a href="{U_PIC_LINK}"><img src="{PIC_IMAGE}" border="0" alt="{L_NEWEST_PIC}"></a></span>
</td>
</tr>
<tr>
<td class="row1" width="100%">
<span class="gensmall" style="line-height:150%"><b>{PIC_TITLE}</b> by <b>{PIC_POSTER}</b><br />{PIC_TIME}</span>
</td>
</tr>
<tr>
<td class="row1" width="100%">
<span class="gensmall">[ <a href="{U_ALBUM}">{L_ALBUM}</a> ]</span>
</td>
</tr>
</table><br>
<!-- ##### END RECENT PHOTO ##### -->