dopetalk

Technology => SMF Forum Code Modifications => Topic started by: Chip on August 10, 2016, 04:39:35 AM

Title: SMFPacks.com Shoutbox, Chat
Post by: Chip on August 10, 2016, 04:39:35 AM
http://custom.simplemachines.org/mods/index.php?mod=1295

does what it says ... only documented recently
Title: Re: SMFPacks.com Shoutbox, Chat
Post by: Chip on October 24, 2016, 03:06:06 PM
settings via: Admin > Configuration

This Shoutbox is now un-disabled and the SP Shoutbox was removed from the Forum page.

Click on "Forum" to see it.
Title: Re: SMFPacks.com Shoutbox, Chat
Post by: Dopeless Hopefiend on October 24, 2016, 10:53:45 PM
So, it's like the shout box but not public? Only members can see it?
Title: Re: SMFPacks.com Shoutbox, Chat
Post by: Chip on October 24, 2016, 11:46:49 PM
So, it's like the shout box but not public? Only members can see it?

Definitely for members only.
Title: Re: SMFPacks.com Shoutbox, Chat
Post by: Chip on February 09, 2018, 07:15:40 AM
new version (1.1) installed BUT chat is lost but save in https://forum.drugs-and-users.org/index.php/topic,4145

2 simple manual code changes to ./Sources/ManagePermissions.php

Title: Re: SMFPacks.com Shoutbox, Chat
Post by: Chip on May 15, 2021, 04:02:30 AM
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;

Title: Re: SMFPacks.com Shoutbox, Chat
Post by: Chip on June 03, 2023, 12:12:30 PM
PHP 7.0 and above bug:

https://www.simplemachines.org/community/index.php?topic=269091.msg3990447#msg3990447

the original source is in ./Sources/Shoutbox.php-orig

I edited ./Sources/Shoutbox.php and then just commented out the function by adding "//" to the beginning of lines 310-318.

I don't care if the word is too long (that's what the code does) as I want it to accept any length.
SimplePortal 2.3.6 © 2008-2014, SimplePortal