SMFPacks.com Shoutbox

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

Previous topic - Next topic

Deprecated

Nibogo, I've written about two dozen mods. The only difference between my package and yours is I pre-modified the file to be modified.

Remember for a short time I was on the mod squad. I know mods. And more importantly, if you ever want to modify a file you turn it into a mod package so the package manager will take care of it for you. Once you start modding raw files you quickly end up with a mess that cannot be controlled.

In an ideal world you could install and remove mod packages in any random order. In the real world mod authors F up and design crumby mods that don't install nicely and don't play well with other mods. In the end the only way you can be nearly sure your mods work is to uninstall them in reverse order from how they were installed.

I won't have code on my forum that didn't get installed via the package manager. I'l either change the mod, or if I have to custom mod files I'll write a custom mod package to do it.

It has everything to do with configuration control. The package manager is designed to aid you in this task. Manual edits totally ruin the concept.

And anyway I verified my file and it was exactly as you described the changes. I ain't no babe in the woods.

I'm currently transferring to a new registrar and new server so all work is halted until about a week until I get on my new server and create some no-mod test forums and then I'll try your mod again.

But really, except for installing in custom themes, nobody should modify a file manually. If a file needs to be different then the mod package needs revision.

Let me know if you want me to post the package here if I get it working. Otherwise I'll just be happy it works and move on. If it's okay with you and I do post the package you can check the 2.0.11 compatibility box on the mod site. After uploading the revised mod package.

Deprecated

I'm having better luck with this mod, but no sound, and clicking sound button does absolutely nothing. Maybe it's my browser or I dunno.

Actually I don't want sound. I think I can handle deleting the sound button, but is sound defaulted on or defaulted off?

If defaulted on, can you tell me how to disable it?

Thanks! :)

Deprecated

I finally gave up and went to NChat instead. This mod was just too sloppy on my 2.0.11 forum, like erratic behavior and when a pop-up box appears it isn't sized to the contents. Some of the features like deleting a post didn't work until I refreshed the main browser window. If you delete a post it should disappear immediately.

Also, very oddly, I found a JavaScript in the Themes/default/images/bbc folder!!! I amused myself modding it a bit. :) I wonder why the author didn't put it with the other JavaScript files...

The very worst part, apparently it requires Flash (SWF) and I don't know WTH is wrong with Adobe but they seem to modify their flash every few weeks. Adobe just can't write a flash that isn't hacked and owned within a few weeks, and I'm getting sick and tired of updating, especially since they try to load it up with McAfee every time you update.

The problem with the flash was that many of my users couldn't see the shout box, and the reason turned out to be so many of them didn't have the latest flash. This could be a constant problem on many forums, because if your flash isn't working you have no indication the forum has a shout box. Not knowing there is one they aren't going to say anything, and may never find out there IS a shout box. This is a very bad failure mode.

I'm rating this mod a thumbs down, it's not ready for prime time.

Steve

Odd because I have none of those problems.
DO NOT pm me for support!

Yukichu

I was skeptical, very skeptical.  I thought this was all a ruse to get me frustrated installing the free version and end up paying for the pro version.  I was sure it was going to be a disaster.  Manually editing the files seemed like the worst way to install something.

I installed it.  First try.  It appears to work.  I'm pretty pleased with it.  I'm so pleased I may actually purchase the pro version eventually.

Moving the chatbox to the bottom of the page was easy as well.  I'm tickled pink.

SMF 2.0.11

Steve

The Pro version is currently on sale. It just may have enticed me into buying it as well.
DO NOT pm me for support!

Ezaco

Is there a way to enable this only on specific boards?

Barring that, is the ?action=shoutbox page only available to admins?

Or are these Pro features?

Ezaco

Quote from: Ezaco on April 05, 2016, 10:06:21 AM
Is there a way to enable this only on specific boards?

Barring that, is the ?action=shoutbox page only available to admins?

Or are these Pro features?

Nevermind the shoutbox page question... I didn't realize I had to set usergroup permissions.

However question of putting the shoutbox on specific boards (I don't really want it on the forum index) remains

br360

If you want it to show when members open boards but not on the main index page go into the shoutbox settings- Admin>Configuration>Shoutbox Settings.

Look for "Pages where Shoutbox will be printed" and remove boardindex.

Then click the "save settings" button.

Nibogo

If you want per board settings, that's not available at the moment. You could modify index.template.php and manually add those boards where you want to hide it or show it.

Owdy

ahttp://****.fi/index.php?action=shoutbox;sa=send;sesc;xml;row=32
8192: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
File: /var/www/vhosts/***/Sources/Shoutbox.php


How can i fix that? :)

edit: ah, i try this http://www.simplemachines.org/community/index.php?topic=269091.msg3859374#msg3859374
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Owdy

#2632
Quote from: Nibogo on February 06, 2016, 04:02:38 PM
Try opening Shoutbox.php and replacing:

Thats 2 times in there?

edit: well, replaced it twice :)
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

JerzyLS

Other solution for PHP version 5.5 and above.

Sources/Shoutbox.php

Find:

$msg = preg_replace(
'~(?<=[>;:!? ' . $non_breaking_space . '\]()]|^)([\w\.]{' . $shoutbox['fixLongWords'] . ',})~e' . ($context['utf8'] ? 'u' : ''),
'preg_replace(\'/(.{' . ($shoutbox['fixLongWords'] - 1) . '})/' . ($context['utf8'] ? 'u' : '') . '\', \'\\$1< >\', \'$1\')',
$msg);


And replace:

$msg = preg_replace_callback(
'~(?<=[>;:!? ' . $non_breaking_space . '\]()]|^)([\w\.]{' . $shoutbox['fixLongWords'] . ',})~' . ($context['utf8'] ? 'u' : ''),
function ($matches) use ($shoutbox, $context) {
return preg_replace('/(.{' . ($shoutbox['fixLongWords'] - 1) . '})/' . ($context['utf8'] ? 'u' : ''), $matches[1] . '< >', $matches[1]);
},
$msg);

babalola olasehinde

thanks for this mod but i am having issue on mobile view

its not well arrange , as in the button for bold,italic etc are not showing immediately i open the forum on mobile unless after opening the site i have to scroll to the right to see it , ps how do i move it to the next line , so that once i open my site i will see everything instead of scroll because in the whole of the forum that is the only thing on the right , all others arrange

thanks

Kindred

I do not believe that this mod works well in responsive themes...
Слaва
Украинi

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."

babalola olasehinde

Quote from: Kindred on May 24, 2016, 07:23:10 PM
I do not believe that this mod works well in responsive themes...

okay thanks will try and uninstall this mod and try other mod because my site is using a responsive theme

Kindred

I would be surprised if the "other mod" worked well on mobile/responsive either...
Слaва
Украинi

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."


LoriMomof9

so on the free version - who can see the shoutbox?  I have a Newbie login (for test purposes) and can't see it.  But I can on my admin account....I might consider purchasing it, but I want to see if people would use it on our site....

Advertisement: