Show users ads in userindex.tpl

Discussion in 'Templates, HTML, CSS, and Design Help' started by BigOrange, Mar 21, 2010.

  1. BigOrange Customer

    I would like to list the the registered users ads under the statistics in user/userindex.tpl the same way it is listed when you view an ad and click on "More ads from this seller". Can this be done with the designer addition of 4.1.6?

    Thanks.
  2. Lhotch curmudgeon

    Im not sure I understand what you are saying, you say you want to list a users other ads, but then say like it does when viewing one of the users listings, but it doesnt actually display the users other listing, just a link to display them so are you wanted to create a link to display or actually display them?
  3. BigOrange Customer

    What I want for a member/registered user to see a list, of all his active ads that he has online, displayed at the bottom of the userindex.tpl page.

    The list displayed would be like what he would see if he clicks on one of his ads and then clicks "More ads from this seller".

    I hope I have explained it a little better.

    Thanks!
  4. Mike-N-Tosh Owner

    I've never heard of anybody wanting to do that, but I could see the benefit of it.

    I'm sure that it could be done as either a module or possibly a Smarty plugin. Essentially, you would need to capture the userID and then process it the same way that searchresults.php does sending it to Listings.php and call format.php, etc. and then output it to a new section in the userindex.tpl.
  5. BigOrange Customer

    Thanks for your reply.

    From what you are telling me, it appears to be something that cannot be done a the template level and probably is beyond my expertise. Maybe someone will offer another solution.

    Thanks again.
  6. Eric Barnes Guest

    You can probably use this plugin:
    Feature Listings Horizontal - 68 Classifieds

    Code:
    {feature_listings_horizontal [COLOR=DarkRed][B]owner=$smarty.session.uid[/B][/COLOR] [B][COLOR=SeaGreen]featured="N"[/COLOR][/B] number=8 cols=3 table_attr='width="100%" style="border: 1px solid #000;"' td_attr='valign="middle" align="left"'}  
    
    Keep in mind you will have to manually set a number and the list will not be paged.
  7. BigOrange Customer

    Thanks Eric.

    It's not exactly what I had in mind but that will work. I think it will be useful information for the user and it will take up some empty space below the normal info found there.

Share This Page