By Andrew McDonald on Friday, 04 July 2014
Replies 22
Likes 0
Views 1K
Votes 0
I'm using JReviews and EasySocial for my site (great compatability btw!)...

When I view a JReviews listing page I would also like to be able to add a "Follow User" button to the owner.

Is it even possible to do this outside of the EasySocial pages???
Hello Andrew,

It's actually possible if you follow the guide here, http://docs.stackideas.com/developers/html/followers . However, you do need to place your codes in JReviews though.
·
Friday, 04 July 2014 17:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Just checking... the page you send it titled "Followers" but all the code refers to "Friends"... Is this correct?
·
Saturday, 05 July 2014 07:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Ops, sorry it looks like we may have mixed up the codes. Try this,


<a href="javascript:void(0);" data-es-followers-follow data-es-followers-id="<?php echo $id;?>"><span><?php echo JText::_( 'Follow Author' ); ?></span></a>
·
Saturday, 05 July 2014 14:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks!
·
Monday, 07 July 2014 06:07
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Monday, 07 July 2014 12:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark, sorry to keep this one going, but I can't get it to work... might be a bit out of my league.

I'm trying to add a "Follow Author" link on a JReviews listing page. What I have tried so far is to edit the JReviews listing detail page where I want the button and...
- Added this code to top of page

require_once( JPATH_ROOT . '/administrator/components/com_easysocial/includes/foundry.php' );
// This will render the necessary javascripts on the page header.
Foundry::page()->processScripts();
?>

- Added this button in the page

<a href="javascript:void(0);" data-es-followers-follow data-es-followers-id="<?php echo $id;?>"><span><?php echo JText::_( 'Follow Author' ); ?></span></a>


The button appears in the page, but nothing happens when you click it. Any ideas?

cheers
Andrew
·
Thursday, 10 July 2014 12:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andrew,

Hm, to be honest with you, I need to actually test this out first. Can you provide us with the link to the page?
·
Thursday, 10 July 2014 13:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Unfortunately I'm working with a MAMP local install. When I upload to my new server I will give you access.
·
Friday, 11 July 2014 06:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andrew,

Sure, let us know when it's available
·
Friday, 11 July 2014 13:10
·
0 Likes
·
0 Votes
·
0 Comments
·
subscribe
·
Monday, 14 July 2014 06:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Eileen O'Donnell wrote:

subscribe


Thank you for subscribing Eileen.
·
Monday, 14 July 2014 13:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Mark

Finally managed to get a temp version of my site online for you to help me solve the Follow User task I'm trying to resolve.

The link below is the page I'm trying to a follow button onto. You can see it top right near the avatar "Follow Author".

http://motori.st/index.php?option=com_content&view=article&id=66:bentley-gt3-r&catid=16:coupe&Itemid=205

Any idea why I can't get it to work?

cheers
Andrew
·
Tuesday, 22 July 2014 13:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andrew,

Can I know which file did you modified?
·
Tuesday, 22 July 2014 16:18
·
0 Likes
·
0 Votes
·
0 Comments
·
...that would help wouldn't it!
/templates/jreviews_overrides/views/themes/motorist_dark/listings/detail.thtml


cheers
Andrew
·
Wednesday, 23 July 2014 07:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andrew,

You are using the wrong variable for the author id and that is why it isn't working. I have updated the theme file for you and it works fine now It should be $listing['Listing']['user_id'] from JReviews
·
Wednesday, 23 July 2014 11:45
·
0 Likes
·
0 Votes
·
0 Comments
·
LEGEND!
·
Wednesday, 23 July 2014 14:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Problem

When I click the button, it just sits in a constant loop with a modal loaded and a gif rotating... but nothing happens. Img attached.

Any ideas?
·
Wednesday, 23 July 2014 14:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andrew,

Which listing are you testing on?
·
Wednesday, 23 July 2014 18:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Any of these ones.
http://motori.st/index.php?option=com_content&view=article&id=67:dodge&catid=16:coupe&Itemid=205
http://motori.st/index.php?option=com_content&view=article&id=66:bentley-gt3-r&catid=16:coupe&Itemid=205
cheers
Andrew
·
Thursday, 24 July 2014 06:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Andrew,

I have just tried this on your site and it seems to be working fine as you can see here, http://screencast.com/t/fP8dWtj0
·
Thursday, 24 July 2014 13:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Bugger

Any ideas why I just get the little window but with a loading gif? I've waited 30+min and still just doesn't update.

cheers
Andrew
·
Friday, 25 July 2014 09:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Are you testing this as a guest or are you testing this as a registered user? I am not really sure why you are only getting a loading indication though.
·
Friday, 25 July 2014 10:24
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post