× Joomla Facebook Connect support forum

Topic-icon Comments url

Active Subscriptions:

None
14 years 3 months ago #19075 by kiwi2b
Replied by kiwi2b on topic Comments url
Hi there, yes you are correct. The {EventLink} produces a link. Here's the code from the textbox, followed by the html from the source...
File Attachment:

But with the mod, (I guess {JFBCComments href=http://www.website.com/events/events {EventLink} } is correct??), I get this...
File Attachment:

The original code produces this...
File Attachment:

But the new produces this. The eventlink is broken, some code is showing, and some of the other eventlinks are blue.
File Attachment:

What do you think??
Thanks for sure on this!
The topic has been locked.
Support Specialist
14 years 3 months ago #19080 by alzander
Replied by alzander on topic Comments url
Ahh.. I think I see the problem! From your code above, you're inserting the {JFBCComments} tag inside of it's own 'a href' tag which then also encompasses the h5 and title for the Event. You shouldn't do that. The {JFBCComments} tag should be on it's own.

What it looks like you have
<a href="{JFBCComments href={EventLink}}"><h5>{EventTitle}</h5></a>

What you want
<a href="{EventLink}"><h5>{EventTitle}</h5></a><br/>
{JFBCComments href={EventLink}}<br/>
Hope that helps get you going and makes sense as to why (so you can customize it further if you need). If not, let us know.

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

None
14 years 3 months ago #19090 by kiwi2b
Replied by kiwi2b on topic Comments url
Okay, much better. I have comment boxes attached to each autogenerated event, and if I put a comment in one box, it doesn't get copied to the others. And the formating of the links, page etc is retained. Excellent!

But, always a but ;) ...

I'm missing the moderator control. So if someone posts, it shows to everyone. How do I get the moderator control working? (It is showing for the comment boxes attached to the articles, not these events. Maybe it's because the events are using the plugin?)

Also, should I be using {JFBCComments href={EventLink}} or {JFBCComments href=http://www.website.com/events/events {EventLink} } ??

Thanks again.
The topic has been locked.
Support Specialist
14 years 3 months ago #19113 by alzander
Replied by alzander on topic Comments url
Glad to hear we're making progress :)

Your last question about what URL to use is likely the answer to all your questions. You should be using the 2nd link with the domain included. I think you don't even want the events/events part in there.. just http://www.website.com{EventsLink}

Test a few different things, but most importantanly, open the HTML of the page and look for fb:comments. Then, check that the URL specified there is correct. The articles will work even if the URL is wrong, but you want it to be right so that the link posted to Facebook actually brings the user to the right page.

Once that's done, the domain may make the moderation work. That's keyed off of the domain setup for your Application, and without a domain in the box, Facebook may be confused. If that's not the problem though, let us know. If it's working on articles, it should be pretty easy to get it working on the events as well. It's not that you're using the tag that's causing the problem.

Keep us posted on progress,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 3 months ago #19204 by kiwi2b
Replied by kiwi2b on topic Comments url
Okay, good and bad...

The moderation bar is showing fine. I think the browser and facebook was getting confused logging in as one account, then out, and in as another. Different browsers seems to have fixed this. So they are showing, great!

But now the comment is back to showing in all the comment boxes. Sigh! I think I didn't refresh properly last time. Before, it duplicated straight away, but now a refresh send the same comment to all the boxes. I've tried http://www.website.com{EventsLink} and www.website.com/events/event{EventsLink} , with the same result.

Looking at the source, I see just www.website.com or www.website.com/events/event being passed. So I don't think the {EventsLink} is doing anything as such. Further up in the source, the {EventsLink} is working and changing to www.website.com/events/event/17-absolut . But as part of {JFBCComments href={EventLink}} it's not noticing. So if it's that, how do we make it pay attention?? :P

What do you think?
The topic has been locked.
Support Specialist
14 years 3 months ago #19292 by alzander
Replied by alzander on topic Comments url
I'm not sure. Can you post or PM the URL of the page with this issue so we can check some things.

If the EventsLink isn't getting replaced in some places, that would seem very odd. Can you simply add the following code and see if the 'right' URL is printed to the screen, but not the comment box:
URL: {EventLink}
{JFBCComments href={EventLink}}<br/>
If it's not working just in the comment box, that's definitely a weird problem that needs to be fixed. If it's not showing the proper URL at all, that may be something that the event extension developer would have to look into.

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

None
14 years 3 months ago #19305 by kiwi2b
Replied by kiwi2b on topic Comments url
Hi there url sent.
Think I might have got it working! I added the below code, with spaces...
URL: {EventLink}<br />
{ JFBCComments href=http://www.website.com {EventLink} }<br/>
...then without...
URL: {EventLink}
{JFBCComments href=http://www.website.com{EventLink}}<br/>
...and it worked. Or maybe it's an intermittent problem? What do you think? The code is up and is working afaik. Go ahead and look when you can.
Thanks!
The topic has been locked.
Support Specialist
14 years 3 months ago #19340 by alzander
Replied by alzander on topic Comments url
Kiwi,
If you had the spaces in there, especially between the URL and the {EventLink}, that would have been the problem since that wouldn't have been a normal URL.

Either way, glad to hear it's working. Should you need anything else, just let us know.

Thanks,
Alex
The topic has been locked.