Hello,
I'm trying to declare the API of Twitter, but impossible to save it ... see screenshots.
Bests regards
Didier A.
I'm trying to declare the API of Twitter, but impossible to save it ... see screenshots.
Bests regards
Didier A.
blog/offre-globale/test-artcile-11.html
easyblog/offre-globale/test-artcile-11.html
Sh404sefHelperGeneral::getSefFromNonSef($nonSefUrl, $fullyQualified = true, $xhtml = false, $ssl = null)
index.php?option=com_easyblog&id=94&lang=fr&view=entry
index.php?option=com_easyblog&Itemid=148&id=94&lang=fr&view=entry
- I did not receive the emails of notification of publication of the article
- When I open the article on the website, it lacks all the other blocks in the slidebar on the right (see capture G), normally it should be (see capture H), but I found the bug!
$itemId = EBR::getItemId('latest');
$itemId = '&Itemid=' . $itemId;
$url = 'index.php?option=com_easyblog&view=entry&id=' . $post->id . $itemId;
$link = Sh404sefHelperGeneral::getSefFromNonSef($url, true, true);
Regarding this, I was unable to figure out even i pass menu item id with the blog non-sef URL into this function "getSefFromNonSef", it still unable to detect and get that URL which contain the menu item id (screenshot : http://take.ms/I6zAq ), maybe I missed something so unable to make it work.
To clarify what I said above, we do not "detect" the URL with an Itemid. We just record in the database the SEF URLs created for each non-sef URL passed to us by Joomla or other extensions. If multiple non-sef are transformed into the same SEF, they are duplicates and we record all of them in the order we received them. So the first one to be passed to us becomes the "main" URL.
Note : Regarding the id you have to use your site existing blog post ID
You can check this from backend blog listing page http://replaceYourDomainSite.com/administrator/index.php?option=com_easyblog&view=blogs
$url = 'index.php?option=com_easyblog&view=entry&id=48';
$tempURL = EBR::_($url, true, null, false, false, false);
$tempURL1 = str_ireplace('/administrator/', '/', $tempURL);
$tempURL2 = JRoute::_($tempURL1);
$final = Sh404sefHelperGeneral::getSefFromNonSef($tempURL2, true, true);
dump('here', $tempURL1, $tempURL2, $final);
http://replaceYourDomainSite.com/administrator/index.php?option=com_easyblog&view=blogs
string(4) "here"
string(57) "index.php?option=com_easyblog&view=entry&id=48&Itemid=129"
string(84) "/administrator/index.php?option=com_easyblog&view=entry&id=48&Itemid=129"
string(98) "http://eb5.com/administrator/index.php?option=com_easyblog&view=entry&id=48&Itemid=129"
Note : Regarding the id you have to use your site existing blog post ID
You can check this from backend blog listing page http://replaceYourDomainSite.com/administrator/index.php?option=com_easyblog&view=blogs
$url = 'index.php?option=com_easyblog&view=entry&id=48';
$tempURL = EBR::_($url, true, null, false, false, false);
$tempURL1 = str_ireplace('/administrator/', '/', $tempURL);
$tempURL2 = JRoute::_($tempURL1);
$final = Sh404sefHelperGeneral::getSefFromNonSef($tempURL2, true, true);
dump('here', $tempURL1, $tempURL2, $final);
http://replaceYourDomainSite.com/index.php?option=com_easyblog
string(4) "here"
string(57) "index.php?option=com_easyblog&view=entry&id=48&Itemid=129"
string(28) "/blog/48-final-test123123123"
string(42) "http://eb5.com/blog/48-final-test123123123"