The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Custom BBCode Plugin kills CMS?
So I am using a plugin to setup a custom BBCode. On most forums it works fine, but on some forums, while this plugin is active it kills the CMS... does anyone know why this would happen?
bbcode_fetch_tags Code:
if (true) { // [MEDIA] [MEDIA=XXX] $tag_list['no_option']['media'] = array( 'callback' => 'handle_external', 'external_callback' => 'handle_bbcode_media', 'strip_empty' => true, 'stop_parse' => true, 'disable_smilies' => true, 'disable_wordwrap' => true, 'strip_space_after' => 0, ); $tag_list['option']['media'] = array( 'callback' => 'handle_external', 'external_callback' => 'handle_bbcode_media', 'strip_empty' => true, 'stop_parse' => true, 'disable_smilies' => true, 'disable_wordwrap' => true, 'strip_space_after' => 0, ); } function handle_bbcode_media(&$parser, $mid, $title) { global $vbulletin; require_once(DIR.'/media/media_functions_hrefs.php'); if (!$media = $vbulletin->db->query_first(" SELECT media.*, media_service.* FROM " . TABLE_PREFIX . "media AS media LEFT JOIN " . TABLE_PREFIX . "media_service AS media_service ON(media_service.serviceID = media.serviceID) WHERE media.mediaID = '".$mid."' ")) { $templater = vB_Template::create('8WR_media_bbcode'); $templater->register('error', fetch_error('media_details_invalid')); return $templater->render(); } $media['embed'] = str_replace('{serviceVAL}', $media['serviceVAL'], $media['svcEmbed']); $media['embed'] = str_replace('{serviceVAL2}', $media['serviceVAL2'], $media['embed']); $media['embed'] = str_replace('{local}', $vbulletin->options['bburl']."/".$vbulletin->options['media_thumb_dir'], $media['embed']); $media['embed'] = str_replace("{ap10}", "0", $media['embed']); $media['embed'] = str_replace("{apYN}", "no", $media['embed']); $media['embed'] = str_replace("{apTF}", "false", $media['embed']); $media['href'] = create_full_url(construct_href_details($media)); if ($title) { $media['title'] = $title; } $templater = vB_Template::create('8WR_media_bbcode'); $templater->register('media', $media); return $templater->render(); } |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|