Re: Phoca Facebook Comments with Phoca Gallery
Posted: 25 Jan 2011, 17:16
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)
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)