Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 06:51 pm EST
Geeklog Forums
How can I put articles from 2002?
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Cheating on your users, eh? Tsk, tsk, tsk ... ;-)
You will need to hack function COM_getYearFormOptions() in lib-common.php. I haven't tested it, but just changing
$start_year = $cur_year;
to
$start_year = $cur_year - 1;
should do it.
bye, Dirk
9
13
Quote
Status: offline
rv8
Forum User
Regular Poster
Registered: 10/10/02
Posts: 105
Location:Ottawa, Canada
I had the same problem when I moved my site to GL. I needed to move several years worth of content over. I simply modded that line in lib-common.php to hard code the year. E.g.
$start_year = 2002;
I think it makes sense to make the start_year a variable defined in config.php. The default can be $cur_year, but the user could enter a hard coded year if required. I'll make a feature request for this, once I figure out where to make them.---Kevin
Kevin Horton
Kevin Horton
10
12
Quote
Status: offline
jgacka
Forum User
Chatty
Registered: 09/12/02
Posts: 36
no, i don't try to cheat them
We are working for some prtals and we can put our newses written to them in our service too
there was no time to put them during the holiday period
so we try to complete our stuff now
Happy New Year for all
J.
11
13
Quote
All times are EST. The time is now 06:51 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