News:

Wondering if this will always be free?  See why free is better.

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

bayness0

I cannot find a copy for SMF version 1.1.8 - could be I am having a senior moment

machmanx

Hey nneonneo, sup?  Been a while since I've visited :)  Your mod works as great as ever, but I have a minor inconvenience:

My shoutbox is used a LOT, so my history file gets full pretty often, like 7-8 days to 2 weeks.  Everytime, I have to empty the history.home.txt file.  Recently, what I've been doing is renaming that file with today's date, and then when the shoutbox gets used, a new history.home.txt file gets made.  The problem is that only I have access to the cPanel and not the other staff of my forum.  I'd rather not give them the password to my cPanel ;)

So, my question is: can you implement a command like /clearhistory that would rename the history.home.txt file with today's date?  That would be such a big help :)

Sman1400

#5382
i cant get the scroll bar to work, i did all the edits listed here
http://www.simplemachines.org/community/index.php?topic=137508.msg1532028#msg1532028

using 2.0 RC1 custom theme

can anyone get me on the right path?

edit: nvm i got it

zijO


With advanced shoutbox, how do I change that the sound is always ON, by default.

vetro

sorry i am confused im new to smf which mod do i download for smf 2.0 :s sorry for the inconvinience

ameo

Quote from: vetro on May 10, 2009, 11:31:39 AM
sorry i am confused im new to smf which mod do i download for smf 2.0 :s sorry for the inconvinience

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

|±(ಠ_ಠ
)±|

asmith

I put some jquery, jcarousel plugin on my site. by including the jquery plugin, my shoutbox stops from working. Disappears.

Any way to fix this?

RobTurboGA

Is there a way to remove the title "Shout Box" above the box?  The font is big and the spacing is huge, it takes up a lot of space.  I'd like the box to be flush under my menu bar.

hxxp:forum.ezmodeunlocked.com [nonactive]

I looked around but couldn't find an answer to this, sorry if it's been posted.  This is a long thread.  :)

Thanks to anyone who can help!

Krandall

Been running shout succesfully now for about 6months. no issues. I recently within the last 2 days have started seeing MySQL errors come through, closing the chat saying this:

QuoteWarning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/raptors/public_html/forum/Sources/Subs.php on line 321

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/*****/public_html/forum/Sources/Errors.php on line 123

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/*****/public_html/forum/Sources/Errors.php on line 124

I can refresh the page, and they go away and chat resumes as normal. has anyone seen anything like this or have any suggestions?
thanks-
Randy

Sman1400

anyone know how to make the timestamp + text on the same line???



mine looks like this, i just want each chat on one line but i cant seem to figure it out anywhere, ive looked through all the code...

Arebias

Quote from: Sman1400 on May 13, 2009, 04:16:36 AM
anyone know how to make the timestamp + text on the same line???


mine looks like this, i just want each chat on one line but i cant seem to figure it out anywhere, ive looked through all the code...

In your yshouts directory find and open settings.php

Look for this code at the bottom:
return '&nbsp;&nbsp;&nbsp;'. timeformat(intval($matches[1]), true).'<br />';

And change to this:
return '&nbsp;&nbsp;&nbsp;'. timeformat(intval($matches[1]), true).'';

Then save and upload.

Remember to always save a backup version of what you are working on.


loongeer

#5391
hy ,nneonneo,ihave downloaded your shoutbox,it works great, but i also have some errors on my forum after i download the shoutbox,would you help me to fix it?(below)
"Warning: mysql_query(): supplied argument is not a valid
MySQL-Link resource in .../forum/Sources/Subs.php on line 321" or
"Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later."

  could someone help me please

excon

hello all,
Can someone help me on this.
my forum is 1.1.8 and what version of SB should i install?
thank you.. :D

LLStarks

Is it possible to add a scrollbar but have it not drag a reader down to the bottom whenever a new person shouts?

Arebias

Quote from: LLStarks on May 14, 2009, 08:51:21 PM
Is it possible to add a scrollbar but have it not drag a reader down to the bottom whenever a new person shouts?

You can open settings.php in yshouts directory and adjust this code:

// The shoutbox usually shows shouts with the newest chats at the bottom.
// If you want the newest ones at the top, set this to true.
// You may also wish to check autoScroll in yshout/settings.js.
$reverseShouts=false;

// If you reverse the shouts, you might want the shout form to be on top
// rather than on the bottom. Set this to true to move the shout form
// to the top (the tool links will stay above the form)
$shoutFormOnTop=false;


