Customizing SMF > Modifications and Packages
nneonneo's Shoutbox
rimh101:
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.
--- End quote ---
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
--- End quote ---
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:
--- Code: ---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;
--- End code ---
Add this after above code:
--- 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;
--- End code ---
---------------------------------
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: ---$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' => ' <message>: Emotes the message (e.g. <span class="meaction"> * Nathaniel likes dogs</span>)');
$txt['yshout_cmdlistadmin'] = array(
'/clear' => ': Completely empty the Shout Box.',
--- End code ---
Add this after above code:
--- Code: ---'/erase' => ': Erase entire Shout Box history.',
--- End code ---
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
--- End quote ---
I've tried adding the /erase command to yshout.php file and all that does is makes my whole forum a blank screen
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version