[6.1/6.2] Admin logging for stick/unstick posts - 03/28/2003 3:16 PM
Find this bit of code in admin/stickpost.php:
Replace it with this:
Then, open admin/unstickpost.php and find this bit of code:
And replace it with this:
Code
<br />// ------------------------ <br />// Send them a page <br /> $html -> send_header ("Post Marked Sticky",$Cat,"<META HTTP-EQUIV=\"Refresh\" content=\"5;url={$config['phpurl']}/postlist.php?Cat=$Cat&Board=$Board&view=\ <br />$view&sb=$sb&o=$o\">",$user); <br /> $html -> admin_table_header("Post Marked Sticky"); <br />
Replace it with this:
Code
<br />// Log all edits. <br />admin_log("STICKPOST", "PostNumber=$Number"); <br /> <br />// ------------------------ <br />// Send them a page <br /> $html -> send_header ("Post Marked Sticky",$Cat,"<META HTTP-EQUIV=\"Refresh\" content=\"5;url={$config['phpurl']}/postlist.php?Cat=$Cat&Board=$Board&view=\ <br />$view&sb=$sb&o=$o\">",$user); <br /> $html -> admin_table_header("Post Marked Sticky"); <br />
Then, open admin/unstickpost.php and find this bit of code:
Code
<br />// ------------------------ <br />// Send them a page <br /> $html -> send_header ("Post returned to normal",$Cat,"<META HTTP-EQUIV=\"Refresh\" content=\"5;url={$config['phpurl']}/postlist.php?Cat=$Cat&Board=$Board&\ <br />view=$view&sb=$sb&o=$o\">",$user); <br /> $html -> admin_table_header("Post returned to normal"); <br />
And replace it with this:
Code
<br />// Log all edits. <br />admin_log("UNSTICKPOST", "PostNumber=$Number"); <br /> <br />// ------------------------ <br />// Send them a page <br /> $html -> send_header ("Post returned to normal",$Cat,"<META HTTP-EQUIV=\"Refresh\" content=\"5;url={$config['phpurl']}/postlist.php?Cat=$Cat&Board=$Board&\ <br />view=$view&sb=$sb&o=$o\">",$user); <br /> $html -> admin_table_header("Post returned to normal"); <br />