News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMFPacks.com Shoutbox

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

Previous topic - Next topic

Dzonny

Quote from: pikeman on February 13, 2022, 07:30:56 AMHello, is a modification for 2.1 planned?
There is a pro version, it's 2.1 ready now :)

Apart from that, anyone had a problem similar to this, I'm on 2.1.1 (php 7.3) and with fresh install (PRO version of the mod) I'm getting errors:
QuoteThere was an error loading new messages, this could be due to losing your session or server being unavailable, please refresh this page or wait 8 seconds while the shoutbox retries.
Messages won't show until page is reloaded, and also I can't open Moderation panel from shoutbox, it's loading all the time in endless loop. Any suggestions?

pikeman


pikeman

Deinstalled, author does not show interest in fixing the errors.

chaos40

Hello everyone

not sure if this question was answered already but is there a way to make all the shouts in the shout box go into a thread?

I've seen this done on other forums where all shouts will get dumped into a pre designated thread

thanks

Doug Heffernan

Quote from: chaos40 on August 28, 2022, 01:19:39 PMnot sure if this question was answered already but is there a way to make all the shouts in the shout box go into a thread?

Yes, there is a way, but it will require custom work. It can not be done in the current version/sate of the mod.

chaos40

Quote from: Doug Heffernan on August 28, 2022, 02:19:02 PM
Quote from: chaos40 on August 28, 2022, 01:19:39 PMnot sure if this question was answered already but is there a way to make all the shouts in the shout box go into a thread?

Yes, there is a way, but it will require custom work. It can not be done in the current version/sate of the mod.

Cool. I'm assuming this is a paid for option?

Any idea on a price? who do I reach out to?

thanks in advance

should I post a link to my forum?

Doug Heffernan

Quote from: chaos40 on August 28, 2022, 02:29:52 PMCool. I'm assuming this is a paid for option?

Any idea on a price? who do I reach out to?

thanks in advance

should I post a link to my forum?

I do not know if it is going to be a paid option or not, and how much it will cost. You can ask the mod author about all that. I have not seen him being active here, so it might be best to reach him at his own forum.

chaos40

Quote from: Doug Heffernan on August 28, 2022, 02:35:14 PM
Quote from: chaos40 on August 28, 2022, 02:29:52 PMCool. I'm assuming this is a paid for option?

Any idea on a price? who do I reach out to?

thanks in advance

should I post a link to my forum?

I do not know if it is going to be a paid option or not, and how much it will cost. You can ask the mod author about all that. I have not seen him being active here, so it might be best to reach him at his own forum.

that would be smfpacks.com - correct?

thanks for your replies


chaos40

Any ideas on how to get this mod to display properly with a mobile device?

rcane

#2870
Hello folks. 

I'm running: 2.0.19.  The shoutbox seems to work fine, but the errors are still there in the log. 

I'm getting an error for subs-shoutbox.php line 93, trying to access array offset on value type null.


This is the line SMF is pointing to:


// we need this be faster...
==>93:     

   

if (!empty($_SESSION['shoutbox_lastget']) && $_SESSION['shoutbox_lastget'] > $shoutbox['banUpadte'])
94:     


return false;


'banUpadte' (is that a type because banUpdate makes more sense, yet banUpadte shows everywhere in the files) has a value of '0' in the database table. 

I banned a test account, and unbanned them, which left a timestamp of the last event; I'll keep an eye to see if having values in there has any effect on the error.

Nibogo

Try doing:

if (!empty($_SESSION['shoutbox_lastget']) && !empty($shoutbox['banUpadte']) && $_SESSION['shoutbox_lastget'] > $shoutbox['banUpadte'])
banUpadte is indeed a typo which has not been (and probably won't be) fixed.

aegersz

#2872
@delta5

re: preg_replace error - I just commented out the function by adding "//" to the beginning of lines 310-318. Your line numbers may be different than mine as I made another bug fix earlier. Check them.

I don't care if the word is too long (that's what the code does) as I want it to accept any length.

