News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

arranka

#2160
I still have problems with nneonneo shoutbox

ends the fast badwith 40 gigas in 7 days

has a solution for this?
also uses a lot of ram server and exhausts their resources

Is there a way to put it into an external server and embedded?

If not remove spent chatting badwith

hire a dedicated server and pay over 1200 dollars just to use the chat I feel somewhat excessive

I'm doing something wrong? I can indicate that I am doing wrong?

thank you very much

ALEJO

#2161
omg :S today i got a email of my hosting saying that i over-charged the hosting or something like that :S it can be for the shoutbox?
they send me this
590 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 4940 Length: 20
591 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 4953 Length: 147
592 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 5100 Length: 20
593 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 5104 Length: 16
594 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 4940 Length: 20
595 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 4953 Length: 147
596 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 5100 Length: 20
597 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 5104 Length: 16
598 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_log_online.MYD SUCCESS Offset: 8304 Length: 20
599 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_log_online.MYD SUCCESS Offset: 8308 Length: 221
600 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_membergroups.MYD SUCCESS Offset: 140 Length: 20
601 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_membergroups.MYD SUCCESS Offset: 153 Length: 15
602 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_membergroups.MYD SUCCESS Offset: 360 Length: 20
603 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_membergroups.MYD SUCCESS Offset: 364 Length: 13
604 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_log_online.MYD SUCCESS Offset: 8304 Length: 20
605 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_log_online.MYD SUCCESS Offset: 8308 Length:
solo el mas paranoico sobrevive

_Anthony_

Quote from: ALEJO on May 02, 2008, 07:38:51 PM
omg :S today i got a email of my hosting saying that i over-charged the hosting or something like that :S it can be for the shoutbox?
they send me this
590 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 4940 Length: 20
591 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 4953 Length: 147
592 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 5100 Length: 20
593 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 5104 Length: 16
594 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 4940 Length: 20
595 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 4953 Length: 147
596 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 5100 Length: 20
597 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_members.MYD SUCCESS Offset: 5104 Length: 16
598 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_log_online.MYD SUCCESS Offset: 8304 Length: 20
599 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_log_online.MYD SUCCESS Offset: 8308 Length: 221
600 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_membergroups.MYD SUCCESS Offset: 140 Length: 20
601 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_membergroups.MYD SUCCESS Offset: 153 Length: 15
602 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_membergroups.MYD SUCCESS Offset: 360 Length: 20
603 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_membergroups.MYD SUCCESS Offset: 364 Length: 13
604 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_log_online.MYD SUCCESS Offset: 8304 Length: 20
605 8:03:47 PM mysqld.exe:7636 READ G:\FerozoDatabases\mysql\w1020359_fosmf\smf_log_online.MYD SUCCESS Offset: 8308 Length:


Ya uhhm i don't think so...

guidoku310

Quote from: nneonneo on April 30, 2008, 11:00:41 PM
Yes, best if you removed it.

Format of timestamp: this is controlled by your user preferences -- it's the same as the forum. If you change it, it will affect everyone. See preg_timeformat in yshout/yshout.php for more information.

As for the format, I'm not sure what you are referring to.


I'm refferring to the text formatting

wheener

Hey nneonneo, I sent u a PM with a problem.
Please visit my forum at http://www.openforum.uni.cc [nofollow]
and my blog host with 100+ themes at http://openblogs.uni.cc [nofollow]

Adish - (F.L.A.M.E.R)

Well i have installed the things onto the site much properly...

the problem i am facing is this....

all the text which is typed comes according to the sentence length

just see the image u will get it....

AND

also is there anything by which there can be buttons instead of links for the extended history and commands and other stuff ??? it would look much better...:)

Adish - (F.L.A.M.E.R)

also if you know...like when the chats are deleted at the end the previous msges mostly should appear...

but when you delete the chat the previous things dont appear up....

like in the sense if i delete all that chat the chat before will not appear up...

the chat box will be blank...

help out soon...!

nneonneo

1.15 is now being tested. The primary fix is compatibility with SMF2. Release should be later today if I don't find anymore bugs :P

@W. Riker: Try yshout-style.css.

@www.BoxingHumor.Net: yshout/yshout.php: $maxShoutChars.

@renkliforum: Did you reinstall it by some accident? Is there only one when logged out? I think that if you edit index.template.php and remove the second "duplicated" section it should be all fine. The section you showed in the screenshot has nothing to do with your problem (it's the upshrink code, which I will take out in 1.15 because it is causing problems).

@arranka, ALEJO: This shoutbox was never designed for a large server. The limitations of PHP make it difficult, if not impossible to implement real chatting features.

That said, there is something you can do about it. The shoutbox can be made less taxing, at the cost of less interactivity.

The basic procedure is to set refreshTime in yshout/js/yshout.js to something higher, like 20000 (milliseconds). Then, you must change what comes after "/yshout/js/yshout.js?" in index.template.php (if you don't, some people will still have the old JS file, and that will cause problems).

After maybe a day or so, you can reduce $updateTimeout in yshout/yshout.php to 10 seconds or less (0 will make the shoutbox behave like an autorefreshing shoutbox with a 20 second delay).

@optimushunk: You installed it in a place where "center" alignment applies. Add something like <div style="text-align: left"> around the shoutbox, or add "text-align: left" to the yshout-style.css file.

Also, because of the way the shoutbox works, deleting displayed shouts won't bring back old ones -- the old ones are stored in history.
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!

Adish - (F.L.A.M.E.R)

yea i know the old once arent possible to be brought back...but as they are stored in the history then can the code be written that the past 10 posts come back ??

and what about the buttons thing instead of the links onto the shoutbox...?

nneonneo

It's doable.

Attached is 1.15. I'll post a full changelog and update it on the main mod page tomorrow.
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!

william_04_x

#2170
i am an idiot...how do i install this shoutbox using cpanel...i've made the changes to the ./Themes/default/index.template.php files...i don't understand where or what the following means..

Move the included directory "yshout" to "the root directory".
Move the included file "yshout/yshout-style.css" to "./Themes/default".

i DL'd the zip file and extracted...i don't know where to put this stuff...can it all load automatically?

on edit:i'm using SMF 1.1.4 at

hxxp:www.sincitydoxies.org/forums/ [nonactive]

PLEASE READ NEXT POST  :)

william_04_x

#2171
somehow i got it...i think.. ::) only thing it doesn't have is any text in the "submit" button....nor is there anything above the box (History, Commands, Extended History, etc.), as shown in the screen shot in the first post of this thread...

