[]
gtho4 said: Is it correct to say that there's a routine somewhere in infopop, which permits admins to edit a post and have it retain its original settings, but that routine is unavailable to members? What's required to ensure that the original settings of a post are retained when it's edited by a member - is there something I can insert into a tmpl file?
[/]
Ok that better explains the situation.
Imo that would have to be considered a bug because it shouldn't change the B_Convert field for non-admins when editing a post like that (assuming users have the right to post HTML).
Anyway...you would have to alter modifypost.php to have it NOT update that field, it would not be done via the template alone.
So if you want to do this, open modifypost.php and toward the bottom look for something like this...
// ------------------- <br />// Update the database <br /> $Username_q = addslashes($user['U_Username']); <br /> $Icon_q = addslashes($Icon); <br /> $Subject_q = addslashes($Subject); <br /> $Body_q = addslashes($Body); <br /> $Body_q = preg_replace("/(\r\n|\n)/","<br />",$Body_q); <br /> <br /> $editdate_q = addslashes($editdate); <br /> $convert_q = addslashes($convert); <br /> <br /> $query = " <br /> UPDATE {$config['tbprefix']}Posts <br /> SET B_Subject = '$Subject_q', <br /> B_Convert = '$convert_q', <br /> B_Body = '$Body_q', <br /> B_Icon = '$Icon_q', <br /> B_LastEdit= '$editdate_q', <br /> B_LastEditBy = '$Username_q' <br /> $extra <br /> WHERE B_Number = '$Number' <br /> AND B_Board = '$Board_q' <br /> "; <br /> $dbh -> do_query($query); What you'll want to do is delete ...
B_Convert = '$convert_q',
Now again, I can't say for sure that this is exactly how the 6.5 script works but it has to be something very similar.
The change req'd would be very small to alleviate the problem in either event. This won't allow you to have the functioning pull-down menu when editing the post which is a lot bigger job (so just delete the blue lines you added from above), but you won't really need to have it for the reason you wanted it anyway since it won't change from HTML to UBB anymore.
If you still need more help, just let me know and I'll help you edit the script in private (on my own time), and then we can test the changes.
Personally, I would go through with it because it must be incredibly annoying the way it behaves now
