PhpNukeTurkiye.Com (F)  >> PNT Nuke ve Php-Nuke (F)  >> Php Nuke (F)  >> Blocklar (F)
DSolu Görünüm İçin Tıklayın "Degisen video blok"

tarimbilisim: Degisen video blok (2014/05/06 - 22:27)

mevcut video blogundaki videolar sayfa her yenilendiğinde degismesi saglanabilirmi?resim blogunda bu var.
<style>
.foto_galeri_main { width:300px; height:auto; overflow:hidden}
.foto_galeri_ic { width:288px; height:auto; overflow:hidden; margin-left:6px; margin-right:6px;}
.foto_galeri_tablo { width:100px; height:122px; overflow:hidden; float:left; margin-left:16px;}
.foto_galeri_tablo_ic { width:88px; height:122px; overflow:hidden; cursor:pointer;}
.foto_galeri_tablo_resim { width:88px; height:78px; overflow:hidden;}
.foto_galeri_tablo_icerik { width:88px; height:auto; overflow:hidden; margin-top:-6px;}
</style>
<?php
/************************************************************************

PNT-Nuke : Türkçe Hazır Php Portal Yazılımı
Resmi Web Sitesi : http://www.phpnuketurkiye.com
PNT-Nuke : Php Nuke ve Onaran Nuke'nin Geliştirilmesi İle Meydana Gelmiştir

ibrahim Demircan (Sonsuzluk)
www.sndizayn.com
ibrahim@sonsuzluk.net

************************************************************************/

if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}



global $prefix, $currentlang, $db;
$content .='<br><center><table><tr><td>';
$content .='<div style="width:600px; height:270px; background-color:#ffffff; border: 1px solid #6e0000; overflow:hidden; float:right;">
<div style="width:560px; height:45px; overflow:hidden; background:url(/images/video-blok-anasayfa.png) no-repeat;">

<div style="width:138px; height:18px; overflow:hidden; float:left; margin-left:14px; margin-top:5px; margin-right:83px;">
<font face="tahoma" style="font-size:11px; font-weight:bold;" color="#FFFFFF">Video Galerisi</font>
</div>
<div style="width:132px; overflow:hidden; float:left; margin-top:3px;">
<a href="videos.html"><font face="tahoma" style="font-size:11px;" color="#666666"></font></a>
</div>

</div>';
$result = $db->sql_query("SELECT id, vidname, imgurl FROM ".$prefix."_video_stream where request='0' ORDER BY id DESC LIMIT 0,10");
while ($row = $db->sql_fetchrow($result)) {
$no = intval($row['id']);
$title = filter($row['vidname'], "nohtml");
$img = filter($row['imgurl'], "nohtml");
$title2 = mb_substr($title,0,24,'UTF-8');

$content .=' <div class="foto_galeri_tablo"><a title="'.$title.'" href="video'.$no.'/'.sonsuzluk_seo($title).'" ><div class="foto_galeri_tablo_ic">
<div class="foto_galeri_tablo_resim"><div style="background:url(/modules/Video_Stream/images/btn_tmb_ply_lnk.png); width:38px; height:38px; overflow:hidden; position:absolute; margin-top:20px; margin-left:27px;" class="transparan"></div><img alt="'.$title.'" src="'.$img.'" border="0" height="69" width="86" alt="'.$title.'" style="border: 1px solid #000000;" /></div>
<div class="foto_galeri_tablo_icerik"><font class="tahoma" style="font-weight:100;"><center><font color="#333333">'.$title.'</font></center></a></font></div>
</div>
</a>
</div>';

}
$content .='</td></tr></table>';
?>

Sonsuzluk: Re: Degisen video blok (2014/05/07 - 16:37)

mysql den rastgele veri çekmek için random kullanılır

video bloğunda order by id kullanıldı, resim galerisinde order by rand() kullanıldı siz bloğunuzu bu yönde değiştirin

tarimbilisim: Re: Degisen video blok (2014/05/07 - 20:17)

ibrahim hocam allah razı olsun harika oldu