vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Chat Modifications - ZH - vBShout On All Pages (https://vborg.vbsupport.ru/showthread.php?t=133049)

Calibre_k 12-03-2006 03:18 PM

Thanks for your help but in the drop down box i'm not sure which to be looking at theres loads.

and at top of forum i get this

Parse error: syntax error, unexpected '}' in /home/forum/index.php(536) : eval()'d code on line 197

Ziki 12-03-2006 03:29 PM

You forgot to delete one } when you deleted function isBanned($user)
{
return (isBanned_Check($user['userid'], 'shout_banned_users') || isBanned_Check($user['usergroupid'], 'shout_banned_usergroups'));
}

function isBanned_Check($bash, $against)
{
global $vbulletin;
return in_array($bash, iif($vbulletin->options[$against], explode(',', $vbulletin->options[$against]), array()));
}

Calibre_k 12-03-2006 04:09 PM

When I delete



Code:

function isBanned($user)
{
    return (
isBanned_Check($user['userid'], 'shout_banned_users') || isBanned_Check($user['usergroupid'], 'shout_banned_usergroups'));   
}

function
isBanned_Check($bash, $against)
{
    global
$vbulletin;
    return
in_array($bash, iif($vbulletin->options[$against], explode(',', $vbulletin->options[$against]), array()));
}


Fatal error: Call to undefined function: isbanned() in /home/forum/index.php(536) : eval()'d code on line 198

I cant find hook location in drop down.

Ziki 12-03-2006 04:19 PM

lol there is a drop down menu called hook location and there you have to find global_start!

Calibre_k 12-03-2006 04:26 PM

Vbulletin : General
global_start

Is that it?

Calibre_k 12-03-2006 04:30 PM

Fatal error: Call to undefined function: isbanned() in /home/.giggsy/desibakw/desibakwaas.com/forum/global.php(356) : eval()'d code on line 312

Ziki 12-03-2006 04:34 PM

Try replacing
Quote:

if ($vbulletin->options['shout_banned_perms'] == 2 && isBanned($vbulletin->userinfo))
{
$Shoutox = '';
}
else
{
eval('$Shoutbox = "' . fetch_template('forumhome_vbshout') . '";');
}
with
Quote:

eval('$Shoutbox = "' . fetch_template('forumhome_vbshout') . '";');

Calibre_k 12-03-2006 04:41 PM

Ziki THANK YOU SOO MUCH FOR HELPING ME IM SORRY FOR PESTERING YOU MUCH APPRECIATED BRO. THANK YOU

Just as i was about to give up IT WORKED WITH YOUR LAST IDEA

Ziki 12-03-2006 04:43 PM

So please click install :)

Calibre_k 12-03-2006 04:59 PM

Done thans its a fantastic hack THANK YOU ONCE AGAIN.


All times are GMT. The time now is 01:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01201 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete