Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
[]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...

Code
// ------------------- <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 ...

Code
     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

Sponsored Links
Entire Thread
Subject Posted By Posted
insert html into ubb posts via editpost gtho4 10/23/2004 4:24 PM
Re: insert html into ubb posts via editpost Medar 10/23/2004 4:38 PM
Re: insert html into ubb posts via editpost gtho4 10/23/2004 5:01 PM
Re: insert html into ubb posts via editpost JoshPet 10/23/2004 7:46 PM
Re: insert html into ubb posts via editpost Twisty 10/23/2004 8:43 PM
Re: insert html into ubb posts via editpost SG_dup1 10/24/2004 12:48 AM
Re: insert html into ubb posts via editpost gtho4 10/24/2004 2:13 AM
Re: insert html into ubb posts via editpost Twisty 10/24/2004 9:30 AM
Re: insert html into ubb posts via editpost JoshPet 10/24/2004 9:46 AM
Re: insert html into ubb posts via editpost Twisty 10/24/2004 10:12 AM
Re: insert html into ubb posts via editpost gtho4 10/24/2004 2:51 PM
Re: insert html into ubb posts via editpost ChAoS_dup1 10/24/2004 6:49 PM
Re: insert html into ubb posts via editpost JoshPet 10/24/2004 8:52 PM
Re: insert html into ubb posts via editpost ChAoS_dup1 10/24/2004 9:04 PM
Re: insert html into ubb posts via editpost gtho4 10/25/2004 2:13 PM
Re: insert html into ubb posts via editpost tethys 01/17/2005 9:16 PM

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:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,080
Joined: March 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 1443
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 7
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
isaac 2
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)