Witam mam nasptepujący problem a mianowicie w panelach thema screen.
Zamiast panelu najnowsze pliki chciałbym umieścic panel losowej fotki ale niezabardzo wiem jak.
Kod w themie ten co jest odpowiedzialny za te najnowsze pliki
<td valign='top' background='".THEME."images/pg_22.jpg' width='227' height='135' style='background-repeat: no-repeat'>";
$download_last = dbquery("SELECT a.*, b.* FROM ".$db_prefix."downloads a INNER JOIN ".$db_prefix."download_cats b ON a.download_cat=b.download_cat_id WHERE ".groupaccess('download_cat_access')." ORDER BY download_datestamp DESC LIMIT 0,9");
echo"<table width='90%' align='center' cellspacing='0' cellpadding='0' class='stat2'>";
if(dbrows($download_last) == '0') echo"<tr><td><a href='viewpage.php?page_id=1' target='_blank'>Tutaj znadziesz pliki</a></td></tr>";
while($dane = dbarray($download_last)){
echo"<tr><td align='left'><a id='stat-link' href='".BASEDIR."downloads.php?cat_id=".$dane['download_cat']."&download_id=".$dane['download_id']."'>".trimlink($dane['download_title'],14)."</a></td>
<td align='right'>[".$dane['download_count']."]</td></tr>";
}
Chciałbym tu umieścic panel losowej fotki umieścic ten panel
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
//Slideshows Random Photo Panel by Wooya
//http://www.2loud.net.pl
if (file_exists(INFUSIONS."slideshows_random_photo_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."slideshows_random_photo_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."slideshows_random_photo_panel/locale/English.php";
}
$set_result = dbquery("SELECT * FROM ".DB_PREFIX."srpp_settings WHERE slideshow_id='1'");
$set_data = dbarray($set_result);
openside($locale['FOT_001']);
echo "<center>";
$result=dbquery(
"SELECT ta.album_id,album_title,photo_id,photo_title,photo_thumb1
FROM ".$db_prefix."photo_albums ta
INNER JOIN ".$db_prefix."photos
USING (album_id)
ORDER BY RAND() LIMIT ".$set_data['slideshow_items'].""
);
$srpp_thumb_width = $settings['thumb_w'];
$srpp_thumb_height = $settings['thumb_h'];
if (dbrows($result)!=0) {
if ($set_data['slideshow_type']!='RANDOM') {
include (INFUSIONS."slideshows_random_photo_panel/includes/".$set_data['slideshow_type']."_include.php");
} else {
$slideshow_type[0] = "slide-left";
$slideshow_type[1] = "slide-top";
$slideshow_type[2] = "left-right";
$slideshow_type[3] = "up-down";
$slideshow_type[4] = "fade";
$slideshow_type[5] = "carousel";
$slideshow_type[6] = "conveyor-belt";
$rand_value = rand (0, sizeof($slideshow_type)-1);
include (INFUSIONS."slideshows_random_photo_panel/includes/".$slideshow_type[$rand_value]."_include.php");
}
} else {
echo "<center>".$locale['004']."</center>";
}
echo "</center>";
closeside();
?> Mógłby mi ktos pomóc z tym?.
PW od moderatora:
- Przeniesienie tematu - Pieka 30.11 - 14:54
- Brak Stopki! - Pieka 30.11 - 15:08
Edytowane przez sido90rsl dnia 23.12.2008 23:40:37
|