Creator email address

  • poker100
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #141802 by poker100
Creator email address was created by poker100
Hi Tuan,
I would need a set of code that returns the email address of the event creator with a simple echo but it would be even better with a link to the email. I would insert it at the end of the event details. Please help me because I tried several solutions but failed :(
Thanks

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #141821 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Creator email address
Hello

Before we provide support, we need you to validate your order. So please submit a support ticket send us:

- The email you used to purchase Events Booking
- Or PayPal Transaction ID of the purchase

We will check and validate your order before providing support

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #141826 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Creator email address
Hello

Try this code:
Code:
$createdBy = JFactory::getUser($this->item->created_by); echo $createdBy->email;

Please Log in or Create an account to join the conversation.

  • poker100
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #141827 by poker100
Replied by poker100 on topic Creator email address
Hi,
thanks, I tried here, but came an error

<td class="eb-event-property-value">

<a href="<?php echo JRoute::_('index.php?option=com_eventbooking&view=search&created_by=' . $item->created_by . '&Itemid=' . $Itemid); ?>">
<?php echo $item->creator_name; </a> ?>

<?php$createdBy = JFactory::getUser($this->item->created_by);
echo $createdBy->email; ?>
</td>

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #141828 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Creator email address
On that file, please use
Code:
$createdBy = JFactory::getUser($item->created_by); echo $createdBy->email;

And it will work well

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • poker100
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #141829 by poker100
Replied by poker100 on topic Creator email address
Hi Tuan,
it's perfect.
Possible linking email when click on email?

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #141830 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Creator email address

Please Log in or Create an account to join the conversation.

  • poker100
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #141966 by poker100
Replied by poker100 on topic Creator email address
Solved,
thanx Tuan

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #141976 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Creator email address
Great :). I'm happy to hear that you got the issue sorted.

Please Log in or Create an account to join the conversation.