Advertisement:

Author Topic: Send-Friend  (Read 1785 times)

sm3yfx

  • Newbie
  • *
  • Posts: 3
Send-Friend
« on: November 25, 2012, 12:08:52 pm »
How to remove send-friends function for not loged in user now its possible to use it for spam function,

Regards Lars-Gunnar / sm3yfx

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Send-Friend
« Reply #1 on: November 26, 2012, 12:15:44 pm »
Hi sm3yfx,

You should modify your theme file item.php

Depends on your theme, you should look for something similar to this

Code: [Select]
<strong class="share"><a href="<?php echo osc_item_send_friend_url() ; ?>" rel="nofollow"><?php _e('Share''modern') ; ?></a></strong>
To this one :

Code: [Select]
<?php if(osc_is_web_user_logged_in()) { ?>
<strong class="share"><a href="<?php echo osc_item_send_friend_url() ; ?>" rel="nofollow"><?php _e('Share''modern') ; ?></a></strong>
<?php }; ?>