vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Products & Extensions (https://vborg.vbsupport.ru/forumdisplay.php?f=258)
-   -   Chat Modifications - [DBTech] vBShout v6 (vB5) [AJAX] (https://vborg.vbsupport.ru/showthread.php?t=288915)

heugabel 11-14-2021 02:58 PM

Quick fix for error in 5.6.5
in core/packages/dbtechvbshout/db/mysql/querydefs.php

search:
PHP Code:

$readChannels vB::getUserContext()->getReadChannels(); 

comment out or replace with:
PHP Code:

/*        $readChannels = vB::getUserContext()->getReadChannels(); */ 

next remove this line:
PHP Code:

AND vbshout.forumid IN(" . implode(',', array(0) + $readChannels['canRead']) . "


mdawg 11-15-2021 07:11 PM

What does that solve? Does this make vbshout work in 5.6.5 or is that a solution to the smilies list issue posed by LuckyRiver?

heugabel 11-15-2021 10:42 PM

this is a quick fix of error in 5.6.5

mdawg 11-16-2021 05:01 PM

YES, I am using vbshout on two sites running 5.6.5 after commenting out line 441 and removing 462 as you suggested. Thanks!

ka99 11-17-2021 12:37 PM

I was able to get it running on 5.6.5 with the help of @heugabel suggestions

but when I try to send to a certain user (shout target) I get the error "Error: 200 parsererror"

any idea?

TIA.

mdawg 11-25-2021 08:05 PM

From what I can see, these modifications will enable vbshout to work on vb 5.6.5 running something like PhP 7.4
If you try to run it with PhP 8 even with these modifications you'll get a new error,

unexpected_error,Unsupported operand types: string - int

and vbshouts will not load.

mdawg 01-13-2022 02:50 AM

I have to do some further checking but on my test forum it seems like vb 5.6.6 made the username of the shoutbox user disappear from the shout. The shout remains but to the left of it the username is no longer there.

https://i.imgur.com/ooectBSl.jpg

yilmaz 01-13-2022 08:06 AM

1 Attachment(s)
php 8 works with vB 5.6.6

Code:

/core/packages/dbtechvbshout/api/vbshout/shoutbox.php
Throw the attached php file to the full path above.

Demo https://vbyilmaz.com/vBShout

mdawg 01-13-2022 03:17 PM

When I look at your demo https://vbyilmaz.com/vBShout

I see this
https://i.imgur.com/iM989ipl.jpg
is that how it will be without identifying the username of the user who is making the shout? To the left of each "shout" is a generic face
https://i.imgur.com/2Lvqs4Xm.jpg
no username.

mdawg 01-13-2022 03:57 PM

Okay this is what I found out.

The Yilmaz new shoutbox.php will allow shoutbox to work with PhP 8.

Without this new file, you will get the
unexpected_error,Unsupported operand types: string - int
https://vborg.vbsupport.ru/
error when you try to run shoutbox on PhP8. So the new Yilmaz file SOLVES that error - that error will go away and Shoutbox will run okay now on vb 5.6.5 running PhP 8.

HOWEVER, there is a new issue that has to do with vb 5.6.6 When you run 5.6.6 , the shoutbox username disappears from the left side of the shoutbox,
https://vborg.vbsupport.ru/
and there is no way to tell who is making the shout.


All times are GMT. The time now is 06:10 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.02614 seconds
  • Memory Usage 1,743KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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