Results 1 to 3 of 3

Thread: Sponsored and Editor Picks block

  1. #1
    Join Date
    Jan 2007
    Posts
    7

    Default Sponsored and Editor Picks block

    Hi there,

    First I'd like to saying, Index-u rocks! Thanks!

    I was wondering if somebody could make available a Editor Picks and Sponsored Links block, for the advertisers

    I copy pasted the hot listings block, but the php for the editor picks and sposnored it missing

    It would be nice to have it like this
    <%block_editor_picks_listing max_item="5"%>

  2. #2
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    For sponsored listing you can use random listing block.

    <%block_random_listing max_item="5" listing_type="sponsored"%>

    listing_type value can be:
    all
    sponsored
    premiun
    sponsored_premium

    With a little modification you can also make this block to show editor pick.
    /blocks/block.random_listing.php

    Around line 36, add

    else if ($params['listing_type'] == 'pick') {
    $query = "select * from idx_link
    where suspended = 0
    and pick = '1' limit $params[max_item]";
    }

  3. #3
    Join Date
    Feb 2011
    Posts
    1

    Default

    Thank you so much for your post.

Similar Threads

  1. mod sponsored block
    By echo@ in forum Blocks and Modification
    Replies: 9
    Last Post: 08-22-2008, 12:26 PM
  2. editor's pick block
    By marian in forum Blocks and Modification
    Replies: 4
    Last Post: 05-01-2008, 05:55 PM
  3. Editor picks on home page
    By golfcollection in forum v5.x
    Replies: 0
    Last Post: 09-21-2004, 01:14 PM
  4. Editor picks page blank
    By player in forum v5.x
    Replies: 3
    Last Post: 10-29-2002, 10:07 PM
  5. Hot, New and Editor Picks Text...
    By amanda in forum Tutorials, Hints & Tips
    Replies: 8
    Last Post: 11-30-2001, 06:19 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
  •