News:

Wondering if this will always be free?  See why free is better.

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

nneonneo

@tadi: What do you mean? If you want to add a scrollbar, see http://www.simplemachines.org/community/index.php?topic=137508.msg1532028#msg1532028

@adamcanada: With Tinyportal, just use the instructions.

@asmith: You are probably missing a global declaration, e.g. global $header_template. The better way to do this would be to use output buffering, e.g.
ob_start(); // start buffering
include('yshout/yshout.php'); // include file: all echos are captured to buffer
$header_template.=ob_get_contents(); // add buffer contents to header
ob_clean(); // discard buffer

Note that you should disable $gzipCompression or some really funny things might happen.

@machmanx: The usual way to deal with this AFAIK is to post clear rules about shoutbox use, then a temporary ban from the shoutbox for not following rules (sounds harsh, but most people prefer this way) (note that the shoutbox doesn't have timed bans, so do remember to unban them or they will get mad!). You can also just disable images outright by adding the img tag to $bannedCode.

@Mikeric: They should, after the beta 4 fix is applied (http://www.simplemachines.org/community/index.php?topic=137508.msg1697317#msg1697317).

@Carb0n: See "High bandwidth use for large forums" under http://custom.simplemachines.org/mods/index.php?mod=585#post_troubleshooting. The only way to truly make this an efficient AJAX shoutbox would be to write a server-side server program which runs continuously and handles requests using the system resources instead of through Apache or PHP. This is not hard to do in e.g. Python (asynchat module) but is probably way over what is applicable to this shoutbox.
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]

#4141
@nneonneo

Here are a few screenshots of the shoutbox. Crop as needed.  ;D

EDIT: All three are the AdvSB 1.21.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



BlackXBOX

Quote from: nneonneo on October 15, 2008, 08:56:10 PM
@tadi: What do you mean? If you want to add a scrollbar, see http://www.simplemachines.org/community/index.php?topic=137508.msg1532028#msg1532028

@adamcanada: With Tinyportal, just use the instructions.

@asmith: You are probably missing a global declaration, e.g. global $header_template. The better way to do this would be to use output buffering, e.g.
ob_start(); // start buffering
include('yshout/yshout.php'); // include file: all echos are captured to buffer
$header_template.=ob_get_contents(); // add buffer contents to header
ob_clean(); // discard buffer

Note that you should disable $gzipCompression or some really funny things might happen.

@machmanx: The usual way to deal with this AFAIK is to post clear rules about shoutbox use, then a temporary ban from the shoutbox for not following rules (sounds harsh, but most people prefer this way) (note that the shoutbox doesn't have timed bans, so do remember to unban them or they will get mad!). You can also just disable images outright by adding the img tag to $bannedCode.

@Mikeric: They should, after the beta 4 fix is applied (http://www.simplemachines.org/community/index.php?topic=137508.msg1697317#msg1697317).

@Carb0n: See "High bandwidth use for large forums" under http://custom.simplemachines.org/mods/index.php?mod=585#post_troubleshooting. The only way to truly make this an efficient AJAX shoutbox would be to write a server-side server program which runs continuously and handles requests using the system resources instead of through Apache or PHP. This is not hard to do in e.g. Python (asynchat module) but is probably way over what is applicable to this shoutbox.

What about me?? You forgot me.

nneonneo

I'm sorry. I have no idea where you wanted the shoutbox, so I can't make the edits.
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!

Mikeric

I was trying to put my shoutbox in the news section. When I tried i just get it saying loading shoutbox... in the space. My shoutbox is still also in the same area it has been above that.

nneonneo

Did you try adding the <head> 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!

Roo

I keep getting an error:

'Fatal error: Call to undefined function allowedto() in /home/public_html/yshout/yshout.php on line 69"

Any idea what it could be? I'm using SMF2 Beta 4and AdvSB_1.21.

nneonneo

I remember someone else asked that question, and it had something to do with SSI, I think (don't recall exactly). Since I can't really remember, though, let's start at the beginning...

Is this a new installation, or has it worked before?

Is SSI.php modified?

Does this show up on the index, or just when the shoutbox loads?

Does it happen on yshout/index.php?

Does it happen on <forum>/index.php?yshout ?
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!

Roo

New Install on a fresh Install of SMF (with PortaMX).
SSI.php is not modified.

The shoutbox actually shows up, and then changes to the error at the last moment.
It happens on:
http://www.bloodlustofnagrand.com/index.php?action=forum
http://www.bloodlustofnagrand.com/index.php?yshout
http://www.bloodlustofnagrand.com/yshout/

asmith

#4149
Thank man, I got it working ^^

How can i insert a line between shout box messegaes?

I tried : 

writeLine("<p class=\"shout\">$timestamp&nbsp;$adminlinks$text</p><hr />\n",$chatPath);

in the yshout.php, but its not working?


JonoJames

I have managed to get Yshout working on my Simple Portal page, is there a quick way in making the username field the username/nickname of the SMF forum?

Would appreciated any help, here is the box

http://www.war-nfd.co.uk [nofollow]

edi67

nneonneo: i have one problem, my shoutbox work and is visible perfectly with forum in english language, but if i put forum in italian language it appear and after some second DISAPPEAR

you can help me ?

login with :  test / test
http://ediboard.altervista.org/index.php

u can choice italian/english language with drop down menu.

thx for help
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

psynx

Quote
@psynx: I can't see it. Do I need to be logged in?

no need, i now give guests permission to view and post to shoutbox. visit my forum page back and see what you think is wrong. thank you.

www.mirc-chatters.isgreat.org

nneonneo

@Roo: Any errors in the error log related to SSI or Security.php? It seems really weird that this error is happening, because allowedTo should be defined in Security.php which is loaded by SSI.php.

@asmith: The way this is done by AdvSB is like this:
Replace
return $chatText.' '; // hack: totally empty responses can break some browsers
by
return str_replace("\n","\n<hr class=\"shout-separator\" />",$chatText.' '); // hack: totally empty responses can break some browsers

@JonoJames: That looks like YShout v5, not my shoutbox. I don't know how to perform the integration.

@edi67: Try turning off $gzipCompression.

@psynx: Your JS files need to be updated; grab a 1.21 package, unzip it and put the files from yshout/js to your forum.
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!

psynx

#4154
@nneonneo

works fine now! Thanks.

Two more things.

1. how do i set the time format on shoutbox? or does shoubox auto follow the theme default time?

2. I want 'history' button when clicked it will open in a new window instead of the same window.

asmith

#4155
I'm not good at ajax, But again interesting to me that my inserted code in there do nothing!!

My forum is in  site.com/forums . I have insert the shoutbox in all non-forum pages (SSI included). it shows the people messages fine , but clicking on the button don't do anything.
members profile link in shoutbox has gone bad too.  if I'm not in the forum folder , it makes  its links like :

site.com/index.php?action-profile ....  which is a broken link..

I did this change : (In the makeShout function)

      $writeText="<a$a_style href=\"".((file_exists('forums/index.php'))? "forums/" : "")."index.php?action=profile;u=$userID\">$shoutName</a>";

So that it include the forums folder in the link for non-forum pages, but still no luck. What's wrong with it?


2.   my date is like  :   [Today at 06:37:54 PM] username  : . ...

How can i insert a <br /> or line break after the date , for more readability ? for example :
[Today at 06:37:54 PM]
Username :

mine actualy is like this atm :
[Today at 06:37:54
PM] username :


Really thanks man

Roo

These are the only errors in my log:

http://www.bloodlustofnagrand.com/index.php?action=admin;area=logs;sa=errorlog;desc
8: Undefined index: global_character_set
File: /home/helpandg/public_html/Sources/PortaMx/PortaMx.php
Line: 38

http://www.bloodlustofnagrand.com/index.php?
8: Undefined index: yshout_shout_button
File: /home/helpandg/public_html/yshout/yshout.php
Line: 314

http://www.bloodlustofnagrand.com/index.php?
8: Undefined index: yshout_admlinks
File: /home/helpandg/public_html/yshout/yshout.php
Line: 273

http://www.bloodlustofnagrand.com/index.php?
8: Undefined index: yshout_hide
File: /home/helpandg/public_html/yshout/yshout.php
Line: 273

http://www.bloodlustofnagrand.com/index.php?
8: Undefined index: yshout_exthistory
File: /home/helpandg/public_html/yshout/yshout.php
Line: 270

http://www.bloodlustofnagrand.com/index.php?
8: Undefined index: yshout_history
File: /home/helpandg/public_html/yshout/yshout.php
Line: 261

http://www.bloodlustofnagrand.com/index.php?
8: Undefined index: yshout_commands
File: /home/helpandg/public_html/yshout/yshout.php
Line: 259

InternetMafia

Does anyone have a screenshot of the smiley bar added to the SB?

Do the instructions posted on the mod page still work?
Its better to be dead and cool than alive and uncool.

[unplugged]

You can CLICK HERE to see the smiley bar in action. I modified it to open and close via a smiley icon, but other than that, it's straight from the instructions for it on the mod page.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



machmanx

Actually, I'm not trying to ban images from the shoutbox at all, I just don't want them to display for a long period of time.  Simply, this would make moderating easier for the staff.

Besides, banning this and that and preventing functionality is being negative.  It would be more positive if the shoutbox did it automatically so I can simply state to my members:  "That's how the shoutbox is setup." instead of going to the trouble and staying "STOP!" "NO IMAGES!" "ONE MORE AND YOU'LL GET BANNED!" thus pushing away members from my site.  You understand what I'm trying to say here?  Being positive is better than being negative.  And allowing images but only showing them for X amount of seconds would be a positive feature in my opinion.

Well, I thought it would be a simple line of code, but perhaps I was mistaken, my bad for asking.

Advertisement: