× Joomla Facebook Connect support forum

Topic-icon Comments url

Active Subscriptions:

None
14 years 4 months ago #18391 by kiwi2b
Comments url was created by kiwi2b
Hi there

Just looking at the documentation, in relation to custom tags, specifically, comments. There is this line...
{JFBCComments href=http://www.sourcecoast.com width=550 num_posts=10 colorscheme=dark}

I should know this, but the url should be what? The url of my Facebook page, or the website, or something else? And what does it do? I mean, as I understand, the comments just get posted to the page's wall and the poster's profile's feed (correct??), so why is the url to my Facebook profile needed? How is the info used?

And also, is there a tag that inserts the output of the 'content-plugin like' into the content? (The event component I'm using accepts the tags, but doesn't show the plugin's output automatically.)

Thanks yet again!
The topic has been locked.
Support Specialist
14 years 4 months ago #18416 by alzander
Replied by alzander on topic Comments url
Kiwi,
Each comment box is associated with a URL. That allows each page to have it's own comments, but also allows some neat flexibility where you can have a 'common' comment box across a section or your whole website, if you wanted too.

So, when you're using the href parameter, it should be for the destination URL that the comments should be associated with. When a user posts a comment, this href link will also be the one that their friends can click to see the original page and their comment. If left blank, JFBConnect will automatically set the href to the current page's URL.

Regarding the contnet-plugin insertion, I'm not exactly sure what you mean. If you're looking for one tag that will insert the FB Like, G+1, LinkedIn Share, and Twitter buttons, we don't have that. However, you can add each button manually using the tags {SCGooglePlusOne}, {SCTwitterShare} and {JLinkedShare}. For more information on those tags, see the bottom of the following configuration guide page:
www.sourcecoast.com/jfbconnect/docs/conf...ation-guide?start=13

Good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18466 by kiwi2b
Replied by kiwi2b on topic Comments url
Hi thanks for the answer. Just discovered a big and related issue for me.

I have an 'events' page with brief listings of six or seven upcoming music acts . Each entry is autogenerated from a form, using RSEvents, completed by the website owner. They are all on the one page. I've added {JFBCComments href=http://www.eventpageurl.com width=400 num_posts=3 colorscheme=light}, so I get a comment box below each event. Great, just what I want.

But. When I post a comment, it gets repeated across all the comment boxes on the page (see screenshot for two of them)!! What can I do??

What I want is to have the one page, on which the events reside when the form is completed, each with their own comment box. When a comment is posted to one of the boxes, I want the comment to stay in that box and not be copied to all of the other comment boxes on the page. Has to be possible, has to be?

If it helps, the event links to another fuller page, with it's own url, but I don't want to bury the comment box that deep. Another possibility, is to have the comment box module on it's own on the event page, but it would be much better to have the boxes attached to each event.

(Don't know if it's related, but I can't see facebook's moderation features. On the regular articles, if a comment is posted, it gets moderated, but not on this events page. What do you think?)

Thanks for sure on this one!

File Attachment:
The topic has been locked.
Support Specialist
14 years 4 months ago #18492 by alzander
Replied by alzander on topic Comments url
Kiwi,
You still want to use the URL of the 'fuller page' that you mention. It can still show on the multi-events page, but then the comments will attach to 'fuller page'. If someone sees it on Facebook, the link will go to the full details page though, not the multi-listings page.

If you really want the comment URL to be for the current page, you can simply do the href like eventpageurl.com/?event1 (event2, event3). That will make each of the boxes unique, and the link from Facebook will go to the eventpageurl.com. You can also use the same comment box on the full event page, but if a user comments there, the link will still be back to the overall events page.

Hope that helps, and makes sense,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18519 by kiwi2b
Replied by kiwi2b on topic Comments url
Hi again, thanks for the info. I understand sortof.

The problem seems to be the 'auto' way that the events are created in RSEvents. Info is entered in a form, and a details page is produced and a summary is added to an events page, where it joins a listing of the other events. All done automatically, once the form is filled out.

By adding your tag to the template used by RSEvents I get the comment box appearing. If I put it in the template for the details page, it gets it's own url, and the comments box is fine.

If I put the tag into the events page template, then the box gets automatically added to all of the different events (in the screenshot you can see two of the events, with comment boxes attached). All automatic, once the form is completed. Again, great. But, a comment in one gets duplicated in all of the others. "Admin test" in one gets copied across every comment box on the page.

I can't alter the url manually, what can I do?? (As said above, I could use the comment box module, but I would then just have the one. Or I could keep them on the details page, but that's another link deeper.)

What do you think?
The topic has been locked.
Support Specialist
14 years 4 months ago #18526 by alzander
Replied by alzander on topic Comments url
In the RSEvents template file that you're editing, look at where the title of the event is being displayed, "Mark Rahana" in the first example. Somehow, RSEvents is making that into a link. Hopefully, there's just a variable called $event->url or something like that, but it may be a much longer string like JRoute::_('index.php?option=com_rsevents&view=....);

Whatever it is you find, add it to the JFBCComments tag like:
{JFBCComments href=<?php echo $event->url; ?>}
That may not work at first, but hopefully will get us closer. Mainly, I'm not sure if your domain (site.com) will be included in the URL, which is required by Facebook. Once you find how the link is done though, let us know, and we can help you make the comment box dynamic too.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 months ago #18991 by kiwi2b
Replied by kiwi2b on topic Comments url
Hiya, back again.

Okay, after checking with the developers, the code comes from a text box within the component (rather than a file as such). This code produces the entry for each event, which is then repeated for however many events there are to fill the 'events listings' page. I have this in the text box (can't seem to paste code into this post directly)...

File Attachment:


If I add {JFBCComments href=http://www.eventpageurl.com width=400 num_posts=3 colorscheme=light} into the above textbox, I get the problems described above. That is, a comment box after each entry (great!), but a comment in one gets repeated to all of them!!

My aim is to have the comments boxes attached to each event, with their own comments. I could have them on the events' own page (which I have done), but it's too deep into the website, or in a module on the events listings page, but that doesn't look so enticing. So what to do??

There is a php file (attached), but most of it is ignored, except for one line, which I guess pulls in the code above...



Thanks for sure!

##text##
The topic has been locked.
Support Specialist
14 years 4 months ago #19008 by alzander
Replied by alzander on topic Comments url
From the code in your first image, it seems like you might be able to try:
{JFBCComments url={EventLink} }
Ideally, when the Event extension comes through, it will replace {EventLink} with the URL and then JFBConnect's System plugin will replace the whole {JFBCComments } tag properly.

It's possible there could be an ordering issue with the double {} tags depending on what is replaced first.. the event URL would need to be done first. However, hopefully that will just work.

Let us know!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19023 by kiwi2b
Replied by kiwi2b on topic Comments url
Hi, thanks. Can I double check the code? What do I change url= to??

By
{JFBCComments url={EventLink} }
You mean replace {EventLink} with this...
{JFBCComments href=http://www.website.com/events/events width=400 num_posts=3 colorscheme=light {EventLink} }

Tried changing it in various ways, including with no parameters. The link was broken, some "> marks were showing as text, and some of the headings were blue!!

Even if this works, wouldn't the comments box be located where the heading should be? What if I want the box below the description text (which is produced by the {EventDescription} tag shown in the code I posted as an image}?

Thanks again!
The topic has been locked.
Support Specialist
14 years 3 months ago #19053 by alzander
Replied by alzander on topic Comments url
From your description above, I was assuming that in the textbox, you can simply add {EventLink} and then 'something' will come along and replace that with the proper link. Is that not correct? If that's how it works, then the {JFBCComments url={EventLink} } would simply have 2 automatic replacements done on it, one by your event extension and the next by JFBConnect.

You'll need to check what actually gets replaced when you use {EventLink}. From the image you inserted above of <a href="{EventLink}">, I'd assume it would be a simple URL, which is what you want.

As for the comment box location, if you don't want it in the heading, you should place it in a different location. From the image you show above, I would expect the comment box to show just under the heading h5 tag.

Hope that explains. Maybe I'm missing something though.

Thanks,
Alex
The topic has been locked.