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.
- 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.
- 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>";
# }
# }
very cool stuff, chette. kip up d gud wrk!
thanks for this, it works now
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?
:p 8) :grin ;) :) :roll :upset :eek :zzz :sigh :? :( :cry :x
For the tip
not bad
I\’m glad you guys liked this tip :)
how cool
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.
Great tip thanks! [URL=http://glitter-graphics.motime.com]Glitter Graphics[/URL]
Yes joomla and mambo are the same
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 ¾”