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

juniorj23

hey i install ur shout box on my forum but its showing me too much shouts on the page so its extreamly big. and i don't want the message and the shout button at the bottom i need it at the top how can i fix this?

defcrash

Quote from: defcrash on December 19, 2008, 06:28:24 PM
I have a little "problem", hope someone can help me with this, i installed the shoutbox (a wonderfull shoutbox btw) on my SMF 2.0b4 with PortaMX mod (done that by reading this topic, thanks to everyone that contributed), now, the "problem" is that the "History", "Commands" and the "ExtendedHistory" links are opening in another page, well, it opens on the same page, but on a "blank" page, it dosen't show up on the shoutbox itself.  :( 

I've found a way for the "Commands" link, in the yshout.php instead of echo '[<a href="javascript:goTo(\'help\')">',$txt['yshout_commands'],'</a>]'; i've put echo '[<a href="javascript:autoShout(\'/help\')">',$txt['yshout_commands'],'</a>]'; and now the "Commands" open in the shoutbox itself! :)

Can anyone share with me any idea for the "History" and the "ExtendedHistory" links? O:)

Nequil

#4782
@nneonneo

hi, how I can enable "ex history" and "return" commands for members without group?

Default members have only "history" and "commands"

nneonneo

I'm just going to pop in here to answer the questions; for the next week I'm still officially on vacation :)

@al_ltoticmat: I'm not sure what you mean. The new <head> did nothing? Can you try turning off $gzipCompression in yshout/settings.php?

@Casal: edit the CSS in index.template.php, change the font-size in #yshout block.

@MRDJ: for smileys, the bar shows the same smileys as the regular forum post box does, so you would make the changes in the Smiley Sets page of Admin Panel.

@helio l lopes: Try seeing if your host will allow more simultaneous database connections. You can also try the instructions under "High bandwidth use for large forums" on the main mod page: those instructions can help lower the number of simultaneous connections to the database.

@DJ OC: Have you followed the instructions here?

@MothMan: I haven't heard this problem occurring before. The shoutbox should use the exact same permissions, since the BBCode parsing is tied into SMF...

@jazelle_rae: Add the code
<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.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>

after
echo '</div>

@juniorj23: Edit $maxLines in yshout/settings.php

@Nequil: In yshout.php, change
if(isMod())
{
echo ' [<a href="javascript:history_number=prompt(\'How far back?\',200);if(history_number){goTo(\'history&amp;n=\'+history_number)}else{void(0)}">',$txt['yshout_exthistory'],'</a>]';
if(!isset($_COOKIE['yShout_hideadmlinks']))
echo ' [<a href="javascript:set_cookie(\'yShout_hideadmlinks\',\'true\',3600*24*365);delete_cookie(\'yShout_open\');loadChat();">',$txt['yshout_hide'],$txt['yshout_admlinks'],'</a>]';
else
echo ' [<a href="javascript:delete_cookie(\'yShout_hideadmlinks\');delete_cookie(\'yShout_open\');loadChat();">',$txt['yshout_show'],$txt['yshout_admlinks'],'</a>]';
echo ' [<a href="javascript:autoShout(\'/return\');">',$txt['yshout_return'],'</a>]';
}

to
echo ' [<a href="javascript:history_number=prompt(\'How far back?\',200);if(history_number){goTo(\'history&amp;n=\'+history_number)}else{void(0)}">',$txt['yshout_exthistory'],'</a>]';
if(isMod())
{
if(!isset($_COOKIE['yShout_hideadmlinks']))
echo ' [<a href="javascript:set_cookie(\'yShout_hideadmlinks\',\'true\',3600*24*365);delete_cookie(\'yShout_open\');loadChat();">',$txt['yshout_hide'],$txt['yshout_admlinks'],'</a>]';
else
echo ' [<a href="javascript:delete_cookie(\'yShout_hideadmlinks\');delete_cookie(\'yShout_open\');loadChat();">',$txt['yshout_show'],$txt['yshout_admlinks'],'</a>]';
}
echo ' [<a href="javascript:autoShout(\'/return\');">',$txt['yshout_return'],'</a>]';
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

