• Welcome to Simple Machines Community Forum. Please login or sign up.
November 27, 2021, 01:38:21 AM

News:

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


nneonneo's Shoutbox

Started by nneonneo, December 26, 2006, 06:58:11 PM

Previous topic - Next topic

mortymoose

Sorry, to barge in, but was there a solution to this issue? I am running 2.0.2 and have the exact same problem, no box, text just keeps scrolling down and down with each post....

thanks

supaloopa

How can I change the order of the shouts? I want the newest shout to be on top and the oldest at the bottom.

br360

Go into your FTP. In yshout.php find this line

$chatText = file_get_contents($chatPath)

Replace that line with

$chatText = implode('',array_reverse(file($chatPath)));

and the order of the chats will be reversed.




supaloopa

Quote from: br360 on July 06, 2013, 12:15:26 PM
Go into your FTP. In yshout.php find this line

$chatText = file_get_contents($chatPath)

Replace that line with

$chatText = implode('',array_reverse(file($chatPath)));

and the order of the chats will be reversed.


I dont see that line.
This is what in that file.

Quote<?
error_reporting(E_ALL);
ob_start();
set_error_handler('errorOccurred');
include 'include.php';
if (isset($_POST['reqFor']))
   switch($_POST['reqFor']) {
      case 'shout':

         $ajax = new AjaxCall();
         $ajax->process();
         break;

      case 'history':
      
         // echo $_POST['log'];
         $ajax = new AjaxCall($_POST['log']);
         $ajax->process();
         break;

      default:
         exit;
   }
else
   include 'example.html';

function errorOccurred($num, $str, $file, $line) {
   $err = array (
      'yError' => "$str. \n File: $file \n Line: $line"
   );

   if (function_exists('jsonEncode'))
      echo jsonEncode($err);
   else
      echo $err['yError'];
   exit;
}

?>

br360

Are you sure it was nneonneo's Shoutbox that you installed? Not only is that not in any of the files, but it appears to be some sort of error that is being kicked out as well.

supaloopa

July 06, 2013, 12:32:14 PM #6105 Last Edit: July 06, 2013, 02:20:18 PM by supaloopa
Nevermind I got it

Xarkurai

Should I worry about the message my browser gives when I use this mod?
It returns: Refused to set unsafe header "Connection".

Can I also use this in an external page with SSI?
I tried to make it work on the same way by importing it into a theme. It displays everything but shouting doesn't work.

Thanks!
Useful paid mod: Badge Awards - Award members for actions

Arantor

Moved to the Chat/Shoutboxes category.
No good deed goes unpunished
All helpful urges should be circumvented

AceAH47

Anyone have this mod working with a SMF v2.0.11 installation?  It was what our old v1 forum was using, so I tried installing SB_1.22 on a clone running SMF 2.0.11 and TinyPortal 1.111, via the Package Manager.  The install worked (at least for the default theme), but the functionality didn't:  the home page displayed the text input interface without any actual Shoutbox, attempts to shout had no effect, and so on. 

Being able to use it again is appealing, since our current Shoutbox uses auto-refresh, but I'm not sure how long a road it would be to get it there.

Deprecated

Thanks for the post, Ace. I was just going to try an install on 2.0.11 and after your post I decided to forget it.

Zwerko

Chat is perfect, working like a charm on 2.0.11 on curve and custom blu theme. I have installed most basic 1.22b version, edited setting.php to change max lines to 6 (was 12 )... I recommend it warmly

Deprecated

I'll give it another try. Perhaps I was too hasty.

dansimati

Hi!
Is it a way to hide/show the shoutbox? Because I can't use jquery, and I don't know how to do it with mootools...

Thanks

leonardus

Can you help me? In new php version I have this error:
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /srv/psa05/xxxxxxx.xxxxxx/httpdocs/smf/Sources/Load.php(219)

In may lines of load.php and subs.php.

Can someone modify this file for me? Thank you.

Chen Zhen


re. ildragonero.info

I don't see any \e modifier being used in nneonneo's shoutbox code.
This is most likely due to your Simple Portal installation.
Update Simple Portal to version 2.3.6 (uninstall & delete 2.3.1 and then install 2.3.6).
Then do a manual edit from this reference: http://simpleportal.net/index.php?topic=10356.msg68208#msg68208

My SMF Mods & Plug-Ins

WebDev


"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

leonardus

Quote from: Chen Zhen on January 22, 2017, 07:55:05 PM

re. ildragonero.info

I don't see any \e modifier being used in nneonneo's shoutbox code.
This is most likely due to your Simple Portal installation.
Update Simple Portal to version 2.3.6 (uninstall & delete 2.3.1 and then install 2.3.6).
Then do a manual edit from this reference: http://simpleportal.net/index.php?topic=10356.msg68208#msg68208

thank you very much. I will try soon as possible.
Can I update SimplePortal without losing datas and settings (after uninstall and delete)??

Chen Zhen

leonardus,

When uninstalling Simple Portal 2.3.1 it might give you the option to remove its database entries.
Just ensure you do not do so.. The default is to not remove anything so just don't change any option on that screen.
When you install SP 2.3.6 it should have all your old blocks and settings.
You will then need to do the manual edit from the link I provided.

Also I do not know what version of Nneonneo's shoutbox you have installed.
You should be using the latest advanced version.
It updates in the same fashion (uninstall old version and delete then install new version)

You should update SMF itself since that version you are using has security flaws.
SMF 2.0 RC2 should be upgraded to SMF 2.0.13 (Imo Large Upgrade package)
However this will involve installing all your mods anew. I suggest using all their most recent versions.
ref. http://wiki.simplemachines.org/smf/Upgrading

Regards.

My SMF Mods & Plug-Ins

WebDev


"Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune." - Noam Chomsky

Spirited

Quote from: Xarkurai on November 21, 2013, 05:56:46 PM
Should I worry about the message my browser gives when I use this mod?
It returns: Refused to set unsafe header "Connection".

Can I also use this in an external page with SSI?
I tried to make it work on the same way by importing it into a theme. It displays everything but shouting doesn't work.

Thanks!

I had this same problem, but this question was never answered. It seems to be a bug caused by "moo.ajax.js" and how it directly assigns the connection header to close. In chrome, this causes many error messages but doesn't interfere with functionality. The fix for checking the browser version is this (taken directly from a more recent version of moo.ajax.js:

Find in /yshout/js/moo.ajax.js:
if (this.transport.overrideMimeType)
Replace with:
if (this.transport.overrideMimeType &&
               (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0,2005])[1] < 2005)


dopamina

It's not working anymore.
I get this javascript error:

QuoteUncaught TypeError: Cannot read property 'style' of null
    at loadChat (yshout.js?July062008:14)
    at index.php:30

Advertisement: