Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
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.
Sponsored Links
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
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
Offline
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
Offline
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

palmen #220299 07/12/2002 2:26 AM
Joined: Mar 2000
Posts: 84
Member
Member
Offline
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.
Sponsored Links
G5 #220300 07/12/2002 3:05 AM
Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
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
Offline
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.

- Allen wavey
- What Drives You?
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
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
Offline
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.

Sponsored Links
Joined: Mar 2000
Posts: 84
Member
Member
Offline
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
Offline
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
Offline
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!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)