nneonneo's Shoutbox

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

Previous topic - Next topic

nneonneo

I don't know what's going on. Have you tried it on another computer, another browser, Firefox 1/2/3, etc? It might be a Firefox bug (judging from the Google search results).
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]

Just wanted to say what a fantastic mod this is. I installed it on SMF 2.0 with no problems whatsoever. After a few customizations in appearance and location, it's perfect.

@nneonneo
I read all 98 pages and cannot believe the amount of patience you have and the willingness to help. A huge thanks.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



MegaTinkerCoder

fyi with the shoutbox turned on in php5 on smf 2 you get an error when in a strict environment.

Quote
Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for 'MDT/-6.0/DST' instead in /home/christj8/public_html/Sources/Subs.php on line 805

Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for 'MDT/-6.0/DST' instead in /home/christj8/public_html/Sources/Subs.php on line 818
History Commands ExtendedHistory HideAdminLinks ReturnToShoutbox

Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for 'MDT/-6.0/DST' instead in /home/christj8/public_html/Sources/Subs.php on line 805

Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for 'MDT/-6.0/DST' instead in /home/christj8/public_html/Sources/Subs.php on line 818

The explanation of this error is at:

http://us2.php.net/manual/en/function.date-default-timezone-set.php

I am looking into manually setting the timezone in code.

In the middle of difficulty lies opportunity.

Albert Einstein

MegaTinkerCoder

I got rid of the error in my implementation by adding to the top of the yshout.php file

date_default_timezone_set("America/New_York");

You might want people to select a time zone when they load the shout box?

right after the php opened... errors gone
In the middle of difficulty lies opportunity.

Albert Einstein

nneonneo

Back in the 1.02 days I had that line, but it doesn't work in PHP 4. Besides, that error is coming from Subs.php, so it's not strictly my fault (unless I forgot to include some other file :-\ )
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!

MegaTinkerCoder

On that link I posted above (in the comments) someone posted a method to make declaring the time zone work in php4 as well.

The shout box worked fine till my host forced upgrades to php 5.

In fact even with the error you can still use the box its just the error is prepended to the top of the shout box.
In the middle of difficulty lies opportunity.

Albert Einstein

crazyASD

Quote from: nneonneo on April 05, 2008, 11:37:06 AM
I don't know what's going on. Have you tried it on another computer, another browser, Firefox 1/2/3, etc? It might be a Firefox bug (judging from the Google search results).
No, i check it from another computer and IE 6-7, Firefox 2,3 Safari for win. And it not work for me...

nneonneo

None of those worked?

AFAIK the status property returns an error if it's not possible to get the status, i.e. it hasn't loaded. However, it checks readyState first, so that shouldn't be a problem :S
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!

sunita

#1948
Sorry if this is very dumb question.

I have done following:

1. Uploaded the package SB_1.13.tgz and applied the mod.
2. Updated index.template.php by adding the


// YSHOUT HERE   
   global $boardurl;
... (as given at home page of mod)
// YSHOUT END

after
   if ($context['browser']['needs_size_fix'])
      echo '
   <link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';

3. Now I have to add
// YSHOUT HERE      echo '                     <br /><b>Shout Box</b><br /><br />                     <div id="yshout">',$txt['yshout_loading'],'<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /></div>';      // YSHOUT END
at desired location however I am not very familiar with php and templates.

Can someone suggest me where to add by giving some code after which I can add this.
My site is hxxp:www.ping4help.com/ [nonactive]
I am using Waltz theme and if possible, I would like to add this below menu bar on left hand side of search button.

Thanx in advance.

madman71

Im trying to get my SB to only show in the index page of my forum.  I've read what nneonneo has said here http://www.simplemachines.org/community/index.php?topic=137508.msg1195341#msg1195341

But to me, it's not that clear.

Can someone help plz :)

ameo

nneonneo, when I click shout in my shoutbox nothing happens. any idea why is that, and how to fix it?
I've got all up, and looking good, but still, it won't show a word.
antechinus:
QuoteIf you are dying for a solution it may be wise to seek medical attention.
Get some Awesome Smileys for your forum

|±(ಠ_ಠ
)±|

madman71

ameo,

Are you installing it in a modded theme? or the basic(default) theme?

ameo

antechinus:
QuoteIf you are dying for a solution it may be wise to seek medical attention.
Get some Awesome Smileys for your forum

|±(ಠ_ಠ
)±|

madman71

sorry ameo,

i misread your post.

However, i had the same prob that you did when i tried to install the smilie pack :(

nneonneo

@sunita: so, you want it in that little box which has the user info? No problem.
Put that code right after
  else {
   echo $txt['welcome_guest'];
  }

in index.template.php. I think that should do it.

@madman71: To make it only show up on the board index, you have two options.
1) You can add a check for the current page on index.template.php, so the shoutbox code is only generated on the index page.
2) You can install it to BoardIndex.template.php, but that will make it impossible to put it in the default location (you will have to put it elsewhere, e.g. under the menubar, near the info center, etc.)

@ameo: Any errors in the server error log? It sounds like either
1) chats/home.txt isn't writable
2) shout button JS is broken
The server error log should make it clear which problem it is. As a first step, try chmodding that file to 644 or 666.
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!

madman71

You can add a check for the current page on index.template.php, so the shoutbox code is only generated on the index page.
------------------------------------------------------------------------------

I'd like to go this method, however what do you mean by adding a check for the current page?

thanks again nneon

nneonneo

Before
echo '
<br /><b>Shout Box</b><br /><br />

add
if($context['current_action']=='')

That should do it.
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!

ameo

#1957
I'm looking right now in home.txt and it's 777, so it's not that.

Server log says totally nothing concerning yshout

EDIT:

problem solved  - thanks 2 nneonneo.

just in case anyone else has similar troubles:

Admin panel, Themes and Layout, Themes and Settings, Attempt to reset all themes.

antechinus:
QuoteIf you are dying for a solution it may be wise to seek medical attention.
Get some Awesome Smileys for your forum

|±(ಠ_ಠ
)±|

nneonneo

I'm guessing it's a JS error, then. It's probably easiest if I hop on your board to take a look.
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!

sunita

Really appreciate your quick reply. I manage to put this however I was getting only "...loading shoutbox...". Then I moved it to BoardIndex.template.php just before    echo '
         </table>
      </div>
   </div>';
}
as advised by you in other reply. Still I am getting same "...loading shoutbox...".

I have checked that hxxp:ping4help.com/yshout/js/yshout.js [nonactive] is accessible as asked by you in still another reply.

Not sure what I am doing wrong. Can you plz help. Thanx a bunch.
Quote from: nneonneo on April 05, 2008, 03:42:21 PM
@sunita: so, you want it in that little box which has the user info? No problem.
Put that code right after
  else {
   echo $txt['welcome_guest'];
  }

in index.template.php. I think that should do it.

Advertisement: