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

Con

#500
Ok, I placed this thing at the bottom of my forum, is there any way I can put a box around it and make it look a bit decent around it?

and I have a problem with the type box, typed text isnt showing up like shown in attachment

nneonneo

@Windwalker: I recently updated the mod page for 1.06, since the old instructions were outdated. Have you tried the new instructions yet?

@Con: It depends entirely on what theme you're using. I can't tell you how to place a box around it, unless I know what kind of theme and what code is usually used for that purpose.
In **theory**, adding some kind of CSS declaration to the div would do it, like
<div id="yshout" style="border-style: solid;border-color: #0000ff;"> would produce a solid blue border (which would likely look ugly, so change the color!). However, that may not be the best way to do it -- I'd need to see the theme.
Second problem (typing box): perhaps the colors are wrong. If you type something and hit enter, does the text post? If so, then just edit the giant CSS block in index.template.php, specifically the part about "#yshout #shout-text".
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!

Con

Quote from: nneonneo on April 02, 2007, 03:33:04 PM
@Con: It depends entirely on what theme you're using. I can't tell you how to place a box around it, unless I know what kind of theme and what code is usually used for that purpose.
In **theory**, adding some kind of CSS declaration to the div would do it, like
<div id="yshout" style="border-style: solid;border-color: #0000ff;"> would produce a solid blue border (which would likely look ugly, so change the color!). However, that may not be the best way to do it -- I'd need to see the theme.
Second problem (typing box): perhaps the colors are wrong. If you type something and hit enter, does the text post? If so, then just edit the giant CSS block in index.template.php, specifically the part about "#yshout #shout-text".
I use the theme 'black22' I think it's called.
So I can just throw a div around the coding that posts the shoutbox? I never worked with php before so heh ^^;

and I tried editing those two parts in the CSS, it never changed the colors.. but it did post, you just have to type blind.

nneonneo

Actually, you wouldn't throw a div around it;  just edit the div that's already there!
You edited this code, right?
#yshout #shout-text {
color: #000000;
width: 310px;
margin-right: 5px;
}

and changed the color, I'm assuming. It changes just fine on my forum when I edit that parameter...
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!

Col

Is there anyone who is actually using this mod? It would be nice to see it in action.

nneonneo

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!

brianjw

Thanks again nneonneo ;) [for the pm].

greyknight17

Quote from: nneonneo on April 01, 2007, 08:12:20 PM
@greyknight17: The problem is with the PHP code you've inserted into the phpbox (I hope I didn't post it wrong =\), not with the index.template.php.
The phpbox block must read
echo '<div id="yshout"></div>';
and nothing else, or it will fail.
If you want members only, set allowGuests to false in yshout/yshout.php. That will disable the first field so it is the username, and also give guests an error message when they access the shoutbox ("You must be logged in to use the shoutbox!")
OK, I copied and pasted this line into the phpbox again. It seems to be a bit better this time around, but I only see the title bar (that I called ShoutBox) and no other field to type in.

Do I need to edit the index.template.php file if I don't want the ShoutBox to appear in the user info area?

I also changed allowGuests to false but now it asks me to login to shout even when I'm logged in already :(

Trixter

Hi thanks for the new installation instructions they work great!! I love this shoutbox :)

SinnerSaint

Hi nneonneo,

I'm just wondering what part of your shoutbox caused my host to report that the shoutbox script is using excessive CPU resources. Here is a part of their e-mail:

QuoteHi,

We have been forced to disable one of your scripts as it was excessive. Some
of the details are as follows:

User      Domain          %CPU %MEM %SQL
allpi3  allpinoystuff.net       10.72   9.76    0.5
Top Process     %CPU 18.0       [php5.bin]
Top Process     %CPU 14.0       [php5.bin]
Top Process     %CPU 13.0       [php5.bin]

203.**.***.*** - - [30/Mar/2007:18:40:56 -0700] "POST /forum/yshout/yshout.php
HTTP/1.1" 404 5 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.0.11) Gecko/20070312 Firefox/1.5.0.11"
222.***.***.*** - - [30/Mar/2007:18:40:57 -0700] "POST
/forum/yshout/yshout.php HTTP/1.1" 200 732

