News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

mandukar

Is there a way I can stop guests from viewing the shoutbox?

iyeru42

Quote from: mandukar on November 16, 2007, 07:31:49 AM
Is there a way I can stop guests from viewing the shoutbox?

That's on it by default, unless the code was changed.

nneonneo

Hmm, that's not the fix I recommended. You should leave that as-is.

As for the shoutbox, it is giving me an error (http://iyeru42.ryan444123.com/board/yshout/yshout.php). Check the server/host error log for details.
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!

iyeru42

#1323
Quote from: nneonneo on November 16, 2007, 08:04:24 AM
Hmm, that's not the fix I recommended. You should leave that as-is.

As for the shoutbox, it is giving me an error (http://iyeru42.ryan444123.com/board/yshout/yshout.php). Check the server/host error log for details.

That's because my host doesn't allow me to chmod executable scripts to 777/755 inside folders >>;

And since my hoster is not availible to fix it, I can't fix that problem, sorry.

mandukar

then the codes been changed as guest can use the shout box.

nneonneo

@iyeru42: Well, in that case, is there anything in the server error log (if the host lets you see it)?

@mandukar: If you don't want guests to post to the shout box, set $allowGuestsPost to false in yshout/yshout.php.
If you don't want guests to _see_ the shoutbox, set $allowGuests to false.
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!

iyeru42

Quote from: nneonneo on November 16, 2007, 01:08:21 PM
@iyeru42: Well, in that case, is there anything in the server error log (if the host lets you see it)?

PHP Error Log:
[Fri Nov 16 19:21:08 2007] [error] [client 76.204.90.122] File does not exist: /home2/iyeru42/public_html/favicon.ico
[Fri Nov 16 19:20:49 2007] [error] [client 74.6.26.163] File does not exist: /home2/iyeru42/public_html/wiki/index.php
[Fri Nov 16 19:18:00 2007] [error] [client 76.204.90.122] File does not exist: /home2/iyeru42/public_html/favicon.ico
[Fri Nov 16 18:52:34 2007] [error] [client 76.204.90.122] File does not exist: /home2/iyeru42/public_html/home2/iyeru42/public_html/board/yshout/yshout.php
[Fri Nov 16 18:52:34 2007] [error] [client 76.204.90.122] File does not exist: /home2/iyeru42/public_html/favicon.ico
[Fri Nov 16 17:51:17 2007] [error] [client 76.204.90.122] File does not exist: /home2/iyeru42/public_html/home2/iyeru42/public_html/board/yshout/yshout.php
[Fri Nov 16 17:51:08 2007] [error] [client 76.204.90.122] File does not exist: /home2/iyeru42/public_html/favicon.ico
[Fri Nov 16 17:01:34 2007] [error] [client 38.99.13.122] File does not exist: /home2/iyeru42/public_html/robots.txt
[Fri Nov 16 17:00:54 2007] [error] [client 38.99.13.122] File does not exist: /home2/iyeru42/public_html/robots.txt


Is the error log. Notice that yshout is calling the directory twice.

nneonneo

That's it? Hmm...are you sure there's nothing more?

I just called the script, and caused an error. It should show up in the error log.
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!

mandukar

ahh cool thanks I will try that out :D.

mandukar

#1329
cool it works thanks.

next question is, is it possiable for the box to be moved onto its own page. e.g

http://www.rse-clan.com/smf/index.php?action=shout

btw thats not a working link just an example :P lol.

nneonneo

Hmm, yes, it is possible, but it will probably take some work.

The main reason for this mod is integration with the board; other mods (e.g. FlashChat) already do the job of putting the box outside on its own page.
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!

colorgoddess

pongsak - I still can't get this to work; on #4, there is no line of code stating this:
<div style="padding: 1ex 25px 1ex 25px;"id="yshout"', empty($options['collapse_header']) ? '>' : ' style="display: none;">',$txt['yshout_loading'],'<br /><br /></div>

nor in the yshout.php is there this code to replace:
<input id="shout-text" style="color: #666666;" maxlength="125" value="" type="text" />

I'll keep trying. 

thanks.

nneonneo

For the first line, look for
<div id="yshout"...
and the second,
<input id="shout-text"...
because of some recent changes in the shoutbox 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!

jossanaijr

Quote from: nneonneo on November 12, 2007, 04:39:57 PM
For "only on the board index, before the first board", place this before
/* Each category in categories is made up of:
id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
and boards. (see below.) */

in BoardIndex.template.php.

It's working fine but I just realize that the menu

History Commands ExtendedHistory ShowAdminLinks ReturnToShoutbox

does not update as it should be.  For example, I have AdminLinks not shown.  Even if I click ShowAdminLinks, or ReturnToShoutbox, or F5 it does not show the AdminLinks.  Even when loggin and it says "loading shoutbox" , ShowAdminLinks does not work and it does not change to HideAdminLinks.

BTW History Commands ExtendedHistory commands are working fine.

nneonneo

Hmm, that's odd. Show/HideAdminLinks is based on cookies (and shoutbox reload); ReturnToShoutbox uses autoshout which is completely different.

I suspect a Javascript problem. I could visit your forum to check it out (username 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!

jossanaijr

Hi,
I asked my host to change PHP version from 4.4.7 to 5.2.3 but when they did that I had a lot of errors in shoutbox like those:

Warning: session_start() [function.session-start]: open(/tmp/sess_facf4ac425ef2e2e2c5f82f5443b2bad, O_RDWR) failed: Permission denied (13) in /home/mysite/public_html/forum/yshout/yshout.php on line 187

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/mysite/public_html/forum/yshout/yshout.php:187) in /home/mysite/public_html/forum/yshout/yshout.php on line 187

So we came back to the original 4.4.7

Any advice what I will have to do if I decide to change it again?

brianjw

Nneonneo's shoutbox might not be compatible with PHP 5 yet... It is still new but I hear PHP is going to be releasing another version soon sometime this year or early next. PHP 5 is a good thing to have ;)

nneonneo

@brianjw: I use PHP5 on all the sites I run, and in fact, this was tested on PHP5.

@jossanaijr: It looks like a permissions issue on your host. My suggestion would be to log out and back in to reset your session, and hopefully fix the issue after upgrading to PHP5 (PHP5 may not have access to session data created by PHP4).
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!

iyeru42

Quote from: brianjw on November 18, 2007, 08:39:07 AM
Nneonneo's shoutbox might not be compatible with PHP 5 yet... It is still new but I hear PHP is going to be releasing another version soon sometime this year or early next. PHP 5 is a good thing to have ;)

But not all people have the luck to have a host that has php5 (Like me.)

brianjw

Well, if a host doesn't support php 5, I wouldn't use it as currently all things should be running on it and it is a stable release.

Advertisement: