Welcome to Geeklog, Anonymous Thursday, April 18 2024 @ 02:59 pm EDT

Geeklog Forums

WANTED: Post Date Hack will pay


Status: offline

jhackwith

Forum User
Chatty
Registered: 07/24/04
Posts: 63
Location:Lewiston, Idaho
unfocused
I'll be happy to pay someone for this information if necessary.

What I'm looking for is a way to change the default list of years that are available in the drop-down menu on the Submit form.

I've been blogging for 5+ years, and I have posts from as far back as 2001 that I would like to post to my current blog running in Geeklog. Right now, when I post a story I can only select between 2005 and 2011 as the year. I'd like to be able to add earlier years to those posts so that my current blog can be accurate as to date and time of the actual post.

I'm more of a designer than a developer, and I'm sure I've looked at the relevant code at least six times now but I just can't seem to find it.

Thanks in advance,
Jason
"Beauty... is the shadow of God on the universe." ~ Gabriela Mistral -- Desolacíon
 Quote

Status: offline

jmucchiello

Forum User
Full Member
Registered: 08/29/05
Posts: 985
In public_html/lib-common.php, find the function COM_getYearFormOptions and change the line:
Text Formatted Code
    for( $i = $start_year - 1; $i <= $cur_year + 5; $i++ )
 
to
Text Formatted Code
    for( $i = 2000; $i <= $cur_year + 5; $i++ )
 
That should work in 1.3.11 and 1.4.0.
 Quote

Status: offline

jhackwith

Forum User
Chatty
Registered: 07/24/04
Posts: 63
Location:Lewiston, Idaho
Thank you so much! I must have looked at that six times without seeing that line. Code + lack of sleep = duhhhhhhrrrr

Thanks again,
Jason
"Beauty... is the shadow of God on the universe." ~ Gabriela Mistral -- Desolacíon
 Quote

All times are EDT. The time is now 02:59 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