|
Joined: Feb 2002
Posts: 1,759
Addict
|
Addict
Joined: Feb 2002
Posts: 1,759 |
After the update I can't edit posts. I can click edit and go in and type up my changes, but when I push the "change this post" button it takes me to a blank screen. I had the same problem on this site when I wanted to edit a post, then all of a sudden it worked. Hrmmm [EDIT]Practicing an edit...[/EDIT]
Last edited by msula; 07/01/2002 11:29 AM.
|
|
|
|
Joined: Feb 2002
Posts: 1,759
Addict
|
Addict
Joined: Feb 2002
Posts: 1,759 |
Ok, on this site when I edit a post the top most "change this post" button gives me a blank page, while the same button further down works fine. On my site neither button works.
|
|
|
|
Joined: May 1999
Posts: 149
Enthusiast
|
Enthusiast
Joined: May 1999
Posts: 149 |
And just to confuse things even more, on my site the top button works but the bottom one gives me a blank screen. Max
|
|
|
|
Joined: Feb 2002
Posts: 1,759
Addict
|
Addict
Joined: Feb 2002
Posts: 1,759 |
posted by Max Fisch: And just to confuse things even more, on my site the top button works but the bottom one gives me a blank screen. Max
That's what mine used to do, but hard telling after adding various hacks now both buttons don't work, lol
|
|
|
|
Joined: Mar 2000
Posts: 84
Member
|
Member
Joined: Mar 2000
Posts: 84 |
I too was having this problem. The "EDIT MORE" section would yield a blank screen. I am proud of myself. I tracked down and solved this bug on my own 6.0.2 install. In previewedit.php on line 61: code: if ($peditchange) {
It must be changed to: code: if ($ubbt_lang['PEDIT_CHANGE']) {
This allows the variable that the 'edit more' screen is passing to the previewedit.php script to be properly recognized. Now I get no more blank screens, and the entire process works flawlessly now. Hope this helps someone!
Last edited by Shalazar; 07/12/2002 2:27 AM.
|
|
|
|
Joined: Mar 2002
Posts: 305
Enthusiast
|
Enthusiast
Joined: Mar 2002
Posts: 305 |
posted by Shalazar: Now I get no more blank screens, and the entire process works flawlessly now.
I made the change you posted above, and yes, it did solve the problem of the blank preview screen.  However, it also made it so that users couldn't delete messages. If a user clicks on "Delete this message", they are taken to a preview edit screen. The only way for the post to be deleted is by a mod or admin deleting it using "Delete this post and any replies".
[:"red"]Lisa[/]
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
Addict
Joined: Dec 2000
Posts: 1,471 |
I consider that either editpost_nopoll.tmpl,editpost.php or modifypost.php wasn't updated correctly from 6.01 to 6.02.
Please check if you missed something there. The form handling has changed to it won't work if you use older files. I checked it on my test-board and it works without problems.
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
heheh.. I'll update the posting pages to reflect the differences... edit: should be updated now
Last edited by AllenAyres; 07/12/2002 11:45 AM.
|
|
|
|
Joined: May 1999
Posts: 3,039
Guru
|
Guru
Joined: May 1999
Posts: 3,039 |
Yeah, it sounds like not all files were updated. previewedit.php could be the culprit as well.
UBB.threads Developer
|
|
|
|
Joined: Jan 2002
Posts: 218
Enthusiast
|
Enthusiast
Joined: Jan 2002
Posts: 218 |
Allen:
What did you change?
I'm having the same problem on my board and I've gone through and done a line-by-line comparrison of all of the files and I haven't missed anything, yet I still get the problem.
|
|
|
|
Joined: Mar 2000
Posts: 84
Member
|
Member
Joined: Mar 2000
Posts: 84 |
Okay, the complete fix is a little more complicated. There are a couple differences between what the templates are passing to the scripts, and what the scripts are looking for. But I now have a fix that allows endless editing and modification, as well as fixes the delete function that I broke. Previewedit.php Line 61: code: if ($peditchange)
to: code: if (($peditchange == $ubbt_lang['PEDIT_CHANGE'])||($option == $ubbt_lang['PEDIT_CHANGE'])) {
Why is this change necessary? In the editpost screen, the script passes a variable called 'peditchange'. However, the modification screen passes a variable called 'option.' They both carry the same string "Change+This+Post" from the language file. This fix allows both edit functions to properly call the edit function in the script. The delete function also needs repair. Line 140: code: elseif ($peditdelete)
to this: code: elseif ($peditdelete == $ubbt_lang['PEDIT_DELETE'])
Hope this helps!!! And thanks for being so quick to let me know I had broken it hehe
|
|
|
|
Joined: Jun 2002
Posts: 375
Enthusiast
|
Enthusiast
Joined: Jun 2002
Posts: 375 |
My 6.0.2 edits posts just fine from what I have seen. I upgraded from 6.0.1 and just replaced the files listed as changed...
|
|
|
|
Joined: Jan 2002
Posts: 218
Enthusiast
|
Enthusiast
Joined: Jan 2002
Posts: 218 |
That worked great for me Shalazar!
I'm able to edit posts and delete them. Nice going with the fix!
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 449
Joined: February 2008
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|