Tarih: 2008-03-09, 23:06:03 Mesaj konusu: Video Stream Block İstek
Selam Üsteki Gibi Bir Block Lazım
Normal Block Bu Şekilde Evirdim Çevirdim Beceremedim yardımcı Olcak Arkadaşlar Olurs Sevinirim Kolay Gelsin.
Bu Code`de Limit e göre resimler alt alta yada daginik ve Resim İsimleri Yanda Oluyor
Kod:
<?php
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// ------------------------------------------------------------------------- //
//----------------------------------------//
//Block by Dawg//
//Based on The Random video block by Q @ www.3c0x1.net //
//----------------------------------------//
//Side Block to show Latest Video//
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
define('NO_HEADER', true);
global $prefix, $prefix, $db;
$limit = 14;
$content = "<p align=\"center\">";
//Latest Added
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream WHERE request=0 ORDER BY id DESC LIMIT 0, $limit");
Bu Code`de İse Üstteki Resimin Aynısı Yanlız kategori ismi yok izlenme sayısı yok ve son eklenen videolar çok oylanan videolar çok izlenen videolar şeklinde
Kod:
<?php
// ------------------------------------------------------------------------- //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// ------------------------------------------------------------------------- //
//----------------------------------------//
//
//Center Block by Dawg at ravenphpscripts.com//
//Validated with CSE HTML Validator by Dawg//
//Based on The Random video block by Q @Only registered users can see links on this board!Get registered or login to the forums!
//
//----------------------------------------//
//Center Block to show Latest Video, Highest Rated and Most Viewed//
if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}
global $prefix, $prefix, $db;
$limit = 1;
//Views
$result1 = $db->sql_query("SELECT * FROM ".$prefix."_video_stream WHERE request=0 ORDER BY (views) DESC LIMIT $limit");
//Rated
$result3 = $db->sql_query("SELECT * FROM text ".$prefix."_video_stream WHERE request=0 ORDER BY (rating/rates) DESC LIMIT $limit");
$result3 = $db->sql_query("SELECT * FROM ".$prefix."_video_stream WHERE request=0 ORDER BY id DESC LIMIT $limit");
while ($row3 = $db->sql_fetchrow($result3)) {
$imsrc3 = $row3['imgurl'];
$vid3 = $row3['id'];
if ($row3['vidname'] != '') {
$thumb_title3 = $row3['vidname'];
} else {
$thumb_title3 = substr($row3['imgurl'], 0, -4);
}
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız