Welcome to Geeklog, Anonymous Thursday, February 06 2025 @ 07:46 pm EST
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 Smile](https://www.geeklog.net/forum/image_set/pixel.gif)
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
![Smile Smile](https://www.geeklog.net/forum/image_set/pixel.gif)
Janna
http://www.weyrcat.com/blog
11
9
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++ )
7
10
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
7
7
Quote
weyrcat@gmail.com
Anonymous
![happy happy](https://www.geeklog.net/forum/image_set/moods/happy.gif)
Thank you! That was exactly what I needed!
:shakehands:
:shakehands:
5
6
Quote
All times are EST. The time is now 07:46 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