Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jul 2003
    Posts
    3
    Member #
    2416
    I did not write this script, I'm only editing it.

    I'm trying to get these links to not disapear when you click on them. I can't stand them bouncing around. I just took the segments of code out that relate to them, you can see what I'm talking about here:

    http://nova.apisnetworks.com/thebtp.net/mystats.php

    The sorting links above the table, click on them and you'll see what I'm talking about. I cannot find any code in my .php that has anything to do with this, it's driving me nuts!

    Code:
    <TR>
    <?php if (!isset($_GET["newest"])) echo "<TD><FONT SIZE=\"-1\"><A HREF=\"$scriptname?newest=yes\">
    Sort By Newest Additions</A></FONT></TD>"; if (!isset($_GET["mostpopular"])) echo "<TD>
    <FONT SIZE=\"-1\"><A HREF=\"$scriptname?mostpopular=yes\">Sort By Most Popular</A></FONT>
    </TD>"; if (!isset($_GET["mostactive"])) echo "<TD ALIGN=RIGHT>
    <FONT SIZE=\"-1\"><A HREF=\"$scriptname?mostactive=yes\">Sort By Most Active</A>
    </FONT></TD>" ?>
    </TR>
    Code:
    if (isset($_GET["mostactive"]))
    	$order = " ORDER BY summary.seeds+summary.leechers DESC";
    else if (isset($_GET["mostpopular"]))
    	$order = " ORDER BY
    summary.seeds+summary.leechers+summary.finished DESC";
    else if (isset($_GET["newest"]))
    	$order = "ORDER BY namemap.timestamp DESC";
    else
    	$order = " ORDER BY namemap.timestamp DESC";
    Thanks, Andy

  2.  

  3. #2
    Member Black Vivi's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    75
    Member #
    1072
    just change this:
    PHP Code:
    <TR>
    <?php if (!isset($_GET["newest"])) echo "<TD><FONT SIZE=\"-1\"><A HREF=\"$scriptname?newest=yes\">
    Sort By Newest Additions</A></FONT></TD>"
    ; if (!isset($_GET["mostpopular"])) echo "<TD>
    <FONT SIZE=\"-1\"><A HREF=\"
    $scriptname?mostpopular=yes\">Sort By Most Popular</A></FONT>
    </TD>"
    ; if (!isset($_GET["mostactive"])) echo "<TD ALIGN=RIGHT>
    <FONT SIZE=\"-1\"><A HREF=\"
    $scriptname?mostactive=yes\">Sort By Most Active</A>
    </FONT></TD>" 
    ?>
    </TR>
    to this:
    PHP Code:
    <TR>
    <?php echo "<TD><FONT SIZE=\"-1\"><A HREF=\"$scriptname?newest=yes\">
    Sort By Newest Additions</A></FONT></TD><TD><FONT SIZE=\"-1\">
    <A HREF=\"
    $scriptname?mostpopular=yes\">Sort By Most Popular</A></FONT>
    </TD><TD ALIGN=RIGHT><FONT SIZE=\"-1\"><A HREF=\"
    $scriptname?mostactive=yes\">
    Sort By Most Active</A></FONT></TD>"
    ?>
    </TR>
    Download Firebird now!

  4. #3
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    Please don't use such ridiculously long lines. I had to edit the two posts to make them not break the layout here.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:47 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com