Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBShout on all pages! Details »»
vBShout on all pages!
Version: 2.00, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Version: 3.5.0 RC3 Rating:
Released: 09-12-2005 Last Update: 09-12-2005 Installs: 169
Uses Plugins
 
No support by the author.

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"

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #212  
Old 09-19-2006, 04:48 PM
zell_11 zell_11 is offline
 
Join Date: Dec 2004
Location: Edinburgh- Scotland
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok for those people who are getting the array_merge problem I know how to fix this

Replace your vBShout [Template Cache] with the following

Code:
if (VB_AREA == "Forum")
{
	global $globaltemplates;

	$globaltemplates  = array_merge((array)$globaltemplates, array('forumhome_vbshout'));
}
That will fix the problem
Reply With Quote
  #213  
Old 09-20-2006, 01:09 PM
RFViet RFViet is offline
 
Join Date: Jan 2006
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zell_11
Ok for those people who are getting the array_merge problem I know how to fix this

Replace your vBShout [Template Cache] with the following

Code:
if (VB_AREA == "Forum")
{
	global $globaltemplates;

	$globaltemplates  = array_merge((array)$globaltemplates, array('forumhome_vbshout'));
}
That will fix the problem
Thank you so much
Reply With Quote
  #214  
Old 09-22-2006, 04:37 AM
BlueKnight BlueKnight is offline
 
Join Date: Aug 2006
Location: Oregon
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this installed and working on all pages but on photo classifieds it will not work. Its just says loading.
Reply With Quote
  #215  
Old 09-28-2006, 10:16 PM
Calibre_k Calibre_k is offline
 
Join Date: Feb 2006
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work on vBulletin 3.6.0?
Reply With Quote
  #216  
Old 09-29-2006, 11:42 AM
Abe1's Avatar
Abe1 Abe1 is offline
 
Join Date: Feb 2004
Location: I LOVE New York!
Posts: 2,886
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Calibre_k
Will this work on vBulletin 3.6.0?
yes.
Reply With Quote
  #217  
Old 10-24-2006, 09:20 PM
PassLab.net's Avatar
PassLab.net PassLab.net is offline
 
Join Date: Aug 2006
Location: LonDoN
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, passlab.net has installed
Reply With Quote
  #218  
Old 11-09-2006, 12:56 PM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so there is just NO way to avoid this: Fatal error: Call to undefined function: isbanned() in /home/site/public_html/forum/global.php(356) : eval()'d code on line 190 when putting a usergroup in the banned area???
Reply With Quote
  #219  
Old 11-09-2006, 07:14 PM
Calibre_k Calibre_k is offline
 
Join Date: Feb 2006
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dont understand how to do this on all forums
Reply With Quote
  #220  
Old 11-29-2006, 03:59 PM
Caddyman Caddyman is offline
 
Join Date: Mar 2006
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cOuNtErFiET View Post
i did this and it completely removed the sb from the pages all of them even the index.php page what could be the problem?

This is happening to me too, any help?
Reply With Quote
  #221  
Old 12-05-2006, 08:20 AM
top end ms top end ms is offline
 
Join Date: Oct 2005
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

me 3. Also wondering if anyone has any server load issues with this?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:59 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04584 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (5)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete