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?


All times are GMT. The time now is 11:21 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.01225 seconds
  • Memory Usage 1,752KB
  • 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
  • (5)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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