Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   BT.Manager (phpMyBitTorrent) (http://www.bvlist.com/forumdisplay.php?f=23)
-   -   Right to left moving new torrents. (http://www.bvlist.com/showthread.php?t=7595)

romano1 5th February 2012 19:42

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
http://img252.imageshack.us/img252/2646/sshot27.pnghttp://img689.imageshack.us/img689/4749/sshot28l.png


.)
EDIT: Ok i haved worked out everything, except the side ways thing. :)
http://img855.imageshack.us/img855/7370/sshot32.png


Bump: Anyone?:sos:
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 (Post 32901)
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
http://img689.imageshack.us/img689/4749/sshot28l.png


.)
EDIT: Ok i haved worked out everything, except the side ways thing. :)
http://img855.imageshack.us/img855/7370/sshot32.png


Bump: Anyone?:sos:
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?

joeroberts 8th February 2012 16:17

it scrolls so it well come back.
"NOTICE" do not put your mouse over the box or it well stop.

BitFarmer 8th February 2012 16:17

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 "\n";
echo"\n";
while ($row = $db->sql_fetchrow($sql)) {
$link = str_replace("http://youtube.com/v/","",$row["link"]);
$name = $row['name'];
echo"\n";
}
echo"\n
\n\n\"".$name."\"\n\n\n

$name

\n
\n";
echo "\n";
CloseTable();

just look for direction=\"left\" in it and change the value to direction=\"right\"
ore direction=\"bottom\" ore what ever

romano1 8th February 2012 16:31

Thank you bitfarmer, its not the video block, it is the last poster(torrents) block.

BitFarmer 8th February 2012 16:35

it's
Code:


tag that makes it move
you can use it for other stuff too

daffy 8th February 2012 16:40

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("");

        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 = "\"$altnameSeeds $seed  Leech $leech Comments: " . $row["comments"] . "";
            $img2 = "\"$altnameSeeds $seed  Leech $leech Comments: " . $row["comments"] . "";
           
            if ($row["post_img"] != ""){
                        if ($row["screen1"]!=''){
                print("\n");
                        }else{
                                print("\n");
                        }
            }
                   
        }

        print("
". $img1 ." 
\n
". $img2 ." 
\n
");


    //}

        ?>
       

       

        }
CloseTable();


with marquee

Code:

OpenTable("Latest Posters");

    ?>






   
        $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("");

        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 = "".$row["added"]."\"$altnameSeeds $seed  Leech $leech Comments: " . $row["comments"] . "";
                        $img2 = "".$row["added"]."\"$altnameSeeds $seed  Leech $leech Comments: " . $row["comments"] . "";
            if ($row["post_img"] != ""){
                        if ($row["screen1"]!=''){
                print("");
                        }else{
                                print("");
                        }
            }
                   
        }

        print("
". $img1 ."
". $img2 ."
");

    //}

       
        echo'
';
        echo'
';
       
}
CloseTable();


romano1 8th February 2012 17:28

daffy and its not screen its screan, i will test it later. thank you.

daffy 8th February 2012 17:39

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:

romano1 10th February 2012 23:36

Sorry daffy but it stills go up not sideways.:unknown:

joeroberts 11th February 2012 00:01

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><a href='$siteurl/details.php?id=$row[id]'><img border='0' src='$row[post_img]' alt=\"$altname / $cat\" height='200' width='160' ></a><font color=\"green\"><b>Seeds</font> $seed</b>  <font color=\"red\"><b>Leech</font> $leech </b><b>Comments: <a href=\"details.php?id=".$row["id"].$hit."\">" . $row["comments"] . "</a></b>";
                        $img2 = "<b>".$row["added"]."</b><a href='$siteurl/details.php?id=$row[id]'><img border='0' src='$row[post_img]' alt=\"$altname / $cat\" height='200' width='160' ></a><font color=\"green\"><b>Seeds</font> $seed</b>  <font color=\"red\"><b>Leech</font> $leech </b><b>Comments: <a href=\"details.php?id=".$row["id"].$hit."\">" . $row["comments"] . "</a></b>";
            if ($row["post_img"] != ""){
                        if ($row["screen1"]!=''){
                print("<tr><td align=center>". $img1 ."</td></tr>");
                        }else{
                                print("<tr><td align=center>". $img2 ."</td></tr>");
                        }
            }
                   
        }

        print("</table>");

    //}

       
        echo'</div>';
}
CloseTable();



All times are GMT +2. The time now is 20:14.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.