nneonneo's Shoutbox

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

Previous topic - Next topic

rufen

I have all that already.

still got that error

8: Undefined index: yshout_loading
File: /home/rufenn/public_html/ldb/forum/Themes/Theme_LDB/BoardIndex.template.php (main sub template - eval?)
Line: 348


brianjw


rufen

I though this topic was the place?


brianjw

It is, you have to wait for nneonneo to answer your question. ;)

zandar

i installed it in to smf 1.1.2.
but i cant find shoutbox control panel.
i m using turkish language pack
:(

brianjw

There is no control panel. Alot of the settings are in /forumroot/yshout/yshout.php :)

Just be careful with them ;)

bobbbb

Quote from: bobbbb on June 11, 2007, 03:34:50 PM
Quote from: nneonneo on June 02, 2007, 11:03:33 PM
There is in fact a bug! (and kudos to you for discovering it).

SMF has a bug. If any DB errors occur in the function setupThemeContext() (or template_header() which calls setupThemeContext()), an infinite recursion will result!
Call stack (as shown by debug_backtrace()):

obExit()
fatal_error()
db_error()
db_query()
setupThemeContext()
template_header()
obExit()
fatal_error()
db_error()
db_query()
setupThemeContext()
template_header()
[...loops several *thousand* times more...]
db_query()
setupThemeContext()
[SSI.php main context]
[yshout.php main context]

Basically, the six functions noted actually loop recursively and cause massive failure.
On my server, this is represented in the error log with the line
[notice] child pid 4180 exit signal Illegal instruction (4)
which, in PHP's case, usually means a stack overflow (usually infinite recursion)
In the case of the code snippet you posted, the reason for db_error to be called in the first place was an innocent "no database selected" error...
... and that would be the same reason for FlashChat.

Why? Why would it fail so miserably? It is because no database is actually selected by SSI.php!
This is because it instead prepends the database name onto the prefix (if the prefix contains no periods)! FlashChat's code *assumes* that the database is already selected (via mysql_select_db).

Fix? Easy -- on line 76 of SSI.php change
if(strpos($db_prefix, '.') === false)
to
if(false && strpos($db_prefix, '.') === false)
and all will be solved.

Hello nneonneo, I tried this fix but it didn't work. I still get these errors in my error logs:

SUEXEC error_log:
[2007-06-11 13:31:57]: info: (target/actual) uid: (X/X) gid: (X/X) cmd: yshout.php

X = server user name

My website runs fast though... I don't think this error really affects anything. Does it? Any suggestions as to why your fix didn't work in my case?

Thank you again so much for your help!

@bobbbb: You have a problem with suexec -- how did you install the mod? Was this the same way you installed SMF? Finally, are there any other errors?


I installed the mod by uploading unzipped files to the package folder and installing via the admin pages. I installed SMF using the webinstall feature. There are no other noticeable errors besides the fact that whenever I look at the error logs this what I see.

pongsak

How to reduce font size at the menu of the box as the picture, thanks.

smf 1.1.2 with dilbermc themes.
> 50 mods installed.

nneonneo

@bobbbb: I suggest uploading the zipped file through the Package manager (remember to uninstall previous first!), and trying that.
@pongsak: Edit the CSS in the index.template.php 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!

funboy

Hello nneonneo,
I installed your shoutbox but the package manager raise this error:
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF"

How can I fix this problem?
I try to download SB_1.06.tgz more and more time again but the problem is always present.


Can you help me, please??
Thanks

brianjw

Ok give us some more information.
[What smf version are you using?]
[What other modules do you have installed?]
[What theme were you using when attempting to install? - works best with default theme]

You can always install this manually by opening the xml file in the tgz file and placing the code manually where it belongs. ;)

nneonneo

No, it's because SMF 1.1.3 was just released. Oh well, I guess this means I'm releasing shoutbox 1.0.7 ;)
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!

brianjw

Oh ya lol. But I thought this version could handle mods for 1.1.2. :)

nneonneo

mmm? It probably doesn't. I wouldn't worry though, since 1.07 has just been uploaded and tested to work with my guinea pig 1.1.3 SMF. It should install fine over an unmodified or slightly modified 1.06, and requires no changes to other themes. Minor bugs are fixed, but no new features are introduced.

Enjoy!
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!

Crens

Hello!

First thanks for the best shoutbox mod available for SMF.

I am using the Gold Night Theme with SMF 1.1.3.  I have also integrated the shoutbox within the theme.  My question/problem is that whenever anyone uses the "/me" command it shows the "<color="red">" in the box instead of actually changing the color.  Could someone please tell me if there is an easy fix for this?  I have attached a screen shot to show what I am describing.  Any help would be gratefully appreciated.

Thanks,
Crens

brianjw

Can you post a link to your website please... [always do this before asking for support]

Also have you tested this shoutbox with the default theme, does it do the same thing or is it just this theme?

nneonneo

Hmm, very strange. It looks like something stripped the "font" portion of the tag away, leaving an unparseable tag (< color="red">; note the space).

Try typing "font" into the shoutbox directly, and see what comes up.

Also, look at the history and see if the problem exists there; also check the page source of the history if it is still broken.

Finally, if none of that checks out, post the forum URL :)
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!

SingingCrane

I had this mod installed a while back, but it overloaded the server...my forum is on a shared server, so if the running processes on the server go over 20%, it locks the site down for about 5 minutes (looking through the server log showed THOUSANDS of requests from the shoutbox itself). I suppose this is because I would need to set the refreshTime to something a bit longer so that the server does not get bogged down. Any suggestions on what I can do to eliminate this issue?

Also, how could I set the shoutbox so that only reg'd users can shout and see it? Can I do this with SSI?

Thanks for any help!

brianjw

Quote from: SingingCrane on June 30, 2007, 04:28:43 PM
Also, how could I set the shoutbox so that only reg'd users can shout and see it? Can I do this with SSI?

Thanks for any help!
Look in /yshout/yshout.php it has all the settings incuding the one you speak of in that file ;)

Daggers

#699
Hi nneonneo,

I updated one of my boards today with 1.1.3 and also noticed your latest shoutbox and there was a new Flashchat Integration too.

Most of the updates went well thanks to previous posts with regard to the flashchat & shoutbox conflict and the bug in SSI.php

However, things did get a little hairy because I'm not using the default theme :( so the following problems raised there ugly heads..

On the download page for the mod it says...
QuoteSecond, find the desired location of the shoutbox and place at that location (in the index.template.php file!)

This didn't seem to work and to place the shoutbox at the bottom of the forum I had to place the code in boardindex.template.php


Once installed and working I was getting the javascript errors on the pages so I had to remove the following..

<script src="',$boardurl,yshout/js/domFunction.js" type="text/javascript"></script>

and put in the full URL path

Not sure if it is only me that has had this problem or if others are experiencing it? All working now .... fingers crossed!&nbsp; :o ;D

Still the best shoutbox out there, well done mate

EDIT:
Since posting the above I went back onto the forum and all it shows is ..
...loading shoutbox..
and I also get the javascript error in the bottom corner of IE

If I open a topic on the forum and then go back to the index the shoutbox will then appear??

Any Ideas?

Thanks

Advertisement: