Home arrow Forum

Remository Forum

 


ashara

Karma: 0  
Sort by date - newest first - 2007/05/27 09:57 Hi there!

Thanks at first fo this great component!
I love it!

Is it possible to sort the downloads by date with the newest download first? At the moment I changed the "order by" in RemositoryFile.php to 4 in line 629 and 631 without effect.

Thanks in advance for any hint!

Version: Remository 3.42 beta

Post edited by: ashara, at: 2007/05/27 09:45
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 78  
Re:Sort by date - newest first - 2007/06/01 12:22 I think you have to change line 44 of remository_select_Controller.php, fifth parameter. Can't remember for sure! Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
ashara

Karma: 0  
Re:Sort by date - newest first - 2007/06/01 23:03 I guess you think of this part, don't you?

Code:

 if ($this->idparm AND $container->areFilesVisible($this->remUser)) $files $container->getFiles(!$this->remUser->isAdmin(), $this->orderbynull$pagecontrol->startItem(), $pagecontrol->itemsperpage);



Would you be so kind to tell what I have to change?
If I change "null" into "4", my downloads disappear completly...
  | | Sorry, you do not currently have permission to write here.
KleenMicha

Karma: 3  
Re:Sort by date - newest first - 2007/06/02 23:19 You only have to change:
Code:

 $this->orderby

with
Code:

 4

.

That's all.

You have change the part that is searching for. That means, if you insert there a name of an file, you'll get it on your filelist.

But it would be a nice feature for the future if this could be set in the backend.

Post edited by: KleenMicha, at: 2007/06/02 22:26
  | | Sorry, you do not currently have permission to write here.
ashara

Karma: 0  
Re:Sort by date - newest first - 2007/06/03 06:22 Juchu! It works!
Thanks a lot!

Just the other sort settings on the website doesn't work anymore. I think I'll delete them
  | | Sorry, you do not currently have permission to write here.
ashara

Karma: 0  
Re:Sort by date - newest first - 2007/06/03 06:52 more easily said than done...
I get one error message after the other...
  | | Sorry, you do not currently have permission to write here.
KleenMicha

Karma: 3  
Re:Sort by date - newest first - 2007/06/03 15:09 Replace the complete line with the following code:
Code:

 if ($this->idparm AND $container->areFilesVisible($this->remUser)) $files $container->getFiles(!$this->remUser->isAdmin(), 4null$pagecontrol->startItem(), $pagecontrol->itemsperpage);



Then it should be work fine.
  | | Sorry, you do not currently have permission to write here.

Personal Messages

You are not logged in.

Login

Subscribe to Premium Support

Get priority support for Remository and Glossary, sign up now for a Premium Support monthly subscription:

Your Remository user name

Or purchase a year's support:

Your Remository user name

Who is Online

Remository welcomes guests and visitors

We have 5 guest online