The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
Ok, next time i'll create threads in proper forum
in admincp/thread.php i found: Code:
// ######################################################################## if ($_POST['do'] == 'tagkill') { if (sizeof($taglist)) { $tags_result = $vbulletin->db->query_read(" SELECT tagtext FROM " . TABLE_PREFIX . "tag WHERE tagid IN (" . implode(',', $taglist) . ") "); $tagstodelete = array(); while ($tag = $vbulletin->db->fetch_array($tags_result)) { $tagstodelete[] = $tag['tagtext']; } unset($tag); if (!empty($tagstodelete)) { require_once(DIR . "/includes/functions_newpost.php"); $threads_result = $vbulletin->db->query_read(" SELECT DISTINCT thread.* FROM " . TABLE_PREFIX . "tagthread AS tagthread INNER JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid = tagthread.threadid) WHERE tagthread.tagid IN (" . implode(',', $taglist) . ") "); while ($thread = $vbulletin->db->fetch_array($threads_result)) { $newtags = array(); foreach (explode(',', trim($thread['taglist'])) AS $oldtag) { $oldtag = trim($oldtag); if (!in_array($oldtag, $tagstodelete)) { $newtags[] = $oldtag; } } $newtags_string = implode(', ', $newtags); if ($newtags_string != $thread['taglist']) { // if efficiency is needed, this could be changed to a direct query $threaddm =& datamanager_init('Thread', $vbulletin, ERRTYPE_SILENT, 'threadpost'); $threaddm->set_existing($thread); $threaddm->set('taglist', $newtags_string); $threaddm->save(); unset($threaddm); } } } $db->query_write(" DELETE FROM " . TABLE_PREFIX . "tag WHERE tagid IN (" . implode(',', $taglist) . ") "); $db->query_write(" DELETE FROM " . TABLE_PREFIX . "tagthread WHERE tagid IN (" . implode(',', $taglist) . ") "); // need to invalidate the search and tag cloud caches build_datastore('tagcloud', '', 1); build_datastore('searchcloud', '', 1); } setcookie('vbulletin_inlinetag', '', TIMENOW - 3600, '/'); print_cp_header($vbphrase['thread_manager']); print_stop_message('tags_edited_successfully'); } // ######################################################################## and i paste it in tags.php but my mod still not work |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|