Select Page

Comments are no more working on my homepage

Comments are no more working on my homepage

This is not due to my plugin security images but more to openSEF, a very good SEF (Search Engine Friendly)/ SEO (Search Engine Optimisation) component for #Joomla/Mambo:

  • SEO are techniques and changes that are made to the content and code of a web site in order to increase its rankings in the results pages of search engines and directories. These changes may involve rewriting body copy, altering Title or Meta tags, removal of Frames or Flash content, and the seeking of incoming links.

which currently is not able to rewrite correctly URL of the component akocomment (and akobook as well). This is very frustrating for me and for You as well (As I have received many emails on this). I will have t write an extensions this week end to solve this issue.

I’ve solved the issue with openSEF by promptly deactivating it when the user submit a for from akocomment or akobook. All You have to do is siimply edit the file /component/com_sef/sef.php

(Line 26)
$sefEnabled = (file_exists( $sefConfigFile ) && filesize( $sefConfigFile ) > 0);
if ($sefEnabled && $_SERVER[‘REQUEST_METHOD’] == ‘POST’ && !empty( $_POST[‘option’] ))
  $sefEnabled = !($_POST[‘option’] == ‘login’ || $_POST[‘option’] == ‘login’ || $_POST[‘option’] == ‘com_phpshop’);

$sefEnabled = (file_exists( $sefConfigFile ) && filesize( $sefConfigFile ) > 0);
if ($sefEnabled && $_SERVER[‘REQUEST_METHOD’] == ‘POST’ && !empty( $_POST[‘option’] ))
  $sefEnabled = !($_POST[‘option’] == ‘login’ || $_POST[‘option’] == ‘login’ || $_POST[‘option’] == ‘com_phpshop’) || $_POST[‘option’] == ‘com_akocomment’ || $_POST[‘option’] == ‘com_akobook’);

This is of course a hack and not a correct solution, akocomment URL won’t be SEO friendly ! I Will have to inverst more time to write a custom extension for OpenSEF….

About The Author

Cédric Walter

I worked with various Insurances companies across Switzerland on online applications handling billion premium volumes. I love to continuously spark my creativity in many different and challenging open-source projects fueled by my great passion for innovation and blockchain technology.In my technical role as a senior software engineer and Blockchain consultant, I help to define and implement innovative solutions in the scope of both blockchain and traditional products, solutions, and services. I can support the full spectrum of software development activities, starting from analyzing ideas and business cases and up to the production deployment of the solutions.I'm the Founder and CEO of Disruptr GmbH.