02-11-2008, 01:08 AM
|
|
|
|
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by thincom2000
Replace goldbrick's postbit_attachment plugin file with this:
PHP Code:
<?php /** * Enables attachments to use Goldbrick * * @active true * @version $Revision: 87 $ * @modifiedby $LastChangedBy: digitallyepic_nix $ * @lastmodified $Date: 2007-10-21 22:21:30 -0700 (Sun, 21 Oct 2007) $ */ global $vbulletin; $forumid = $vbulletin->GPC['forumid'];
if ($vbulletin->forumcache[$forumid]['gb_enabled']) { if ($attachment['visible'] AND $vbulletin->options['gb_enabled'] AND $vbulletin->options['gb_attach']) { $vbulletin->input->clean_array_gpc('r', array( 'gb_options_on' => TYPE_BOOL, 'gb_title' => TYPE_NOHTML, 'gb_width' => TYPE_UINT, 'gb_height' => TYPE_UINT, 'gb_autoplay' => TYPE_BOOL, 'gb_loop' => TYPE_BOOL )); if ($vbulletin->GPC['gb_options_on']) { $gb_options = array( 'use' => $vbulletin->GPC['gb_options_on'], 'title' => $vbulletin->GPC['gb_title'], 'width' => $vbulletin->GPC['gb_width'], 'height' => $vbulletin->GPC['gb_height'], 'autoplay' => $vbulletin->GPC['gb_autoplay'], 'loop' => $vbulletin->GPC['gb_loop'] ); } require_once(DIR . '/goldbrick/includes/functions_public.php'); $find = addslashes('</td> </tr>');
$replace = addslashes('</td> </tr> <tr> <td colspan=\"2\">$attachment[goldbrick]</td> </tr>');
$vbulletin->templatecache['postbit_attachment'] = str_replace($find, $replace, $vbulletin->templatecache['postbit_attachment']); $info = goldbrick_process_attachment( $attachment['attachmentid'], $vbulletin->userinfo['userid'], $post['postid'], $attachment['attachmentextension'], $gb_options ); eval('$attachment[goldbrick] = "' . fetch_template('gb_player') . '";'); } }?>
|
Could you please confirm if this is still valid with Goldbrick 1.5? Thanks
|