News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

netpaydays

SMF uses charset=ISO-8859-1 by default. Could this be the cause of the problem? Those square boxes show up when usual characters are used with the default charset, or at least I think they do.

I would have thought if you have switched to using utf-8, then those Hungarian characters should be displayed without a problem. Does the shoutbox definitely use utf-8? I don't pretend to really understand the issues with character sets.

Carol_i28

I have installed the ajax Chat 3.3a onto our forum version SMF 2.0.2.

It is working perfectly.

Is there any way I can add more smilies to the shout box?

sumpao_src

Quote from: Grosraisin on November 03, 2011, 03:19:51 PM
Hi,

Here's a new review of my personal shoutbox (nneonneo's Shoutbox)

*More cleanup code
*Guest cannot view chatbox

thank you  ;D

jphilipg

I have a question that may or may not have been asked.  I skimmed through this giant thread and did not see it but I did not read everything either.

I have a couple sites that are both SMF 2.0.* using Simpleportal 2.3.4 with the v1.22 shoutbox.  I am curious if it is possible to have those two sites share one single shoutbox?  Currently the shoutbox is in a Simpleportal block that shows up on almost all pages.  If this is possible pointing me in the direction of making it a reality would be greatly helpful.

Thanks.

jphilipg

Sachit

may i know how to activate the shoutbox

scimmiotto

Hi, ihave a problem with this shoutbox and smf 2.0.2...


the layout is completely gone...




anyone knows how to solve plz?
Loop code example:
The following statement is FALSE
The previous statement is TRUE.

jsx

Hi, I have a version shoutbox SB_1.22 along with Emoticons, after the click on emoticon undecided.gif emoticon has a code:
:-\
after sending the message on shoutbox with emoticon undecided.gif isn't showing this emoticon only display such a text:
:-
In the folder mymod are two files smiley _ SMF_1.php and _SMF_2.php in in smiley_SMF_2.php is a code:
array('code' => ':-\\', 'filename' => 'undecided.gif', 'description' => $txt['icon_undecided']),
Between the marks ' ' is arranged code responsible for display this emoticon, correct code on this emoticon undecided.gif
this code:
:-\
So this emoticon displayed on the forum with such a code, after entry of that mark between these flags
':-\'
display error under shoutbox: Parse error: syntax error, unexpected T_STRING, expecting ')' in \virtual\NameWWW\smf\mymod\smiley_SMF_2.php on line 31
I ask for help how to correct this mistake would show this icon correctly.

cieplutki

Open BoardIndex.template.php your skin and near 220 linie

Quoteecho '<table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;">
                   <div class="tborder" style="margin-top: 0;">
       <div class="catbg" style="padding: 5px 5px 5px 10px; border-radius: 5px;">
        <center>.:: Shoutbox - Tu nie zadajemy pytań, od tego jest forum! ::.</center>
       </div>
       <table border="0" width="100%" cellspacing="1" cellpadding="5" class="bordercolor" style="margin-top: 1px;">
        <tr>
         <td class="windowbg">
          <div id="yshout"', empty($options['collapse_header']) ? '>' : ' style="display: none;">',$txt['yshout_loading'],'</div>
<div class="smalltext" style="padding-left:25px;"><a href="javascript:collapse1.slidedown()">Open Smiley</a> | <a href="javascript:collapse1.slideup()">Close</a>';
                     require('mymod/smiley_SMF_1.php');
                     loadSmileys();
                  echo '
                     <div id="smiley_pic">';
                        printSmileys('shout_form','shout_text');
                  echo '
                     </div>
                     <script type="text/javascript">
                     //Syntax: var uniquevar=new animatedcollapse("DIV_id", animatetime_milisec, enablepersist(true/fase), [initialstate] )
                     var collapse1=new animatedcollapse("smiley_pic", 1000, false)
                     </script>
                  </div>
           </td>
        </tr>
       </table>
       </div><br />';

change smiley_SMF_1.php to smiley_SMF_2.php

or download attach  ;)




.

jsx

@ up

I don't need to change on smiley_SMF_2.php because is already placed this command from smiley_SMF_2.php
So it must be another error, error in some file from Shoutbox, not in BoardIndex.template.php

Shoutbox from the attachment has the same mistake.

Xarkurai

Is it possible to use it outside SMF, through SSI or something?
Useful paid mod: Badge Awards - Award members for actions

jsx

Somebody will help me how to solve a problem from with the emoticon in shoutbox?

br360

I read through most of the 300 plus pages, and only saw my question asked once(and it didn't help); so sorry if I am being redundant here.  I am getting this error:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 439 bytes) in /home/content/65/9384965/html/yshout/class.tail.php on line 228

Chat is working fine, but the above error happens when I am trying to look at chat history. I contacted my host, and I have plenty of RAM, so it isn't a hosting issue. I considered uninstalling the mod, and re-installing it to see if that would help, but I received an error there too. ./Sources/ManagePermissions.php=test failed

Personally I would rather solve the fatal error, then try to unistall it anyway. Any suggestions?

Molten Bear

Bradley,   You have to edit the history log file.  Use FTP to look in the Chats folder of the yshout folder.  History.home.txt (or similar, the big file ). Download it, edit it to remove all but the bottom 400 lines or so ...upload it back and history should work again.

For me, I still get the blue background bar across the middle of the shoutbox.  I know this is related to the background image but do not know how to change it.

Good Luck

br360

Quote from: Molten Bear on October 18, 2012, 12:01:50 AM
Bradley,   You have to edit the history log file.  Use FTP to look in the Chats folder of the yshout folder.  History.home.txt (or similar, the big file ). Download it, edit it to remove all but the bottom 400 lines or so ...upload it back and history should work again.

Genius. Thank you.

Quote from: Molten Bear on October 18, 2012, 12:01:50 AM
For me, I still get the blue background bar across the middle of the shoutbox.  I know this is related to the background image but do not know how to change it.
Good Luck

Wish I could help you with that in return, but no idea... Thanks again though, much appreciated.

Kaitlyn

Quote from: underdog_01 on July 20, 2009, 01:27:47 AM
I'm not sure if this has been mentioned before..
(I didn't find it in the search function)

I noticed the /clear command only clears up the history that shows on the current screen.
It does not erase the the entire history file therefore manually clearing the file with an editor is necessary.

So I made a slight modification to the Shout Box that adds a proper erase procedure.

-------------------------------------------

Adding the /erase history command:

Navigate to ...Your site/public_html/yshout.php

Find:

case "/clear":
global $chatPath, $historyPath;
$fileContents='';
if(file_exists($chatPath))
$fileContents = file_get_contents($chatPath);
$handle=fopen($chatPath, 'w');
fputs($handle,'');
fclose($handle);
if($historyPath !== '')
{
$handle=fopen($historyPath, 'a');
fputs($handle,$fileContents);
fclose($handle);
}
return true;



Add this after above code:

case "/erase":
global $chatPath, $historyPath;
$fileContents='';
if(file_exists($chatPath))
$fileContents = file_get_contents($chatPath);
$handle=fopen($historyPath, 'w');
fputs($handle,'');
fclose($handle);
if($historyPath !== '')
{
$handle=fopen($historyPath, 'a');
fputs($handle,$fileContents);
fclose($handle);
}
return true;


---------------------------------

Navigate to:
Your site/public_html/Themes/default/languages/Modifications.english.php

or if you use utf-8 settings go to:

Your site/public_html/Themes/default/languages/Modifications.english-utf8.php

Find:

$txt['yshout_cmdlist'] = array(
'/help' => ' [command]: Help on a command, or all if no command is specified.',
'/return' => ': Go back to the Shout Box.',
'/pi' => ' [digits]: What is the value of pi to the nth digit?',
'/me' => ' &lt;message&gt;: Emotes the message (e.g. <span class="meaction"> * Nathaniel likes dogs</span>)');
$txt['yshout_cmdlistadmin'] = array(
'/clear' => ': Completely empty the Shout Box.',


Add this after above code:

'/erase' => ': Erase entire Shout Box history.',


Done.

---------------------------------

Now you can use the /erase command to erase the entire history of the Shout Box.

Note: If you only use the /erase command it will erase the extended history and put what is showing on your screen in there (recent history). If you want to erase absolutely everything... use the /clear command followed by the /erase command.


UD

I've tried adding the /erase command to yshout.php file and all that does is makes my whole forum a blank screen

br360

Quote from: Kaitlyn on October 19, 2012, 04:53:09 AMI've tried adding the /erase command to yshout.php file and all that does is makes my whole forum a blank screen

It worked nicely for me. Did you also put this code in your "Modifications.english.php"?

Quote from: underdog_01 on July 20, 2009, 01:27:47 AMNavigate to:
Your site/public_html/Themes/default/languages/Modifications.english.php

or if you use utf-8 settings go to:

Your site/public_html/Themes/default/languages/Modifications.english-utf8.php

Find:

$txt['yshout_cmdlist'] = array(
'/help' => ' [command]: Help on a command, or all if no command is specified.',
'/return' => ': Go back to the Shout Box.',
'/pi' => ' [digits]: What is the value of pi to the nth digit?',
'/me' => ' &lt;message&gt;: Emotes the message (e.g. <span class="meaction"> * Nathaniel likes dogs</span>)');
$txt['yshout_cmdlistadmin'] = array(
'/clear' => ': Completely empty the Shout Box.',


Add this after above code:

'/erase' => ': Erase entire Shout Box history.',


Done.

Kaitlyn

is it possible to upload your yshout.php file can't seem to get the code to work correctly

Kaitlyn

I would like to remove these commands

/help [command]: Help on a command, or all if no command is specified.
/return: Go back to the Shout Box.
/pi [digits]: What is the value of pi to the nth digit?
* Kaitlyn <message>: Emotes the message (e.g. * Nathaniel likes dogs)

/impersonate <user> [userlevel] [ip] [userid] /[shout text]: Impersonate a user. Shout text must be prefixed by a "/" or else it will fail.
<user>: Username to use
[userlevel]: User Level to use. 0=normal, 1=mod, 2=admin
[ip]: IP address to use, as 1.2.3.4
[userid]: User ID from forum, to fix profile link

br360

Quote from: rimh101 on July 20, 2012, 08:27:52 AM
Hi, I have a version shoutbox SB_1.22 along with Emoticons, after the click on emoticon undecided.gif emoticon has a code:
:-\
after sending the message on shoutbox with emoticon undecided.gif isn't showing this emoticon only display such a text:
:-
In the folder mymod are two files smiley _ SMF_1.php and _SMF_2.php in in smiley_SMF_2.php is a code:
array('code' => ':-\\', 'filename' => 'undecided.gif', 'description' => $txt['icon_undecided']),
Between the marks ' ' is arranged code responsible for display this emoticon, correct code on this emoticon undecided.gif
this code:
:-\
So this emoticon displayed on the forum with such a code, after entry of that mark between these flags
':-\'
display error under shoutbox: Parse error: syntax error, unexpected T_STRING, expecting ')' in \virtual\NameWWW\smf\mymod\smiley_SMF_2.php on line 31
I ask for help how to correct this mistake would show this icon correctly.

I'm having the same problem. All smilie images work in the shout box except the undecided smiley ( :-\).  The image appears fine in posts in the forum, but I only get the ':- \' text in the shoutbox, and not the image.

Anyone have an idea of why that is the only one not appearing as an image in the shoutbox?

br360

Quote from: Kaitlyn on October 24, 2012, 05:21:16 AM
is it possible to upload your yshout.php file can't seem to get the code to work correctly

Sure. Here it is.

Advertisement: