nneonneo's Shoutbox

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

Previous topic - Next topic

nneonneo

#2700
Remove the line "  // script for shoutbox upshrink". You should get a shoutbox with a header, but no content -- this is because the shoutbox cannot load correctly.

If you are unable to resolve this, try version 1.20 (attached: beta, updated from previously posted 1.20). It hooks index.php, which bypasses the problem of not being able to run yshout.php directly.

!Important! Please remove 1.16 prior to installing 1.20, and make sure that you remove the shoutbox codes in index.template.php (n.b. uninstallation might fail on index.template.php: don't worry about it, just remove them manually).
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!

zookeeper

#2701
After I took out the //script..... it was working but not all the admin lines worked, history, commands, extendedhistory etc.  however .....

Since this is a test forum I had made I deleted it and restarted another forum.  I loaded the version 1.20 and it was almost perfect.  I checked the yshout/php and had the 500 error.  For some reason one link to either the myforum or default or yshout, "can't recall which" permission wasn't 755, after I changed that I think it may be working.  I'll explore more now.

Also, I didn't make any changes as per the installation instructions from the mod site but on this test forum it seems to be working.  Not sure if you switched things up for this but thought I'd make a comment on that.

Many thanks, off to play with it more and if luck holds I'll try to upload on my running forum. 

EDIT:
Put it on the main forum and so far seems to be working.  Thanks, will work on the details more now.

EDIT:
Shows in admin mode but as a regular member they don't see it.

nneonneo

Final step: use the Admin CP to give users the "View Shoutbox" permission (Membergroups->Permissions)
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!

zookeeper

#2703
Under Members there is  Permissions

I don't see a "view shoutbox"

EDIT:

On the Members - Permission, I clicked modify for Regular Members.   On the lower right side I see three boxes but there is no writing to the left for what they are meant to be used for.  I went on an checked all 3 and now its showing for regular members.  Any clue what I checked?  What this has done?  I know members see it but may be good for me to know what I did?


nneonneo

Oh, you must not have the proper text modifications (I should've known that earlier, when you said there was no text). Simple fix: copy Modifications.english.php to Modifications.<your language>.php.

The first is "View", the second "Post", and the third "Moderate". You might not want the third one checked for all members.
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!

zookeeper

hmmmmm Modifications.english.php  I've looked at that.  I have English check as default forum language.


nneonneo

Is that also the same language as your profile?
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!

master2oo8

Hey, i have a problem with my shoutbox.
If more users are online the SB collapse always, after ~5 seconds you see again the complete shoutbox, here my config:

yshout.php

// Version 1.16
// Editable Options (see yshout/js/yshout.js for more options)
// Set the maximum amount of lines to be displayed at a time
// After changing this, /clear the shoutbox to make the change
// take effect.
$max_lines = 30;

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

// 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=true;

// 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=20;


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 = 150;

// 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;


there are always about 100 users online

thanks for help

zookeeper

#2708
Quote from: nneonneo on June 23, 2008, 12:07:24 AM
Is that also the same language as your profile?

sighssss  I don't see a language option in my personal profile section.

Also, the web page just gets stuck at times, very slow response for changing pages.  Is there some response time or something to change?  It's like bogged down.

EDIT:

This is soooooo slow driving me nuts.  Been searching forums all morning.  I did read one message that said:

Disable Hostname Lookups

I did that and really no help.  Still reading... any other ideas?

EDIT:

Went to host error log and found these today:

[Mon Jun 23 08:49:36 2008] [error]  PHP Warning:  Unknown(): (null): Unable to initialize module
[Mon Jun 23 08:49:36 2008] [error]  Module compiled with module API=20060613, debug=0, thread-safety=0
[Mon Jun 23 08:49:36 2008] [error] PHP    compiled with module API=20020429, debug=0, thread-safety=0
[Mon Jun 23 08:49:36 2008] [error] These options need to match
[Mon Jun 23 08:49:36 2008] [error] in Unknown on line 0
[Mon Jun 23 08:49:36 2008] [error] PHP Warning:  Unknown(): Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so: undefined symbol: spl_ce_Countable in Unknown on line 0
[Mon Jun 23 08:49:36 2008] [error] PHP Warning:  Unknown(): (null): Unable to initialize module
library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/pdo.so: undefined symbol: zend_ce_traversable in Unknown on line 0
[Mon Jun 23 08:49:36 2008] [error] PHP Warning:  Unknown(): (null): Unable to initialize module
[Mon Jun 23 08:49:36 2008] [error] Module compiled with module API=20060613, debug=0, thread-safety=0
[Mon Jun 23 08:49:36 2008] [error] PHP    compiled with module API=20020429, debug=0, thread-safety=0
library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/sqlite.so: undefined symbol: spl_ce_Countable in Unknown on line 0

nneonneo

@master2oo8: Try turning $updateTimeout down to 13 or so. You host's script timeout is probably 15 seconds.

@zookeeper: Are you using IE7? If so, it might be the stupid IE bug (tm) which is flaring up again.

The language setting is in Account Settings. You should also just look at Themes/default/languages and copy Modifications.english.php to every other language (Modifications.<language>.php for each language in the languages folder).
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!

zookeeper

#2710
Can I just delete all the other languages I'm not needing? 

EDIT:

Yes IE7

munty

can someone please help me, i have installed my first forum recently, and went to add this great shoutbox...

but no matter what i do, i just get the following;
"A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again"

i have tried every setting i can think of, but nothing works....!

any help would be greatly appreciated

thanks

nneonneo

@zookeeper: OK, in order to debug the problem, I'll want a forum URL, but please do it through PM. Hopefully I can squash this bug, because it will not show up for me locally.

@munty: I don't recognize that error; it's not one that is produced by my shoutbox. Have you tried CHMODding everything in your forum to 777?
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!

master2oo8

#2713
Quote
Hey, i have a problem with my shoutbox.
If more users are online the SB collapse always, after ~5 seconds you see again the complete shoutbox, here my config:
(you see on page 136)
Quote
@master2oo8: Try turning $updateTimeout down to 13 or so. You host's script timeout is probably 15 seconds.
Hey, thanks for your answer, but it didnt fixed the error :(
It collapse now faster


by-the-way, pls check your pm, i have found 2 bugs ;))

nneonneo

Hmm, try turning off $gzipCompression...not sure what the problem might be though!
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!

zookeeper

#2715
This afternoon got notice that IE7 needed a service pack update.  Did that and now seems to be working much faster.  Will play with it more and see if that fixed it.

Thanks for your patience!

EDIT:

It does seem better.  There are some pages that aren't happy.  When I click on "who's online" and the try to click the HOME button it get stuck.  Mostly I have to just shut down the entire page.  I'm going to PM you the errors.



nikoskar

Hi All,

I add the shoutbox to my forum but i cannot hide the smiles for the quests. (The shoutbox is hiding) Any ideas?

if ($context['user']['is_guest'])
echo'';
else
// YSHOUT HERE

echo '
<br /><b>Space for free chat</b><br /><br />
<div id="yshout"', empty($options['collapse_header']) ? '>' : ' style="display: none;">','...Program is loading...<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>
<div class="smalltext" style="padding-left:25px;">';
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>';
// YSHOUT END


Thanks in advance

nneonneo

You should add the
', empty($options['collapse_header']) ? '>' : ' style="display: none;"
to the "smalltext" div which holds the smileys.
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!

munty

right, i have just installed smf 1.1.5 from scratch and now installed sb 1.6

no other packages installed

Yet again i have the message;

A file permissions error has occurred. Please check the permissions on the script and the directory it is in and try again.

Is there a complete idiots guide to what permissions are required and where to set them, does this point to permissions on files it is tying to change, or its own files, or settings on the board itself

nneonneo

What you might want to try is the beta of 1.20:
http://www.simplemachines.org/community/index.php?topic=137508.msg1588251#msg1588251

Note that I have not yet fixed one bug relating to Internet Explorer 7, which I will fix with the official release (due sometime this week if I ever manage to find a few hours to sit down and make sure *everything* works), so please only install this on a test forum and be prepared to uninstall it when 1.20 is finally released.
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: