News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

Hack

thanks for the great mod. I had been using a older shoutbox from somewhere else for the last year or so and only happened to come across this the other day so once again, great mod! :D

I do have a question however.. The old mod I used to have used to have the latest shouts at the top of the window instead of the bottom (so most recent shout would be at the top of the shoutbox). Is this possible to do with this shoutbox?

mickeyb107

@ hack go to your yshout/settings.php and find

// The shoutbox usually shows shouts with the newest chats at the bottom.
// If you want the newest ones at the top, set this to true.

$reverseShouts=false;
<a href="http://ftasatfile.com">FTASATFILE FREE TV YOUR
SOURCE FOR ALL YOUR SATELLITE NEEDS

nneonneo

@n01d3a: To avoid changing the current page, stick ";void(0);" on the end of the javascript: link, e.g.
<a href="javascript:window.open('http://domain.com/forum/yshout/index.php','Shoutbox','width=600,height=400');void(0)">Shoutbox</a>

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!

blondeamon

How do i move the chat from the right side to the left side? It looks ugly on the right.

Btw great MOD
Always looking for the best

www.kamenos.gr  Greek Gaming Community

n01d3a


mickeyb107

@ blondeamon

this is taken from page 213 shown by user staticfx

to center the shoutbox table:

open yshout.php
find:

if(!$shoutFormOnTop)
change the next line to: (Note the <center></center>)
echo '<center><div id="shouts">',readChat(),'</div></center>';

then find:
if($shoutFormOnTop)
change the next line to: (Note the <center></center>)
echo '<center><div id="shouts">',readChat(),'</div></center>';

so now the table for that chat is centered... but the text will be as well...
open yshout.css

add
text-align: left;
in the #shouts section
<a href="http://ftasatfile.com">FTASATFILE FREE TV YOUR
SOURCE FOR ALL YOUR SATELLITE NEEDS

blondeamon

Guys i will remove the mod. It is absolutely great but it causes terrible lag whenever i put it.

I first tried it on a box and the universe lagged , then put it on index.template.php and the same thing happened.

The lag is unbearable....unless i dont know of osmething i will have t put it away...any advice? (i have 30-40 members online daily and only 20 at the same time)
Always looking for the best

www.kamenos.gr  Greek Gaming Community

realnc

The lag doesn't only affect the forum it runs on but the whole server and any other websites hosted on it. I'm the one who forced blondeamon to remove it because it brought the dedicated server to its knees.

mickeyb107

i dont have a answer for the lag but if you only have 30-40 members i dont know how it could be this mod,ive had it on my site for about a week and my site runs fairly fast and my peek i have over 200 members on site... could it be something else causing the lag?
<a href="http://ftasatfile.com">FTASATFILE FREE TV YOUR
SOURCE FOR ALL YOUR SATELLITE NEEDS

blondeamon

No , it comes by the moment i put the mod and dissapears when i remove it. And tried it twice , always the same.
Always looking for the best

www.kamenos.gr  Greek Gaming Community

mickeyb107

blondeamon  before you give up i too think this is a great mod...did you try the settings on the first page to change some of the ysettings...

High bandwidth use for large forums: This shoutbox was never designed for very large forums. The limitations of PHP make it difficult, if not impossible to implement real ("live") chatting features without being resource-heavy.

That said, there is something you can do about it. The shoutbox can be made less taxing, at the cost of less interactivity.

The basic procedure is to set refreshTime in yshout/settings.js to something higher, like 20000 (milliseconds). After that, reduce $updateTimeout in yshout/settings.php to 10 seconds or less (0 will make the shoutbox behave like an autorefreshing shoutbox (with a delay controlled by refreshTime), rather than a shoutbox that updates automatically on new shouts).

You might also want to try enabling compression in the settings file: change $gzipCompression to true.
<a href="http://ftasatfile.com">FTASATFILE FREE TV YOUR
SOURCE FOR ALL YOUR SATELLITE NEEDS

n01d3a

OK I had sound for only a few seconds. And it only worked in IE7. When the sound was activated, the chatting would only update when I sent a new message. another thing is that the sound played only when i sent a message, not received it. I had just unistalled and then reinstalled it. I have it in a popup window, sometimes the sound button changes when I click it and other times it does not.

What Internet Browser is this designed to work on? And does anybody have any info for what I can do.
Thanks once again.

realnc

I believe the mod messes something up either with the web server (lighttpd) or mysql since disabling the mod is not enough to fix the lag. www and mysql have to be restarted to fix it.

nneonneo

@realnc: Thank you for letting me know. I will do some testing with lighttpd, as it might be an incompatibility. Can I ask you to provide some details on the setup, e.g. how PHP is invoked (fast_cgi? mod_php if available?) and version of PHP.

@n01d3a: Really weird... you are using AdvSB stock installation, right? Maybe I should just look at the forum :P
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!

wolfeater92

looks great but it doesnt seem to work with my forum.

could you take a look at hxxp:forum.wolfeater.com [nonactive]?

There are no errors, but it doesnt show up yet it displays "you must be logged in to use the shoutbox" to guests. Could you take a quick look for me?

n01d3a

OK thanks nneo, i don't mean to be troublesome.
Yes it is the stock adv. I have not changed any settings in it, yet.
Since most seem to work I wonder if it is a setting I have somewhere. Oh well here is my site. cyphe.mine.nu [nofollow]

[unplugged]

@wolfeater92
Have you set the permissions in the admin section to allow guests to view and/or shout?
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



wolfeater92

its not visible for anyone

blondeamon

Quote from: nneonneo on December 10, 2008, 06:27:17 PM
@realnc: Thank you for letting me know. I will do some testing with lighttpd, as it might be an incompatibility. Can I ask you to provide some details on the setup, e.g. how PHP is invoked (fast_cgi? mod_php if available?) and version of PHP.
http://blondeamon.kamenos.gr/phpinfo.php
Always looking for the best

www.kamenos.gr  Greek Gaming Community

[unplugged]

wolfeater92, admins cannot see it either?
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Advertisement: