image for my users 2

Discussion in 'Pre Sales Questions' started by MR.RUF, May 29, 2012.

  1. MR.RUF New Member

    ok back to my questions, if you for your applause, I know you missed me. well let me know if it is possible that each user has his own image. when I place an ad to display the image and to click on it to redirect to that user's virtual store.

    thanks because it will give me light.

    now I leave my offerings

  2. freeze2 Customer

  3. MR.RUF New Member

    ok sorry I wrote again this issue, the matter is that the subject deviated much, maybe because of me. well, I would explain a bit like this, if not too much trouble
  4. freeze2 Customer

    A simple example would be something like this:

    Create a new template file (banners.tpl)

    Sample code:

    Code:
    {if $owner == "1"}
    <div id="listingbanner"><a href="http://www.userwebsite.com/" target="_blank">
    <img alt="Banner Title" height="100" src="{$smarty.const.URL}/templates/theme/images/image1.jpg" title="Banner Title" width="620"></a></div>
    {elseif $owner == "2"}
    <div id="listingbanner"><a href="http://www.userwebsite.com/" target="_blank">
    <img alt="Banner Title" height="100" src="{$smarty.const.URL}/templates/theme/images/image2.jpg" title="Banner Title" width="620"></a></div>
    {elseif $owner == "3"}
    <div id="listingbanner"><a href="http://www.userwebsite.com/" target="_blank">
    <img alt="Banner Title" height="100" src="{$smarty.const.URL}/templates/theme/images/image3.jpg" title="Banner Title" width="620"></a></div>
    {else}{/if}
    Insert it into the viewlisting.tpl where you want it to display using:

    Code:
    {include file="banners.tpl"}
    **************************************

    You can now create custom images for your users
  5. MR.RUF New Member

    wow, this works great! was looking for this long ago and I am very grateful. seriously thank you very much.

    now I'll leave you a gift just for you

    [IMG]

Share This Page