boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Editing a post always changes the post year to 2001...

 
Post new topic   Reply to topic    boardom Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
dylandibona
Guest





PostPosted: Wed Jan 30, 2002 12:33 am    Post subject: Editing a post always changes the post year to 2001... Reply with quote

Everytime I go to edit an old post, it changes the year from 2002 to 2001. The edit screen doesn't give me the option to select a different year (only 2001 is available in the drop down).

Please help.

thanks.
Back to top
michel v
Site Admin


Joined: 25 Jan 2002
Posts: 799
Location: Corsica

PostPosted: Wed Jan 30, 2002 1:23 am    Post subject: Reply with quote

Which version of b2 are you using ? b2 v0.6 does not have that bug.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
dylandibona



Joined: 30 Jan 2002
Posts: 3
Location: London

PostPosted: Wed Jan 30, 2002 3:36 pm    Post subject: I upgraded and it still doesn't work... Reply with quote

I just downloaded v.6 and installed it according to the upgrade instructions in the ReadMe file and it still doesn't work. Every time I go to edit a post, it still only gives me the year 2001 to choose from. Is there another file or setting that I need to change/upgrade?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
michel v
Site Admin


Joined: 25 Jan 2002
Posts: 799
Location: Corsica

PostPosted: Wed Jan 30, 2002 5:17 pm    Post subject: Reply with quote

Make a new file, for example whatever.php and put this code :
Code:
<?php
   echo "<select name=\"aa\">\n";
   for ($i=1999;$i < (date("Y")+2);$i++) {
      echo "<option value=\"$i\"";
      if ($i==date("Y")) { echo " selected"; }
      echo ">$i</option>\n";
   }
   echo "</select>\n";
?>

Save, upload, and give me the URL to it. There can be something wrong on your server, which is why I'm making sure with this little script.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
dylandibona



Joined: 30 Jan 2002
Posts: 3
Location: London

PostPosted: Wed Jan 30, 2002 5:25 pm    Post subject: ok - i posted it Reply with quote

http://www.sweeptheleg.com/b2/test.php

but, it's producing a php error...
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
michel v
Site Admin


Joined: 25 Jan 2002
Posts: 799
Location: Corsica

PostPosted: Wed Jan 30, 2002 7:23 pm    Post subject: Reply with quote

Are you sure ? I just copied the code from the thread (in case the board would have damaged the code), and it worked, gave me a dropdown box with years from 1999 to 2003.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
dylandibona



Joined: 30 Jan 2002
Posts: 3
Location: London

PostPosted: Wed Jan 30, 2002 8:03 pm    Post subject: Reply with quote

Ok, so the little script works. I get a pulldown with a whole bunch of years. But my B2 edit page is still not working. What do I do?
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
michel v
Site Admin


Joined: 25 Jan 2002
Posts: 799
Location: Corsica

PostPosted: Fri Feb 01, 2002 1:35 pm    Post subject: Reply with quote

I'm not sure how that problem can happen, really... because the code I gave you is the code that produces the dropdown box in b2's edit page; so it should have worked.
I'll register on your blog and check that bug, if you don't mind. I need more details...
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Bugs All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group