
05-20-2010, 12:05 PM
|
|
|
Join Date: Feb 2006
Location: The Netherlands
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by harleyparts
Code:
if (THIS_SCRIPT == '8WR_media')
{
require_once(DIR.'/media/media_functions_hrefs.php');
require_once(DIR.'/media/media_functions_perms.php');
$perms['rate'] = true;
$perms['comment'] = true;
$perms['submit'] = true;
if (is_member_of($vbulletin->userinfo, explode(',','5,6')))
{
$perms['modtags'] = true;
$perms['modcategory'] = true;
$perms['modservice'] = true;
}
$vbulletin->options['selectednavtab'] = 'media';
$categories = $vbulletin->db->query_read("
SELECT * FROM ".TABLE_PREFIX."media_category
WHERE catOrder != '0'
ORDER BY catOrder
");
$href['favorites'] = construct_href_favorites();
$href['subscriptions'] = construct_href_subscriptions();
$href['submit'] = construct_href_submit();
$href['random'] = construct_href_random();
$href['cats'] = construct_href_admin("cats");
$href['tags'] = construct_href_admin("tags");
$href['host'] = construct_href_admin("host");
while ($category = $vbulletin->db->fetch_array($categories))
{
$category['href'] = construct_href_category($category);
$category['align'] = "";
for ($i = 0; $i < $category['catDepth']; $i++) { $category['align'] .= '-- '; }
$templater = vB_Template::create('8WR_media_NAVTAB_cat');
$templater->register('category', $category);
$categorybits .= $templater->render();
}
}
$templater = vB_Template::create('8WR_media_NAVTAB');
$templater->register('perms', $perms);
$templater->register('href', $href);
$templater->register('categorybits', $categorybits);
$template_hook['navtab_middle'] .= $templater->render();
try pasteing this in to the plugin make a copy aof your first and paste it in a notepad
|
hmmz white screen to , i have tested by another plugin and i have the same problem white screen , vb 4.03 bug ?
|