nneonneo's Shoutbox

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

Previous topic - Next topic

nneonneo

@assam_siddibapa: I saw your shoutbox-duplication bug today on my own server.

I think I know why it happens, so it is not hard to fix. I will modify the shoutbox in 1.21 to include a fix, but meanwhile, you can try this:
In index.template.php, replace
var myfunc = new domFunction(function()
{
loadChat();
}, { "yshout":"id"});

by
window.onload=loadChat;
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!

X-Zero

Everybody on my forum sees the shoutbox, but it says Nothing to Do with my friend =S

nneonneo

That's very unusual. Do you mean that everyone sees a working shoutbox except him? What browser is he using?
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!

X-Zero


nneonneo

Wait, do you mean "MSN Explorer"?
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!

videomasterz

installed the 1.20 shoutbox, couldnt install the advanced version 1.20 kept on getting errors when I save my template??

anywat got the regular shoutbox 1.20 installed, but everytime I chat there is a quick db error that appears and then disappears at the top of the chat box! it gets annoying.. I have been able to spot it, here it is:

Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' in /home/xxxxxx/public_html/xxxxxx/yshout/yshout.php on line 743

any ideas??

nneonneo

In yshout/settings.php, turn of gzipCompression.
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!

videomasterz

#2967
sorry but when I did that my shoutbox became weird?? it was stretched out height wise, and everytime you add new text it increases in size?!??!

scratch that... I did it again, made it false and re uploaded it, now its working?? weird.. but thanks..

Achillea

Is there a way to please add an area, perhaps under the "Shout Box" header or off to one side, where the shoutbox rules can be displayed right there where people who can't be bothered to read the clearly-labeled Using the Shout Box forum can see them? With no deniability?  Relying on common sense courtesy from my Guests does not seem to work reliably. 

Sorry, it's my first banning, which is making me grumpy this morning.

Pleek

thanks for the help, and i did search for it. About a thousand things came up. lol thanks a lot!

nneonneo

@Achillea: Sure. Under
<br /><b>',$txt['yshout_shoutbox'],'</b><br />
is probably a good place to put it.

If you are having problems with spamming, you can enable flood control in yshout/settings.js.
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!

trekkie2444

Ok so now that it works, it looks like it could use a few improvements. Is there a way to center it on my forum and create some kind of table around it to make it look like a certain block type format? Also what do I change in the settings.php or whatever to make my text visible on a black background?

nneonneo

CSS controls the style of the shoutbox. You can find a big <style> block in index.template.php for SB_1.xx, or in css/yshout.css for AdvSB_1.xx. There, you can set the font color and do all sorts of other things.

As for making it look like a block, this varies by theme. The easiest thing to do would be to copy the code off an existing block and just use that as a wrapper around the shoutbox code.
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!

allymcbeal

Hi, I used the 1.20 and everithing is ok.
But I add the mod for the smile, http://www.simplemachines.org/community/index.php?topic=137508.msg1388091#msg1388091
and now I have this error:

Template Parse Error!
There was a problem loading the /Themes/default/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------


Parse error: syntax error, unexpected '<' in .../Themes/default/index.template.php on line 441

432: }
433: // YSHOUT HERE - shoutbox code
434: global $txt,$context,$boarddir;
435: if(allowedTo('yshout_view'))
436: {
437: echo '<br /><b>',$txt['yshout_shoutbox'],'</b><br /><br />';
438: echo '<div id="yshout">';
439: include_once($boarddir.'/yshout/yshout.php');
440: echo '</div>';
441: <div class="smalltext" style="padding-left:25px;"><a href="javascript:collapse1.slidedown()">Open Smiley</a> | <a href="javascript:collapse1.slideup()">Close</a>'; require('mymod/smiley.php'); loadSmileys(); echo ' <div id="smiley_pic">'; printSmileys('shout_form','shout_text'); echo ' </div> <script type="text/javascript"> //Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] ) var collapse1=new animatedcollapse("smiley_pic", 1000, false) </script> </div>442: }
443: elseif($context['user']['is_guest'])
444: echo $txt['yshout_no_guests'];
445: // YSHOUT END - shoutbox code

Can you help me?

nneonneo

You need to put the code BEFORE the ';. Also, it all ended up on one line, which may make it not work, so you have to make sure it all gets correctly added. The block (starting at line 433) should appear as
// YSHOUT HERE - shoutbox code
global $txt,$context,$boarddir;
if(allowedTo('yshout_view'))
{
echo '<br /><b>',$txt['yshout_shoutbox'],'</b><br /><br />';
echo '<div id="yshout">';
include_once($boarddir.'/yshout/yshout.php');
echo '</div><div class="smalltext" style="padding-left:25px;"><a href="javascript:collapse1.slidedown()">Open Smiley</a> | <a href="javascript:collapse1.slideup()">Close</a>';
                     require('mymod/smiley.php');
                     loadSmileys();
                  echo '
                     <div id="smiley_pic">';
                        printSmileys('shout_form','shout_text');
                  echo '
                     </div>
                     <script type="text/javascript">
                     //Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
                     var collapse1=new animatedcollapse("smiley_pic", 1000, false)
                     </script>
                  </div>';
}
elseif($context['user']['is_guest'])
echo $txt['yshout_no_guests'];
// YSHOUT END - shoutbox code
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!

Smite

So I accdentally banned myself on my forums (i'm the only administrator) shoutbox...lol any way to unban myself? :(

trekkie2444

I can't find any CSS info for my shoutbox. In the YSHOUT directory there isn't a css file.

nneonneo

@Smite: yshout/_banlist.php; just remove your entry.

@trekkie2444: Themes/<theme>/css/yshout.css
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!

[unplugged]

@smite

Open banlist.php in your yshout folder and remove your IP address.

@trekkie2444

Quote from: nneonneo on July 15, 2008, 06:08:48 PM
...You can find a big <style> block in index.template.php for SB_1.xx, or in css/yshout.css for AdvSB_1.xx....

The CSS is either directly in your index.template.php or in {default theme}/css/yshout.css depending on which version of the shoutbox you are using, as stated by nneonneo. In either case, the CSS in not located in the yshout folder.

EDIT: you beat me to it nneonneo. :D
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



trekkie2444

It's only in the default theme? The other themes don't have a css folder in them.

Advertisement: