Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: random_photo v7

Parašė cox· 2009 Bal. 25 14:04:58
#1

As ieskau random photo paneles v7 versijai bet nerandu tinkamos radau as ju bet dauguma neveikia o kitos jai veikia tai nerodo foto. Ir kazka raso bet nesuprantu ka.







Parašė cox· 2009 Bal. 25 14:04:54
#2

<?php
if (file_exists(INFUSIONS."randomphoto_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."randomphoto_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."randomphoto_panel/locale/English.php";
}

$result=dbquery(
"SELECT ta.album_id,album_title,photo_id,photo_title FROM ".$db_prefix."photo_albums ta ".
"JOIN ".$db_prefix."photos USING (album_id) ORDER BY RAND() LIMIT 1"
);
if(dbrows($result)==1){
openside($locale['FOT_001']);
$data=dbarray($result);
$filename=PHOTOS.$data['photo_id'].'t.jpg';
if(!file_exists($filename)) $filename=$image_url.'/imagenotfound.jpg';
echo "<center>
<a href='".BASEDIR."photogallery.php?photo=".$data['photo_id']."' class='gallery'>
<img src='".PHOTOS."".$data['photo_id']."t.jpg' width='".$settings['thumb_image_w']."' height='".$settings['thumb_image_h']."'
title='".$data['photo_title']."' alt='".$data['photo_title']."'>
</a><br /><a href='".BASEDIR."photogallery.php?album=".$data['album_id']."'>".$data['photo_title']."</a>
<br>
".$data['album_title']."
</center>";
@closeside();
}

?>


















gal cia reikia ka yterpti?