Don't forget to save a copy of ./Sources/Shoutbox.php first !
The configuration of my Linux VPS (SMF 2.0 with 160+ 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

MegasXLR

Hey guys, I'm using SMFPacks Shoutbox and would like to ask if it's possible to make the shoutbox uncollapsed and visible for guest users. Currently if a guest visits my website they have to click the little '+' icon in the upper right corner to show the shoutbox whereas it's shown by default for registered users. I'm using version 1.1 of the mod on SMF 2.0.19. Searched throughout permissions and settings but there's no setting for this. Also tried to edit code and managed to show the shoutbox window but the actual messages weren't loading.


I love rock/metal/pop but don't mind any other music genre except чалга...that thing sux
I also love cars

PS I'm friendly

peter_mein

Maybe make an update to version 1.4.9.
Maybe then it will work again

MegasXLR

Quote from: peter_mein on July 05, 2023, 08:48:05 AMMaybe make an update to version 1.4.9.
Maybe then it will work again

1.1 is the latest version here.


I love rock/metal/pop but don't mind any other music genre except чалга...that thing sux
I also love cars

PS I'm friendly

peter_mein

No that is an old free Version. The new Version is 1.4.9 but it is not a free Version.
You can buy it here: https://www.smfpacks.com/index.php?PHPSESSID=nfsg89m9m2sb012uonjapu6gs5&#products_index

MegasXLR

Oh, I thought the Pro version was just to support the developer - didn't know it was ahead of the free one in terms of code and functionality.
Nonetheless I managed to make the shoutbox visible to guests (without them needing to press the '+' icon) by editing the shoutbox.js file & here are the steps if anyone would want to achieve the same thing:
1. Go to the 'Themes/default/scripts/shoutbox/shoutbox.js' file.
2. Add the following line of code to the start of the 'Shoutbox_GetFeatures' function:
    Shoutbox_ShowHide(); // this is needed so that the Shoutbox is enabled by default (otherwise it was collapsed for guests)
3. Find every occurrence of the 'colorPicker' variable in the same file and wrap it inside of the following statement:
    if (typeof colorPicker !== 'undefined') {
4. Find every occurrence of 'document.getElementById("shoutbox_message")' and wrap it inside of the following statement:
    if (document.getElementById("shoutbox_message") != null) {
5. Find every occurrence of 'document.getElementById('shoutbox_faces')' and wrap it inside of the following statement:
    if (document.getElementById('shoutbox_faces') != null) {
6. Go to the 'Shoutbox_Hover' function.
7. Change the condition from 'if (!m && s.alt != '')' to 'if (!m && s != null && s.alt != '')'.
8. In the same function wrap the last line that sets the 's.style.backgroundImage' property inside of the following statement:
    if (s != null) {
9. Go to the 'Shoutbox_SetStyle' function.
10. Comment or delete the last line after the '// any time we set a style, focus at the end' comment.

PS: You can skip the 'document.getElementById("shoutbox_message")' occurrences in the these functions: Shoutbox_PutMsgs, Shoutbox_SentMsg


I love rock/metal/pop but don't mind any other music genre except чалга...that thing sux
I also love cars

PS I'm friendly

Steve

Thanks for providing @peter_mein with that solution @MegasXLR, but from here out can we keep this topic about the free version please? Thanks.
DO NOT pm me for support!

MegasXLR

Quote from: Steve on July 06, 2023, 08:08:29 AMThanks for providing @peter_mein with that solution @MegasXLR, but from here out can we keep this topic about the free version please? Thanks.

That fix is about the free version (v1.1) @Steve. I kind of solved my own problem I asked about and thought I'd share how I did it so others can benefit too :)


I love rock/metal/pop but don't mind any other music genre except чалга...that thing sux
I also love cars

PS I'm friendly

Advertisement: