Removing comment link from the homepage (AkoComment)

Note: This was written for Mambo 4.5.1a Stable and AkoComment 2.0

AkoComment gives your users the capability to post comments on content items. I personally use this on my website. AkoComment puts links to comments on the homepage. Unfortunately, this does not look visually appealing, most especially if you turned on Read More of Mambo.

  1. To remove the comment link from the homepage, open the file Mambo/mambots/content/akocommentbot.php in your favorite text editor.
     
  2. Go to the code near the bottom of the file, approximately at line 268.
     
  3. Comment-out some of the code, like so:

# If we are not on the content page
} #else {
# $replacementlink = ($ac_openingmode) ? "<a class="readon" href="javascript:void window.open('".sefRelToAbs("index2.php?option=com_content&task=view&id=$row->id&pop=1&page=0")."', 'win2', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no');">" : "<a class="readon" href='".sefRelToAbs("index.php?option=com_content&task=view&id=$row->id")."'>";
# if ($ac_mainmode == "0") {
# $row->text = str_replace( "{moscomment}", "<p><img src='$mosConfig_live_site/components/com_akocomment/images/comment.png' hspace='5' align='absmiddle'>$replacementlink"._AKOCOMMENT_WRITECOMMENT." ($total "._AKOCOMMENT_COMMENTS.")</a></p>", $row->text );
# } elseif (in_array ($row->sectionid, $seclistarray)) {
# $row->text = str_replace( "{moscomment}", "", $row->text );
# $row->text = $row->text."$replacementlink"._AKOCOMMENT_WRITECOMMENT." ($total "._AKOCOMMENT_COMMENTS.")</a>";
# }
# }


Comments

12 responses to “Removing comment link from the homepage (AkoComment)”

  1. very cool stuff, chette. kip up d gud wrk!

  2. thanks for this, it works now

  3. I clicked on Joomla tips but the header says Mambo tips.
    Are they the same or so similar that tips for one can be used for the other?

  4. stefano Avatar
    stefano

    :p 8) :grin ๐Ÿ˜‰ ๐Ÿ™‚ :roll :upset :eek :zzz :sigh ๐Ÿ˜• ๐Ÿ™ :cry ๐Ÿ˜ก

  5. For the tip

  6. not bad

  7. I\’m glad you guys liked this tip ๐Ÿ™‚

  8.  Avatar
    Anonymous

    how cool

  9. To remove the comment link from the homepage, open the file Mambo/mambots/content/akocommentbot.php in your favorite text editor.

    Go to the code near the bottom of the file, approximately at line 268.

  10. Great tip thanks! [URL=http://glitter-graphics.motime.com]Glitter Graphics[/URL]

  11. Yes joomla and mambo are the same

  12. Countless followers check out Kingโ€™s Cross station to take photographs of platforms 9 and 10 that the station management erected a sign that shows โ€œPlatform 9 ยพโ€

Leave a Reply

Your email address will not be published. Required fields are marked *