DareDevil1990

hi there can u tell me what do i need to edit to change the font in sb ...like if i want monotype corsiva font...and also the how to change the font size in  the sb ???

mortymoose

Morning All, Just installed the awesome Shoutbox onto my forum, vers.1.1.7, installed no problem, As Admin, I can see it, types a few lines of chatter, nobody replied, so I logged out, Before I logged on as another user, the message: 'Sorry, you must be logged in to use the shoutbox!" appears on top, which is a good sign, when I logon as another user (2 different people). there is no reference or sign of the shoutbox. Do I have to enable the shoutbox as Admin so that other forum members can see and use it?

thanks 4 the effort

Morty

defcrash

Quote from: mortymoose on December 30, 2008, 02:18:12 AM
Morning All, Just installed the awesome Shoutbox onto my forum, vers.1.1.7, installed no problem, As Admin, I can see it, types a few lines of chatter, nobody replied, so I logged out, Before I logged on as another user, the message: 'Sorry, you must be logged in to use the shoutbox!" appears on top, which is a good sign, when I logon as another user (2 different people). there is no reference or sign of the shoutbox. Do I have to enable the shoutbox as Admin so that other forum members can see and use it?

thanks 4 the effort

Morty

That as been answered over and over again on this topic. If you look on this same page you'll find the answer!

mortymoose

Ooops! My Humblest apologies, And there it was, right before my blerrie eyes, thanks for that  defcrash!

"The moose skulks away in shame!"


Nequil

Quote from: nneonneo
@Nequil: In yshout.php, change
if(isMod())
{
echo ' [<a href="javascript:history_number=prompt(\'How far back?\',200);if(history_number){goTo(\'history&amp;n=\'+history_number)}else{void(0)}">',$txt['yshout_exthistory'],'</a>]';
if(!isset($_COOKIE['yShout_hideadmlinks']))
echo ' [<a href="javascript:set_cookie(\'yShout_hideadmlinks\',\'true\',3600*24*365);delete_cookie(\'yShout_open\');loadChat();">',$txt['yshout_hide'],$txt['yshout_admlinks'],'</a>]';
else
echo ' [<a href="javascript:delete_cookie(\'yShout_hideadmlinks\');delete_cookie(\'yShout_open\');loadChat();">',$txt['yshout_show'],$txt['yshout_admlinks'],'</a>]';
echo ' [<a href="javascript:autoShout(\'/return\');">',$txt['yshout_return'],'</a>]';
}

to
echo ' [<a href="javascript:history_number=prompt(\'How far back?\',200);if(history_number){goTo(\'history&amp;n=\'+history_number)}else{void(0)}">',$txt['yshout_exthistory'],'</a>]';
if(isMod())
{
if(!isset($_COOKIE['yShout_hideadmlinks']))
echo ' [<a href="javascript:set_cookie(\'yShout_hideadmlinks\',\'true\',3600*24*365);delete_cookie(\'yShout_open\');loadChat();">',$txt['yshout_hide'],$txt['yshout_admlinks'],'</a>]';
else
echo ' [<a href="javascript:delete_cookie(\'yShout_hideadmlinks\');delete_cookie(\'yShout_open\');loadChat();">',$txt['yshout_show'],$txt['yshout_admlinks'],'</a>]';
}
echo ' [<a href="javascript:autoShout(\'/return\');">',$txt['yshout_return'],'</a>]';


thanks man, all works :)

defcrash

Quote from: mortymoose on December 30, 2008, 10:28:04 AM
Ooops! My Humblest apologies, And there it was, right before my blerrie eyes, thanks for that  defcrash!

"The moose skulks away in shame!"



LOOOL  :D it happens to everyone, btw, sorry for the way i posted, i'm in a bad mood today! :P

juniorj23

THANXS FOR THE HELP BUT 1 MORE PROBLEM HOW COULD I GET WHEN A MEMBER SHOUT THERE PICTURE SHOW UP BESIDE THERE NAME THAT WOULD BE VERY HELP FULL

nneonneo