The script has been disabled by means of chmod 000 .

----------  1 allpi3 allpi3 32310 Mar 26 02:34
/home/allpi3/www/forum/yshout/yshout.php

Please ensure that all of your scripts are up to date and to there latest
version. Please make sure that any material you beleave to be harmfull in
nature is removed and any files that are not yours removed as well.
You can re-enable the scripts by setting the permissions on the file back to
644.

Please note that the acceptable usage range for shared plans is
1.0% average %CPU or less, 1.0% average %Memory or less and Top Processes
below 20%. Currently, your usage far exceeds this range at your current %.

Can somebody help me in fixing the codes of the shoutbox? I just used the default values included in the shoutbox installer.

Thanks in advance.
SinnerSaint

Con

Quote from: nneonneo on April 02, 2007, 04:18:59 PM
Actually, you wouldn't throw a div around it;  just edit the div that's already there!
You edited this code, right?
#yshout #shout-text {
color: #000000;
width: 310px;
margin-right: 5px;
}

and changed the color, I'm assuming. It changes just fine on my forum when I edit that parameter...
It does work in firefox, but not in IE..
http://transformers.twisted-spoon.com/index.php

nneonneo

@greyknight: Since I have not been able to extensively test the TP modifications, perhaps you could post/PM a board link for me to look at.
@dance66: Change the refreshTime in yshout/js/yshout.php to something higher, to increase the time between successive refreshes.
@Con: You have an error in your CSS:
color: #6808080;
There's an extra character there. It is possible that IE stopped parsing after that error, though I am not entirely sure.
EDIT: Bloody hell, IE has a bug, or maybe it's just me. IE fails to render a different text color.
I do *not* know how to fix this problem, as I am not a CSS expert. Bloody stupid IE >.<
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!

ictus

found a bug...

When using Joomla Bridge (the SMF official one) you get: Shoutbox loaded in another window. Retrying...

Even though it is the only window open, I'm using Firefox and Safari on a Mac, don't think its a mac issue though.

Other than that it works great.

brianjw

IE is a very popular browser but looks can be deceiving >:(

Col


brianjw

#515
Hey my website has it up and running. *newer* then it was about 20 pages ago lol. :)
Thanks to nneonneo via pm gave me some helpful codes to make my shoutbox display but not allow posts to guests. :)
I really like that feature. If you would like the code, thank nneonneo and here it is:
Quote from: nneonneoOPEN [yshout/yshout.php]
Change allowGuests to true.
Then, find
<form id="shout-form" action="#">
<fieldset>
<input id="forum-name" style="color: #666666;" maxlength="25" value="',$user['name'], '" type="text" disabled="true" />
<input id="shout-text" style="color: #666666;" maxlength="125" value="',$txt['yshout_p_banned'],'" type="text" disabled="true" />
<input id="shout-button" type="button" value="',$txt['yshout_banned'],'" disabled="true" />
</fieldset>
</form>';

Add after this
elseif(!$user['is_logged']) echo 'Notice: must be logged in to post.';

Find case "shout":
Add after
if(!$user['is_logged']) break;
and you're done.

Quote from: BrianjwFor this:
Notice: must be logged in to post.
I made it like this:
<color="orange">You must be logged in to use the shoutbox!</color>
[Guest View]: http://www.brianjwilson.com
[Member View] NOT AVAILABLE, due to abusers.

Brianjw

JSizzal

Hi again

I got this error when I uploaded my forum on a different host:
Warning: fopen(chats/home.txt): failed to open stream: Permission denied in /home/curlzspo/public_html/streetz/yshout/yshout.php on line 1417
File error (writeLine); aborted


How do I fix this, thanks!!

nneonneo

@JSizzal: you forgot to chmod the file to 755 (or something like that).
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!

JSizzal


brianjw

#519
Quote from: JSizzal on April 06, 2007, 12:11:34 AM
How do I do that!!
Download an FTP, if you do not have one. Google, "SmartFTP", It works well :)
When using that ftp software, right click on the file, click "Properties / CHMOD" then where it says "Permissions:" you put "755" ;) (without the quotation marks )

Brianjw

Advertisement: