Please login or register.

Login with username, password and session length
Advanced search  

News:

You need/want an older version of sNews ? Download an older/unsupported version here.

Author Topic: [SOLVED] article's date before this year  (Read 2536 times)

Harold

  • Full Member
  • ***
  • Karma: 0
  • Posts: 110
    • http://blog.haroldbeukers.nl/
[SOLVED] article's date before this year
« on: August 12, 2008, 07:26:00 PM »

I want to make a post with the year :2007

how do i change the code in // ARTICLES - POSTING TIME? (line 1077)
Code: [Select]
echo '</select>'.l('year').':<select name="fposting_year">';
$thisYear = !empty($time) ? substr($time, 0, 4) : intval(date('Y'));
for($i = $thisYear; $i < $thisYear + 3; $i++) {
echo '<option value="'.$i.'"';
if($i == $thisYear) {echo ' selected="selected"';}
echo '>'.$i.'</option>';
there is a solution on: http://snewscms.com/forum/index.php?topic=2522.0
but i cant read it/dont understand.

I'm using Developers version: 1.5.30 Stable (Dont panic: its hidden in a protected map:)

« Last Edit: August 13, 2008, 08:13:44 PM by Harold »
Logged
E=Fb

Keyrocks

  • Doug
  • ULTIMATE member
  • ******
  • Karma: 449
  • Posts: 6019
  • Semantically Challenged
    • snews.ca
Re: article's date before this year
« Reply #1 on: August 12, 2008, 08:19:48 PM »

I want to make a post with the year :2007
- - - how do i change the code in // ARTICLES - POSTING TIME? (line 1077)
- - - there is a solution here - but i cant read it/dont understand.
- - - I'm using Developers version: 1.5.30 Stable (Dont panic: its hidden in a protected map:)

No problem. You could not understand it because the code blocks were not rendered properly. This was a problem caused to many posts when the database was transferred from our old Forums system at solucija.com to this one... last August or so. Once I went there... opened to "modify" and re-saved it (without editing) (that's all it takes to fix them) it now renders fine.

Now... go back and have a look and you should find it easy to understand.  ;)
« Last Edit: August 12, 2008, 08:22:05 PM by Keyrocks »
Logged
Do it now... later may not come.
-------------------------------------------------------------------------------------------------
sNews 1.6 MESU | sNews 1.6 MEMU

Harold

  • Full Member
  • ***
  • Karma: 0
  • Posts: 110
    • http://blog.haroldbeukers.nl/
Re: article's date before this year
« Reply #2 on: August 12, 2008, 09:14:30 PM »

Thanks!   :)
Logged
E=Fb