News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

nneonneo's Shoutbox

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

Previous topic - Next topic

motomaniacs

@nneonneo
hello bro
please help
i want to install this mod to my forum but i was not able to install it
please look to my forum www.motousers.or.id
let me know

thx

motomaniacs

i've send you email @nneoneo

motomaniacs

Quote from: ameo on May 07, 2008, 11:46:19 AM
I made sort of guide for dummies, or something like that, to place this shoutbox in News field, and make it look cool on forum.
Personally, I believe this is the best position for shoutbox, and if you don't need News on your forum you could place shoutbox instead.


NOTE: I wrote tutorial and it works for 1.17 !!!

NOTE 2: With nneonneo's help - this works like a charm with version 1.21 also :)
            For 1.21 installation see step 4 instead of step 1, and then 
            follow all other steps normally.


STEP 1
First steps you already know, but I'll repeat it just in case;

First download yShout and install it.
If you're using different theme than default one after

echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';


you must add this code into your index.template.php :

// YSHOUT HERE
global $boardurl;
echo '
<script src="',$boardurl,'/yshout/js/prototype.js" type="text/javascript"></script>
<script src="',$boardurl,'/yshout/js/moo.ajax.js" type="text/javascript"></script>
<script src="',$boardurl,'/yshout/js/behaviour.js" type="text/javascript"></script>
<script src="',$boardurl,'/yshout/js/domFunction.js" type="text/javascript"></script>
<script type="text/javascript">

var myfunc = new domFunction(function()
{
loadChat();
}, { "yshout":"id"});
var board_url = "'; $boardurlparsed = parse_url($boardurl); echo (isset($boardurlparsed['path'])?$boardurlparsed['path']:""), '";

</script>
<script src="',$boardurl,'/yshout/js/yshout.js?Mar072008" type="text/javascript"></script>
<script type="text/javascript">var shoutFile = "home.txt";</script>
<style type="text/css">
#yshout {
font-size: 10px;
}
#yshout p {
margin: 0 0 0; /* Top Bottom Linespacing */
}
.shout-invalid {
background: #FFFDD1;
}
#yshout fieldset {
border: none;
}
#yshout em {
font-style: normal;
}
#yshout p {
line-height: 1;
margin-top: 0;
}
#yshout {
overflow: hidden;
}
#yshout .shout-timestamp {
font-weight: normal;
color: #000;
}
#yshout .adminlink {
font-size: 6pt;
color: #141414;
}
#forum-name, #shout-text, #shout-button {
font-size: 9px;
margin: 0;
padding: 0;
}
#yshout #forum-name {
color: #666666;
width: 70px;
margin-right: 5px;
}
#yshout #shout-text {
color: #000000;
width: 310px;
margin-right: 5px;
}
#yshout #shout-button {
width: 55px;
}
</style>';
// YSHOUT END



Then do this:


Of course you need news box to be displayed in order to see shoutbox in your index page.
To do that go to Theme options and click to:

1. DISABLE eNews   [it is very dangerous to leave it enabled, so if it is checked,
    you must uncheck it]

&
[/]


2. Show news fader on board index [check it]

3. fading delay - set to 0

Click save, then in News box put this code

a) for 1.15-1.17       <div id="yshout">',$txt['yshout_loading'],'


b) for 1.21             
<div id="yshout">Loading shoutbox...</div>

instead of putting second code somewhere else:

And save it.


If you wish to change News to Shout box or Shoutbox you'll need to find file index.english-utf8.php / index.english.php or of  any other language file you're using.  They are stored under Forum/Themes/default/languages/  In there you'll need to edit string    $txt[102] = 'News';   
to   $txt[102] = 'Shoutbox';  and re-upload that file to it's place. You'll need to replace old file with that new-one if you didn't delete old one first. 



// GUIDE FOR DUMMIES IS FINISHED //
I guess that's it. I hope it shall be helpful to at least someone.[/]


Step 4 is actually step 1 FOR 1.21 installation


In index.template.php, after
   // If we're in a board, or a topic for that matter, the index will be the board's index.
   if (!empty($context['current_board']))
      echo '
   <link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';

add
   // YSHOUT HERE - <head> code
   global $boardurl,$shoutFile;
   $shoutFile='home';
   $scripturlparsed = parse_url($scripturl);
   $scriptpath=isset($scripturlparsed['path'])?$scripturlparsed['path']:'/';
   $args='';
   foreach($_GET as $key => $value) // passthrough $_GET
      $args.='&'.urlencode($key).'='.urlencode($value);
   echo '
   <script src="',$boardurl,'/yshout/js/moo.ajax.js" type="text/javascript"></script>
   <script src="',$boardurl,'/yshout/settings.js" type="text/javascript"></script>
   <script type="text/javascript"><!-- // --><![CDATA[
   window.onload=function(){loadChat();};
   var shoutFile="',$shoutFile,'";
   var yshout_php="',$scriptpath,'?yshout',$args,'";
   // ]]></script>
   <script src="',$boardurl,'/yshout/js/yshout.js?July062008" type="text/javascript"></script>
   <style type="text/css">
      #yshout {
         font-size: 10px;
         overflow: hidden;
      }
      #yshout #yshout-toollinks { /* tool links (History, Commands, etc.) */
      }
      #yshout #shouts { /* main shouts area */
      }
      #yshout .shout { /* one shout */
         margin: 0 0 0; /* Top Bottom Linespacing */
         line-height: 1;
      }
      #yshout .shout-timestamp {
         font-style: normal;
         font-weight: normal;
      }
      #yshout .shout-adminlinks { /* del and ban buttons */
         font-size: 6pt;
         color: #141414;
      }
      #yshout #shout-form {
         margin: 0;
         padding: 0;
      }
      #yshout #shout-form fieldset {
         border: none;
      }
      #yshout #forum-name {
         width: 70px;
         margin-right: 5px;
      }
      #yshout #shout-text {
         width: 310px;
         margin-right: 5px;
      }
      #yshout #shout-button {
         width: 55px;
      }
      #yshout .shout-invalid { /* invalid shout (shout textbox) */
         background: #FFFDD1;
      }
   </style>';
   // YSHOUT END - <head> code




Best of luck 2 everyone[/hr]

how about put it under the news.... ??
any guide for thix?

au8ust

#5083
Tried installing Shoutbox 1.22 on SMF 2.0 RC 1 (both are fresh install)

I got these error messages

     Type     Action     Description
*    1.    Execute Modification    ./index.php    Test successful
      1.    Add Before    ./index.php    Test successful
   2.    Execute Modification    themes/install-2.0b4.xml    Modification parse error
   3.    Execute Modification    themes/install-2.0b4.xml    Modification parse error
   4.    Execute Modification    languages/english_all.xml    Modification parse error
   5.    Execute Modification    languages/english_all.xml    Modification parse error
   6.    Execute Modification    permissions/install-perms-2.0.xml    Modification parse error
   7.    Execute Modification    permissions/install-perms-2.0.xml    Modification parse error
   8.    Extract Tree    ./yshout    

any idea?


edit: in the error log

Apply Filter: Only show the error messages of this URL  http://domain.tld/index.php?action=admin;area=packages;sa=install;package=SB_1.22.zip
Apply Filter: Only show the errors with the same message
2: fclose(): supplied argument is not a valid stream resource
Apply Filter: Only show the errors from this file
File: /home/path/public_html/Sources/Subs-Package.php
Line: 2424

Daggers

#5084
Smileys :(

I have just upgraded to RC1 an added the shoutbox :)

I have followed the original instructions with the changed sections, I have followed, and used the instructions from Sunking.

I cannot put smiley.php & animatedcollapse into the yshout folder, no matter what I do to try and get it there, I have tried to create a file and paste but it wont let me do that either :(

Anyway, the smileys are there and they show and can be used but I cant get it to collapse. I have my shoutbox near the bottom of the forum, between the main posts and the Info centre, which is where I have always had it with collapsible smileys when using 1.1.x

Any help would be appreciated.


LLUTHER

Hi, I did this before but I'm not sure what I'm doing wrong this time. I installed SB_1.17 and I am using the Site Integration mod. This is the code I used on a custom action page:

<?php
// YSHOUT HERE - <head> code
global $boardurl,$shoutFile;
$shoutFile='home';
$scripturlparsed = parse_url($scripturl);
$scriptpath=isset($scripturlparsed['path'])?$scripturlparsed['path']:'/';
$args='';
foreach(
$_GET as $key => $value) // passthrough $_GET
$args.='&'.urlencode($key).'='.urlencode($value);
echo
'
<script src="'
,$boardurl,'/yshout/js/moo.ajax.js" type="text/javascript"></script>
<script src="'
,$boardurl,'/yshout/settings.js" type="text/javascript"></script>
<script type="text/javascript"><!-- // --><![CDATA[
window.onload=function(){loadChat();};
var shoutFile="'
,$shoutFile,'";
var yshout_php="'
,$scriptpath,'?yshout',$args,'";
// ]]></script>
<script src="'
,$boardurl,'/yshout/js/yshout.js?July062008" type="text/javascript"></script>
<style type="text/css">
#yshout {
font-size: 10px;
overflow: hidden;
}
#yshout #yshout-toollinks { /* tool links (History, Commands, etc.) */
}
#yshout #shouts { /* main shouts area */
}
#yshout .shout { /* one shout */
margin: 0 0 0; /* Top Bottom Linespacing */
line-height: 1;
}
#yshout .shout-timestamp {
font-style: normal;
font-weight: normal;
}
#yshout .shout-adminlinks { /* del and ban buttons */
font-size: 6pt;
color: #141414;
}
#yshout #shout-form {
margin: 0;
padding: 0;
}
#yshout #shout-form fieldset {
border: none;
}
#yshout #forum-name {
width: 70px;
margin-right: 5px;
}
#yshout #shout-text {
width: 310px;
margin-right: 5px;
}
#yshout #shout-button {
width: 55px;
}
#yshout .shout-invalid { /* invalid shout (shout textbox) */
background: #FFFDD1;
}
</style>'
;
// YSHOUT END - <head> code

// YSHOUT HERE - shoutbox code
global $txt,$context,$boarddir;
if(
allowedTo('yshout_view'))
{
echo
'<br /><b>',$txt['yshout_shoutbox'],'</b><br /><br />';
echo
'<div id="yshout">';
include_once(
$boarddir.'/yshout/yshout.php');
echo
'</div>';
}
elseif(
$context['user']['is_guest'])
echo
$txt['yshout_no_guests'];
// YSHOUT END - shoutbox code
?>


This is the error I'm getting:

Fatal error: require_once() [function.require]: Failed opening required '/Subs-Post.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lluther/public_html/yshout/yshout.php on line 195

Any ideas?

ivantoar

I installed in 1.1.8, and when I shout, nothing appears.. But they exist in history. Why is this? I'm using custom theme and already edit index.template

ameo

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

|±(ಠ_ಠ
)±|

LLUTHER

Thanks ameo! That worked great.

One last problem... I am trying to get the autoscroll to work. It acts like it is working... But the scrollbar only 'twitches' in IE... Does nothing in Firefox. I edited it correctly... Here's the link: http://www.llutherforum.com/index.php?action=chat

meehan09

Hi,

I today have had shoutbox working for over a week now, Theres been no edits or mods installed and the shoutbox is no longer working?

The bar where i type my message appears then disappears in space off two seconds, It was working fine this morning and now its stopped working on its own?

What could be the problem or how can i fix this error?, Hope someone can help me out here, Thanks

lorddusk

Since i installed the Shoutbox on RC1 the admin links del/ban stopped working, please help, because my forummembers are a bit spamming.....

Lupin

Quote from: meehan09 on February 09, 2009, 06:59:37 AM
Hi,

I today have had shoutbox working for over a week now, Theres been no edits or mods installed and the shoutbox is no longer working?

The bar where i type my message appears then disappears in space off two seconds, It was working fine this morning and now its stopped working on its own?

What could be the problem or how can i fix this error?, Hope someone can help me out here, Thanks
same here

shortchange

Suggested add-on if this is not already implementable. A smiley limit in the chat per post.

meehan09

Ive had the shoutbox for over a month and it seems to freeze and stick sometimes?, Can this be resolved anyway?.

It sometimes freezes and messages take a while to show and then today it wouldnt let some members post at all untill someone who could see the box typed messages one after each other and it seemed to unfreeze and start to work again?

Can anyone help me with this issue, Thanks in advance!

aotcsw

Is there some way to put this box on a separate page with the least amount of box.

LLUTHER


Cal O'Shaw

I discovered the Shoutbox by default informs all guests we have a shoutbox.  Except we have limited the shoutbox to the Admins.  I had to go in and nul the string blabbing this to the world.  Any chance the default could be to NOT reveal this information?  Or at not show it to groups not allowed to use it?

Grazie,

Cal

aotcsw


meehan09

Hi

Is it possible to move the shout box from the top of the forum down to the bottom located below whos online etc?

At the moment i have this installed and its located at the top of page, Is it possible to edit and move to bottom below whos online?

Id be greatfull if someone could help me move my shout box, Thanks

Pho3niX90

#5099
Quote from: ivantoar on February 08, 2009, 08:27:05 AM
I installed in 1.1.8, and when I shout, nothing appears.. But they exist in history. Why is this? I'm using custom theme and already edit index.template

SAME HERE!

But if I go to the FORUM/yshout.php direct, then i can send nd receive there..

Any suggestions?

Advertisement: