Home arrow Forum

Remository Forum

 


Liath

Karma: 0  
how to change fileauthor to username - 2008/11/27 14:45 hi

i want to change the fileauthor from name to username

i´ve searched all files but found nothing that can solve this problem

pls help me =)

ps: thx for this great joomla component

Post edited by: Liath, at: 2008/11/27 14:45

Post edited by: Liath, at: 2008/11/27 14:50
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 101  
Re:how to change fileauthor to username - 2008/11/27 17:40 Have a look in com_remository/c-classes/remository_addfile_Controller.php. You'll find the main part of the code is:

Code:

      function addfile($func) {         $file = new remositoryFile();         $file->fileversion $this->repository->Default_Version;         $file->filedate date('Y-m-d H:i:s'time());         $file->fileauthor $this->remUser->fullname();         $file->autoshort 1;         if ($this->idparm) {             $container = new remositoryContainer($this->idparm);             $clist $container->getPartialSelectList('containerid''class="inputbox"'$this->remUser);         }         else $clist $this->repository->getSelectList(false0'containerid''class="inputbox"'$this->remUsertrue);         require_once ($this->admin->v_classes_path.'remositoryAddFileHTML.php');         $view = new remositoryAddFileHTML($this);         $view->addfileHTML($clist$file);     }



Look for where the file's fileauthor field is set, and change the value from $this->remUser->fullname() to $this->remUser->username.
Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
Liath

Karma: 0  
Re:how to change fileauthor to username - 2008/11/27 22:13 thx for answer...

but when i change this line, the Fileauthor field is now empty
  | | Sorry, you do not currently have permission to write here.
chrissy6930

Karma: 27  
Re:how to change fileauthor to username - 2008/11/28 11:12 any chance this is because there is only a var $fullname and a function fullname in remositoryUser but a variable/ function username is not being defined ?
  | | Sorry, you do not currently have permission to write here.
Liath

Karma: 0  
Re:how to change fileauthor to username - 2008/11/28 11:35 i´ve solved it...

i have do changes back and set in
components/com_remository/p-classes/remositoryUser.php

the part: $this->fullname = $my->name;

to: $this->fullname = $my->username;
  | | Sorry, you do not currently have permission to write here.

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

Recommended SEF

SEF Advance

Who is Online

Remository welcomes guests and visitors

We have 10 guest online