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 = " \""._MD_NEWTHISWEEK."\"";
}elseif($status==2){
$new = " \""._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

Login

Who's Online

95 user(s) are online (58 user(s) are browsing Support Forums)


Members: 0


Guests: 95


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits