Advertisement:

Author Topic: nneonneo's Shoutbox  (Read 1566905 times)

Offline netpaydays

  • Semi-Newbie
  • *
  • Posts: 10
    • Payday Loans
Re: nneonneo's Shoutbox
« Reply #6080 on: March 09, 2012, 04:01:27 AM »
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.

Offline Carol_i28

  • Semi-Newbie
  • *
  • Posts: 13
Re: nneonneo's Shoutbox
« Reply #6081 on: March 10, 2012, 03:04:41 AM »
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?

Offline sumpao src

  • Newbie
  • *
  • Posts: 7
Re: nneonneo's Shoutbox
« Reply #6082 on: April 22, 2012, 08:26:14 AM »
Hi,

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

*More cleanup code
*Guest cannot view chatbox

thank you  ;D

Offline jphilipg

  • Newbie
  • *
  • Posts: 2
Re: nneonneo's Shoutbox
« Reply #6083 on: May 24, 2012, 11:39:22 AM »
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

Offline Sachit

  • Semi-Newbie
  • *
  • Posts: 24
Re: nneonneo's Shoutbox
« Reply #6084 on: May 29, 2012, 12:48:05 PM »
may i know how to activate the shoutbox

Offline scimmiotto

  • Jr. Member
  • **
  • Posts: 311
Re: nneonneo's Shoutbox
« Reply #6085 on: June 29, 2012, 10:37:23 AM »
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.

Offline rimh101

  • Jr. Member
  • **
  • Posts: 134
  • Gender: Male
Re: nneonneo's Shoutbox
« Reply #6086 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:
Code: [Select]
:-\after sending the message on shoutbox with emoticon undecided.gif isn't showing this emoticon only display such a text:
Code: [Select]
:-In the folder mymod are two files smiley _ SMF_1.php and _SMF_2.php in in smiley_SMF_2.php is a code:
Code: [Select]
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:
Code: [Select]
:-\So this emoticon displayed on the forum with such a code, after entry of that mark between these flags
Code: [Select]
':-\'display error under shoutbox:
Code: [Select]
Parse error: syntax error, unexpected T_STRING, expecting ')' in \virtual\NameWWW\smf\mymod\smiley_SMF_2.php on line 31I ask for help how to correct this mistake would show this icon correctly.

Offline cieplutki

  • Semi-Newbie
  • *
  • Posts: 58
  • Gender: Male
    • http://www.facebook.com/pages/ewmapapl/27284179607 on Facebook
    • @https://twitter.com/ on Twitter
    • .:: ewmapa ::.
Re: nneonneo's Shoutbox
« Reply #6087 on: July 22, 2012, 07:23:46 AM »
Open BoardIndex.template.php your skin and near 220 linie

Quote
       echo '<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  ;)



Offline rimh101

  • Jr. Member
  • **
  • Posts: 134
  • Gender: Male
Re: nneonneo's Shoutbox
« Reply #6088 on: July 22, 2012, 11:27:09 AM »
@ 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.

Offline Xarwin

  • Jr. Member
  • **
  • Posts: 122
Re: nneonneo's Shoutbox
« Reply #6089 on: July 23, 2012, 04:57:30 PM »
Is it possible to use it outside SMF, through SSI or something?

Offline rimh101

  • Jr. Member
  • **
  • Posts: 134
  • Gender: Male
Re: nneonneo's Shoutbox
« Reply #6090 on: July 25, 2012, 04:33:55 AM »
Somebody will help me how to solve a problem from with the emoticon in shoutbox?

Offline br360

  • Jr. Member
  • **
  • Posts: 104
Re: nneonneo's Shoutbox
« Reply #6091 on: August 11, 2012, 02:16:16 PM »
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?

Offline Molten Bear

  • Semi-Newbie
  • *
  • Posts: 24
Re: nneonneo's Shoutbox
« Reply #6092 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.

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

Offline br360

  • Jr. Member
  • **
  • Posts: 104
Re: nneonneo's Shoutbox
« Reply #6093 on: October 18, 2012, 03:10:32 PM »
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.

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.

Offline Kaitlyn

  • Semi-Newbie
  • *
  • Posts: 73
Re: nneonneo's Shoutbox - erase the entire shoutbox history
« Reply #6094 on: October 19, 2012, 04:53:09 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:
Code: [Select]
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:
Code: [Select]
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:
Code: [Select]
$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:
Code: [Select]
'/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

Offline br360

  • Jr. Member
  • **
  • Posts: 104
Re: nneonneo's Shoutbox - erase the entire shoutbox history
« Reply #6095 on: October 19, 2012, 05:20:06 PM »
I'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"?

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:
Code: [Select]
$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:
Code: [Select]
'/erase' => ': Erase entire Shout Box history.',

Done.

Offline Kaitlyn

  • Semi-Newbie
  • *
  • Posts: 73
Re: nneonneo's Shoutbox
« Reply #6096 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

Offline Kaitlyn

  • Semi-Newbie
  • *
  • Posts: 73
Re: nneonneo's Shoutbox
« Reply #6097 on: October 25, 2012, 02:53:59 AM »
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

Offline br360

  • Jr. Member
  • **
  • Posts: 104
Re: nneonneo's Shoutbox
« Reply #6098 on: November 14, 2012, 03:33:43 AM »
Hi, I have a version shoutbox SB_1.22 along with Emoticons, after the click on emoticon undecided.gif emoticon has a code:
Code: [Select]
:-\after sending the message on shoutbox with emoticon undecided.gif isn't showing this emoticon only display such a text:
Code: [Select]
:-In the folder mymod are two files smiley _ SMF_1.php and _SMF_2.php in in smiley_SMF_2.php is a code:
Code: [Select]
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:
Code: [Select]
:-\So this emoticon displayed on the forum with such a code, after entry of that mark between these flags
Code: [Select]
':-\'display error under shoutbox:
Code: [Select]
Parse error: syntax error, unexpected T_STRING, expecting ')' in \virtual\NameWWW\smf\mymod\smiley_SMF_2.php on line 31I 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?

Offline br360

  • Jr. Member
  • **
  • Posts: 104
Re: nneonneo's Shoutbox
« Reply #6099 on: November 16, 2012, 02:10:32 PM »
is it possible to upload your yshout.php file can't seem to get the code to work correctly

Sure. Here it is.