Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent)
Reply
  #1  
Old 5th February 2012, 19:42
romano1's Avatar
romano1 romano1 is offline
Senior Member
 
Join Date: Jan 2012
Portugal
Posts: 107
Default Right to left moving new torrents.
Hello, i have put the last images torrents online the only thing is i canot make it to move horizontaly:
Can you help sir?
and also in some versions it shows the date and comments...thank you sir
Click the image to open in full size.Click the image to open in full size.


.)
EDIT: Ok i haved worked out everything, except the side ways thing. :)
Click the image to open in full size.


Bump: Anyone?
and could someone tell me how not to remove the last poster in 24 hours, i mean leave it there until a new one comes?

Bump:
Quote:
Originally Posted by romano1 View Post
Hello, i have put the last images torrents online the only thing is i canot make it to move horizontaly:
Can you help sir?
and also in some versions it shows the date and comments...thank you sir
Click the image to open in full size.


.)
EDIT: Ok i haved worked out everything, except the side ways thing. :)
Click the image to open in full size.

Bump: Anyone?
and could someone tell me how not to remove the last poster in 24 hours, i mean leave it there until a new one comes?

Last edited by romano1; 5th February 2012 at 20:44.
Reply With Quote
  #2  
Old 8th February 2012, 16:17
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
it scrolls so it well come back.
"NOTICE" do not put your mouse over the box or it well stop.
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
  #3  
Old 8th February 2012, 16:17
BitFarmer's Avatar
BitFarmer BitFarmer is offline
Senior Member
 
Join Date: Jan 2012
Latvia
Posts: 99
Default
you're code for this looks something like this
Code:
OpenTable(_btindex_video); 
$query = "SELECT * FROM ".$db_prefix."_youtubevideo ORDER BY addtime"; 
$sql = $db->sql_query($query); 
echo "<marquee  onMouseOver=\"this.stop();\" onMouseOut=\"this.start();\" width=\"100%\" direction=\"left\" loop=\"infinite\" scrollamount=\"2\">\n"; 
echo"<table border=\"1\">\n<tr>"; 
while ($row = $db->sql_fetchrow($sql)) { 
$link = str_replace("http://youtube.com/v/","",$row["link"]); 
$name = $row['name']; 
echo"<td style=\"text-align: center;\">\n<a href=\"".$siteurl."/youtube.php?op=show&amp;video=".$row["link"]."\">\n<img title=\"".$name."\" src=\"http://i3.ytimg.com/vi/".$link."/default.jpg\" class=\"vimg120\" qlicon=\"".$link."\" alt=\"".$name."\">\n</a>\n<br />\n<p>$name</p>\n</td>\n"; 
} 
echo"</tr>\n</table>\n"; 
echo "</marquee>\n"; 
CloseTable();
just look for direction=\"left\" in it and change the value to direction=\"right\"
ore direction=\"bottom\" ore what ever
Reply With Quote
The Following User Says Thank You to BitFarmer For This Useful Post:
romano1 (8th February 2012)
  #4  
Old 8th February 2012, 16:31
romano1's Avatar
romano1 romano1 is offline
Senior Member
 
Join Date: Jan 2012
Portugal
Posts: 107
Default
Thank you bitfarmer, its not the video block, it is the last poster(torrents) block.
Reply With Quote
  #5  
Old 8th February 2012, 16:35
BitFarmer's Avatar
BitFarmer BitFarmer is offline
Senior Member
 
Join Date: Jan 2012
Latvia
Posts: 99
Default
it's
Code:
<marquee>
tag that makes it move
you can use it for other stuff too
Reply With Quote
  #6  
Old 8th February 2012, 16:40
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
without marquee

Code:
OpenTable("Latest 5 Uploads");


    $news = mysql_query("SELECT id, name, added, seeders, leechers, post_img FROM ".$db_prefix."_torrents WHERE banned = 'no' AND visible='yes' ORDER BY added DESC LIMIT 5")or sqlerr(__FILE__, __LINE__);

    if (mysql_num_rows($news) > 0) {

        print("<table align=center cellpadding=0 cellspacing=0 width=100% border=0>");

        while ($row2 = mysql_fetch_array($news)) {
            $tor = $row2['0'];
            $altname = $row2['1'];
            $orderby = "ORDER BY ".$db_prefix."_torrents.added DESC"; //Order
            $where = "WHERE banned = 'no' AND visible='yes' AND ".$db_prefix."_torrents.id='$tor'";

            
            $res = mysql_query("SELECT ".$db_prefix."_torrents.id, ".$db_prefix."_torrents.seeders, ".$db_prefix."_torrents.leechers, ".$db_prefix."_torrents.post_img, ".$db_prefix."_torrents.screen1, ".$db_prefix."_torrents.screen2, ".$db_prefix."_torrents.screen3, ".$db_prefix."_torrents.screen4, ".$db_prefix."_torrents.added, ".$db_prefix."_torrents.comments,".$db_prefix."_categories.name AS cat_name FROM ".$db_prefix."_torrents LEFT JOIN ".$db_prefix."_categories ON ".$db_prefix."_torrents.category = ".$db_prefix."_categories.id $where  $orderby")or sqlerr(__FILE__, __LINE__);
            $row = mysql_fetch_array($res);
            $cat = $row['cat_name'];
            $seed =$row['seeders'];
            $comments =$row['comments'];            
            $leech =$row['leechers'];
            $simg1 = $row['screen1'];
            $simg2 = $row['screen2'];
            $simg3 = $row['screen3'];
            $simg4 = $row['screen4'];
            $img1 = "<a href='$siteurl/details.php?id=$row[id]'><img border='0' src='$row[post_img]' alt=\"$altname / $cat\" width='130'></a><br><font color=\"green\"><b>Seeds</font> $seed</b>  <font color=\"red\"><b>Leech</font> $leech </b><br><b>Comments: <a href=\"details.php?id=".$row["id"].$hit."\">" . $row["comments"] . "</a></b>";
            $img2 = "<a href='$siteurl/details.php?id=$row[id]'><img border='0' src='$row[post_img]' alt=\"$altname / $cat\" width='130' ></a><br><font color=\"green\"><b>Seeds</font> $seed</b>  <font color=\"red\"><b>Leech</font> $leech </b><br><b>Comments: <a href=\"details.php?id=".$row["id"].$hit."\">" . $row["comments"] . "</a></b>";
            
            if ($row["post_img"] != ""){
                        if ($row["screen1"]!=''){
                print("<td style=\"text-align: center;\">". $img1 ."&nbsp;<BR>\n</td>\n");
                        }else{
                                print("<td style=\"text-align: center;\">". $img2 ."&nbsp;<BR>\n</td>\n");
                         }
            }
                     
        }

        print("</tr></table>");


    //}

        ?>
        </div>
        </div>
        <?php
}
CloseTable();

with marquee

Code:
OpenTable("Latest Posters");

    ?>
<style type="text/css">

#marqueecontainer{
position: relative;
width: 180px; /*marquee width */
height: 800px; /*marquee height */
overflow: hidden;
padding: 2px;
padding-left: 4px;
}

</style>

<script type="text/javascript">

/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=1000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=0 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''

function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}

function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}

if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee


</script>

<div id="marqueecontainer" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=marqueespeed">
<div id="vmarquee" style="position: absolute; width: 98%;">
    <!--YOUR SCROLL CONTENT HERE-->
    <?php
    $news = mysql_query("SELECT id, name, added, post_img FROM ".$db_prefix."_torrents WHERE banned = 'no' AND visible='yes' ORDER BY added DESC")or sqlerr(__FILE__, __LINE__);

    if (mysql_num_rows($news) > 0) {

        print("<table align=center cellpadding=0 cellspacing=0 width=100% border=0>");

        while ($row2 = mysql_fetch_array($news)) {
            $tor = $row2['0'];
            $altname = $row2['1'];
            //$date_time=get_date_time(time()-(3600*168)); // the 24 is the hours you want listed change by whatever you want
            $orderby = "ORDER BY ".$db_prefix."_torrents.added ASC"; //Order
            $where = "WHERE banned = 'no' AND visible='yes' AND ".$db_prefix."_torrents.id='$tor'";

            $res = mysql_query("SELECT ".$db_prefix."_torrents.id, ".$db_prefix."_torrents.seeders, ".$db_prefix."_torrents.leechers, ".$db_prefix."_torrents.post_img, ".$db_prefix."_torrents.screen1, ".$db_prefix."_torrents.screen2, ".$db_prefix."_torrents.screen3, ".$db_prefix."_torrents.screen4, ".$db_prefix."_torrents.added, ".$db_prefix."_torrents.comments,".$db_prefix."_categories.name AS cat_name FROM ".$db_prefix."_torrents LEFT JOIN ".$db_prefix."_categories ON ".$db_prefix."_torrents.category = ".$db_prefix."_categories.id $where  $orderby")or sqlerr(__FILE__, __LINE__);
            $row = mysql_fetch_array($res);
            $cat = $row['cat_name'];
            $seed =$row['seeders'];
            $comments =$row['comments'];
            $leech =$row['leechers'];
            $added =$row['added'];

                        /*$simg1 = $row['screen1'];
                        $simg2 = $row['screen2'];
                        $simg3 = $row['screen3'];
                        $simg4 = $row['screen4'];*/
                        $img1 = "<b>".$row["added"]."</b><br><a href='$siteurl/details.php?id=$row[id]'><img border='0' src='$row[post_img]' alt=\"$altname / $cat\" height='200' width='160' ></a><br><font color=\"green\"><b>Seeds</font> $seed</b>  <font color=\"red\"><b>Leech</font> $leech </b><br><b>Comments: <a href=\"details.php?id=".$row["id"].$hit."\">" . $row["comments"] . "</a></b><br>";
                        $img2 = "<b>".$row["added"]."</b><br><a href='$siteurl/details.php?id=$row[id]'><img border='0' src='$row[post_img]' alt=\"$altname / $cat\" height='200' width='160' ></a><br><font color=\"green\"><b>Seeds</font> $seed</b>  <font color=\"red\"><b>Leech</font> $leech </b><br><b>Comments: <a href=\"details.php?id=".$row["id"].$hit."\">" . $row["comments"] . "</a></b><br>";
            if ($row["post_img"] != ""){
                        if ($row["screen1"]!=''){
                print("<tr><td align=center>". $img1 ."<BR></td></tr>");
                        }else{
                                print("<tr><td align=center>". $img2 ."<BR></td></tr>");
                         }
            }
                     
        }

        print("</table>");

    //}

        
        echo'</div>';
        echo'</div>';
        
}
CloseTable();
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #7  
Old 8th February 2012, 17:28
romano1's Avatar
romano1 romano1 is offline
Senior Member
 
Join Date: Jan 2012
Portugal
Posts: 107
Default
daffy and its not screen its screan, i will test it later. thank you.
Reply With Quote
  #8  
Old 8th February 2012, 17:39
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
on mine it was correct, i adjusted it, so yes it is correct as screen, yours and pmbt is screan. :p i changed alot of things for myself :secret:
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #9  
Old 10th February 2012, 23:36
romano1's Avatar
romano1 romano1 is offline
Senior Member
 
Join Date: Jan 2012
Portugal
Posts: 107
Default
Sorry daffy but it stills go up not sideways.:unknown:
Reply With Quote
  #10  
Old 11th February 2012, 00:01
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
try this one
HTML Code:
OpenTable("Latest Posters");
    ?>
<style type="text/css">

#marqueecontainer{
position: relative;
width: 180px; /*marquee width */
height: 800px; /*marquee height */
overflow: hidden;
padding: 2px;
padding-left: 4px;
}

</style>
<script type="text/javascript">
marqueeInit({
    uniqueid: 'mycrawler',
    style: {
        'padding': '5px',
        'width': '450px',
        'background': 'lightyellow',
        'border': '1px solid #CC3300'
    },
    inc: 8, //speed - pixel increment for each iteration of this marquee's movement
    mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
    moveatleast: 4,
    neutral: 150,
    savedirection: true
});
</script>
<div id="vmarquee" style="position: absolute; width: 98%;">
    <!--YOUR SCROLL CONTENT HERE-->
    <?php
    $news = mysql_query("SELECT id, name, added, post_img FROM ".$db_prefix."_torrents WHERE banned = 'no' AND visible='yes' ORDER BY added DESC")or sqlerr(__FILE__, __LINE__);

    if (mysql_num_rows($news) > 0) {

        print("<table align=center cellpadding=0 cellspacing=0 width=100% border=0>");

        while ($row2 = mysql_fetch_array($news)) {
            $tor = $row2['0'];
            $altname = $row2['1'];
            //$date_time=get_date_time(time()-(3600*168)); // the 24 is the hours you want listed change by whatever you want
            $orderby = "ORDER BY ".$db_prefix."_torrents.added ASC"; //Order
            $where = "WHERE banned = 'no' AND visible='yes' AND ".$db_prefix."_torrents.id='$tor'";

            $res = mysql_query("SELECT ".$db_prefix."_torrents.id, ".$db_prefix."_torrents.seeders, ".$db_prefix."_torrents.leechers, ".$db_prefix."_torrents.post_img, ".$db_prefix."_torrents.screen1, ".$db_prefix."_torrents.screen2, ".$db_prefix."_torrents.screen3, ".$db_prefix."_torrents.screen4, ".$db_prefix."_torrents.added, ".$db_prefix."_torrents.comments,".$db_prefix."_categories.name AS cat_name FROM ".$db_prefix."_torrents LEFT JOIN ".$db_prefix."_categories ON ".$db_prefix."_torrents.category = ".$db_prefix."_categories.id $where  $orderby")or sqlerr(__FILE__, __LINE__);
            $row = mysql_fetch_array($res);
            $cat = $row['cat_name'];
            $seed =$row['seeders'];
            $comments =$row['comments'];
            $leech =$row['leechers'];
            $added =$row['added'];

                        /*$simg1 = $row['screen1'];
                        $simg2 = $row['screen2'];
                        $simg3 = $row['screen3'];
                        $simg4 = $row['screen4'];*/
                        $img1 = "<b>".$row["added"]."</b><br><a href='$siteurl/details.php?id=$row[id]'><img border='0' src='$row[post_img]' alt=\"$altname / $cat\" height='200' width='160' ></a><br><font color=\"green\"><b>Seeds</font> $seed</b>  <font color=\"red\"><b>Leech</font> $leech </b><br><b>Comments: <a href=\"details.php?id=".$row["id"].$hit."\">" . $row["comments"] . "</a></b><br>";
                        $img2 = "<b>".$row["added"]."</b><br><a href='$siteurl/details.php?id=$row[id]'><img border='0' src='$row[post_img]' alt=\"$altname / $cat\" height='200' width='160' ></a><br><font color=\"green\"><b>Seeds</font> $seed</b>  <font color=\"red\"><b>Leech</font> $leech </b><br><b>Comments: <a href=\"details.php?id=".$row["id"].$hit."\">" . $row["comments"] . "</a></b><br>";
            if ($row["post_img"] != ""){
                        if ($row["screen1"]!=''){
                print("<tr><td align=center>". $img1 ."<BR></td></tr>");
                        }else{
                                print("<tr><td align=center>". $img2 ."<BR></td></tr>");
                         }
            }
                     
        }

        print("</table>");

    //}

        
        echo'</div>';
}
CloseTable();
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
Reply

Tags
left , moving , torrents

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 09:22. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.