Welcome to Geeklog, Anonymous Thursday, April 25 2024 @ 11:14 am EDT

Geeklog Forums

Backdating Stories


WeyrCat @ gmail.com

Anonymous
I apologize if this has been addressed, but I cannot find the code to make it work:

I am trying to edit the lib_common.php or the admin/story.php to allow a story to be backdated. I currently can only backdate to 2006, and need as far back as 2001 at least. (Moving old blogs to this wonderful Geeklog). I found a snippet to backdate Calender events, but it doesn't apply to stories

the
$start_year = 1999;
I found in the events thread doesn't apply to the lib_common or story.php, AS they don't have a
for( $i = $start_year; $i <= $cur_year + 5; $i++ )

In fact I cant find how the cur date is chosen in either of those pages >.<


Help Plex Smile

Janna
http://www.weyrcat.com/blog
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
Search for COM_getYearFormOptions in lib-common.php and change
Text Formatted Code
    for( $i = $start_year - 1; $i <= $cur_year + 5; $i++ )
the $start_year - 1 to $start_year - 8 or 2000 or whatever you need.
 Quote

ironmax

Anonymous
Quote by: jmucchiello

Search for COM_getYearFormOptions in lib-common.php and change

Text Formatted Code
    for( $i = $start_year - 1; $i <= $cur_year + 5; $i++ )
the $start_year - 1 to $start_year - 8 or 2000 or whatever you need.



To clarify this, inputting a number like 20 will allow you to go back 20 yrs from the current year. So todays year of 2007, putting 20 before this will set the start year to 1987.
Text Formatted Code

 for( $i = $start_year - 20; $i <= $cur_year + 5; $i++ )
 


Michael
 Quote

weyrcat@gmail.com

Anonymous
happy
Thank you! That was exactly what I needed!
:shakehands:
 Quote

All times are EDT. The time is now 11:14 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content