*

Dan Dan

  • ***
  • 40 posts
I'm asking for help...
« on: April 30, 2018, 11:48:59 AM »
I'm asking for help ...
in item.php there is a function:

<? php if (function_exists ('seller_post')) {if (osc_item_user_id ()! = 0) {?>?? php seller_post (); ?> <span class = "num"> (<? php $ user = User :: newInstance () -> findByPrimaryKey (osc_item_user_id ()); $ num_items_user = $ user ['i_items'; echo $ num_items_user; </ span> <? php} else {echo '<span>'. __ ('Unregistered user', 'tatiana'). '</ span>';}} else {echo '<span>'. __ ('Unregistered user', 'tatiana'). '<span>';}?>
<a href="<?php echo osc_item_send_friend_url(); ?> "rel =" nofollow "> <? php _e ('Send to friend', 'tatiana'); ?> </a>


I would like only registered users to send mail with message to avoid spamming.
Thank you

Marked as best answer by dan.dan on April 30, 2018, 09:44:04 PM
*

MB Themes

Re: I'm asking for help...
« Reply #1 on: April 30, 2018, 02:09:26 PM »
Code: [Select]
<?php if(osc_is_web_user_logged_in()) { ?>
  <a href="<?php echo osc_item_send_friend_url(); ?> "rel =" nofollow "> <? php _e ('Send to friend', 'tatiana'); ?> </a>
<?php ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Dan Dan

  • ***
  • 40 posts
Re: I'm asking for help...
« Reply #2 on: April 30, 2018, 09:43:44 PM »
As always, prompt and efficient.
Thank you very much!