News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

xtnod

I have a question... everything was working just fine.  Then this morning, whenever I try to shout something it doesnt so up...

I've checked the refresh time and everything.  I asked some other people to check as well and they are having the same issue.

I tried to uninstall it and reinstall it... but i get this error:

Installing this package will perform the following actions:

1. Execute Modification install.xml Modification parse error
2. Execute Modification - Modification parse error

Is there  a manual way to uninstall the shoutbox?

nneonneo

@xtnod: http://www.simplemachines.org/community/index.php?topic=137508.msg1565734#msg1565734

@LinK187: It's possible that my IE-specific hack has either stopped working, or it's not working well enough.

Basically, IE doesn't stop AJAX calls when you click a link, and simply sits there, waiting for the call to finish. I fixed this by attaching "transport.abort" to *every* link.
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!

LinK187

Was that included in what i downloaded? Or something you did after applying the mod?

nneonneo

I added it back in 1.12, then tweaked it. From my experience, it works, but I don't have the necessary resources to test all configurations (plus, it is a blatant hack which should not be required...).

One thing you may try: increase refreshTime in yshout/js/yshout.js (recommend above 10000 milliseconds), change "May122008" in index.template.php to something else (to force the file to be reloaded, instead of cached), then reduce $updateTimeout in yshout/yshout.php to 2 seconds or less, and see if the lag goes away.
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!

LinK187

ok so:

yshout.js --> refreshTime = 10000
index.template.php --> "May122008" to ?
yshout.php --> $updateTimeout = 2000

nneonneo

$updateTimeout = 2 (it's in seconds). You can change May122008 to anything you want (suggest Jun42008 or something)
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!

LinK187

I'm kinda confused about the date thing. How does it effect overall functionality? Why June? Will I have to change it next month?

nneonneo

You could change it to anything you wanted: "Fluffybunnies" would be just as good. What it does is it prevents browsers from caching the file, which forces browsers to download it again and apply the changes to the yshout.js file (if you don't do this, some browsers will retain the old refresh rate of 150 milliseconds, which could be disastrous).
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!

tailsxp

I've been trying for ages but i can't seem to find how to change the text colour of what the people type in
(its white, which is un-see able on my forum :( )

LinK187

Strange problem... the test forum I use to test ****** before I apply it to my actual forum was fixed by the changes to those 3 files. My actual forum is missing "May122008"  on index.template.php?? Would it possible be set to anything else?

Full66

I"ve the same problem that LinK187 ...The chat doesn't work with IE !  :'( :'(
Please, nneonneo, can you find a solution ?

Thanks

I've the 1.1.5 version

LinK187

He did find a solution.. except for some reason I can't find the "May122008" value on my main forum's index.template.php ... however it is present on my test forum's index.template.php ... proper wierd...  ???

nneonneo

In index.template.php, in the #yshout { block, you add something like
color: blue
(you can also use hex colors like #FF00CC).
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!

LinK187

ok, i found the line, i guess it had a diff date in it. Seems to be working fine now. however it's still a wee bit laggy. Bearable, but still a tiny bit lagier than before I installed the chat box. Will increasing/decreasing any of the values you mentioned further increase IE browsing speed?

nneonneo

Decreasing $updateTimeout further (1 or 0) may help.
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!

LinK187

Does lowering this value take away from anything else? Or does it have little to no effect except in making ie work proper?

tailsxp

Quote from: nneonneo on June 05, 2008, 04:47:12 PM
In index.template.php, in the #yshout { block, you add something like
color: blue
(you can also use hex colors like #FF00CC).
Thanks alot :D

Enders

I have some scolling issues. When you use bbc codes like or even add a picture, it doesn't scroll all the way down.

nneonneo

@LinK187: It sets the length of time that the server will hold the connection open for, which is to improve response times and interactivity. As I mentioned, though, IE's bug means that it waits for the server to close the connection, rather than aborting the connection, which is what FF and other browsers do (hmm, thought: does that keep PHP running until the time is up? must test, might be a serious performance issue)
@Enders: Are you referring to autoscrolling?
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!

LinK187

So would lowering it impact anything other than ie functionality?

Advertisement: