Welcome to Geeklog Monday, November 20 2017 @ 10:25 am EST


Tom Terry

Anonymous
I have recently moved my old blogspot site to Geeklog but have one problem. As I move my articles over the Geeklog I cannot post anything with a date prior to 2016. But I have several years of articles with earlier dates I need to post. Is there a work-around or code edit that I can do to allow for additional years in the date for posts?

Tom Terry

Status: offline

Laugh

Site Admin
Admin
Registered: 27/09/2005
Posts: 1240
Good question. You can edit the code in lib-common.php around line 5748

PHP Formatted Code
function COM_getYearFormOptions($selected = '', $startOffset = -1, $endOffset = 5)


Change the startoffset value to -10 to be able to go back 10 years.

Like this

PHP Formatted Code
function COM_getYearFormOptions($selected = '', $startOffset = -10, $endOffset = 5)

One of the Geeklog Core Developers.

Tom Terry

Anonymous
Thanks much!

Tom

All times are EST. The time is now 10:25 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