That of-course would require the newest shouts to be up top. But also notice the reference to settings.js in which you can turn off Auto Scroll:

// Autoscroll? Default is on, but if you have $reverseShouts on, you probably
// want autoscroll off.
var autoScroll=true;



Krandall

Quote from: Krandall on May 12, 2009, 04:25:43 PM
Been running shout succesfully now for about 6months. no issues. I recently within the last 2 days have started seeing MySQL errors come through, closing the chat saying this:

QuoteWarning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/raptors/public_html/forum/Sources/Subs.php on line 321

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/*****/public_html/forum/Sources/Errors.php on line 123

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/*****/public_html/forum/Sources/Errors.php on line 124

I can refresh the page, and they go away and chat resumes as normal. has anyone seen anything like this or have any suggestions?
thanks-
Randy
Quote from: loongeer on May 13, 2009, 06:09:35 PM
hy ,nneonneo,ihave downloaded your shoutbox,it works great, but i also have some errors on my forum after i download the shoutbox,would you help me to fix it?(below)
"Warning: mysql_query(): supplied argument is not a valid
MySQL-Link resource in .../forum/Sources/Subs.php on line 321" or
"Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later."

  could someone help me please



Thoughts on these 2? Seems we're having the same issues

njdevils28

#5396
Hi All,


Running SMF 2.0RC1


I seem to have a corrupted "./Themes/default/index.template.php" File.

The error I'm getting is this.....

Find

   echo '
      <div class="buttonlist', $direction != 'top' ? '_bottom' : '', '">
         <ul class="clearfix">
            <li>', implode('</li><li>', $buttons), '</li>
         </ul>
      </div>';

}


Then Add After

function shoutbox()
{
   global $txt, $options, $settings, $context, $boarddir;

   echo '<div class="catbg" style="padding: 5px 5px 5px 10px;border-top:1px solid #ffffff;"><a href="#" onclick="sbToggle(); return false;"><img id="upshrinkSB" src="', $settings['images_url'], '/', empty($options['collapse_shoutbox']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="Shrink or Expand the ShoutBox" align="bottom" /></a>&nbsp;';
   // Block Title
   echo '<span style="width:49%"></span><span>ShoutBox</span>';

   echo '</div><div id="upshrinkSBHeader"', empty($options['collapse_shoutbox']) ? '' : ' style="display: none;"', '>
      <table border="0" width="100%" cellspacing="1" cellpadding="1" class="bordercolor" style="margin-top: 1px;">
         <tr>
            <td class="windowbg" width="6%" align="left" valign="top">';
   // SHOUTBOX HERE
   global $txt,$context,$boarddir;
   if(allowedTo('yshout_view'))
   {
      echo '<div id="yshout">';
      include_once($boarddir.'/yshout/yshout.php');
      echo '</div>';
   }
   elseif($context['user']['is_guest'])
      echo $txt['yshout_no_guests'];
   // SHOUTBOX END
   echo '
         </td>
      </tr>
   </table></div>';
}



When I look in the Directory For all my themes and at the file in question, the code it's looking for is there.


Why does the Mod Fail?

Can anyone help me?

Arebias


Have you installed any other mods prior to this mod?

If not then just upload a fresh index.template.php from the default theme by downloading the index.template.php~  then rename that file index.template.php and upload to the /themes/default/ folder and over write the existing.


njdevils28

Quote from: Arebias on May 15, 2009, 04:04:02 PM

Have you installed any other mods prior to this mod?

If not then just upload a fresh index.template.php from the default theme by downloading the index.template.php~  then rename that file index.template.php and upload to the /themes/default/ folder and over write the existing.



Hi,

Thank you for responding.

I have installed other mods so I'm leery of restoring the backup.  I ended up with the Ajax Shout.  It's nice but it does no open a separate window for the chat unless I click use pop-ups.  It ends up just changing the current window to the chat and if I want to go back to the forum I have to click the back arrow.

Not a show stopper, but a bit anoying.

Sman1400

Hmm i have my shout box working 99% :)

theres one thing though, when im on the boards index the shoutbox's scroll bar stays at the top(opposed to moving to the bottom) and sometimes when i try to shout on the index nothing happens

when im on anything else (like the topics displayed or a post) the scrollbar goes to the bottom liek it sohuld and shouts can be made

any ideas?

Advertisement: