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

nneonneo

@SingingCrane: yshout/yshout.php has the guest setting; yshout/js/yshout.js has the refreshTime setting.
@Daggers: Hmm, the permission denied error is due to the shoutbox AJAX call trying to access another forum.
Here's the problem.

You're board URL is probably something like "http://mybestdomain.com/Bboard/...". However, in SMF, it's registered as "http://www.mybestdomain.com/Bboard/...". (or vice versa). Most modern browsers will see the two domains as different, and an access from "mybestdomain.com/Bboard/index.php" to "www.mybestdomain.com/Bboard/yshout/yshout.php" will be roundly denied (mybestdomain.com != www.mybestdomain.com).
Therefore, I would suggest that you change the board URL in SMF's settings.
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!

Daggers

Nice one nneonneo thats worked for me

Many Thanks  :D :D :D

SingingCrane

Yes, but what refreshTime setting would you recommend for a shared server? The default is just way too much for my site.

nneonneo

mmm, I don't know, actually. I have not been able to do a lot of testing.

Does your server have a PHP-Accelerator of some sort? yshout.php benefits a lot from acceleration (even simple bytecode-caching), because it is called so often. I have noted a 10 fold increase in run times with a PHP accelerator installed, under moderate to heavy load. If you have the authority to install one, you should do so.

Also, you can try to disable logging on yshout.php, since that may take resources to do (though not nearly as much as the main script!).

I would experiment a bit. Set the refreshTime higher (~10000 for 10 seconds is probably OK for a first run) and then see if that's responsive enough and sufficiently problem free.

If you find a happy refresh time, post it and see if it helps anyone else :)

Cheers,
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!

SingingCrane

Will do! Thanks for the info, and again, great shoutbox!

Pranav

Cool! 8) Gonna install it at night. Let's see if it's good.

Jack_40k

    Execute Modification     ./Themes/default/languages/Modifications.english-utf8.php     File not found

Help :)

Jack_40k

Can I please get some help? Been waiting a few hours now, should be an easy fix?

brianjw

Some people don't hang around smf all day you know ;)
First of all do you have a file called Modifications.english-utf8.php anywhere?

Jack_40k


brianjw

Open up the xml file inside the file you downloaded (install.xml or something like it). Manually install the Modifications.english.php file since you have that file. ;)

nneonneo

Yep, pretty much. I'd assumed (since most installs nowadays seem to be of the UTF8 variety) that people would have UTF8; guess not.

But yeah, as Brian said, just apply the mod manually to Themes/default/languages/Modifications.english.php. Then, you may safely ignore the warning and install the mod as normal.
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

I don't use utf8. A tip Nneonneo: Add Modifications.template.php to the xml file with the same code along with Modifications.english-utf8.php. And you can tell people if they use UTF8 ignore the error with Modifications.enlish.php or if they don't use utf8 tell them to ignore the error with Modifications.english-utf8.php ;)

Brianjw

SingingCrane

I just enabled what is called "FastCGI for PHP" on my host server. Here's what the gist of it is:

Quote
FastCGI for PHP makes all your PHP applications run through mod_fastcgi instead of mod_phpsusexec. This eliminates the overhead of loading the PHP interpretor on every hit. Since it is always in memory ready for the next hit, the responses will be generated faster. NO MODIFICATIONS to your existing PHP applications will be performed so you can easily enable and disable it at will.

Could this by any chance clear up the issues I was having with the server processor overloads? Just curious...I don't really expect it to, but thought I should ask. I'm still learning, though slow as it may be...

ekfaysal

QuoteShout Box

Template Parse Error!
There was a problem loading the /Themes/default/languages/index.english.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

This error im facing please helpp me with this

brianjw

Quote from: ekfaysal on July 04, 2007, 07:38:12 AM
QuoteShout Box

Template Parse Error!
There was a problem loading the /Themes/default/languages/index.english.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

This error im facing please helpp me with this
Open the file /Themes/default/languages/index.english.php and make sure if there is any apostraphe's then you have to \ them out like the following:
Brian\'s Website

Or you can attatch your index.english.php file here and I'll take a look for you.

nneonneo

@SingingCrane: Yeah, that might help a bit.
@ekfaysal: I don't know if this is even related to the shoutbox; that file isn't modified AFAIK.
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!

ekfaysal

Quote from: ekfaysal on July 04, 2007, 07:38:12 AM

Open the file /Themes/default/languages/index.english.php and make sure if there is any apostraphe's then you have to \ them out like the following:
Brian\'s Website

Or you can attatch your index.english.php file here and I'll take a look for you.

File is attached
Plz check it for me

brianjw

I couldn't find any problems with it, sorry!

Daggers

Quote from: ekfaysal on July 04, 2007, 07:38:12 AM
QuoteShout Box

Template Parse Error!
There was a problem loading the /Themes/default/languages/index.english.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

This error im facing please helpp me with this

That is the generic error, the actual error is listed underneath that part of the text.. something like...

unexpected >

Advertisement: