Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
  #112  
Old 01-17-2006, 02:22 PM
QueenBee's Avatar
QueenBee QueenBee is offline
 
Join Date: Jan 2006
Location: On Cloud 9
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hellooooo??
Reply With Quote
  #113  
Old 01-17-2006, 03:48 PM
QueenBee's Avatar
QueenBee QueenBee is offline
 
Join Date: Jan 2006
Location: On Cloud 9
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

omg i just need the code, anyone with a shoutbox please!! not ajax tho
Reply With Quote
  #114  
Old 01-24-2006, 09:53 PM
Renada's Avatar
Renada Renada is offline
 
Join Date: Jan 2005
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by QueenBee
ugh, its still disapperaing when i add this mod, could someone please tell me where this goes:

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


in the template alteration. so i can uninstall it!

please someone
It goes above this code
Code:
if ($vbulletin->options['shout_banned_perms'] == 2 && isBanned($vbulletin->userinfo))
Or you could just import the plugin again and check the "can overwrite" box

Hope this helps,
Renada
Reply With Quote
  #115  
Old 01-25-2006, 01:19 PM
DWard's Avatar
DWard DWard is offline
 
Join Date: Mar 2004
Location: Peterborough, UK
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP5 Issue:

I am getting:
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1064) : eval()'d code on line 5

on user profile pages.... when I disable shoutbox it doesnt appear. Help please.
Reply With Quote
  #116  
Old 01-25-2006, 04:30 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

Doing this edit Knackerd up my forums...

The hacks i had in the navbar dissapeared...
The shoutbox dissapeared.

Had no end of DB errors, such as...

Code:
Database error in vBulletin 3.5.3:

Invalid SQL:
SELECT COUNT(*) AS num FROM post AS post LEFT JOIN thread AS thread on post.threadid=thread.threadid LEFT JOIN forum AS forum on thread.forumid=forum.forumid WHERE ((forum.options&4096))AND(post.userid=250)AND(post.dateline>=);

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1 Error Number : 1064
Date         : Wednesday, January 25th 2006 @ 06:22:13 PM
Script       : http://www.bashys-place.com/forums/showthread.php?p=3213
Referrer     : http://www.bashys-place.com/forums/member.php?find=lastposter&t=956

I have now reverted it back to as it was, great idea but it dont work, and beleive me, i tried it about 6 times as this is something i really need
Reply With Quote
  #117  
Old 01-26-2006, 01:39 AM
Telegon80 Telegon80 is offline
 
Join Date: Aug 2005
Location: Fort Lauderdale, FL.
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have no idea how to do this:

2) Edit plugin "vBShout [Template Alteration]" and make the following changes: do i have to edit the vbshout.php file?? or is it in the edit templates? i cant find any file that says vbshout template alteration anywhere.
Reply With Quote
  #118  
Old 01-26-2006, 06:30 PM
Telegon80 Telegon80 is offline
 
Join Date: Aug 2005
Location: Fort Lauderdale, FL.
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

seriously can anyone help me here?
Reply With Quote
  #119  
Old 01-26-2006, 07:05 PM
S@NL - BlackBik's Avatar
S@NL - BlackBik S@NL - BlackBik is offline
 
Join Date: Jul 2004
Location: Netherlands
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's in your plugin manager on your admincp
You don't have to edit the php file, just edit the code in the plugin/
Reply With Quote
  #120  
Old 01-26-2006, 07:08 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi peeps

Any advance my wee issue?
Reply With Quote
  #121  
Old 01-27-2006, 09:50 AM
Telegon80 Telegon80 is offline
 
Join Date: Aug 2005
Location: Fort Lauderdale, FL.
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

went ahead with the install...

Fatal error: Call to undefined function: isbanned() in /home/.geesha/********/*******/forums/global.php(357) : eval()'d code on line 113

edit: read the thread and it looks like i have to skip option 2b???? :ermm:
Reply With Quote
Reply

Thread Tools

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:36 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.05082 seconds
  • Memory Usage 2,317KB
  • 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
  • (1)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
  • (2)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