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
  #192  
Old 07-16-2006, 03:16 AM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I clicked it!!! I clicked it!!! I did, I did! :banana:

I had a really cheap (well, free actually) and nasty (well, crap actually) shoutbox from my phpbb board, but this kicks ass over it. I especially am glad it is member limited too, in that it restricts spambots and such like. Good stuff!
Reply With Quote
  #193  
Old 07-16-2006, 03:20 AM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In response to some of the above posts, regarding it not working on vb3.5.4, my forum is running 3.5.4 and this shoutbox worked 1st time without a single glitch or error for me.

However, as I'm new to vb in general and have only been a user of it for a couple or so weeks, my board is virtually untouched aside from a couple of google ads thrown in through my own editing of the templates as well as some code given by the vbulletin team on the .com brother site to here. The only single other mod i have is an autogreet for new sign-ups, so my plugin's are empty aside from one.

I can only assume this is the issue for some of the more experienced users amongst this thread, that other plugins - especially for those that are heavily modified - are creating the reported issues.
Reply With Quote
  #194  
Old 07-16-2006, 04:40 AM
ashley53680 ashley53680 is offline
 
Join Date: Dec 2003
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, so yours works without many modifications. That makes it narrowed down to being affected by mods. So what in THIS mod would keep all other mods working, but totally blank out vbshout? I am not a coder, so I am just trying my best to pinpoint the problem...
Reply With Quote
  #195  
Old 07-16-2006, 06:36 AM
GNDI's Avatar
GNDI GNDI is offline
 
Join Date: Jun 2005
Location: Denmark
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ashley53680
Okay, so yours works without many modifications. That makes it narrowed down to being affected by mods. So what in THIS mod would keep all other mods working, but totally blank out vbshout? I am not a coder, so I am just trying my best to pinpoint the problem...
agree, it was a very good information we was given there, >>Working on a NON modified board".

But I'm not a coder my self, but I'll hope these info, will help solve the problem
Reply With Quote
  #196  
Old 07-16-2006, 07:37 AM
dietcokebf2 dietcokebf2 is offline
 
Join Date: Apr 2006
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to get this at the top of the vbadvanced header as well? I noticed it wont show on header on the vbadvanced main page...

Thanks.
Reply With Quote
  #197  
Old 07-16-2006, 07:56 AM
GNDI's Avatar
GNDI GNDI is offline
 
Join Date: Jun 2005
Location: Denmark
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dietcokebf2
Is there a way to get this at the top of the vbadvanced header as well? I noticed it wont show on header on the vbadvanced main page...

Thanks.
If you go to the vbshoutbox thread there is a link there to this hach your request
Reply With Quote
  #198  
Old 07-16-2006, 07:58 AM
dietcokebf2 dietcokebf2 is offline
 
Join Date: Apr 2006
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GNDI
If you go to the vbshoutbox thread there is a link there to this hach your request
Could you please link me to the hack? Like the direct link to the post to help me. I am lazy. Thanks bud.
Reply With Quote
  #199  
Old 07-16-2006, 10:42 AM
GNDI's Avatar
GNDI GNDI is offline
 
Join Date: Jun 2005
Location: Denmark
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=93097" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=93097</a>
Reply With Quote
  #200  
Old 07-16-2006, 05:46 PM
karlm's Avatar
karlm karlm is offline
 
Join Date: Jul 2006
Location: England
Posts: 447
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ashley53680
Okay, so yours works without many modifications. That makes it narrowed down to being affected by mods. So what in THIS mod would keep all other mods working, but totally blank out vbshout? I am not a coder, so I am just trying my best to pinpoint the problem...
Unfortunately, I don't know coding well enough to even hazard a guess. I used to program in +3 BASIC when I was a teenager, so although I can 'roughly follow' what I see in the code, I dont' have enough php nor mysql experience to comprehend the full workings of it. I would assume, logically, that there is a table or variable collision. For example, it could be that this MOD (purely example purposes so don't quote me on this) uses a variable called $somestuff and you have another MOD that also uses the same variable $somestuff.
For this moment, that's all I can think of, sorry. Perhaps you could attemp to disable all MODs except this (shout). Then re-enable your other MODs one by one. Although it might take a good bit of tedious fiddling within your admincp, it would guarantee a confirmation of which other MOD is clashing with the shout-MOD.
Once narrowed down, you could manually locate the clashing variable and then manually edit it (eg use $something-b in place of $something).

I do hope a resolve is found in the near future for your problems, but the shout does work well.
Reply With Quote
  #201  
Old 07-16-2006, 06:21 PM
GNDI's Avatar
GNDI GNDI is offline
 
Join Date: Jun 2005
Location: Denmark
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I look at the script:

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()));
}
then I'll see a if whit two I's that might be the problem, any one who have tried to mess whit this one?
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 07:00 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.05104 seconds
  • Memory Usage 2,330KB
  • 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
  • (1)bbcode_code
  • (5)bbcode_php
  • (4)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