Merhaba
Video Stream Modulunun kayan blogundaki kayanların adedini nerden degisebilirim bloga baktım herhangi bir rakamsal ifade goremedim.Su an En son eklenen 2 tane kayan sekilde gorunuyor.Bunu 100 yapmak istiyorum.Nasıl yapablırım?
Mp3 modulunun kayan blogunu ekledıgım noktanın altındakı butun bloklar o blogun ıcınde kayıyor.Bu sorunu nasıl cozebilirim.
Goruntu ektedir.Tesekkurler
Merhaba
Ne anlatmak istediğini anlamadim mp3 modul diyorsun video stream modulunden bahsediyorsun
Bildigim kadarıyla video stream modülünün kayan blogu yok diye biliyorum.
block-HTTP_Video_Stream.php
block-Latest_Video.php
block-Rated_Video.php
block-Video_3.php
block-Video_H_3.php
block-Video_Views.php mevcut kullanılan blocklar bunlar.
Ayrıca kullandıgın blockun kodlarını burada yayinlarsan bakip yorum yapabilelim
Selam
video stream modulunde block-HTTP_Video_Stream.php son eklenen 2 videoyu kayan liste seklınde anasayfada gosterıyor bunu son 2 degılde son 10 naıl yapabılırız.
Video stream blok kodu:
<?php
#######################################################################
# Block for PHP-Nuke
#-------------------------
# HTTP Video Stream Latest 10
#-------------------------
#
# Version 1.0
# Copyright (c) 2005 by:
# Brady
# http://www.scottswebsite.co.uk
#
#
# Shows Latest 10 videos posted to the module HTTP_Video_Stream
#
######################################################################
$thisfile = basename(__file__);
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
$mxblockcache = false;
global $db, $prefix, $currentlang;
if ($currentlang) {
if (file_exists("modules/Video_Stream/lang-block/lang-$currentlang.php")) {
include_once("modules/Video_Stream/lang-block/lang-$currentlang.php");
} else {
include_once("modules/Video_Stream/lang-block/lang-english.php");
}
} else {
include_once("modules/Video_Stream/lang-block/lang-english.php");
}
$settings = $db->sql_query("SELECT * FROM ".$prefix."_video_stream_settings WHERE id=1");
$srow = $db->sql_fetchrow($settings);
$ratingshow = $srow['ratingV'];
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream WHERE request=0 ORDER BY id DESC LIMIT 0,2");
$content = "<marquee behavior='scroll' direction='up' height='200'scrollamount='1' scrolldelay='20' onmouseover='this.stop()' onmouseout='this.start()'>";
while($row = $db->sql_fetchrow($result)) {
$content .= " <b><a href=\"modules.php?name=Video_Stream&page=watch&id=".$row['id']."\">".$row['vidname']."</a></b>";
$content .= "<div> "._BBY.": ".$row['user']."<br />";
$date = $row['date'];
$date = substr($date, 0);
$content .= " "._BBON.": ".$date."<br />";
$content .= " "._BVIEWS.": ".$row['views']."";
if ($ratingshow = 1) {
$content .= "<br> "._BRATING.": ".$row['rating']."<br /> "._BTVOTES.": ".$row['rates']."<hr>";
}
$content .= "</div>";
}
$content .= "</marquee>";
?>
2.cisi mp3(musiki) modulunu kurdum block-mp3.php dosyasını ansayfada aktif ettigimde.Aktif ettigim konumun altında kalan butun bloklar o blogun ıcıne giriyor ve kayan bır sekılde gorunuyorlar.
mp3 blok kodu:
<?php
if (eregi("block-mp3.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
get_lang($module_name=mp3);
$linkstoshow = 100;
$usemarquee = 1;
$scrolldirection = "Up";
$latest = "<center><b>"._BLOCKINTITLE."</b></center>";
// Make sure people don't try and access it directly
global $id,$prefix, $dbi,$module_name;
if ($usemarquee == 1) {
$content .= "<Marquee Behavior=\"Scroll\" Direction=\"$scrolldirection\" Height=\"140\" ScrollAmount=\"2\" ScrollDelay=\"100\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\"><br>";
}
?>
<script language="JavaScript">
function ok()
{
fenster2=window.open("","video", 'width=365,height=343,scrollbars=no,top=10,left=10');
fenster2.focus();
}
function op()
{
fenster2=window.open("","sound", 'width=293,height=50,scrollbars=no,top=10,left=10');
fenster2.focus();
}
</script>
<?php
// Latest added
$content .= $latest."<br>";
$a = 1;
$result = mysql_query("select id,song,player from ".$prefix."_mp3 order by id DESC limit 0,10", $dbi);
while(list($id, $song,$player) = sql_fetch_row($result, $dbi)) {
$title2 = ereg_replace("_", " ", $song);
if($player != 0){
$content .= "<strong><big>·</big></strong> $a:<a href=modules.php?name=mp3&op=player&id=$id onClick=ok() target=video>$title2</a><br>";
}else{
$content .= "<strong><big>·</big></strong> $a: <a href=modules.php?name=mp3&op=player&id=$id onClick=op() target=sound>$title2</a><br>";
}
$a++;
}
$blockfiletitle = "<b>"._BLOCKTITLE."</b>";
?>
tesekkur ederim.
Zitat von: Tanimsiz am 21 Juli 2008, 16:23:43
video stream modulunde block-HTTP_Video_Stream.php son eklenen 2 videoyu kayan liste seklınde anasayfada gosterıyor bunu son 2 degılde son 10 naıl yapabılırız.
tesekkur ederim.
if ($ratingshow = 1) {
Buradaki 1 degerini degiştirip denedin mi?
Zitat2.cisi mp3(musiki) modulunu kurdum block-mp3.php dosyasını ansayfada aktif ettigimde.Aktif ettigim konumun altında kalan butun bloklar o blogun ıcıne giriyor ve kayan bır sekılde gorunuyorlar.
Bul:fenster2=window.open("","video", 'width=365,height=343,scrollbars=no,top=10,left=10');
fenster2.focus();
}
function op()
{
fenster2=window.open("","sound", 'width=293,height=50,scrollbars=no,top=10,left=10');
Degiştir:fenster2=window.open("","video", 'width=293,height=50,scrollbars=no,top=10,left=10');
fenster2.focus();
}
function op()
{
fenster2=window.open("","sound", 'width=293,height=50,scrollbars=no,top=10,left=10');
sanirim kodlari degiştirmişsin bunu dene bakalim.
Selam
yok hocam ikisinide denedim herhangi bir degisim gozlenmedi. www.elmasgul.com bloklara bakabılırsınız.
Merhaba
Sitende herhangi bir sorun gözükmüyor bloklarındada sorun yok.
Selam
Hocam sagdaki Video İzle Blogundaki son eklenenlerin sayısı hala sabit.
Soldakı Mp3ye Son Eklenen 10 Mp3 blogundada herkeste degil ama cogu bılgısayarda altindaki butun bloklarda icinde kayıyor ilk verdigim sekilde gorundugu gibi:S
Bakınız bu herkeste görünmüyorsa resim koyun bakalim
Zitatilk verdigim sekilde gorundugu gibi:S
Ben şekil göremiyorum.
Ayrica farklı tarayıcılarla deneyiniz sizin kullandıgınız mp3 modulunu bende kullanıyorum ve sorun yok.
Zitatvideo stream modulunde block-HTTP_Video_Stream.php son eklenen 2 videoyu kayan liste seklınde anasayfada gosterıyor bunu son 2 degılde son 10 naıl yapabılırız.
$result = $db->sql_query("SELECT * FROM ".$prefix."_video_stream WHERE request=0 ORDER BY id DESC LIMIT 0,2");
Buradaki
ORDER BY id DESC LIMIT 0,2
0,2 degerini
0,10 yap nekadar göstermek istiyorsan degiştir.
Hocam video Stream tamamdir.
Diger blokta sekil demisim yani ilk mesajdaki resimi kastettim sizde gorunmuyormu?Yazdigim ilk mesaja eklenti olarak eklemistim.
Resimde göterdigin blockun başlıgının iki block üstünde verilerinde iki block altinda kayması zor gibi görünüyor.
Sana benim kullandıgım blcoku vereyim onu dene istersen.
<?php
/*****************************************************************************/
/*mp3 Medien player modülü ver 2.0a */
/*Hazırlayan: Mevlüt Nar */
/* */
/*****************************************************************************/
# Bu mp3 Medien player modülü http://www.acizane.net tarafından
# Medien player modulü olarak uyarlanmıştır.
#################################### İrtibat #################################
# beysehirli@web.de #
##############################################################################
if (eregi("block-mp3.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
get_lang($module_name='mp3');
$linkstoshow = 10;
$usemarquee = 1;
$scrolldirection = "Up";
$latest = "<center><b>"._BLOCKINTITLE."</b></center>";
// Make sure people don't try and access it directly
global $id,$prefix, $dbi,$module_name;
if ($usemarquee == 1) {
$content .= "<Marquee Behavior=\"Scroll\" Direction=\"$scrolldirection\" Height=\"140\" ScrollAmount=\"2\" ScrollDelay=\"100\" onMouseOver=\"this.stop()\" onMouseOut=\"this.start()\"><br>";
}
?>
<script language="JavaScript">
function ok()
{
fenster2=window.open("","video", 'width=365,height=343,scrollbars=no,top=10,left=10');
fenster2.focus();
}
function op()
{
fenster2=window.open("","sound", 'width=293,height=50,scrollbars=no,top=10,left=10');
fenster2.focus();
}
</script>
<?php
// Latest added
$content .= $latest."<br>";
$a = 1;
$result = mysql_query("select id,song,player from ".$prefix."_mp3 order by id DESC limit 0,10", $dbi);
while(list($id, $song,$player) = sql_fetch_row($result, $dbi)) {
$title2 = ereg_replace("_", " ", $song);
if($player != 0){
$content .= "<strong><big>·</big></strong> $a:<a href=modules.php?name=mp3&op=player&id=$id onClick=ok() target=video>$title2</a><br>";
}else{
$content .= "<strong><big>·</big></strong> $a: <a href=modules.php?name=mp3&op=player&id=$id onClick=op() target=sound>$title2</a><br>";
}
$a++;
}
$blockfiletitle = "<b>"._BLOCKTITLE."</b>";
?>
Tamamdir hocam tesekkur ederim.