+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Need Addon

  1. #1
    Join Date
    Feb 2005
    Location
    BiH
    Age
    30
    Posts
    811

    Default Need Addon

    Hallo everyone,

    I asked about changing row color on searchresults page for featured listings, and I got answer that addon would be the best solution.

    So Im posting here what I need and if somebody is ready to write this addon please send me your offer.

    An addon could be created to pull the field value for the featured field... however since its a yes/no field it stores its values in the database as "0" or "1"... so you may want to have the addon convert the 0 or 1 into something like _featured... then in your search results template do something like:

    <tr class="result_row_{row_num_even_odd}{addon_feature d_check}">

    Then for all your listings that are featured you would get an output of something like:
    <tr class="result_row_1_featured">
    <tr class="result_row_2_featured">

    And your non-featured listings would still give you the normal output of:
    <tr class="result_row_1">
    <tr class="result_row_2">
    thank you.

    My email is: info (at) poslovni-informator.com

    Regards

  2. #2
    Join Date
    May 2004
    Location
    Long Island, NY
    Age
    40
    Posts
    9,807

    Default Re: Need Addon

    Here you go. Use {addon_featuredcheck_show} in your search results template. It will return 'featured' for featured listings and nothing if the listing is not featured.
    Attached Files

  3. #3
    Join Date
    Feb 2005
    Location
    BiH
    Age
    30
    Posts
    811

    Default Re: Need Addon

    great work PB, thank you very much. works perfect. I will suggest to incorporate this in next release.

    Thank you.

  4. #4
    Join Date
    May 2004
    Location
    Long Island, NY
    Age
    40
    Posts
    9,807

    Default Re: Need Addon

    We'll look at it for the next release. I only wrote this up as I didn't want to see you pay someone a ridiculous price for 10 minutes worth or coding.

  5. #5
    Join Date
    Feb 2005
    Location
    BiH
    Age
    30
    Posts
    811

    Default Re: Need Addon

    OK, I understand what you mean.

    One question come to my mind: Can I also use this on edit my listings page in admin section. I got a lot of ideas to use this on administration side too.

    For example: I asked some times ago about possible modification of paypal addons to work with other payment providers (and other retailer services like 2checkout.com). So if I could use this on admin page (edit my listings page) I could put custom link: "purchase featured listings" or "purchase something bla bla for this listing" for purchasing featured option using 2checkout. I can do this right now, but it would be much nicer to hide that purchase link if listing is already featured. I hope you understand what I mean.

    Also, I want to say this is great addon that also allow us not only to change row color for featured listings, but also to use some icon s (images) to display for featured listings, to highlight them.

    For example , we can create two icons:

    - first : listingtype.gif (blank one - transparent) and
    - second: listingtypefeatured.gif (icon to highlight featured listing)

    Than just call that image with: {template_url}/images/listingtype{addon_featuredcheck_show}.gif

    Once again thank you PB for making our lives easier : )

  6. #6
    Join Date
    Jun 2006
    Location
    Florida!
    Posts
    255

    Question Re: Need Addon

    Hi Bit,
    I tried that and all it gives me is the name of the link not the picture.
    What else so I need to do other than,..
    "call that image with: {template_url}/images/listingtype{addon_featuredcheck_show}.gif"
    Thanks,
    Brandy1J~
    Brandy1J~
    A few of you know we are a Military family and we recently found out my Husband is deploying in June. The soldiers always need letters, cards, personal items and things that are necessities.. If you would like information on how and where to donate items or to simply get information on our Military please visit Military.com. Thanks.


  7. #7
    Join Date
    Feb 2005
    Location
    BiH
    Age
    30
    Posts
    811

    Default Re: Need Addon

    did you made two images:

    listingtype.gif (transparent) and
    listingtypefeatured.gif

    and put in your: {template_url}/images/ folder?

  8. #8
    Join Date
    Jun 2006
    Location
    Florida!
    Posts
    255

    Red face Re: Need Addon

    Yes I Did. I get: mysite.com/listings/template/tarynbrandyn/images/listingtypefeatured.gif
    See it here..
    It pushed everything to the side and I don't see a picture.

    Brandy1j~
    Brandy1J~
    A few of you know we are a Military family and we recently found out my Husband is deploying in June. The soldiers always need letters, cards, personal items and things that are necessities.. If you would like information on how and where to donate items or to simply get information on our Military please visit Military.com. Thanks.


  9. #9
    Join Date
    Feb 2005
    Location
    BiH
    Age
    30
    Posts
    811

    Default Re: Need Addon

    you need to know basic html: how to show some image on page:

    <img src="{template_url}/images/listingtype{addon_featuredcheck_show}.gif">

  10. #10
    Join Date
    Jun 2006
    Location
    Florida!
    Posts
    255

    Talking Re: Need Addon

    Thanks, I know html and a little bit of other stuff but silly me I tend to take things at face value so when you said "Than just call that image with: {template_url}/images/listingtype{addon_featuredcheck_show}.gif" I naturally assumed it was some new way to add it and therefore didn't think about the other part.
    Sorry again. I thought I learned a new way to make an image appear! Ha, Ha!
    I'll be an expert by the time this is over!

    Brandy1J~
    Brandy1J~
    A few of you know we are a Military family and we recently found out my Husband is deploying in June. The soldiers always need letters, cards, personal items and things that are necessities.. If you would like information on how and where to donate items or to simply get information on our Military please visit Military.com. Thanks.


+ Reply to Thread

Bookmarks

Posting Permissions

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