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

nneonneo

For SMF2, you should put it in Themes/default/css instead.
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!

ALEJO

Quote from: nneonneo on May 11, 2008, 09:29:59 PM
For SMF2, you should put it in Themes/default/css instead.
thx, works now :)
solo el mas paranoico sobrevive

captain_jack

#2262
I have the box up and running, have the lines set to 4 (cause i cant get the scroll working)  and even have the smilies at the bottom but i cannot use them. Has anyone ran into this before and if so could you please pass a lil info along
thanx in advance

could it have something to do with
   <input id="forum-name" style="color: #666666;" maxlength="',$maxUsernameChars,'" value="',$user['name'], '" type="text" name="shout_text" />';


i dont have a value in maxlength  and i have that particular line in a few spots in yshout?

wiciu

@nneonneo
Look at this:
version of SB 1.15
1 shot: hxxp:g4g.pl/forum/ [nonactive]  ->


2 shot:  hxxp:g4g.pl/forum/index.php?action=help [nonactive]


On second shot i have no shoutbox on the page. 
Where is my css styles in main menu of the forum on main page ?

In IE -> no problems describe above. !
Of course i have yshout-style.css in Themes/default
Any idea ?
Aha.. no JS errors.
This error only in SMF v 1.1.5

lax.slash

I would love to put this on my site.... but I need some help adding it to the Blue Vista theme and the Shiny Blue theme.

The edit I'm having trouble with (SMF 2) is:


// YSHOUT HERE
echo '
<br /><b>',$txt['yshout_shoutbox'],'</b><br /><br />
<div id="yshout">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>';
// YSHOUT END


Thanks in advance for any help.

captain_jack

#2265


I have the box up and running, have the lines set to 4 (cause i cant get the scroll working)  and even have the smilies at the bottom but i cannot use them. Has anyone ran into this before and if so could you please pass a lil info along
thanx in advance

could it have something to do with
   <input id="forum-name" style="color: #666666;" maxlength="',$maxUsernameChars,'" value="',$user['name'], '" type="text" name="shout_text" />';


i dont have a value in maxlength  and i have that particular line in a few spots in yshout?

the page error is as follows:
line 99
char 1
error  document.forms.shout_form.shout_text is null or not an object
code  0

nneonneo

@captain_jack: please be patient. It's been what, one hour since you posted? Now, the problem is: you need to add the name parameter to *all* instances of <input id="shout-text" ... (not "forum-name", as you have it).

@wiciu: You have search-engine URLs or something else installed. Paths for the shoutbox are relative to the forum root, but URLs like http://g4g.pl/forum/help/ can cause problems. If you can, try to keep the URLs like http://g4g.pl/forum/index.php?action=help.

@lax.slash: Where do you want the shoutbox to go? That's where you need to put it :P

General notice: 1.15 package updated to fix the missing style bug.
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!

denio

ShoutBox still disappear in Firefox and Internet Explorer.

My settings:
yshout.php
<?php
// Version 1.15
// Editable Options (see yshout/js/yshout.js for more options)
// Set the maximum amount of lines to be displayed at a time
$max_lines = 12;

// Sets the directory to which to log
$logDir = "chats";

// Should we use GZip compression? If you are having trouble with the shoutbox, set this to false.
$gzipCompression=true;

// Guest usage. Set to false if you don't want guests to use the shoutbox: they will not be able to read it or post to it.
$allowGuests=true;

// Guest usage for posting. Set to false if you don't want to let guests post to the shoutbox; if allowGuests is on, they will still see it.
$allowGuestsPost=false;

// Automatic Guest Usernames: should they be able to choose their own usernames?
// Set to some string (a prefix) if you want to disable guest choice of username
// Set to false if you want to allow guests to choose a username
$autoGuestName=false;//'guest-';

// Command options.
// If this is set to false, all typed commands are disabled.
// Admin functions, via admin links, are still available.
$allowCommands=true;

// If this is set to false, guests will be denied access to commands.
$guestCommands=true;

// Shoutbox moderator groups. By default, only administrators and global
// moderators can moderate the shoutbox. By setting some groups up here
// (IDs only please), other groups (including additional membergroups)
// can be permitted to moderate it.
$moderatorGroups=array(2);

// How long should the script wait for the chats to update? (in seconds)
// If this is set to 0 the script will not wait at all,
// but this will be very detrimental to performance.
// Make sure this is less than the maximum script execution time
// on your server, or the shoutbox will never update.
$updateTimeout=60;

// User-defined array of commands to block.
// Example: $bannedCommands=Array('/impersonate');
// Note that since SMF recognizes /me by default, it can't be blocked.
$bannedCommands=Array();

// How many characters will be permitted in each shout.
$maxShoutChars=300;

// How many characters will be permitted in the username.
// This does not apply to SMF registered usernames.
$maxUsernameChars=25;



yshout.js
// Flood control time in milliseconds:
var floodTime = 1000;

// Time between refreshes (minimum) in milliseconds:
// Note that since 1.08, this option will have less of an effect on performance,
// hence the default value is very low :)
var refreshTime = 250;

// Check for duplicate instances?
// This can improve performance in some cases.
var checkDuplicates = false;

// Internet Explorer 7 has a bug (feature?) which causes extreme lag when
// moving between pages. This delay controls "false alarms"; the amount
// of time between detecting a page move and reloading the shoutbox.
// If it is too high, users may experience laggy shoutboxes.
// If it is too low, users may experience lag moving to a new page.
// This bug only affects Internet Explorer 7 (not previous versions)
var falseAlarmDelay = 5000;

// Don't edit below this line, unless you know what you are doing ;)
username = "";


nneonneo

Reduce $updateTimeout. It needs to be less than the script timeout on your server.
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!

captain_jack

many appologies nneonneo
update  still have error but will keep reading  and many thanx O:)

denio

#2270
I reduce $updateTimeout to "10" and sb still disappear.

[edit]
I irritate and I reduce $updateTimeout to "0" and sb still disappear but sb less dissappear.

nneonneo

@denio: That's slightly odd. What browser? If it does that on IE or Firefox, then I think there's something weird going on (a visit to your forum may be useful).

@captain_jack: Post or PM yshout/yshout.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!

denio

#2272
Well...

Shoutbox disappear in Mozilla Firefox 2.0.0.14 (newest) and in IE7 sb none visable, I can see "shoutbox loading" (in my language)

Board powered on SMF 1.1.5. I have install nneonneo sb v1.15.

URL for my board:
[link]

captain_jack


mwmconsulting

Hey All,

I've been using nneonneo's SB for a while now, and my forum users and I are enjoying it thoroughly (thanks nneonneo).  However, an issue has developed since upgrading SMF from 1.14 to 1.15.  It seems now when you change the language of the forum from English to XXXXX, the SB no longer displays.

Basically, it shows the "...loading shoutbox..." msg and then it disappears and nothing remains.  I did some testing by copying the yshout.php to a test file and making a few modifications do that it would display the SB.  In the test file, i can replicate the issue.  When the forum is in "English" language mode, the test file displays the shoutbox.  When in "XXXX" language mode, it displays nothing.

I placed some echo statements in my test file and noticed the page displays some crazy characters ().  After doing some more testing, it seems that the issue might stem from the /SSI.php file (perhaps around the "loadtheme()" function call on line 145.

Again, this only happened after upgrading from SMF from 1.14 to 1.15 and perhaps after I upgraded nneonneo SB to 1.14b (not sure if the problem existed after that upgrade or not).  It should also be noted that all of my Modifications.XXXX-utf8.php language files have the nneonneo SB language code added.

Anyone else having any trouble getting this to work w/ non-English languages on SMF 1.15?

- MWM
========================
MWM Consulting, Inc.
InSiteful Business Solutions
http://www.mwmconsulting.biz
========================

nneonneo

#2275
@denio: What is $updateTimeout currently set at? It looks like it's set at 0 or something.

@captain_jack: You weren't supposed to add name="shout_text" to *every* form field...only the "middle" field in each form. Also, you should not have changed their "id" parameters.

@mwmconsulting: Those crazy characters () are the UTF-8-encoded representation of the Unicode byte order marker (BOM). They should not be in the output. Saving files with Windows Notepad commonly causes those characters to be added to the beginning of the file (they are invisible in Notepad, and are only visible in a text editor that either doesn't understand them, or a hex editor).
I've checked my files and I can't find the BOM characters (though it's possible that it's in another file I didn't check, or an older version). If you manually edited any of the files with Notepad, it's likely that that's the source of the problem.
Try turning off gzipCompression. My guess is that these characters are output before the gzip stream, causing the stream to become corrupted -- this results in a blank shoutbox, since the browser can't decode the compressed data.
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!

mwmconsulting

Nneonneo, you're amazing my friend.  Not only a SUPER FAST reply, but also the correct one.  Turning off gzipcompression did the trick.  ;D

Thanks so much for your help, and the awesome mod.  Where is your paypal donation link mate?  I'm happy to support the cause.

Cheers!

- MWM
========================
MWM Consulting, Inc.
InSiteful Business Solutions
http://www.mwmconsulting.biz
========================

nneonneo

#2277
[email protected]. Thanks!

@denio: There's a huge amount of ads on yshout.php. I don't know if that has anything to do with it, but it may cause problems. For example, see http://cinqg.freens.pl/yshout/yshout.php; the HTML source is very long.

Perhaps try turning off $gzipCompression, if you haven't already.
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!

captain_jack

#2278
middle field   wow   no im really confused hehe


(you need to add the name parameter to *all* instances of <input id="shout-text" ... (not "forum-name)?

nneonneo

captain_jack, I've done the modifications for you and attached the file.
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: