View Full Version : Can't edit thread name
SuB_ZeR0
08-05-2002, 08:03 PM
I notice that for the first post of any thread, the subject becomes the name of the thread also. However, after the post is submitted, and I go to edit the post and change is subject name .... the thead name still doesn't change to reflect the new subject name. Can anyone tell why this is so? Is this a bug? Can it be remedied? Thanks
Logician
08-05-2002, 08:10 PM
There are 2 seperate tables in db:
a) Saving message's details (and its subject)
b) Saving thread's details (and its subject which is also the subject of the first message)
When you create a new thread, both tables are populated and subject fields filled according to your subject. However when user edits his post, vb doesnt check if it's the thread's first message or not and only modify post table details.. That's why.. :)
If you are an admin you can change thread name, but users cant (without a hack)
SuB_ZeR0
08-09-2002, 01:47 AM
Do you know how (or of a hack) I can edit the subject name of the first post and it will automatically change the thread name? ... I don't want to have to change a thread name every single time. It would be too time consuming. Thanks.
Xenon
08-09-2002, 03:15 PM
in your editpost.php find this:
if ($isfirst and $title!="" and $postinfo[dateline]+$editthreadtitlelimit*60>time()) {
$DB_site->query("UPDATE thread SET title='".addslashes(htmlspecialchars($title))."', iconid=".intval($iconid)." WHERE threadid=$threadinfo[threadid]");
//$title="";
}
delete and $postinfo[dateline]+$editthreadtitlelimit*60>time() out of the if-clause
SuB_ZeR0
08-09-2002, 11:58 PM
Thanks alots .. I'll try it tonite.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.