Advertisement:

Author Topic: SMFPacks.com Shoutbox, Chat  (Read 1038851 times)

Offline Finn_958

  • Semi-Newbie
  • *
  • Posts: 47
Re: SMFPacks.com Shoutbox, Chat
« Reply #2840 on: April 15, 2021, 07:57:03 AM »
Hi,
I would like to buy the pro version but the free version does not work. I does not shows messages long than about 62 characters. I changed permissions with no results:
https://www.coscienzamaschile.com/index.php
Thanks

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,977
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMFPacks.com Shoutbox, Chat
« Reply #2841 on: April 15, 2021, 08:29:00 AM »
I'm not understanding you. Are you wanting to buy the pro version but are afraid to because you're having trouble with the free version?

The pro version (which I have) installs easily and just works. It does all it says it can do. :)
Please do not PM me for support.

Offline Finn_958

  • Semi-Newbie
  • *
  • Posts: 47
Re: SMFPacks.com Shoutbox, Chat
« Reply #2842 on: April 15, 2021, 08:55:03 AM »
Indeed. I would buy the pro version if the free one worked

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,756
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk (drugs and users)
Re: SMFPacks.com Shoutbox, Chat
« Reply #2843 on: May 14, 2021, 04:05:47 PM »
After moving to PHP 7.1 on SMF 2.0.18, this is a bug fix in ./Sources/Subs-Shoutbox.php for:

Code: [Select]
2: strtolower() expects parameter 1 to be string, array given
/var/www/html/Sources/Subs-Shoutbox.php - Line: 33

find:
Code: [Select]
// Verify
                if (!in_array(strtolower($action), $actions) && !in_array('everywhere', $actions))
                        return $action;

add before:
Code: [Select]
                if (is_array($action)) return $action;

The configuration of my Linux VPS (SMF 2.0 with 155+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline efk

  • Full Member
  • ***
  • Posts: 452
  • Gender: Male
Re: SMFPacks.com Shoutbox, Chat
« Reply #2844 on: July 01, 2021, 05:20:30 AM »
8: Trying to access array offset on value of type null
Apply Filter: Only show the errors from this file
File: /home/xxxx/public_html/Sources/Subs-Shoutbox.php
Line: 93

Code: [Select]
92: // we need this be faster...
==>93: if (!empty($_SESSION['shoutbox_lastget']) && $_SESSION['shoutbox_lastget'] > $shoutbox['banUpadte'])
94: return false;

Should it be instead of banUpadte - banUpdate ? I just saw it and that might be the reason for error?
« Last Edit: July 01, 2021, 01:53:33 PM by Steve »

Offline Dzonny

  • Localizer
  • SMF Super Hero
  • *
  • Posts: 12,661
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: SMFPacks.com Shoutbox, Chat
« Reply #2845 on: July 01, 2021, 06:23:36 AM »
You should probably write in mods support topic regards that, as it's not core SMF feature. :)
But yeah, looks like a typo.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,977
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMFPacks.com Shoutbox, Chat
« Reply #2846 on: July 01, 2021, 08:02:34 AM »
Try it and see if it works. :P
Please do not PM me for support.

Online shadav

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,518
  • Gender: Female
    • shadav on Facebook
    • leashadav on GitHub
    • Foamy Fanatics :: For All Your Foamy The Squirrel Needs
Re: SMFPacks.com Shoutbox, Chat
« Reply #2847 on: July 01, 2021, 11:46:16 AM »
not sure which mod this is from but  :laugh: it looks like something I would do  :P
dang dyslexia

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,661
  • Gender: Male
    • i30 Owners Club
Re: SMFPacks.com Shoutbox, Chat
« Reply #2848 on: July 01, 2021, 01:05:15 PM »

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 4,977
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: SMFPacks.com Shoutbox, Chat
« Reply #2849 on: July 01, 2021, 01:54:03 PM »
This topic title could do with some work...  ::)

Merged with mod support topic.
Please do not PM me for support.

Offline efk

  • Full Member
  • ***
  • Posts: 452
  • Gender: Male
Re: SMFPacks.com Shoutbox, Chat
« Reply #2850 on: July 01, 2021, 07:08:13 PM »
8: Trying to access array offset on value of type null
Apply Filter: Only show the errors from this file
File: /home/xxxx/public_html/Sources/Subs-Shoutbox.php
Line: 93

Code: [Select]
92: // we need this be faster...
==>93: if (!empty($_SESSION['shoutbox_lastget']) && $_SESSION['shoutbox_lastget'] > $shoutbox['banUpadte'])
94: return false;

Should it be instead of banUpadte - banUpdate ? I just saw it and that might be the reason for error?
Ok update is fixed but now there are 2 errors, previous above and new one bellow:

Code: [Select]
8: Undefined index: banUpdate
File: /home/xxxx/public_html/Sources/Subs-Shoutbox.php
Line: 93

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,661
  • Gender: Male
    • i30 Owners Club
Re: SMFPacks.com Shoutbox, Chat
« Reply #2851 on: July 02, 2021, 05:30:13 AM »
I don't think it's as easy as just changing "banUpadte" to "banUpdate".

Look inside Shoutbox.php:

Code: [Select]
// last ban update
$smcFunc['db_query']('', "
UPDATE {db_prefix}shoutbox_settings
SET value = {int:time}
WHERE variable = 'banUpadte'
LIMIT 1",
array(
'time' => time()
)

Code: [Select]
// last ban update
$smcFunc['db_query']('', "
UPDATE {db_prefix}shoutbox_settings
SET value = '" . time() . "'
WHERE variable = 'banUpadte'
LIMIT 1");

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,422
  • Gender: Male
    • Kindred-999 on GitHub
Re: SMFPacks.com Shoutbox, Chat
« Reply #2852 on: July 02, 2021, 09:31:47 AM »
lol... in other words, even though it was spelled incorrectly for grammar -- it was consistently used in that spelling as a variable.

Change it back -- otherwise, you'll have to change the DATABASE as well as all instances where the variable is called.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,661
  • Gender: Male
    • i30 Owners Club
Re: SMFPacks.com Shoutbox, Chat
« Reply #2853 on: July 02, 2021, 07:51:02 PM »
^ yep, what he said.

I believe the check should be made using "isset" rather than "!empty", for the $_SESSION check, as "isset" checks against null values:

Code: [Select]
// we need this be faster...
  if (isset($_SESSION['shoutbox_lastget']) && $_SESSION['shoutbox_lastget'] > $shoutbox['banUpadte'])
  return false;