Results 1 to 9 of 9

Thread: Different list depend on premium - sponsored

  1. #1
    user_not_found is offline Registered User
    Join Date
    Sep 2007
    Posts
    84

    Default Different list depend on premium - sponsored

    Hi,

    How can I have in listing page different display and details for
    premium and different for sponsored links ?


  2. #2
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    You can edit sponsored_rows.html and premium_rows.html to get a different look for them.

  3. #3
    user_not_found is offline Registered User
    Join Date
    Sep 2007
    Posts
    84

    Default

    Hi,

    I have already do that for row listing
    I want to have and different listing in detail page I am try to have
    different colors and and an <if> condition if is premium or sponsored to list
    some field and the colors to be different.

    Can also to display ONLY premium listings or sponsored as I do that from admin panel ?

  4. #4
    Bruceper is offline Active Member
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    You can use

    <% if $premium =='1'%> <- for premium only
    <% if $sponsored =='1' %> <- for sponsored only
    <% if $premium =='1' | $sponsored =='1' %> <- for sponsored AND premium

    To display ONLY premium and/or sponsored listings you would remove the code for regular listings, but I dont suggest it as it really limites your directory size.

  5. #5
    user_not_found is offline Registered User
    Join Date
    Sep 2007
    Posts
    84

    Default

    You are great as always

  6. #6
    weswa is offline Registered User
    Join Date
    Oct 2007
    Posts
    136

    Default

    I am trying to have an image shown only if the listing is sponsored,
    but when I use:

    <% if $sponsored =='1' | $afbeelding2|file_exists%>

    the image just shows as long as there is an afbeelding2 uploaded,
    so it seems the | means "or" while I need it to be "and"

    Does anybody know what symbol to use in the if statement to fix this?

    Thx
    weswa

  7. #7
    FSGDAG's Avatar
    FSGDAG is offline Moderator
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Google is your best friend

    It would appear you would want to use "&&"
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  8. #8
    weswa is offline Registered User
    Join Date
    Oct 2007
    Posts
    136

    Default

    Hi FSGDAG,
    You are by far the most helpful and active member of this forum!
    Thank you for that & cheers,
    Wessel

  9. #9
    FSGDAG's Avatar
    FSGDAG is offline Moderator
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    You got the 'most active member' part right! But somehow I doubt I'm the most helpful

    Glad it worked for ya
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

Similar Threads

  1. Premium Vs Sponsored
    By carlheaton9898 in forum Website development, hosting and promotion
    Replies: 5
    Last Post: 07-19-2008, 03:40 PM
  2. Premium and Sponsored...how do they look?
    By Vitis in forum Blocks and Modification
    Replies: 3
    Last Post: 08-19-2007, 12:46 AM
  3. Difference between Premium and Sponsored?
    By seosites in forum Pre-Sales Questions
    Replies: 4
    Last Post: 06-26-2007, 12:26 PM
  4. Premium and Sponsored
    By BeatificFaith in forum Indexu Lite
    Replies: 3
    Last Post: 04-03-2006, 03:19 AM
  5. Premium and Sponsored Listings
    By Solari in forum Pre-Sales Questions
    Replies: 1
    Last Post: 06-14-2002, 02:34 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
  •