PDA

View Full Version : Named buttons at "my listings" page



Andreas_M
October 3, 2012, 07:28 PM
Hello,

I want to have named buttons at "my listings" page / listings overview. How can I made buttons with the phrase instead of the icons? A combination with icons + phrases would even be better.
And they should be arranged as a table with two rows and two columns.

Some customers dont be well into the internet, that they know the mouseover function.



Best regards
Andreas

Vladimir
October 4, 2012, 03:29 AM
Hello,

You can fix it in file: templates/your_template/tpl/blocks/my_listing.tpl

For Example (it is the button "Edit Listing"):

- find this code:



<a title="{$lang.edit_listing}" class="nav_icon" href="{$rlBase}{if $config.mod_rewrite}{$pages.edit_listing}.html?id= {$listing.ID}{else}?page={$pages.edit_listing}&amp;id= {$listing.ID}{/if}">
<span class="left">&nbsp;</span><span class="center">
<img class="edit_listing" src="{$rlTplBase}img/blank.gif" alt="" />
</span><span class="right">&nbsp;</span>
</a>


and change it to:



<a title="{$lang.edit_listing}" class="nav_icon" href="{$rlBase}{if $config.mod_rewrite}{$pages.edit_listing}.html?id= {$listing.ID}{else}?page={$pages.edit_listing}&amp;id= {$listing.ID}{/if}">
<span class="left">&nbsp;</span><span class="center">{$lang.edit_listing}</span><span class="right">&nbsp;</span>
</a>


178

Petrache Nicolae
October 4, 2012, 09:54 AM
Hello,

You can fix it in file: templates/your_template/tpl/blocks/my_listing.tpl

For Example (it is the button "Edit Listing"):

- find this code:



<a title="{$lang.edit_listing}" class="nav_icon" href="{$rlBase}{if $config.mod_rewrite}{$pages.edit_listing}.html?id= {$listing.ID}{else}?page={$pages.edit_listing}&id={$listing.ID}{/if}">
<span class="left">*</span><span class="center">
<img class="edit_listing" src="{$rlTplBase}img/blank.gif" alt="" />
</span><span class="right">*</span>
</a>


and change it to:



<a title="{$lang.edit_listing}" class="nav_icon" href="{$rlBase}{if $config.mod_rewrite}{$pages.edit_listing}.html?id= {$listing.ID}{else}?page={$pages.edit_listing}&id={$listing.ID}{/if}">
<span class="left">*</span><span class="center">{$lang.edit_listing}</span><span class="right">*</span>
</a>


178

hello Vladimir. what should be done to show for the renew package (i seems to miss that)?

i have adjusted the code to show the text and the icon as Andreas_M asked


<tr>
<td colspan="2" class="nav_icons">
{if $listings_type.Photo && ($listing.Plan_image > 0 || $listing.Image_unlim)}
<a title="{$lang.add_photo}" class="nav_icon" href="{$rlBase}{if $config.mod_rewrite}{$pages.add_photo}.html?id={$l isting.ID}{else}?page={$pages.add_photo}&amp;id={$list ing.ID}{/if}">
<span class="left">&nbsp;</span><span class="center">{$lang.add_photo}
<img class="add_photo" src="{$rlTplBase}img/blank.gif" alt="" />
</span><span class="right">&nbsp;</span>
</a>
{/if}
{if $listings_type.Video && ($listing.Plan_video > 0 || $listing.Video_unlim)}
<a title="{$lang.add_video}" class="nav_icon" href="{$rlBase}{if $config.mod_rewrite}{$pages.add_video}.html?id={$l isting.ID}{else}?page={$pages.add_video}&amp;id={$list ing.ID}{/if}">
<span class="left">&nbsp;</span><span class="center">{$lang.add_video}
<img class="add_video" src="{$rlTplBase}img/blank.gif" alt="" />
</span><span class="right">&nbsp;</span>
</a>
{/if}
<a title="{$lang.edit_listing}" class="nav_icon" href="{$rlBase}{if $config.mod_rewrite}{$pages.edit_listing}.html?id= {$listing.ID}{else}?page={$pages.edit_listing}&amp;id= {$listing.ID}{/if}">
<span class="left">&nbsp;</span><span class="center">{$lang.edit_listing}
<img class="edit_listing" src="{$rlTplBase}img/blank.gif" alt="" />
</span><span class="right">&nbsp;</span>
</a>
<a title="{$lang.upgrade_plan}" class="nav_icon" href="{$rlBase}{if $config.mod_rewrite}{$pages.upgrade_listing}.html? id={$listing.ID}{else}?page={$pages.upgrade_listin g}&amp;id={$listing.ID}{/if}">
<span class="left">&nbsp;</span><span class="center">{$lang.upgrade_listing}
<img class="upgrade_listing" src="{$rlTplBase}img/blank.gif" alt="" />
</span><span class="right">&nbsp;</span>
</a>
{if !$listing.Featured_expire && $listing.Status == 'active' && $available_plans}
<a title="{$lang.make_featured}" class="nav_icon text_button" href="{$rlBase}{if $config.mod_rewrite}{$pages.upgrade_listing}/featured.html?id={$listing.ID}{else}?page={$pages. upgrade_listing}&amp;id={$listing.ID}&amp;featured{/if}">
<span class="left">&nbsp;</span><span class="center">{$lang.make_featured}</span><span class="right">&nbsp;</span>
</a>
{/if}

{rlHook name='myListingsIcon'}
</td>
</tr>

181

Vladimir
October 4, 2012, 10:39 AM
what should be done to show for the renew package (i seems to miss that)?


As far as we understood you want to upgrade a package. Please use a button "Renew" (My Packages) to buy a package again.

Petrache Nicolae
October 4, 2012, 10:54 AM
As far as we understood you want to upgrade a package. Please use a button "Renew" (My Packages) to buy a package again.


nope..i want the have text added on the last button, beside image, the same way as i have added for the 3 buttons

Andreas_M
October 6, 2012, 11:11 AM
Hello Vladimir,


I changed it and it looks very good.

Thanks !

Best regards
Andreas

Petrache Nicolae
October 7, 2012, 12:27 PM
As far as we understood you want to upgrade a package. Please use a button "Renew" (My Packages) to buy a package again.

see the image Vladimir. Show text to the last icon "renew/upgrade listing plan" (as i have added for "add a picture", "add a video", "edit a listing"
188

Andreas_M
October 7, 2012, 12:41 PM
Hi,

there is a little error at your code use this for the language phrase:


{$lang.upgrade_plan}

yours is


{$lang.upgrade_listing}

Petrache Nicolae
October 7, 2012, 06:49 PM
Hi,

there is a little error at your code use this for the language phrase:


{$lang.upgrade_plan}

yours is


{$lang.upgrade_listing}

thanks. all is ok now