nneonneo's Shoutbox

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

Previous topic - Next topic

assam_siddibapa

How can i have this in the catogary ??

camfather

My host just installed php 5 now shoutbox history returns

QuoteShout Box History

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 7100080 bytes) in /home/cadcamco/public_html/horide/yshout/class.tail.php on line 228

Any ideas as I can't seem to search this thread.

TIA

Bulakbol

Delete the history.home.txt from yshout/chats and start a new history.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

camfather

Quote from: Bulakbol on February 25, 2009, 10:45:36 PM
Delete the history.home.txt from yshout/chats and start a new history.

For whatever reason I couldn't delete the history from my chats, but I edited the settings.php file to read $historyFormat='history1.%s.txt';

And that worked

The history file wasn't 7megs in size?? is this a limitation of the software  ::)

Bulakbol

Most hosts limit memory to 8 megs.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

assam_siddibapa


ameo

you can't. no1 ever put it there.
antechinus:
QuoteIf you are dying for a solution it may be wise to seek medical attention.
Get some Awesome Smileys for your forum

|±(ಠ_ಠ
)±|

Stef001

Hello,

Thanks for this great shoutbox.
I have one question.
Is it possible to have two forums and that one shoutbox works in both the forums.
I also have the member tables connected.

Please advise.

Stef.
SMF 2.0.2 | SimplePortal 2.3.5

Cobra97

I just installed this in a fresh copy of 1.1.8 and everything went well.  I just had one question though, if anyone can steer me in the right direction.  Is there somewhere I can increase the font size for the shouts themselves.....There so small it's kind of hard to see.

Thanks

bramar

Can anyone send me or is there attached smiley_SMF2.php file??? I can't find it anywhere, and I am using SMF 2.0RC1. Standard smileys are working, but custom won't work with this version of smiley.php file that I am using.

Thank you

ameo

Quote from: Cobra97 on February 26, 2009, 07:16:54 PM
I just installed this in a fresh copy of 1.1.8 and everything went well.  I just had one question though, if anyone can steer me in the right direction.  Is there somewhere I can increase the font size for the shouts themselves.....There so small it's kind of hard to see.

You can increase font size by going to index.template.php and finding in first code:
#yshout {
         font-size: 13px;

I changed to 13 but you can change to any size U want.
antechinus:
QuoteIf you are dying for a solution it may be wise to seek medical attention.
Get some Awesome Smileys for your forum

|±(ಠ_ಠ
)±|

allymcbeal

Can you help to add a line around my shoutbox? Like a rectangle?  I can't do it.

0cm

Quote from: picos on February 25, 2009, 05:25:34 AM
I'm trying to get this working with smf 2 rc1.  I worked fine in the beta 4 but now it's erroring and doesn't install due to failed tests. 

Where the shoutbox is meant to be it has this error

Fatal error: Call to undefined function allowedto() in /home/errclan/public_html/forum/yshout/yshout.php on line 69

Same here.

Gravitysuit

#5193
I'm sure this is something simple and I'm just missing it.  The shoutbox works great and the scrollbar works pretty good, but I have this retarded problem.

When you only show 12 shouts on the page and the scrollbar is set at 20, then obviously it's fail.

How can I increase the number of visible shouts to say... 50?  That way the scrollbar can scrollback and it make sense.


Figured it out, it was in settings.php

ɔɔɔɔɔɔuɥoɾ

I having a problem with mine, no error install went fine, everything appears to be working except the text and bg color are the same (black) need to highlight text to see it.

see image:



im pretty sure this is a CSS error, but ive tried a few edits and nothing changed for me


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Gravitysuit

Quote from: johncccccc on February 27, 2009, 08:08:54 PM
I having a problem with mine, no error install went fine, everything appears to be working except the text and bg color are the same (black) need to highlight text to see it.

see image:



im pretty sure this is a CSS error, but ive tried a few edits and nothing changed for me

I'm still a noob here, but try searching for this line in your css template:

/* use dark grey for the text, leaving black for headers etc */

Then change the hex code under that line to whatever text color you want.

ɔɔɔɔɔɔuɥoɾ

Im looking to change the background to gray though, to match the BG of the forum i can mess with the text later, any ideas on that?


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Rafferty

I have certainly asked this once before and feel a little embarrased but can't find any reference to it. I have upgraded my version to 1.22 Adv shoutbox and lost my previous modifications, particulary an addition I made, with your help, to make the two line shouts into one line.

Any chance you may help me once again in fixing this.

Thank you

Don't Follow me I got No Idea what I'm Doing

serafimus

#5198
(sorry my bad eng lang, my natural lang is other)
I'm incorporated chat in my forum (diggfm.org  - sorry, no english here) and make minor quick adjustments to suit my needs.
You can include them to update in next version.

yshot.php ver 1.22
Function to automaticaly clean chat history

$maxHistoryLines contains num of lines in history file, after reaching that it simply not grow.


Quotefunction truncateChat($maxLines,$chatPath,$historyPath,$maxHistoryLines) {
   $fileContents = '';

   if(file_exists($chatPath))
      $fileContents = file_get_contents($chatPath);

   $lines = explode("\n", $fileContents);
   
   if(count($lines) > $maxLines)
      {
       $newText = substr($fileContents, strpos($fileContents, "\n") + 1);
       $handle = fopen($chatPath, "w");

       fputs($handle, $newText);
       fclose($handle);

       if($historyPath !== '')
       {

          if(file_exists($historyPath)) $fileContentsHist = file_get_contents($historyPath);
          $lines = explode("\n", $fileContentsHist);

         // History
          if(count($lines) > $maxHistoryLines)
          {
          unset($lines[0]);
          $oldText=implode("\n",$lines);
          $handle = fopen($historyPath, "w");
          fputs($handle, $oldText);
          fclose($handle);
         }
         $oldText = substr($fileContents, 0, strpos($fileContents, "\n") + 1);
         $handle = fopen($historyPath, "a");
         fputs($handle, $oldText);
         fclose($handle);
       }
   }
}



function     initShoutbox($user,$fromSMF)
(modification to this function required for russian lang compatibility)

without update it writes history in pseudocode and also incorrectly counts symbols in chat line:

Quote...........
   case "shout":
      if(isPostBanned()) break;
      if(!$user['can_sbpost']) break;
      if(!isMod() && $sbMaintenance!==false) break;
      $shoutText = $_POST["shout"];
      $shoutText=html_entity_decode($shoutText,ENT_COMPAT,'cp1251');
      if($shoutText[0]=='/' && $allowCommands)
      {
         if(isMod())
         {
...........

ɔɔɔɔɔɔuɥoɾ

Hey I set the permissions for a certain member group to not be able to post in shout box but they still can post in the shoutbox, any ideas?


SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Advertisement: