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

[unplugged]

ok...

@mquadrat

My yshout.php timeout is set to 20 and my yshout.js is set to 150 (on both of my forums) and I don't have any problems with things not updating properly. I have, however, noticed that a majority of the time my wife's computer will receive shouts about 10-15 seconds before mine. But I've never experienced the shoutbox simply not showing new shouts. I would try setting the timeout to something higher than 0 to see if that corrects the problem.

@Old Lynx

The easiest way to do that would be to open up Modifications.{your language}.php
Find $txt['yshout_shoutbox'] = 'Shout Box'; and change it to

$txt['yshout_shoutbox'] = '<font color="white">Shout Box</font>';
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



LinK187

Someone should compile a faq. I've seen the same Qs answered over n over every 5 pages... people keep asking because they can't be assed to read 150 fu(kin pages lol...  8)

[unplugged]

@Hades™

Attached is your modified index.template.php. I had to mod a few extra things (added the "titlebar", etc. to the shoutbox to make it match the rest of your site).
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



nneonneo

I'd compile a FAQ, but I'm afraid it would make the main mod page even longer than it is now (it kinda comprises a short FAQ anyway).

@mquadrat: You should consider setting $updateTimeout higher. At the rate you are refreshing, I'm guessing that Apache/PHP is having a very hard time keeping up.

Here's what happens. Every (refreshTime) milliseconds, the browser requests yshout.php. yshout.php stays open for at most $updateTimeout seconds, and will instantly (within one second) display new shouts and exit if any are received in that time. If you set $updateTimeout to 0, the browser will request yshout.php several times a second, which could potentially kill your server (the same would happen if someone were to request a page on your forum extremely rapidly).
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!

Hades™

Quote from: SunKing on June 09, 2008, 10:11:14 PM
@Hades™

Attached is your modified index.template.php. I had to mod a few extra things (added the "titlebar", etc. to the shoutbox to make it match the rest of your site).
^Y*(&#(!*#&!(#^*#!%#*%!# YOU ARE THE B OMB MAN IT WORKS WOO

[unplugged]

Glad to hear it's working for you! Enjoy....it's a great mod.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Hades™

#2566
Quote from: SunKing on June 09, 2008, 11:17:09 PM
Glad to hear it's working for you! Enjoy....it's a great mod.
ok now in normal forum i go to admin>edit member group right
how do i change the color in online list the default for admin is : #FF0000 (red)
where do i get the codes for the various colors . thanks
EDIT : Ok i found it its at ~> http://html-color-codes.info/ [nofollow]
One question though why when people talk in shoutbox their font is all red for everyone . how do i make in a way that what they type in their shoutbox is the same color of their name . example : lets say admin is Cyan so admin will be talking in cyan and not red . anyone knows how to do this ?
And one last thing i need to change to color of the timestamp cause its black now and my forum skin is also black so cant really see .. so i have to highlight it den only can see . anyone can help me ?

jdizine

#2567
I have followed these instructions and I still can not get my shoutbox up and running.
http://custom.simplemachines.org/mods/index.php?mod=585#post_otherthemes
Can someboby PLEASE help me?
There really must be a problem cause it is not even working on Core theme.
What do I do?



LinK187

You should make a second smf installation on your webserver. Then slowly, carefully, and concisely apply the mod with all the instructions. If it works copy the altered files to your main forum. At least that way you can do your testing without ******ing up your main forum.

mquadrat

Quote from: Riotblade on May 19, 2008, 09:14:49 PM
Anyone know how I can have the it re-focus on the text box again after refresh?

Thanks

Good question!

v@leriunix

Hi! Everything is working just fine in the initial page and posts, but if i open a board i have this error:


Fatal error: Cannot redeclare loadsmileys() (previously declared in /home/ipsinfo/public_html/smf/mymod/smiley.php:12) in /home/ipsinfo/public_html/smf/mymod/smiley.php on line 11

My file simley.php has'nt been changed, please help me!
I guess this happened after i added some smiles and changed the order.

PLEASE HELP

jdizine

Quote from: LinK187 on June 10, 2008, 09:18:55 AM
You should make a second smf installation on your webserver. Then slowly, carefully, and concisely apply the mod with all the instructions. If it works copy the altered files to your main forum. At least that way you can do your testing without ******ing up your main forum.
Have I maybe been applying it wrong? I have been going in through the forum Admin. CP and doing the steps in there. Should I have been copying to notepad and changing it that way?
If I understand I would have to find a different SMF default theme and upload that one to override the already existing one in there? If so where can I find one? I used fantastico to get the one I have.



LinK187

Not saying you're doing it wrong per say... but somethin's ******ed up somewhere...right? You should never mod your main forum without moding the test forum first..

jdizine

Ok, so I am screwed then. I am new to this and just clicked install. Then made the changes it said to for other themes. I did save the original index.templete.php before I made the changes.  :(  :-[  :'(



LinK187

I'd just backup ur database, do a fresh install. If you're as confused as you sound.

nneonneo

#2575
OK, progress report:

1) Security fixes (undisclosed).
2) Performance fix: on some servers, navigating away from the script doesn't actually stop it, so some servers may experience dozens of PHP instances outputting to dead connections. With this patch, the PHP script will periodically check the connection and quit if it has been closed while it was waiting.
3) IE7 fix: IE7 gets yet another fix for performance.
4) XHTML Strict validity
5) Code refactor: a bunch of code has been refactored for clarity
6) Reduction of regular expressions: regexes are arcane, and I wanted to use fewer crazy ones in favor of simpler, more resilient patterns which should make modding easier
7) Flicker fix: fixed a problem which caused flickering text after /help and similar commands
8) Guest name fix

As I test the changes further, I will probably fix more things. A release isn't expected until next week.

The Advanced AJAX Shoutbox will be updated as well.
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!

_Anthony_

Quote from: nneonneo on June 11, 2008, 12:40:22 AM
OK, progress report:

1) Security fixes (undisclosed).
2) Performance fix: on some servers, navigating away from the script doesn't actually stop it, so some servers may experience dozens of PHP instances outputting to dead connections. With this patch, the PHP script will periodically check the connection and quit if it has been closed while it was waiting.
3) IE7 fix: IE7 gets yet another fix for performance.
4) XHTML Strict validity
5) Code refactor: a bunch of code has been refactored for clarity
6) Reduction of regular expressions: regexes are arcane, and I wanted to use fewer crazy ones in favor of simpler, more resilient patterns which should make modding easier
7) Flicker fix: fixed a problem which caused flickering text after /help and similar commands
8) Guest name fix

As I test the changes further, I will probably fix more things. A release isn't expected until next week.

The Advanced AJAX Shoutbox will be updated as well.
Cool

JRMBelgium

#2577
I uninstalled 1.15. Now I do a fresh advanced 1.16 install, all tests are succesfull and then nothing happens. No shoutbox anyhere...
Then I try to install the normal 1.16 version, but my only option is "upgrade". Where can I find the final traces of 1.15 so that I can remove it completely. Searched for "shout" in index.template.php and there is nothing there anymore.

LinK187

Quote from: nneonneo on June 11, 2008, 12:40:22 AM
OK, progress report:

1) Security fixes (undisclosed).
2) Performance fix: on some servers, navigating away from the script doesn't actually stop it, so some servers may experience dozens of PHP instances outputting to dead connections. With this patch, the PHP script will periodically check the connection and quit if it has been closed while it was waiting.
3) IE7 fix: IE7 gets yet another fix for performance.
4) XHTML Strict validity
5) Code refactor: a bunch of code has been refactored for clarity
6) Reduction of regular expressions: regexes are arcane, and I wanted to use fewer crazy ones in favor of simpler, more resilient patterns which should make modding easier
7) Flicker fix: fixed a problem which caused flickering text after /help and similar commands
8) Guest name fix

As I test the changes further, I will probably fix more things. A release isn't expected until next week.

The Advanced AJAX Shoutbox will be updated as well.

A number of vista x64 windows updates came out today and one of them was for ie7, which makes me think perhaps ie7 updates also were released for xp pro x64 and x86. You may want to update first to see if your ie7 tweaks are necessary or if you need to do even more tweaking.

jdizine

#2579
Ok, I would like some help. This is a copy of my index.template.php. I included the whole thing. Can someone please show me where to make the changes for this custom theme?
I have tried to do it in the forum Admin area but it doesnt seem to work.

And, I would be really greatly hugely appreciative. :-\
Also does the shout box have to work on the Default theme for you to be able to get it to work on a custon theme?
If that is the case, then I need to fix it. Cause I have 3 ...loading shoutbox...
In the default theme.

Edit: I have fixed the 3 by reuploading the template. I think I will wait till this new one is posted. I will tell my forum Patience! "Good things come to those who wait"



Advertisement: