Page 1 of 2 12 LastLast
Results 1 to 15 of 16

Thread: Can we seperate Premuim listings from Basic ones?

  1. #1
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default Can we seperate Premuim listings from Basic ones?

    Why Premium and Basic listing are together?

    http://www.idobride.com.au/new-south-wales/photography/

    Sponsored listings are totally separate but Premium and Basics are together, can we have Premium listings separate as well?

    The reason I need this so I have a different headings for each type of advertising, people see the difference and hopefully upgrade!

    SPONSOR LISTINGS
    PREMUIM LISINGS
    BASIC LISTINGS

  2. #2
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Personally I don't see why there are 3 "classes" of listings, on most sites I only have two.

    I'm nto sure why Dody did it this way on Deluxe, but if you want to change it then you can take a look at rows.html. Looking at the code they look like they're seperate though.

  3. #3
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    I tried row.html ut couldn't do it from there!

    second question, how can I delete Premium listing option?

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Simply set the premium price to 0

  5. #5
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

  6. #6
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    ... but still is there any way that we can separate them?
    In my directory looks stupid;

    http://www.weddingsonly.com.au/new-s...s/photography/

    My premium listings are under the SORT BY combined with FREE LISTINGS!!

  7. #7
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    look at premium_rows.html and of course rows.html

  8. #8
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    premium_rows.html and sponsored_rows.html are almost identical.
    and there is nothing in the rows.html to make differentiate between sponsored and premium, I think it should be in a different file!

  9. #9
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    rows.html

    PHP Code:
    <%$hook_html_rows_begin%>

    <%if 
    $sponsored%>
      <%include 
    file="sponsored_rows.html"%>
    <%elseif 
    $premium%>
      <%include 
    file="premium_rows.html"%>
    <%else%>
        <
    div class="link_rows">
            <
    span><a href="<%$url%>" name="link_<%$link_id%>"><%$title%></a></span>
        <%if 
    $enable_bidding%>
          [<
    a href="<%$site_url%>/upgrade.php?pflag=retrieve&id=<%$link_id%>"><%t%>bid<%/t%></a> $<%$bid%>]
        <%/if%>
        <
    br />
        <%
    $description%>
        <
    br />
        <
    a href="<%$url%>" name="link_<%$link_id%>"><%$url%></a
        - <
    a href="<%$site_url%>/<%$detail_page_url%>">Detail</a>
        <
    br /><span class="googlepr">Google PR <img src="<%$site_url%>/googlepr.php?link_id=<%$link_id%>"></span>
        </
    div>
    <%/if%>

    <%
    $hook_html_rows_end%> 

    sponsored_rows.html
    PHP Code:
    <%$hook_html_sponsored_rows_begin%>

    <
    div class="sponsored_link_rows">
        <
    div class="link_rows">
            <
    span><a href="<%$url%>" name="link_<%$link_id%>"><%$title%></a></span>
        <%if 
    $enable_bidding%>
          [<
    a href="<%$site_url%>/upgrade.php?pflag=retrieve&id=<%$link_id%>"><%t%>bid<%/t%></a> $<%$bid%>]
        <%/if%>
        <
    br />
        <%
    $description%>
        <
    br />
        <
    a href="<%$url%>" name="link_<%$link_id%>"><%$url%></a
        - <
    a href="<%$site_url%>/<%$detail_page_url%>">Detail</a>
        <
    br /><span class="googlepr">Google PR <img src="<%$site_url%>/googlepr.php?link_id=<%$link_id%>"></span>
        </
    div>
    </
    div>

    <%
    $hook_html_sponsored_rows_end%> 
    premium_rows.html
    PHP Code:
    <%$hook_html_premium_rows_begin%>      

    <
    div class="premium_link_rows">
        <
    div class="link_rows">
            <
    span><a href="<%$url%>" name="link_<%$link_id%>"><%$title%></a></span>
        <%if 
    $enable_bidding%>
          [<
    a href="<%$site_url%>/upgrade.php?pflag=retrieve&id=<%$link_id%>"><%t%>bid<%/t%></a> $<%$bid%>]
        <%/if%>
        <
    br />
        <%
    $description%>
        <
    br />
        <
    a href="<%$url%>" name="link_<%$link_id%>"><%$url%></a
        - <
    a href="<%$site_url%>/<%$detail_page_url%>">Detail</a>
        <
    br /><span class="googlepr">Google PR <img src="<%$site_url%>/googlepr.php?link_id=<%$link_id%>"></span>
        </
    div>
    </
    div>

    <%
    $hook_html_premium_rows_end%> 
    Some how I need to move the premium listing away from basic listings (under SORT BY) to the top of "SORT BY" just under the Sponsored Listings. Perhaps some where or some how in browse but where?

    http://www.weddingsonly.com.au/new-s...s/photography/
    Last edited by Mitchell; 05-13-2008 at 12:05 PM.

  10. #10
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    in browse.html we have

    PHP Code:
     <%if $sponsored_link%>
          <%
    $sponsored_link%>
        <%/if%>

        <%if 
    $link%>
          <%
    block_sort_links use_pagerank="yes" use_custom_field="yes" exclude_custom_field=""%>
          <%
    $link%>    
        <%else%>
          <%
    t%>Theres no web links here.<%/t%>        
        <%/if%> 
    Why there is no sign of
    <%$premium_link%>

    where is it?

  11. #11
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    $sponsored_link is a variable, and calls info for both sponsored and premium listings.

    You also do realize there is no need to post files/code from the script. Everyone who has IndexU Deluxe can see what's there.

    Yes premium_rows and sponsored_rows are almost identical. And they are almost identical to part of rows.html because they all do the same function, display a listing.

    You'd probably have to ask Dody why the premium rows are "mixed" in, but my guess is that they could be moved by editing the associated files.

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

    Default

    browse.html: $sponsored_link is a variable, and calls info for both sponsored and premium listings.
    on the category/sub-cat pages there are two groups of links - Sponsored links and ALL other links.

    $sponsored_link is a variable that is either blank or contains the listings for links that sponsor the displayed category.

    sponsored links are always at the top of the ANY displayed links on the category/sub-cat pages. Sponsored links can come before (the default) or after all the other links, but never will they be mixed together.

    Both basic links and premium links are in the $link variable.

    unless you change the "order by" clause in browse.php, INDEXU always sorts so that the premiums links are first followed by the basic links.

    don't know which is which? just type the listing type in one of the three "rows" HTML fileS.

    you can change the HTML of sponsored_rows.html, premium_rows.html and rows.html to provide a different look and feel for each. Edit the css file(main.css, i think). For example, the sponsored links could have a GOLD background, the premuim links could have a BLUE background and the basic links could have a GREY background.



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

    .

  13. #13
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    652

    Default

    Thank you for your help.

    It is a shame that three different categories are not independent!

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

    Default

    Quote Originally Posted by Mitchell View Post
    Thank you for your help.

    It is a shame that three different categories are not independent!
    just to clarify, IMHO, there are certainly two independent groups - Sponsors and all others (basic and premium). Each can be displayed in a manner different than the other. Even basic and premium can be different.

    Maybe a little extreme but you get the idea
    Attached Images Attached Images
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

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

    Default

    You may play with the SELECT query in browse.php. See how to construct sponsored listing code and then copy and make change for premium listing. By this way you will get 3 independent listing.

    You'd probably have to ask Dody why the premium rows are "mixed" in, but my guess is that they could be moved by editing the associated files.
    This idea comes from hotscripts.com, see that how they display premium listing which is mixed (deep) inside basic listing.

    I think the idea is to encourage people to buy sponsored listing. Premium is good enough for people who do not want to spend a lot of money, but want to get more exposed from basic listing. While sponsored listing is for people who willing to spend money.

Similar Threads

  1. Replies: 4
    Last Post: 10-01-2007, 04:44 PM
  2. Can I make Basic a yearly fee
    By kosmo101 in forum v5.x
    Replies: 1
    Last Post: 08-17-2007, 01:18 PM
  3. Samples of premuim, sponsor links
    By jg123 in forum Tutorials, Hints & Tips
    Replies: 1
    Last Post: 04-21-2007, 08:22 PM
  4. Basic Blocks Request
    By Polo5 in forum Blocks and Modification
    Replies: 1
    Last Post: 04-15-2006, 03:56 AM
  5. Changing basic layout,
    By shogun in forum Website development, hosting and promotion
    Replies: 3
    Last Post: 05-28-2004, 02:32 PM

Posting Permissions

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