The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#9
|
|||
|
|||
![]()
Do you mind actually explaining what needs to be done? Because I still dont see what I'm supposed to be looking at.
*EDIT* ah... I think I get it now, you wanted me to see: ($hook = vBulletinHook::fetch_hook('bbcode_fetch_tags')) ? eval($hook) : false; I tried doing this... Code:
// [VIDEO] require_once(DIR . '/includes/functions_videodirectory.php'); $tag_list['no_option']['video'] = array( 'callback' => 'handle_external', 'external_callback' => 'handle_bbcode_video', 'strip_empty' => true ); Fatal error: Call to undefined method vB_BbCodeParser::handle_bbcode_video() in /home/eightway/public_html/includes/class_bbcode.php on line 1143 How do I get it to call handle_bbcode_video in functions_videodirectory.php? --------------- Added [DATE]1231967882[/DATE] at [TIME]1231967882[/TIME] --------------- Well I figured to just use the function in the plugin itself, instead of calling a file... But I'm having trouble passing the parameter data... Code:
// [VIDEO] $tag_list['no_option']['video'] = array( 'callback' => 'handle_external', 'external_callback' => 'handle_bbcode_video', 'strip_empty' => true ); function handle_bbcode_video($videoid) { global $vbulletin; if (!$videoinfo = $vbulletin->db->query_first(" SELECT video.* FROM " . TABLE_PREFIX . "video AS video WHERE video.videoid = '" . $videoid . "'") ) { return 'This video does not exist'; } require_once(DIR . '/includes/class_videosharingservice.php'); require_once(DIR . '/includes/videoserviceapi/class_' . strtolower($videoinfo['videoservice']) . '.php'); $classname = 'vB_VideoSharingService_' . $videoinfo['videoservice']; $obj = new $classname($vbulletin); $embedhtml = $obj->fetch_embedcode($videoinfo['videoidservice']); return $embedhtml; } --------------- Added [DATE]1231974120[/DATE] at [TIME]1231974120[/TIME] --------------- Is there a guide or something that explains what all the array options in $tag_list do? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|