Results 1 to 7 of 7

Thread: remove sponsor listings from latest sites

  1. #1
    Join Date
    Feb 2004
    Posts
    44

    Default remove sponsor listings from latest sites

    hi there,

    can anyone guide me as to how to go by to make all the sponsor listings to not show up in the latest and updated sites block? and in the top rated and hot pages as well?

    tnx alot

  2. #2
    Join Date
    Feb 2004
    Posts
    44

    Default

    Quote Originally Posted by mighty_falcon
    hi there,

    can anyone guide me as to how to go by to make all the sponsor listings to not show up in the latest and updated sites block? and in the top rated and hot pages as well?

    tnx alot
    anyone?? i am willing to offer $$ for such a hack
    http://www.betalabs.org

  3. #3
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    in link.class.php:

    find the DisplayTopRatedListing function and change
    $this->query .= ") and suspended = 0 order by rating desc limit $this->top_rated_limit";
    to
    $this->query .= ") and suspended = 0 and sp_cat != 1 order by rating desc limit $this->top_rated_limit";
    also change an almost identical line existing in DisplayHotListing.



    Then, look at the DisplayNewListing function. change

    where (new = 1 and suspended = 0 and (date like ...
    to
    where (new = 1 and suspended = 0 and sp_cat != 1 and (date like
    I think there are about 4 of those



    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  4. #4
    Join Date
    Feb 2004
    Posts
    44

    Default

    tnx alot esm !!

    worked like a charm can you please also let me know what files i should edit in order to make the sponsored links not come up on the new & updated links block that you find on the index ? tried to look in the link.class but without much luck

    tnx
    http://www.betalabs.org

  5. #5
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    apply the same hack to this section of code in the index.php file ( which is located in the same folder as browse.php ):

    $new_links_obj = new clsLink;
    $new_links_obj->InitDB($dbServer,$dbHostname,$dbUsername,$dbPassw ord,$dbName);

    $new_links_obj->table_name = "idx_link";
    $new_links_obj->category_table_name = "idx_category";
    $new_links_obj->max_rows = $main_new_links;
    $new_links_obj->template = $msg["10001"];
    $new_links_obj->new_link_number = 1;
    $query = "select distinct *
    from idx_link
    where suspended = 0 and sp_cat != 1 and (new=1 or updated=1)
    order by date desc, last_updated desc limit $main_new_links";
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  6. #6
    Join Date
    Feb 2004
    Posts
    44

    Default

    as always esm, worked flawlessly

    tnx a ton for your help !!
    Last edited by mighty_falcon; 02-21-2005 at 09:20 PM.
    http://www.betalabs.org

  7. #7
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    glad it worked for you...


    .
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

Similar Threads

  1. New MOD - List Sites by the first letter of the Title
    By esm in forum Blocks and Modification
    Replies: 7
    Last Post: 01-30-2007, 01:03 PM
  2. Cannot Remove Editor After Remove
    By pip in forum v5.x
    Replies: 1
    Last Post: 07-10-2004, 05:51 PM
  3. Top10 referrers and Hot sites questions ?????
    By Nanard Of Web in forum Pre-Sales Questions
    Replies: 1
    Last Post: 03-11-2004, 04:37 PM
  4. Check this out (The Big List)
    By RichardDuboi in forum v3.2
    Replies: 0
    Last Post: 09-29-2002, 01:50 PM
  5. Hot/Top rated sites not showing up
    By Shophere in forum v5.x
    Replies: 5
    Last Post: 08-06-2002, 04:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •