Welcome to Geeklog, Anonymous Monday, April 21 2025 @ 08:57 pm 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
Janna
http://www.weyrcat.com/blog
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

Janna
http://www.weyrcat.com/blog
11
10
Quote
Status: offline
jmucchiello
Forum User
Full Member
Registered: 08/29/05
Posts: 985
Search for COM_getYearFormOptions in lib-common.php and change
the $start_year - 1 to $start_year - 8 or 2000 or whatever you need.
Text Formatted Code
for( $i = $start_year - 1; $i <= $cur_year + 5; $i++ )
9
12
Quote
ironmax
Anonymous
Quote by: jmucchiello the $start_year - 1 to $start_year - 8 or 2000 or whatever you need.
Search for COM_getYearFormOptions in lib-common.php and change
Text Formatted Code
for( $i = $start_year - 1; $i <= $cur_year + 5; $i++ )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
9
9
Quote
weyrcat@gmail.com
Anonymous

Thank you! That was exactly what I needed!
:shakehands:
:shakehands:
7
8
Quote
All times are EDT. The time is now 08:57 pm.
- 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