Jump to content
Alejandro

EasySocial - Messages to listing owner within listing detail page

Recommended Posts

Alejandro

The method below no longer works with recent versions of EasySocial. For an improved and updated solution, please refer to the new method using JReviews 3 filters which is provided in the documentation https://docs.jreviews.com/?title=JReviews:Developers_Filters#Add_EasySocial_Message_Button

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Based on a previous post in this forum by Mark @ stackideas all you need to do is add this to your theme file:

<?php
require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php');

$userId = $listing['User']['user_id'];
$document 	= JFactory::getDocument();

if ($document->getType() == 'html') {
      $doc 		= Foundry::document();
      $doc->init();
      $page 		= Foundry::page();
      $page->processScripts();
}
?>
Message Author
 

 

You may even try the same thing in the PHP output format of a banner field like this:

 

require_once(JPATH_ADMINISTRATOR . '/components/com_easysocial/includes/foundry.php');

$userId = $entry['User']['user_id'];
$document 	= JFactory::getDocument();

if ($document->getType() == 'html') {
      $doc 		= Foundry::document();
      $doc->init();
      $page 		= Foundry::page();
      $page->processScripts();
}

return 'Message Author';
 
Edited by Alejandro
Updated with new JReviews 3 filter method

Share this post


Link to post
Nadrill

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Kristian

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Nadrill

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Kristian

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Nadrill

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Giorgi Todua

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
ededi

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Alejandro

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
ededi

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Alejandro

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
ededi

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Alejandro

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
ededi

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Please refer to our Privacy Policy.