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)

Ziki 12-01-2006 10:00 PM

ZH - vBShout On All Pages
 
This modification was brought to you by
KXDesign
http://www.kxdesign.com/


~Hack name
vBShout On All Pages!

~Hack description
Will display vBShout 2.0 box on every forum page!You can choose manual instructions or just reimport this product.

~Hack options
None

~Hack info
File uploads: 0
Template edits: 0
Templates: 0
File edits: 0
Plugins: 0
SQL Queries: 0
Phrases: 0
Settings: 0

Install time: 2 minutes
Install level: Easy

~Hack installation

Step 1: Open plugin vBShout[Template Cache] and find:
Quote:

if (THIS_SCRIPT == "index")
Replace with:

Quote:

if (VB_AREA == "Forum")
Step 2: Open plugin vBShout[Template Alternation],change hook location to global_start and find and delete:
Quote:

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()));
}

Step 3: Open the plugin again and find:
Quote:

switch ($vbulletin->options['shout_position'])
{
case
1:
$Position = '<!-- what\'s going on box -->';
break;

case
2:
$Position = '<!-- end what\'s going on box -->';
break;

case
4:
$Position = '<!-- main -->';
break;

default:
$Position = '$navbar';
break;
}

$vbulletin->templatecache['FORUMHOME'] = str_replace($Position, $Position . ' $Shoutbox', $vbulletin->templatecache['FORUMHOME']);

And replace with:
Quote:

$Position = '<!-- / nav buttons bar -->';
$vbulletin->templatecache['navbar'] = str_replace($Position, $Position . '<br /> $Shoutbox', $vbulletin->templatecache['navbar']);

~Hack screenshots
None


~Hack copyright
This may not be distributed,released or claimed as your work without author's permission.

Ziki 12-02-2006 06:07 PM

If does not work on some custom styles: click

Shazz 12-02-2006 06:14 PM

Ill try it out on my 3.6.2
And get back later :)

Ziki 12-02-2006 06:52 PM

Ok tell me how it went

StuntFactoryX 12-02-2006 07:02 PM

any plans in the future to make this work w/ the flatfile vbshout? nice hack though.

Ziki 12-02-2006 07:05 PM

I already tried this on that one but no I am not planning that,

Shazz 12-02-2006 07:32 PM

Not made for the flatout release?? dang it ;(

Ziki 12-02-2006 07:42 PM

No this won't work for 2.1

Calibre_k 12-02-2006 07:43 PM

I got this

Fatal error: Call to undefined function: isbanned() in /domains.com/forum/global.php(356) : eval()'d code on line 112

I reimported it

Ziki 12-02-2006 08:04 PM

Works now?

Calibre_k 12-02-2006 08:12 PM

vBShout 2.0 AJAX Shoutbox for vBulletin (On all Pages)

I imported your vbshout xml

Allow Overwrite Yes

and when I enable it I get error

AMG021 12-02-2006 08:56 PM

MY vbshout disappeared :(

VaaKo 12-03-2006 05:05 AM

cool man

/me clicks install!

GoLDeNLaNd 12-03-2006 08:31 AM

when i look vbshout it says loading ....... , what can i do ?

Ziki 12-03-2006 10:55 AM

If the product does not work then try the manual instructions.Because the product somehow doesn't work for everybody.Tested on 3 boards and it worked well on 2 of them,

Calibre_k 12-03-2006 11:53 AM

Figured rest out...

Open plugin vBShout[Template Alternation],change hook location to global_start and find and delete:

What do I delete? Where is hook location? I have done rest of changes but I still see shoutbox on forum index.

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()));
}

Ziki 12-03-2006 01:23 PM

In plugin manager.Those are plugins

Calibre_k 12-03-2006 01:29 PM

Thanx i was editing vbshout.xml

Calibre_k 12-03-2006 01:33 PM

So do I delete all this from [Template Alternation]?
Where is hook location that i have to change?

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()));

Ziki 12-03-2006 02:21 PM

yes and the hook location is a drop down box when you are editing the plugin

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.

Calibre_k 12-03-2006 06:23 PM

When i bann users from shoutbox they get an error

Warning: Invalid argument supplied for foreach() in /vbshout.php on line 293

wolfyman 12-03-2006 06:32 PM

great addition.

Can anyone tell me how to do this, but replace the shoutbox with a link to my live chat from 8PM to midnight?

Shazz 12-03-2006 06:40 PM

Quote:

Originally Posted by wolfyman (Post 1131026)
great addition.

Can anyone tell me how to do this, but replace the shoutbox with a link to my live chat from 8PM to midnight?

Um not really the thread to ask in, even though youve asked in all of them :rolleyes:

wolfyman 12-03-2006 06:47 PM

Quote:

Originally Posted by Shazz (Post 1131035)
Um not really the thread to ask in, even though youve asked in all of them :rolleyes:

well then - thanks for your helpful advice. Oh, wait - you didn't help at all. Correct me if I'm wrong, Shazz, but isn't a community about helping?

I figure this might be the BEST thread to ask in, since the author understands this hack and php better than I do.

How about if you scurry along to somewhere that you can contribute, rather than acting like your condescending know-it-all opinion matters? kthx :)

Shazz 12-03-2006 06:51 PM

Quote:

Originally Posted by wolfyman (Post 1131043)
well then - thanks for your helpful advice. Oh, wait - you didn't help at all. Correct me if I'm wrong, Shazz, but isn't a community about helping?

I figure this might be the BEST thread to ask in, since the author understands this hack and php better than I do.

How about if you scurry along to somewhere that you can contribute, rather than acting like your condescending know-it-all opinion matters? kthx :)

Oh sorry to interrupt, You asked in every SINGLE vbshout thread, gets kind of annoying in every thread I click in. This has vBshout on all pages not turn it off at a certian time.

Scurry along somewhere? I can't when youve posted this everywhere in everythread sorry its hard to get away

wolfyman 12-03-2006 06:54 PM

Quote:

Originally Posted by Shazz (Post 1131046)
Oh sorry to interrupt, You asked in every SINGLE vbshout thread, gets kind of annoying in every thread I click in. This has vBshout on all pages not turn it off at a certian time.

Scurry along somewhere? I can't when youve posted this everywhere in everythread sorry its hard to get away


I'm not here to argue with you. Either help me or put me on ignore.

Ziki 12-03-2006 07:03 PM

I'm sorry but he is right

Quote:

This has vBshout on all pages not turn it off at a certian time.

wolfyman 12-03-2006 07:08 PM

Quote:

Originally Posted by Ziki (Post 1131058)
I'm sorry but he is right

of course he is. That doesn't mean he should have an attitude with me, though. As the poster of the hack, I apologize to you if you feel my question detracted from the value of your thread, I didn't intend to take things so far off topic.

When I come to vb.org, it's to research mods, help people, and ask for help. None of the previous 6 posts were necessary, Shazz should have just ignored me.

I'll send you a PM, Ziki. THanks for your contribution to the board. :)

kabeeer 12-11-2006 09:10 AM

not working with VB 3.6.2

Ziki 12-11-2006 12:40 PM

Are you using vbshout 2.0 or 2.1?What is the error?If you just say "It doesn't work" I really can't help you.


All times are GMT. The time now is 05:49 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.01475 seconds
  • Memory Usage 1,833KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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