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)
-   -   Add-On Releases - vbshout 2.0 in specified forums only (https://vborg.vbsupport.ru/showthread.php?t=120287)

utw-Mephisto 07-03-2006 10:00 PM

vbshout 2.0 in specified forums only
 
All credits going to Zero Tolerance for releasing vBShout 2.0 and Abe1 for the instructions to use vBShout on all pages.

Here once again the full instructions:

1) Install vBShout

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

a) Change the Hook Location to "global_start"

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

c) Find:
Code:

$vbulletin->templatecache['FORUMHOME'] = str_replace($Position, $Position . ' $Shoutbox', $vbulletin->templatecache['FORUMHOME']);
and replace with:
Code:

if (in_array($forumid, array(169,170)))
{
$vbulletin->templatecache['FORUMDISPLAY'] = str_replace('$navbar', '$navbar' . ' $Shoutbox', $vbulletin->templatecache['FORUMDISPLAY']);
}

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

Find:
Code:

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

if (VB_AREA == "Forum")
Change

Code:

if (in_array($forumid, array(169,170)))
to the forum ids in which you would like to show the shoutbox ...


Since vbshout has been changed several times, I have attached also the vbshout.php and the product (already modified).

It does work on both my forum with 3.54 and 3.6.0 Beta 3 (works only below navbar)

Snake 07-04-2006 04:57 PM

Thank you!

mof9336 07-05-2006 10:52 PM

Quote:

Originally Posted by Dark Blade
Thank you!

yes thakyou-how do i get it to show everywere even if peeps are making a post

utw-Mephisto 07-05-2006 10:58 PM

Everywhere ?

As I said in the description .. its based on the addon "show on ALL pages" which can be found here :

https://vborg.vbsupport.ru/showthrea...=96158&page=12

iran.gs 08-07-2006 11:44 PM

where do l put this at ???

Change



Quote:

if (in_array($forumid, array(169,170)))

iran.gs 08-07-2006 11:54 PM

i did everything to the book but is not even showing in the forum :()

tazB.ca 09-05-2006 03:13 PM

WORKS FINE....U NEED TO CHANGE THAT LAST TEMPLATE EDIT U STATED BECAUSE IT LOOKED LIKE U MENT CHANGE IN THA vBShout [Template Cache],WEN REALLY U MENT IN THA vBShout [Template Alteration]

Luggruff 10-16-2006 09:11 AM

Does vBshout 2.0 work with vbulletin 3.6.2?
Or do I have to wait for an upgrade?

Elsie 10-22-2006 10:42 AM

does the "show on all pages" work with 3.6.0?

taumau 10-29-2006 08:16 PM

Is there a vbshout box for vb 3.6.0 ?:paranoid:


All times are GMT. The time now is 03:54 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.01115 seconds
  • Memory Usage 1,737KB
  • 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_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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