Home arrow Forum

Remository Forum

 


carlos1968

Karma: 0  
Problem Submitdate - 2010/08/15 17:24 Hello,

I using Remo 3.52.8.1 and get always the Problem afther saving in Backend the submitdate changing to the aktuell date.

I find already the function like this $this->updateObjectDB(); in remositoryFile.php.

I think i can change inside this function that a existing submitdate not overwrite anymore.

Only my Problem is i cant find the Function updateObjectDB. On which Remo php i need to look for it ?

Anyone know about this ?
Regards Carlos
  | | Sorry, you do not currently have permission to write here.
carlos1968

Karma: 0  
Re:Problem Submitdate - 2010/08/15 18:40 I find it already now.

Here is the Part need to change, looks like a Bug i dont know.

remository.class

Code:

 [/coforeach (get_class_vars(get_class($this)) as $field=>$value) {             if (!in_array($field,$exclude)) {                 $data is_numeric($this->$field) ? $this->$field $interface->getEscaped($this->$field);                         // Timestamp Feld auf Inhalt prüfen falls Null dann Datum einfügen                          if ($this->timeStampField()==$field AND $data<1) $data= date('Y-m-d H:i:s');                  $item[] = $field."='".$data."'";             }         }         if (isset($item))  {             $sql .= implode (', ', $item);         }         return $sql.' WHERE  id='.$this->id; de] 



With this code the Submitdate will only change if there no Data submitted.

Post edited by: carlos1968, at: 2010/08/15 18:42
  | | Sorry, you do not currently have permission to write here.
chrissy6930

Karma: 27  
Re:Problem Submitdate - 2010/08/16 06:07 the submitdate is set up to indicate the 'last modified date' thus its doing exactly what it should : it is adjusted whenever file details, thumbs or downloadable file are modified

filedate instead is only updated when the downloadable local file is modified
  | | Sorry, you do not currently have permission to write here.
carlos1968

Karma: 0  
Re:Problem Submitdate - 2010/08/17 16:36 chrissy6930 wrote:
the submitdate is set up to indicate the 'last modified date' thus its doing exactly what it should : it is adjusted whenever file details, thumbs or downloadable file are modified

filedate instead is only updated when the downloadable local file is modified


Thanks a lot, i dont know this. So i will change back the Submitdate to LasteditDate. Iam wondering why Publish Date is not using, just i find the Variables there.
Is there any Function already exist ? So i can put it to the Admin Area ?

Regards Carlos
  | | Sorry, you do not currently have permission to write here.
chrissy6930

Karma: 27  
Re:Problem Submitdate - 2010/08/17 16:56 publish_from is only set up for use on the admin side but not for being displayed on the user side so far
  | | Sorry, you do not currently have permission to write here.
carlos1968

Karma: 0  
Re:Problem Submitdate - 2010/08/18 03:42 chrissy6930 wrote:
publish_from is only set up for use on the admin side but not for being displayed on the user side so far

Sorry i mean not publish_from, what i mean is the Function to entry the publishdate.
I find in the Database for evera File a Variables call publishdate.
I want to use it later in the Frontend.
Just in the Admin area is no function for this.

I think this will be more better for the User if the know what day here File is publish.
Hope can find the function for this, my php is not realy good to create self.
  | | Sorry, you do not currently have permission to write here.
chrissy6930

Karma: 27  
Re:Problem Submitdate - 2010/08/18 04:23 publish_date is not implemented yet
  | | Sorry, you do not currently have permission to write here.
carlos1968

Karma: 0  
Re:Problem Submitdate - 2010/08/18 14:51 I implemented it already in the Admin File Edit Sektion, its working great.
I can now set in Form Field Publish-Date and save it.
In the Frontend i can read this Date and show it to User.

For the perfect way i realy need the function to set the Date automatic afther
publish.

How i write the php Function the set the publish-date in the Database, please ?

Regards Carlos
  | | Sorry, you do not currently have permission to write here.
admin

Karma: 98  
Re:Problem Submitdate - 2010/08/22 16:50 I will change that in the next version of Remository.

I think you can achieve what you want by adding to the constructor in remositoryFile an extra line:

Code:

         $this->publish_from date('Y-m-d H:i:s');

Martin Brampton aka Counterpoint
http://aliro.org
http://black-sheep-research.com
  | | Sorry, you do not currently have permission to write here.
carlos1968

Karma: 0  
Re:Problem Submitdate - 2010/09/01 06:59 Perfect thanks a lot, now its working excatly what i need. filedate = show now the Submitdate, submitdate = show now last edit date and publishdate works fine also.

Regards Carlos
  | | 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 7 guest online