@MRDJ: Edit the CSS in index.template.php, specifically the #yshout block. Change font-size as appropriate, and add a font-family declaration with your desired fonts, e.g.
#yshout {
    (other declarations)
    font-size: 10px;
    font-family: "Monotype Corsiva", sans-serif;
}

The sans-serif is there just so that people without the Corsiva font can still read the shoutbox with a generic font.

@juniorj23: Please do not use all caps when posting. It is considered very rude.

That said, adding their image is as easy as putting $user['avatar']['image'] somewhere in the shout, e.g. changing
if(isGuest($user))
$writeText=$shoutName;
else
$writeText="<a$a_style href=\"index.php?action=profile;u=$userID\">$shoutName</a>";

to
if(isGuest($user))
$writeText=$shoutName;
else
$writeText="<a$a_style href=\"index.php?action=profile;u=$userID\">$shoutName".$user['avatar']['image']."</a>";

in yshout.php to put their avatar after the username.
Check out the AJAX Shoutbox (my one and only mod to date :P)
Do you like SMF? Are you using ProBoards, InvisionFree, ActiveBoards or some other web-hosted forum? I can help you convert to SMF (without having to purchase a DB conversion)...contact me [nneonneo {at} gmail *dot* com], and see this topic
spammers here!

Fattredd

No matter what i do after installing the shoutbox, it wont show up... what do i do?

asmith

Is it possible some users ignore some others shout on the shoutbox? 

for example they type /ignore user23

then he never see user23 shouts ...


Pleek

ok, i'm trying to install the "notify users on new post" edit. I have it working 100% except for having it open in the same tab/window. i changed all the url tags to iurl and it still opens in a new tab. any ideas?

post.php

// Notify any members who have notification turned on for this topic.
   if ($newTopic) {
      notifyMembersBoard();
      // YSHOUT TOPIC NOTIFICATION
      $res = db_query("
         SELECT
            b.name
         FROM ({$db_prefix}boards AS b)
         WHERE b.ID_BOARD = $board", __FILE__, __LINE__);
      $row = mysql_fetch_assoc($res);
      if($row) $boardName = $row['name'];
      ob_start();
      global $context,$scripturl,$topic;
      include_once('yshout/yshout.php');
      makeShout('New Topic in board [iurl='.$scripturl.'?board='.$board.']'.html_entity_decode($boardName).'[/iurl]: [iurl='.$scripturl . '?topic=' . $topic . '.new#new'.']'.html_entity_decode($_POST['subject']).'[/iurl]');
      ob_end_clean();
      // YSHOUT TOPIC NOTIFICATION END
   }
   elseif (empty($_REQUEST['msg'])) {
      sendNotifications($topic, 'reply');
      // YSHOUT REPLY NOTIFICATION
      ob_start();
      global $context,$scripturl;
      include_once('yshout/yshout.php');
      makeShout('New reply: [iurl='.$scripturl . '?topic=' . $topic . '.new;topicseen#new'.']'.html_entity_decode($_POST['subject']).'[/iurl]');
      ob_end_clean();
      // YSHOUT REPLY NOTIFICATION END
   }

allart

Hi, I am having trouble with the shoutbox, after changing my forum host. With firefox, it loads but suddenly disappears after a few seconds. This is my forum: hxxp:www.latanadeigoblin.tk [nonactive]

I tried reinstalling the packages, but it didn't solve the problem.

Any ideas?

juniorj23

hey i tried the code but i keep getting an error an all the forum closed dow when i add the code

[unplugged]

#4797
@Pleek
Couldn't you use the target="_self" inside the tag?

@allart
Did it work perfect before changing hosts? Have you installed any other mods since changing hosts that may be conflicting with it?

@juniorj23
I added the code exactly as nneonneo instructed and the code worked perfect. The avatar was HUGE and butted up against the text, but it worked fine.  ;)
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Pleek

#4798
@SunKing
apparently something was wrong with my server loading the new file. because when i came back to my site later it was working fine. thanks for the help though.



About BBC code in shouts
does anybody know how to add bbc buttons? like that are in the posts. So a user can click for bold ect.

[unplugged]

Currently, there is no way to add the BBC buttons.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Advertisement: