<?php

/**
 * Creates goldbrick media for edit post
 * 
 * @active      	true
 * @execution   	1
 * @version     	$Revision: 108 $
 * @modifiedby  	$LastChangedBy: digitallyepic_nix $
 * $lastmodified	$Date: 2007-10-28 23:10:50 -0700 (Sun, 28 Oct 2007) $
 */
if ($vbulletin->options['gb_enabled'] and $foruminfo['gb_enabled'] and $vbulletin->userinfo['permissions']['gb_permissions'] & $vbulletin->bf_ugp['gb_permissions']['canuse']) {
    require_once DIR . '/goldbrick/includes/functions_public.php';
    $edit['message'] = goldbrick_process_post($edit['message'], $postinfo['userid'], $postinfo['postid'], $posthash, $gb_options);
}
Example #2
0
<?php

/**
* Checks a submitted post for cacheable links, caches them, and then wraps them
 * in [media] tags.
 * 
 **/
if ($vbulletin->options['gb_enabled']) {
    if ($foruminfo['gb_enabled'] and $vbulletin->userinfo['permissions']['gb_permissions'] & $vbulletin->bf_ugp['gb_permissions']['canuse']) {
        require_once DIR . '/goldbrick/includes/functions_public.php';
        $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']);
        }
        $post['message'] = goldbrick_process_post($post['message'], $vbulletin->userinfo['userid'], 0, $post['posthash'], $gb_options);
    }
}
Example #3
0
<?php

/**
 * Creates goldbrick media for edit post
 * 
 * @active      	true
 * @execution   	1
 * @version     	$Revision: 108 $
 * @modifiedby  	$LastChangedBy: digitallyepic_nix $
 * $lastmodified	$Date: 2007-10-28 23:10:50 -0700 (Sun, 28 Oct 2007) $
 */
if ($vbulletin->options['gb_enabled'] && $foruminfo['gb_enabled'] && $vbulletin->userinfo['permissions']['gb_permissions'] & $vbulletin->bf_ugp['gb_permissions']['canuse']) {
    require_once DIR . '/goldbrick/includes/functions_public.php';
    $post['message'] = $postinfo['pagetext'];
    //$post['posthash'] = 0;
    $postinfo['pagetext'] = goldbrick_process_post($post['message'], $vbulletin->userinfo['userid'], $postinfo['postid'], $post['posthash']);
}