Welcome to Geeklog, Anonymous Friday, July 11 2025 @ 06:22 pm EDT
Geeklog Forums
WANTED: Post Date Hack will pay
Status: offline
Forum User
Chatty
Registered: 07/24/04
Posts: 63

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
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
21
23
Quote
Status: offline
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:
to
That should work in 1.3.11 and 1.4.0.
Text Formatted Code
for( $i = $start_year - 1; $i <= $cur_year + 5; $i++ )Text Formatted Code
for( $i = 2000; $i <= $cur_year + 5; $i++ )
18
21
Quote
Status: offline
Forum User
Chatty
Registered: 07/24/04
Posts: 63
Thank you so much! I must have looked at that six times without seeing that line. Code + lack of sleep = duhhhhhhrrrr
Thanks again,
Jason
Thanks again,
Jason
21
19
Quote
All times are EDT. The time is now 06:22 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