News:

Wondering if this will always be free?  See why free is better.

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

Forte

The shoutbox mysteriously stopped working in the middle of the night, apparently. I changed themes, but it worked after that, so I don't really think it was that. I can't see the shoutbox anymore, it just sits there as an empty box, but other users say they try to post in it and get this error:

Warning: fopen(chats/home.txt) [function.fopen]: failed to open stream: Permission denied in /home/forte/public_html/forum/yshout/yshout.php on line 798
File error (writeLine); aborted

Anyone know what to do?

asmith

#4201
Is this onload handler, something wit javascript? I'm not sure but I remember sometime before I saw a little code which would mix 2 onload functions together ...

however, I will wait for your upgrade of this shout box. Actually a chat box that won't refresh has no use I guess.


edit :   

Found the code :

// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function()
{
Start1();
Start2();
}
);


just trying to help, hope you don' take it the wrong way that I'm showing code. for sure you know more than me.

virtualxtc

#4202
Quote@virtualxtc: It looks right. Have you checked to make sure there isn't another onload event?
Thats the only onload event.

This appears in the url when the page reloads but doesnt post...

http://www.sitename.com/index.php?shout_text=Testing+The+Shoutbox%21
I tried to shout "Testing The Shoutbox"

tadi

#4203
I have one problem with the characters permitted.

When someone writes in english the  characters  permitted in each shout is
$maxShoutChars=255;

But when someone writes in greek (the language of the forum) then the $maxShoutChars is about 55 characters. When you write more then the &#959 appears

Why is that?

How can I solve this?   :)


nneonneo

@Forte: chmod that file (chats/home.txt) to 755 or 777.

@virtualxtc: That just means that the "onSend();" handler isn't working. On beta 4, it might be because you are missing the beta 4 fix.

@tadi: The shoutbox counting is a bit weird for non-english languages, because of encodings. It is actually storing about 6 characters per message (up to 8 characters, for Chinese, etc.). So, you are recommended to increase the limit to around 6 times that.
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

tadi

#4205
Ok thanks...

and another question.

How can I activate custom smileys ? I have the smf 1.1.6

Or If it is possible when you click on the open smiley option the smileys to appear in an another page.

Thanks again

Forte

Thanks, that fixed the posting problem, but now, whenever a user posts, the shoutbox shrinks down to 0 lines, then posts the new message (along with displaying the other ones still up there), but it only shrinks for the user who posted the shout. I hope that makes sense. Is that something that needs to have its permissions changed as well, or something in one of the files?

nneonneo

@Forte: Try turning off $gzipCompression; it's possible a warning is making the shoutbox collapse.

@tadi: I *thought* the smileys mod did add the extra smileys under a popup form...
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

Forte

Yeah, there's warnings there. Three of them.

Warning: fopen(chats/history.home.txt) [function.open]: failed to open in stream: Permission Denied in /home/forte/public_html/forum/yshout/yshout.php on line 762.

Warning: fputs(): supplied argument is not a valid stream resource in /home/forte/public_html/forum/yshout/yshout.php on line 763.

Warning: fclose(): supplied argument is not a valid stream resource in /home/forte/public_html/forum/yshout/yshout.php on line 764.


nneonneo

OK, do the same chmod to the chats/history.home.txt file.
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

Forte


virtualxtc

Quote@virtualxtc: That just means that the "onSend();" handler isn't working. On beta 4, it might be because you are missing the beta 4 fix.
I have already made the change to yshout.js.
Was there another fix?

leonardus

Quote from: nneonneo on October 20, 2008, 11:24:27 AM
@leonardus: Try clearing the language cache.

VERY VERY GOOD! thank you very much!

tadi

Quote from: nneonneo on October 21, 2008, 12:13:47 AM

@tadi: I *thought* the smileys mod did add the extra smileys under a popup form...

Yes they are.

But here is the problem:
I have the shoutbox in the top of the page.
So when I add the smiley, I have to increase the width of the header area ( I use onyx theme).
But when the smiley are hidden I have a big gap between the forum and the shoutbox.

So is there a possibility to use custom smileys and not the ones that I have in the forum?

:) :)

mechwarrior

#4214
Dont worry, found it :) in the settings.php file.

--

Hello,

I am quite new to installing this and a forum. I am running SMF 1.1.6 default forum atm, how can i change the default amount of shouts that appear in the shoutbox?

Currently the users can add loads, i want to limit it to say 10 lines of txt.

Many thanks :)

asmith

How can upgrade to adv shoutbox?

StaticFX

2 Questions:

1) How do I reverse the order, so new shouts are on top.
2) Is there supposed to be an admin section? I dont see it

Nequil

#4217
Quote from: Nequil on October 01, 2008, 10:10:35 AM
dammit... @nneonneo can you paste this code to my yshout.php?... please I can't do this...

global $ip;
if(!isMod() && preg_match($ip, file_get_contents($chatPath))>3)
{
   echo "Sorry, you've already posted 3 messages...";
   return;
}


thanks nneonneo, but doesn't work... look on this:

I would like to members without group send only 3 lines of messages in shoutbox (spam security) (understand?)




StaticFX

ok, found an issue

I have the Shoutbox in the simple portal.. i did it by adding a PHP block, then putting

shoutbox();

as the code... it works BUT, it seems like only admins can see it? how can i make it viewable by all but guests?


[unplugged]

You have to set the permissions for your membergroups in SMF's admin (permissions) area
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Advertisement: