SMFPacks.com Shoutbox

Started by Nibogo, October 19, 2008, 11:41:06 AM

Previous topic - Next topic

rawbert

#2700
How can I make the shoutbox show all the time on every forum board/page/topic?

Pages where Shoutbox will be printed
-by default:

boardindex
collapsecategory
collapse

-I added:
forum

but that didn't help

Edit: OK, I found this one too, add:

messageindex
unreadtopics
display
memberlist
groups
showhelp
messagemain
post
post2
who

rawbert

One more lol..
How do you make the shoutbox expand by default for everyone at their first visit, for guest too?

@rjen

Quote from: rawbert on June 15, 2017, 03:51:50 AM
How can I make the shoutbox show all the time on every forum board/page/topic?

Pages where Shoutbox will be printed
-by default:

boardindex
collapsecategory
collapse

-I added:
forum

but that didn't help

Edit: OK, I found this one too, add:

messageindex
unreadtopics
display
memberlist
groups
showhelp
messagemain
post
post2
who

See the release notes:
Quote1.1 - 27 May 2017
* Much easier installation.
- Support for SMF 1.1.X
+ Support for PHP 7.X
* New sound method for better compatibility.
! Minor tidy up!
+ Added "everywhere" as a key string to show the shoutbox across the entire forum!

Just add: "everywhere"
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

rawbert

Quote from: @rjen on June 15, 2017, 05:18:02 AM
Quote from: rawbert on June 15, 2017, 03:51:50 AM
How can I make the shoutbox show all the time on every forum board/page/topic?

Pages where Shoutbox will be printed
-by default:

boardindex
collapsecategory
collapse

-I added:
forum

but that didn't help

Edit: OK, I found this one too, add:

messageindex
unreadtopics
display
memberlist
groups
showhelp
messagemain
post
post2
who

See the release notes:
Quote1.1 - 27 May 2017
* Much easier installation.
- Support for SMF 1.1.X
+ Support for PHP 7.X
* New sound method for better compatibility.
! Minor tidy up!
+ Added "everywhere" as a key string to show the shoutbox across the entire forum!

Just add: "everywhere"

Silly me.. thanks!
Now if you can also tell me how to expand it by default, especially for new visitors/guests, I'll buy you a beer!  ;)

Twisted6972

i installed it but how do i allow [ img] tag so some member can show images in show box?


@rjen

I am getting this error in the logs since I am on PHP7.1 and a user apparently uses long words that need ' fixing'

https://xxxx/index.php?action=shoutbox;sa=send;sesc;xml;row=40
2: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
Bestand: /home/xxxx/public_html/Sources/Shoutbox.php
Regel: 316



310: if (strlen($msg) > $shoutbox['fixLongWords'])
311: {
312: $msg = strtr($msg, array($breaker => '< >', '&nbsp;' => $context['utf8'] ? "\xC2\xA0" : "\xA0"));
313: $msg = preg_replace(
314: '~(?<=[>;:!? ' . $non_breaking_space . '\]()]|^)([\w\.]{' . $shoutbox['fixLongWords'] . ',})~e' . ($context['utf8'] ? 'u' : ''),
315: 'preg_replace(\'/(.{' . ($shoutbox['fixLongWords'] - 1) . '})/' . ($context['utf8'] ? 'u' : '') . '\', \'\\$1< >\', \'$1\')',
==>316: $msg);
317: $msg = strtr($msg, array('< >' => $breaker, $context['utf8'] ? "\xC2\xA0" : "\xA0" => '&nbsp;'));
318: }



Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Poster

I'm just able to see the top header of the shoutbox where 'SHOUTBOX' is written and below i don't see anything else. Can you sort me the issue?

Cheers


Torngate

Quote from: @rjen on June 30, 2017, 02:44:18 AM
I am getting this error in the logs since I am on PHP7.1 and a user apparently uses long words that need ' fixing'

hxxp://xxxx/index.php?action=shoutbox;sa=send;sesc;xml;row=40
2: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
Bestand: /home/xxxx/public_html/Sources/Shoutbox.php
Regel: 316



310: if (strlen($msg) > $shoutbox['fixLongWords'])
311: {
312: $msg = strtr($msg, array($breaker => '< >', '&nbsp;' => $context['utf8'] ? "\xC2\xA0" : "\xA0"));
313: $msg = preg_replace(
314: '~(?<=[>;:!? ' . $non_breaking_space . '\]()]|^)([\w\.]{' . $shoutbox['fixLongWords'] . ',})~e' . ($context['utf8'] ? 'u' : ''),
315: 'preg_replace(\'/(.{' . ($shoutbox['fixLongWords'] - 1) . '})/' . ($context['utf8'] ? 'u' : '') . '\', \'\\$1< >\', \'$1\')',
==>316: $msg);
317: $msg = strtr($msg, array('< >' => $breaker, $context['utf8'] ? "\xC2\xA0" : "\xA0" => '&nbsp;'));
318: }


I also get this error, is there a known work around?
Site Administrator- Shadow Fleet Star Trek RPG

Steve

Searching the thread came up with the problem a few times and a fix that worked for me (keep in mind I'm not on PHP 7.1):

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

You could try it after you backup that file.
DO NOT pm me for support!

Torngate

Quote from: Steve on July 15, 2017, 10:01:38 AM
Searching the thread came up with the problem a few times and a fix that worked for me (keep in mind I'm not on PHP 7.1):

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

You could try it after you backup that file.

Shoutbox.php has two instances of that code, should I replace both?

Line 310 and 641

Site Administrator- Shadow Fleet Star Trek RPG

Steve

I can't remember if I replaced both or not. As long as you have a copy of the original file tucked away you could try it.
DO NOT pm me for support!

@rjen

I just replaced both. Error solved.

Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

efk

"Number of messages to keep in Shoutbox" is 100 - default and there is red warning bellow
"Do not modify if you don't know what you're doing"
So why is this warning? Something will happen if we increase the number to 250 or 500? Will that slow down forum?


efk

Quote from: Nibogo on July 25, 2017, 09:29:02 AM
Yes, that feature may hit the performance in your forum.
So any suggestion how much to increase and not to affect forum performances?


napsterion

I've just installed this plugin. I see shoutbox on my forum but i dont see any text what im write.
Not text in the box. What has happend?
Can you help me ?


I use 000webhost.
i tryied every php version from 5 to 7.1


Advertisement: