vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBShout on all pages! (https://vborg.vbsupport.ru/showthread.php?t=96158)

Abe1 09-12-2005 10:00 PM

vBShout on all pages!
 
vBShout on all pages!


Works for vBShout version 2.0

This hack will make vBShout show on all pages of your side. BUT, will only alow the shoutbox to be placed under the navbar.

1) Install vBShout (Download here)

2) Edit plugin "vBShout [Template Alteration]" and make the following changes:

a) Change the Hook Location to "global_start"

b) Find and delete:

PHP 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($bashiif($vbulletin->options[$against], explode(','$vbulletin->options[$against]), array()));



c) Find:

PHP Code:

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


and replace with:

PHP Code:

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


3) Edit plugin "vBShout [Template Cache]" and make the following change:

Find:
PHP Code:

if (THIS_SCRIPT == "index"

Replace with:
PHP Code:

if (VB_AREA == "Forum"


There is the same info in the zip.


Done. Make sure you clicked "install" :)

Daniel 09-13-2005 02:28 AM

Very nice, good job. :)

Brandon Sheley 09-13-2005 04:15 AM

nice,, not sure if i want to use it yet.. but i might :p still playing around..

thx for editing it still :)

Wordplay 09-13-2005 07:11 AM

does that display it at the bottom of all pages the way it usually shows? or does this display the shoutbox like this: on the left side of the forum?
http://www.sex-is-zero.com

i would love vbshoutbox to be displayed only fully if somebody clicks on it, but other then that a minature version exactly where it is displayed right now.

Abe1 09-13-2005 10:05 AM

Quote:

Originally Posted by Wordplay
does that display it at the bottom of all pages the way it usually shows? or does this display the shoutbox like this: on the left side of the forum?
http://www.sex-is-zero.com

i would love vbshoutbox to be displayed only fully if somebody clicks on it, but other then that a minature version exactly where it is displayed right now.

Sorry, this hack is not for that shoutbox.

It is for AJAX vBShout.

Neises 09-13-2005 03:54 PM

Sounds great, anyone try it with vbadvanced yet? It uses the main navbar template by default. I'll do some guinea piggin' tonight if not.

Gizmo5h1t3 09-13-2005 04:08 PM

installed it exactly as in instructions, now i have a completely borked board...cant login, even into the admin cp..

Fatal error: Call to undefined function: isbanned() in /home/*******/public_html/board/global.php(363) : eval()'d code on line 112

any helpin gettin my board back online would be appreciated

Abe1 09-13-2005 04:32 PM

Quote:

Originally Posted by Gizmo5h1t3
installed it exactly as in instructions, now i have a completely borked board...cant login, even into the admin cp..

Fatal error: Call to undefined function: isbanned() in /home/*******/public_html/board/global.php(363) : eval()'d code on line 112

any helpin gettin my board back online would be appreciated

Use this: http://www.vbulletin.com/forum/showthread.php?t=148082 to disable plugins.

Then make sure you DID all the plug in edit! It seems like you did not do setp 2b. After, enable plugins again.

Abe1 09-13-2005 04:34 PM

Quote:

Originally Posted by Abe1
Use this: http://www.vbulletin.com/forum/showthread.php?t=148082 to disable plugins.

Then make sure you DID all the plug in edit! It seems like you did not do setp 2b. After, enable plugins again.

CORRECTION: checking over the error again, you must have not made the plugin for the right hook. make sure it is global_start.

Abe1 09-13-2005 04:38 PM

Looking at global.php, there is no hook even on line 363. Did you ever edit global.php?

Gizmo5h1t3 09-13-2005 06:44 PM

not to worry, ive done a install of a backup.least the boards back online now...

will having any other hacks or plugins affect this working properly???

Abe1 09-13-2005 06:46 PM

Quote:

Originally Posted by Gizmo5h1t3
not to worry, ive done a install of a backup.least the boards back online now...


will having any other hacks or plugins affect this working properly???

Nope.

At least non that I know of. I can't see why one should.

Gizmo5h1t3 09-13-2005 06:47 PM

thats real weird then....this completley borked the board up...

and im no n00b either, so its not like i dont know what im doin m8.

Abe1 09-13-2005 06:48 PM

Quote:

Originally Posted by Gizmo5h1t3
thats real weird then....this completley borked the board up...

and im no n00b either, so its not like i dont know what im doin m8.

Try not doing step 2b

Gizmo5h1t3 09-13-2005 06:51 PM

"try not doing step 2b"?!?!?!?

this isnt a beta forum mate, it either works or it doesnt.

i think il wait till others have tried this b4 i give it another go, i aint bein no guinea pig.

Abe1 09-13-2005 07:48 PM

Quote:

Originally Posted by Gizmo5h1t3
"try not doing step 2b"?!?!?!?

this isnt a beta forum mate, it either works or it doesnt.

i think il wait till others have tried this b4 i give it another go, i aint bein no guinea pig.

Here, your error says that the function is not there. It should be there from the file unless you dont have the write file for version 2.0

Snort_2005 09-14-2005 04:53 AM

Perfect!!!! That was just genious.. Something I have been looking for for quite some time..

*clicks install*

EDIT: Now, the only thing else I want it to do is show up on vbadvanced. :p

Mathiau 09-14-2005 09:42 PM

gottaaaaaaaa see pics :D

Abe1 09-15-2005 03:12 AM

Quote:

Originally Posted by Mathiau
gottaaaaaaaa see pics :D

same picks as the main hack. Just the shoutbox shows on every page.

Snort_2005 09-16-2005 03:10 PM

Any chance of getting this on vbadvanced?

Snort_2005 09-21-2005 12:56 AM

Quote:

Originally Posted by Snort_2005
Any chance of getting this on vbadvanced?

*bump*

Abe1 09-21-2005 04:17 AM

Quote:

Originally Posted by Snort_2005
*bump*

I will see. It seems that vbadvanced doesn't work with global.php like other places do.

IFor[You] 09-27-2005 01:21 PM

can we put this on every bottom of the page instead of at the top?

Abe1 09-27-2005 02:00 PM

Quote:

Originally Posted by IFor[You]
can we put this on every bottom of the page instead of at the top?

I'm going to try to work on that.

Snort_2005 09-27-2005 06:34 PM

Quote:

Originally Posted by Abe1
I will see. It seems that vbadvanced doesn't work with global.php like other places do.

Ever figure this out Abe1?

Abe1 09-27-2005 06:55 PM

Quote:

Originally Posted by Snort_2005
Ever figure this out Abe1?

Nope. Not much time yet.

Mepher 09-27-2005 07:55 PM

I just got the same error that Gizmo had. In the vBshout options I had set it so banned members couldn't see the shoutbox at all. Once I changed that option the errors went away and everything worked fine.

Gizmo5h1t3 09-27-2005 08:00 PM

so if u had the same error as me, how did u get back in to reset the options for banned members??
ihad to re install a backup, as the forum implded...lol

Mepher 09-27-2005 08:03 PM

My Admin CP was still open in another window. I changed the setting, hit save, and refreshed my other browser. :squareeyed:

Gizmo5h1t3 09-27-2005 08:05 PM

lucky you, i had to re install the bleedin lot...lmao

memorex 09-27-2005 10:48 PM

So, we have to give access to banned users to see the shouts? Is there any way around that?

PHP 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($bashiif($vbulletin->options[$against], explode(','$vbulletin->options[$against]), array())); 


On the last part where it says ($bash, iif($vbulletin .... is that iif supposed to if ?

IFor[You] 09-28-2005 01:30 PM

]
Quote:

Originally Posted by Abe1
I'm going to try to work on that.

that's great.
anxiously awaitng... :D

Wachtmeister 10-01-2005 04:38 PM

Is it possible to get the shoutbox to the bottom of each page with the add-on?

After i have installed the add-on i have the shoutbox on every page BUT right under the navbar :ermm:

Regards, Wachtmeister

Abe1 10-01-2005 11:19 PM

Quote:

Originally Posted by Wachtmeister
Is it possible to get the shoutbox to the bottom of each page with the add-on?

After i have installed the add-on i have the shoutbox on every page BUT right under the navbar :ermm:

Regards, Wachtmeister

Yes, I will be working on that in a day or two hopfully.

Wachtmeister 10-04-2005 08:33 PM

I noticed, that nearly all of my users have "Shoutbox" into their WOL Status. (since i use VBShout on all pages). Is it normal?

Wachtmeister 10-05-2005 08:36 AM

Just a bit more specific...

Why are all the users into the Shoutbox onto WOL Status? They aren't :surprised:

Gizmo5h1t3 10-05-2005 06:58 PM

Quote:

Originally Posted by Wachtmeister
Just a bit more specific...

Why are all the users into the Shoutbox onto WOL Status? They aren't :surprised:

i also get this...no matter where a member is on the board, it shows theyre viewing shoutbox???

Abe1 10-05-2005 11:36 PM

Quote:

Originally Posted by Wachtmeister
Just a bit more specific...

Why are all the users into the Shoutbox onto WOL Status? They aren't :surprised:

Thanks for the pic. A picture is worth more then 1000 words.

It has to do with the shoutbox updating. Since it's the last thing that are refreshing, that is what vb things they are by.

Wachtmeister 10-06-2005 08:13 AM

Just an idea:

Can you change it, that the WOL status is not updated, if someone looks to the shoutbox (boxed) on any page? (in a thread, on forumhome, etc.)

Maybe you can update the WOL status just if someone clicks onto "Shoutbox" to view the detailed status about most posters and more.

Or maybe make it an option?

Gizmo5h1t3 10-14-2005 03:48 PM

was hoping someone could come up with a fix for this WOL problem....
i imagine there are other members on here, that like to use the "who`s online", to see where members are on the board at any given moment....its sooo frustrating seeing that theyre all vierwing the shoutbox, when its obvcious they arent!!

lmao


All times are GMT. The time now is 05:12 AM.

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.01457 seconds
  • Memory Usage 1,843KB
  • 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
  • (6)bbcode_php_printable
  • (16)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