Forums / Install & configuration / how to disable "tipa a friend" function for anonymous?
Vytautas Germanavičius
Tuesday 28 November 2006 12:38:33 am
{set-block scope=root variable=cache_ttl}0{/set-block}
Georg Franz
Tuesday 28 November 2006 1:11:09 am
Hi,
Have a look at http://ez.no/community/forum/general/how_avoid_tip_a_friend_abuse/re_how_avoid_tip_a_friend_abuse__6
Best wishes, Georg. -- http://www.schicksal.com Horoskop website which uses eZ Publish since 2004
André R.
Tuesday 28 November 2006 2:25:28 am
You override the article template and add a if $current_user.is_logged_in check.
like this:
{if $current_user.is_logged_in} <div class="attribute-tipafriend"> <p> <a href={concat('/content/tipafriend/',$node.node_id)|ezurl}>{"Tip a friend"|i18n("design/base")}</a> </p> </div> {/if}
about the user object:http://ez.no/doc/ez_publish/technical_manual/3_8/reference/objects/ezuser
about template override:http://ez.no/doc/ez_publish/technical_manual/3_8/templates/the_template_override_system
PS! There where some issues with forum posting as you can see from the two last posts, but it's fixed now.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom