Hi,
2) This is why this was changed:
//$option = JRequest::getVar('option', '');
//$view = JRequest::getVar('view', '');
//$xid = md5(JURI::base() . $option . $view) . 'pfc';
$uri = &JFactory::getURI();
$xid = md5('pfc'.$uri->toString());
then you get allways the right Uri $uri = &JFactory::getURI(); (until administrator will not change e.g. SEF method - but in such case all links to site will change). You don't need to care about the link, e.g.:
https://www.phoca.cz/demo/facebook-comments?start=5
https://www.phoca.cz/demo/facebook-comments
you allway get the displaying of the comments and in facebook you have a link to main site (I think, it is not possible to check all possible parameters which can the site get , so link to main site is the best solution, maybe ??
The link still goes to right site, the XID is only to be sure, every different site get different id.
3) yes, this can be used (I hope I will be able to test it soon)
Phoca Facebook Comments with Phoca Gallery
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Facebook Comments with Phoca Gallery
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 23 Jan 2010, 05:22
Re: Phoca Facebook Comments with Phoca Gallery
My apologies for raising an old article from the dead. I wanted to check in for a possible solution to a problem I'm encountering with Phoca Gallery 2.8.0. I've already searched the forum for answers but only found questions. I'm running Joomla 1.5.25.
While I haven't performed a thorough debugging and exhausted all resources on determining if SEF is the cause, I have a fairly good feeling it's what's causing my problems. Similar to others (viewtopic.php?f=32&t=13079), I'll (or someone else will) post a comment and it will disappear after a page refresh. I applied the Facebook Comments App ID while SEF was enabled, so there wasn't an issue of links changing. I simply feel there's an issue between my Facebook Comments plugin and Joomla's SEF. As such, I was wondering if anything in this thread may resolve my problem or if there's already a known fix I'm not aware of?
Thank you for your help.
While I haven't performed a thorough debugging and exhausted all resources on determining if SEF is the cause, I have a fairly good feeling it's what's causing my problems. Similar to others (viewtopic.php?f=32&t=13079), I'll (or someone else will) post a comment and it will disappear after a page refresh. I applied the Facebook Comments App ID while SEF was enabled, so there wasn't an issue of links changing. I simply feel there's an issue between my Facebook Comments plugin and Joomla's SEF. As such, I was wondering if anything in this thread may resolve my problem or if there's already a known fix I'm not aware of?
Thank you for your help.