-=Sniper=-
11-15-2005, 07:48 PM
I am adding a bit to the above hack, I have it working from the quick reply box...
I am using this code to check the value of the check box and then running the query to update the thread title.
if ($_POST['threadedit'] == '1')
{
$db->query_write("UPDATE " . TABLE_PREFIX . "thread SET title = '" . $_POST['newtitle'] . "' WHERE threadid = " . $threadinfo[threadid] . "");
}
if the above code can be improved, please improve it :)
also wondering how do I rebuild the last post info on the forumhome? thanks
I have attached the product for you to test, you will need to do the following template edit for this to work on quick reply
info on edit here https://vborg.vbsupport.ru/showthread.php?s=&threadid=100492
I know I can use an condition in the template to check to see if the user is a mod/admin, but since theres no option to check if the user can edit others thread titles, I'm not sure what to use.
thanks for the help
I am using this code to check the value of the check box and then running the query to update the thread title.
if ($_POST['threadedit'] == '1')
{
$db->query_write("UPDATE " . TABLE_PREFIX . "thread SET title = '" . $_POST['newtitle'] . "' WHERE threadid = " . $threadinfo[threadid] . "");
}
if the above code can be improved, please improve it :)
also wondering how do I rebuild the last post info on the forumhome? thanks
I have attached the product for you to test, you will need to do the following template edit for this to work on quick reply
info on edit here https://vborg.vbsupport.ru/showthread.php?s=&threadid=100492
I know I can use an condition in the template to check to see if the user is a mod/admin, but since theres no option to check if the user can edit others thread titles, I'm not sure what to use.
thanks for the help