PDA

View Full Version : "Registration" button for guests at contact owner / seller info tab



Andreas_M
October 20, 2012, 08:15 PM
Hello,


I want to create a registration button for guests at "contact owner"/"seller info" tab.
It should only be visible for guest and invisible for logged in users.
Something like "please register to contact owner" would be great.

Has someone of you an idea?




Thanks & best regards
Andreas

Viktor
October 23, 2012, 11:30 AM
Hello Andreas,

yes you may create it.
Please check there code for .tpl file


{if $isLogin}
<a title="{$lang.create_account}" class="button" href="{$rlBase}{if $config.mod_rewrite}{$pages.registration}.html{els e}?page={$pages.registration}{/if}">{$lang.registration}</a>
{/if}

insert it in place where do you want on listing details :)

Andreas_M
November 3, 2012, 09:06 PM
Hello Viktor,


thanks a lot!



Best regards
Andreas

Andreas_M
November 9, 2012, 10:41 PM
Hello Viktor,


I tried your code, but it is for registered users / logged in. How should the code changed to, that only not logged in visitor can see the button?


Thanks & best regards
Andreas

Vladimir
November 30, 2012, 06:03 AM
Hello,

In the above code minor typo. You should change the condition to reverse in code.



{if !$isLogin}
<a title="{$lang.create_account}" class="button" href="{$rlBase}{if $config.mod_rewrite}{$pages.registration}.html{els e}?page={$pages.registration}{/if}">{$lang.registration}</a>
{/if}


In this case the button will be available only guests.