View previous topic :: View next topic |
Author |
Message |
dylandibona Guest
|
Posted: Wed Jan 30, 2002 12:33 am Post subject: Editing a post always changes the post year to 2001... |
|
|
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
|
Posted: Wed Jan 30, 2002 1:23 am Post subject: |
|
|
Which version of b2 are you using ? b2 v0.6 does not have that bug. |
|
Back to top |
|
 |
dylandibona
Joined: 30 Jan 2002 Posts: 3 Location: London
|
Posted: Wed Jan 30, 2002 3:36 pm Post subject: I upgraded and it still doesn't work... |
|
|
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 |
|
 |
michel v Site Admin
Joined: 25 Jan 2002 Posts: 799 Location: Corsica
|
Posted: Wed Jan 30, 2002 5:17 pm Post subject: |
|
|
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 |
|
 |
dylandibona
Joined: 30 Jan 2002 Posts: 3 Location: London
|
|
Back to top |
|
 |
michel v Site Admin
Joined: 25 Jan 2002 Posts: 799 Location: Corsica
|
Posted: Wed Jan 30, 2002 7:23 pm Post subject: |
|
|
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 |
|
 |
dylandibona
Joined: 30 Jan 2002 Posts: 3 Location: London
|
Posted: Wed Jan 30, 2002 8:03 pm Post subject: |
|
|
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 |
|
 |
michel v Site Admin
Joined: 25 Jan 2002 Posts: 799 Location: Corsica
|
Posted: Fri Feb 01, 2002 1:35 pm Post subject: |
|
|
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 |
|
 |
|