View Full Version : removing the "Full Story" and "Print" buttons
takeprofits@yahoo.com
05-24-2005, 09:18 PM
Hello, I was wondering if it's possible to remove the "full story" and "Print" buttons listed under "featured" articles on the main page. They seem redundant, since people can click on a the title to be taken to the main page.
Along those same lines, is it possible to remove the "»" icon before the title?
"» Grand Bahama Island : Turquoise Waters, Breathtaking Beaches and Championship Golf"
And the stuff that appears under the title?
"By John Torsiello | Published 02/17/2005 | Pub Links Preferred | Unrated"
Thank you, Miguel
Chris S
05-25-2005, 01:56 AM
Hi Miguel,
Sure. It's a code change but it's easily done.
The 'full story' and 'print' buttons are there because not everyone will realise you can click on the title.
In the templates/template_name/Panels/FeaturedArticlesPanel.php line 58 is:
$output .= "<span class=\"Title\" style=\"width:100%\">»";
Remove the '»' from the end and you'll be right.
To remove the parts underneath, you'll need to jump to around line 89-105 and take out the placeholders / parts you need...
Hello, I was wondering if it's possible to remove the "full story" and "Print" buttons listed under "featured" articles on the main page. They seem redundant, since people can click on a the title to be taken to the main page.
Along those same lines, is it possible to remove the "»" icon before the title?
"» Grand Bahama Island : Turquoise Waters, Breathtaking Beaches and Championship Golf"
And the stuff that appears under the title?
"By John Torsiello | Published 02/17/2005 | Pub Links Preferred | Unrated"
Thank you, Miguel
dennytang
07-24-2005, 02:53 AM
To remove the Full Story link, locate the following code and comment it out (add /* to the beginning of the code and */ to the end of the code).
$output .= sprintf("
<a target='%s' href='%s'><img src='%s/icon_FullStory.gif' border=0 align=absmiddle> %s</a>
", $target, AL_HELPER::ArticleLink($articleRow["ArticleID"], $articleRow["Title"]), AL_TPL_IMAGE_PATH, $GLOBALS["AL_LANG"]["hpFullStory"]);
To remove the Print Story link, locate the following code and comment it out (add /* to the beginning of the code and */ to the end of the code).
$output .= sprintf("
<a target=_blank href='%s/print/%d'>
<img src='%s/icon_Print.gif' border=0 align=absmiddle> %s</a>
", AL_HELPER::ArticleLink($articleRow["ArticleID"], $articleRow["Title"]), $articleRow["ArticleID"], AL_TPL_IMAGE_PATH, $GLOBALS["AL_LANG"]["hpPrinterVersion"]);