1
philroy
Removing "New" button in download listings
  • 2004/1/1 22:56

  • philroy

  • Friend of XOOPS

  • Posts: 107

  • Since: 2003/8/23


Hi all,

I'm customising the download module (by altering template files) and turning it into a module that will allow school newsletters to be posted on a web site. I've got it all done, except the fact that a "New" button appears next to each file name when the files are listed on a page...I don't want it!

I can't figure out how to stop the "New" button appearing...which template file can I alter?

Cheers,

Phil

2
JackJ
Re: Removing "New" button in download listings
  • 2004/1/2 0:11

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


Hello Philroy

In modules/mydownloads/include/functions

Around line 32 :

function newdownloadgraphic($time, $status) {
$count = 7;
$new = '';
$startdate = (time()-(86400 * $count));
if ($startdate < $time) {
if($status==1){
$new = "&nbsp;<img src=\"".XOOPS_URL."/modules/mydownloads/images/newred.gif\" alt=\""._MD_NEWTHISWEEK."\" />";
}elseif($status==2){
$new = "&nbsp;<img src=\"".XOOPS_URL."/modules/mydownloads/images/update.gif\" alt=\""._MD_UPTHISWEEK."\" />";
}
}
return $new;
}

Perhaps just taking out the lines that refer to the "newred.gif" would do the job?

3
philroy
Re: Removing "New" button in download listings
  • 2004/1/2 1:16

  • philroy

  • Friend of XOOPS

  • Posts: 107

  • Since: 2003/8/23


Thanks for that. It didn't like me removing the whole function, but just commenting out the two lines that start with $new and refer to the gif images did the trick.

Thanks again. I'm all done locally now, ready to launch my first XOOPS site...yeehah!

Phil