can anyone look? am i still missing something?

thanks again..
william
hxxp:www.sincitydoxies.org/forums/ [nonactive]


ALEJO

Today i banned someone (from the forum and from the shoutbox) and he still posted in the shoutbox :S
solo el mas paranoico sobrevive

nneonneo

@william_04_x: Package manager -- should be able to automatically install it by uploading the zip file!

@ALEJO: How did you ban him? Did you use the link provided, or did you ban him by display name? It's possible to evade a display name ban, but not a username ban.
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!

Enders

Is it possible to make it scrolling instead of disappearing? Also, can you input a custom number to make it display # of shouts in that box? Next, i want to limit the # of shout it shows on history.

edi67

is possible change the dimension of text wrote in the shoutbox?
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

nneonneo

@Enders: Scrolling, yes. http://www.simplemachines.org/community/index.php?topic=137508.msg1221413#msg1221413

See after the "++++++" bar.

History: yes. In function history(), reduce 250 in $n=250;.

@edi67: what do you mean by dimension?
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!

nneonneo

[announce] 1.15 released. This release is primarily to improve compatibility with SMF2, and enable the Package Manager. Among the features which were updated to work with SMF2 are the member groups ($moderatorGroups) and member banning via the "ban" button (the traditional /ban* interface was not affected).
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!

nneonneo

#2178
Adding a scroll bar (credits to vno for this; reworked for 1.14+)

In your theme's index.template.php or yshout-style.css, add this:

#yshout #shouts {
overflow: auto;
width: 165px;       /* the width you want to display */
height: 200px;     /* the height you want to display */
}


before:

#yshout {


For a nice autoscroll effect:
Quote from: nneonneo on August 04, 2007, 07:30:18 PM
This code is adapted from http://radio.javaranch.com/pascarello/2006/08/17/1155837038219.html.
In yshout/js/yshout.js:
Find
// Set off the AJAX call to load the chat form into the empty yShout div
Add BEFORE
var chatscroll = new Object();

chatscroll.Pane = function(scrollContainerId){
this.bottomThreshold = 20;
this.scrollContainerId = scrollContainerId;
this._lastScrollPosition = null; /* fixed 2008-05-27: changed from 100000000 to null */
}

chatscroll.Pane.prototype.activeScroll = function(){

var _ref = this;
var scrollDiv = document.getElementById(this.scrollContainerId);
var currentHeight = 0;

var _getElementHeight = function(){
var intHt = 0;
if(scrollDiv.style.pixelHeight)intHt = scrollDiv.style.pixelHeight;
else intHt = scrollDiv.offsetHeight;
return parseInt(intHt);
}

var _hasUserScrolled = function(){
if(_ref._lastScrollPosition == scrollDiv.scrollTop || _ref._lastScrollPosition == null){
return false;
}
return true;
}

var _scrollIfInZone = function(){
if( !_hasUserScrolled() ||
(currentHeight - scrollDiv.scrollTop - _getElementHeight() <= _ref.bottomThreshold)){
scrollDiv.scrollTop = currentHeight;
_ref._isUserActive = false;
}
}


if (scrollDiv.scrollHeight > 0)currentHeight = scrollDiv.scrollHeight;
else if(scrollDiv.offsetHeight > 0)currentHeight = scrollDiv.offsetHeight;

_scrollIfInZone();

_ref = null;
scrollDiv = null;

}
var divScroll;


Find
function setupChat() {
Add AFTER
divScroll = new chatscroll.Pane('shouts');
objDiv = document.getElementById('shouts');
objDiv.scrollTop = objDiv.scrollHeight;


Find
function startRefresh() {
if (!refreshSet) {
setTimeout("doRefresh()", refreshTime);
refreshSet = true;
}
}

function schedRefresh() {
if (refreshSet) {
setTimeout("doRefresh()", refreshTime);
}
}

Replace with
function startRefresh() {
if (!refreshSet) {
refreshSet = true;
schedRefresh();
}
}

function schedRefresh() {
if (refreshSet) {
setTimeout("divScroll.activeScroll()", 5);
setTimeout("doRefresh()", refreshTime);
}
}


EDIT: Fixed a small bug in the autoscroll 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!

edi67

Quote from: nneonneo on May 05, 2008, 11:17:14 AM

@edi67: what do you mean by dimension?

i means font size more big
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Advertisement: