nneonneo's Shoutbox

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

Previous topic - Next topic

emrys01

#400
is anyone else having trouble getting the shoutbox to work when using IE7?  sadly, the redmond virus spreads like wildfire, and i'm sure more and more poor, misguided souls will be visiting my site via that hack-attractor... and i'd really like for them to be able to participate in chat/shouting, too!

(i suppose i should point out that i'm using 1.05 upgraded with the friendly-URLs fix from v1.06.  didn't do the full upgrade, because i had to hack it a lot to get it working where and how i wanted.)

nneonneo

It seems to work AFAIK, I've got the guest posting working with IE7.

@ JSizzal: In yshout/js/yshout.js:
Find "function loadChat() {" (around line 116)
In there you see this:
if(get_cookie("yShout_open"))
{
$("yshout").innerHTML="Shoutbox loaded in another window. Retrying...";
setTimeout("loadChat()",Math.random()*1000+1000/*between 1 and 2 seconds*/);
return;
}
set_cookie("yShout_open","true",3/*seconds*/);

Remove all of the lines posted above, and the shout box will load in multiple windows. Note that without a PHP accelerator, this may cause high server load.



Anyway, I want to announce a fix for the smilies bug. I have finally located the source of this irritating bug, and have devised a fix.
Add the line
loadTheme();
immediately after
$user=ssi_welcome('nothing'); // ssi_welcome only does something IF the parameter is 'echo'; otherwise the user data is returned!
loadUserSettings();

in yshout/yshout.php and the problem should be fixed (note that existing smileys will not be fixed, only those for the new shouts).
I will post this fix on the mod main page until I post a 1.07 version (not this week, sorry; hopefully soon!)
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!

JSizzal

Thanks, I got another "question" How would you make the chat's run the opposite way.!!

Instead of :
Quote1:21am - blah blah
                           1:22am - fkkdlf
                           1:24am - sjksd

to :
Quote1:24am - dsfkjsd
                1:22am - dsjfks
                1:21am - Yuppers

emrys01

#403
Quote from: nneonneo on March 09, 2007, 07:37:29 PM
It seems to work AFAIK, I've got the guest posting working with IE7.


*sigh*... i suppose i'll have to retrofit all the other changes in 1.06 in, too, to see if that makes it work right.  at this point, every change is by hand, because i've hacked it so much to make it work the way i want on my sites.  (http://www.uru-amber-horizons.com/, for example.)

(edit: whoops, might be nice if i told you to use test/test to gain access.  everyone be nice when using that login, please.)

Adolfo

Quote from: akulion on December 28, 2006, 04:44:32 PM
Thanks :D

Here is the Tiny Portal Version of this mod for those who want to use the shout box in a side block.

Demo of TP side block shoutbox can be seen here [nofollow]
you MUST be logged in to see it
user: test
pass: test

Instead of the normal yshout.php file please use this modified one to compensate for the side block --> download yshout.php (modified) [nofollow]

Second thing you will need to do is carry out the modifications for index.template.php mentioned here BUT DO NOT include this last part in your index.template.php:

// YSHOUT HERE
echo '
<br /><b>Shout Box</b><br /><br />
<div id="yshout"', empty($options['collapse_header']) ? '>' : ' style="display: none;">','...loading shoutbox...<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>';
// YSHOUT END


INSTEAD put the code below in a PHP block (left ot right block) and activate it only for members (not for guests because they wont be able to see the shoutbox either ways!


// YSHOUT HERE
echo '<div id="yshout"', empty($options['collapse_header']) ? '>' : ' style="display: none;">','...loading shoutbox...</div>';
// YSHOUT END


Link to modified yshout.php gives 404 error.
Anyone help please?

nainnain6

Hello i am french.
When i want post a text i read this message            Write error (writeLine); aborted
Can you help me plz?

JSizzal

Quote from: JSizzal on March 09, 2007, 11:57:40 PM
Thanks, I got another "question" How would you make the chat's run the opposite way.!!

Instead of :
Quote1:21am - blah blah
                           1:22am - fkkdlf
                           1:24am - sjksd

to :
Quote1:24am - dsfkjsd
                1:22am - dsjfks
                1:21am - Yuppers

anyone to help plz

Sarke

JSizzal, the answer is already in this thread, just take a minute to read it.

My MODs          Please don't PM me for support, post in the appropriate topic.

nainnain6


bobbbb

This is an absolutely amazing shoutbox, thank you sir!

Zetro

i read through the whole thread but i didnt really find a way to fix mines. Its on my site but it only says:

Shout Box
Shoutbox loaded in another window. Retrying...

or

Shout Box
...loading shoutbox...

i still dont really see a way to fix this. plz help

nneonneo

I wish there were a way to "mark" certain pages on this discussion.

@nainnain6: Check file permissions on yshout/chats/home.txt: it is not writable by your web-server.
@Reedeemer: This has in fact been discussed before. There are a few things to try:
1) check web server (not forum) error logs for some message about the script: it is likely not being executed correctly.
2) go to http://<your_forum>/yshout/yshout.php. It should say "Nothing to do.". If any other text appears, it's a probable error.
3) if server does NOT support GZip, change gzipCompression in yshout/yshout.php to false (it's one of the settings at the top)

@JSizzal: http://www.simplemachines.org/community/index.php?topic=137508.msg930132#msg930132
(plus the few messages before. The relevant bit is the modifications to class.tail.php)
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!

Zetro

Quote from: nneonneo on March 13, 2007, 10:35:03 PM
I wish there were a way to "mark" certain pages on this discussion.

@nainnain6: Check file permissions on yshout/chats/home.txt: it is not writable by your web-server.
@Reedeemer: This has in fact been discussed before. There are a few things to try:
1) check web server (not forum) error logs for some message about the script: it is likely not being executed correctly.
2) go to http://<your_forum>/yshout/yshout.php. It should say "Nothing to do.". If any other text appears, it's a probable error.
3) if server does NOT support GZip, change gzipCompression in yshout/yshout.php to false (it's one of the settings at the top)

@JSizzal: http://www.simplemachines.org/community/index.php?topic=137508.msg930132#msg930132
(plus the few messages before. The relevant bit is the modifications to class.tail.php)
Ill try that right now, thank you very much Neo and sorry for bothering.

nainnain6

thanks how move the file home.txt in root?

nainnain6

Is it possible to install this shoutbox in hxxp:free.fr [nonactive] ?

kichu

Onemore Problem @ nneonneo & Sarke.. When i use /me command in shoutbox, The total font color displaying in red color, i mean after using that command, Everyones Text displaying in red font. How to solve it :(  

d3v1an7

#416
Firstly, huge shout out to nneonneo and the other few that have helped others in this thread.
I've just spent the last hour or so reading though the 28 pages, and a lot of you have shelled out a LOT of time to help others - so thanks.


Now for my bizarre problem :P


  • The only part that shows up in my shoutbox are the words "Shout Box"
  • I'm running SMF wrapped in the Jommla! CMS
  • SEO is enabled in Joomla! but not in SMF
  • The site address is hxxp:www.ohnd.net/home/forums [nonactive]
  • It is a sub domain
  • The "go to http://<your_forum>/yshout/yshout.php" test produces no error, but no text either, just a blank white page


So! After reading and reading and reading, I haven't come across anything that is even remotely similar to my situation...

Any help would be greatly appreciated!
Thank you.

nneonneo

@kichu: This behaviour is by design: the [me] tag in SMF does just that.
@nainnain6: I don't know anything about free.fr, sorry. Relocating the home.txt is not a great idea since the location is hardcoded (it shouldn't be, but I have not found a compelling reason to fix it and add complexity)
@d3v1an7: Correct me if I'm wrong, but I think you're missing the actual Javascript loading code, the part with all the CSS and JavaScript includes.

It looks like this in 1.06:
// YSHOUT HERE
global $boardurl;
echo '
<script src="',$boardurl,'/yshout/js/prototype.js" type="text/javascript"></script>
<script src="',$boardurl,'/yshout/js/moo.ajax.js" type="text/javascript"></script>
<script src="',$boardurl,'/yshout/js/behaviour.js" type="text/javascript"></script>
<script src="',$boardurl,'/yshout/js/domFunction.js" type="text/javascript"></script>
<script type="text/javascript">

var myfunc = new domFunction(function()
{
',empty($options['collapse_header']) ? 'loadChat();':'','
}, { "yshout":"id"});
var board_url = "', $boardurl, '";

</script>
<script src="',$boardurl,'/yshout/js/yshout.js?Mar42007" type="text/javascript"></script>
<script type="text/javascript">var shoutFile = "home.txt";</script>
<style type="text/css">
#yshout {
font-size: 10px;
}
#yshout p {
margin: 0 0 0; /* Top Bottom Linespacing */
}
.shout-invalid {
background: #FFFDD1;
}
#yshout fieldset {
border: none;
}
#yshout em {
font-style: normal;
}
#yshout p {
line-height: 1;
margin-top: 0;
}
#yshout {
overflow: hidden;
}
#yshout .shout-timestamp {
font-weight: normal;
color: #000;
}
#forum-name, #shout-text, #shout-button {
font-size: 9px;
margin: 0;
padding: 0;
}
#yshout #forum-name {
color: #666666;
width: 70px;
margin-right: 5px;
}
#yshout #shout-text {
color: #000000;
width: 310px;
margin-right: 5px;
}
#yshout #shout-button {
width: 55px;
}
#shouts .owner a {
color: #F00;
}
#shouts .moderator a {
color: #00F;
}
</style>';
// YSHOUT END

and is inserted in index.template.php. However, since you're using Joomla, I don't know where you'd want to put it.
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!

d3v1an7

Interesting!
It's definately in there, just looking at it right now...I'll have a poke around in the Joomla! files and see if I can dig something out!

Thanks for your quick response.
(And for signing up to our site :))

nneonneo

Well, the problem is that I can't see the code from the client side. Therefore, the web browser isn't going to load the shoutbox if it doesn't have the code to do so!
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!

Advertisement: