<?php
global $txt,$context,$boarddir;
//Ajax Chat | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir . '/chat/lib/'))
{
if (allowedTo('shout_access')){
echo'
<div id="ShoutBox">
', getShoutBoxContent() ,'
</div>';
}
}
//YSHOUT HERE | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir . '/yshout/yshout.php'))
{
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'];
}
?>
// 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" />';
// 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>
<script src="',$boardurl,'/yshout/js/soundmanager2.js" type="text/javascript"></script>
<script type="text/javascript">soundManager.url="',$boardurl,'/yshout/";
soundManager.debugMode = false;
soundManager.consoleOnly = false;
soundManager.onload = function() {
soundManager.createSound({id:"sound", url:"', $boardurl, '/yshout/chat.mp3", autoPlay:false});
}</script>
<style type="text/css">
#yshout #shouts {
overflow: auto;
width: 170px; /* the width you want to display */
height: 450px; /* the height you want to display */
}
font-size: 12px;
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: 50px;
margin-right: 5px;
}
#yshout #shout-text {
width: 150px;
margin-right: 2px;
}
#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 '<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
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'];
// 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 #shouts {
overflow: auto;
height: 180px; /* the height you want to display */
width: 150px;
}
#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
I have been contemplating switching to ajax chat anyway.. or perhaps wait for the new simple portal shoutbox to be released.
you know.. i think your right.. I think when i installed it I decided I just wanted it set as a permanent block visible in all areas.. so I did not place the code in that file.
// 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>
<script src="',$boardurl,'/yshout/js/soundmanager2.js" type="text/javascript"></script>
<script type="text/javascript">soundManager.url="',$boardurl,'/yshout/";
soundManager.debugMode = false;
soundManager.consoleOnly = false;
soundManager.onload = function() {
soundManager.createSound({id:"sound", url:"', $boardurl, '/yshout/chat.mp3", autoPlay:false});
}</script>
<style type="text/css">
#yshout #shouts {
overflow: auto;
width: 150px; /* the width you want to display */
height: 450px; /* the height you want to display */
}
font-size: 12px;
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: 50px;
margin-right: 5px;
}
#yshout #shout-text {
width: 150px;
margin-right: 2px;
}
#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 '<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
#yshout #shouts {
overflow: auto;
width: 150px; /* the width you want to display */
height: 450px; /* the height you want to display */
}
font-size: 12px;
overflow: hidden;
}
#yshout #shouts {
overflow: auto;
height: 180px; /* the height you want to display */
width: 160px;
}
#yshout {
font-size: 10px;
overflow: hidden;
}
width: 160px;
width:auto;
Blue, your turning into a maker of very cool blocks! :applause:
BEST. BLOCK. EVER.
LOL! Thanks but this is the easiest I've done :P
But I'm glad you liked that much ;D ;D
hum... I think I know how to make it taller but you would need to change another source file. If you don't mind with that, I can tell you how you can do it :P
Blue the shoutbox on my site has an error 500
Can the neoneo shoutbox be used with the ajax chat?
Yes,
Just go to (boarddir/chat/js) find the file config.js and in line 151 is where emoticons are defined ;)
Just change, cut, add whatever you want :P
I'm just a simple SP block maker who likes to create beautiful blocks eheh :P
Hi tfs, sorry for the delay but I'm having college exams so I'm not here so often :(
I've tried in IE and it works great. This is very odd :( Did you try it in IE7/IE8 or IE6?
I've tried in IE and it seams fine like attached.
I'll see if i have a glich somewhere ;) :-[ ;P
Nothing is different from the one posted in the very first post.
You can see for yourself in the attachment :( This is very odd. Mine works just fine :| :O
sent you a pm :)
Blue link is right I do not have any more to say all the thing that he said is all the thing that I must say.,
i will tell you this that you must follow what Blue Link said.
Ok, Try the shoutbox.html attached ;)
But if you're studying to be a dentist you need to do that and ease up on the programming! :) Dentistry is one of the fields that has advanced so incredibly far from when I was a kid. You guys are awesome! God Bless our dentists! :)
200px? Try this then :|
Thank you for thinking like that eheh :) Dentistry really advance and it's an incredible field, well... at least I like it eheh :P I just do programming for fun and on my free time ;)
No joy. It's still wide in IE7.
I just think back to how dentistry was in the 60's when I was a kid, or the 70's when I had braces, and even back in the 80's or 90's and I think that the status of dentistry today has come a loooooong way. Going to the dentist used to border on the traumatic. Maybe I just have an excellent dentist, and I do, but it seems that you guys dish out so much less pain today than before. And then there's those cute little dental hygienist babes at the dentists office.... hoo man, I need to get my teeth cleaned! :)
I don't actually want to go to the dentist. Nobody in their right mind does, but it's really not so bad anymore, and I do want to take the opportunity to express my appreciation when I get the chance to say thanks!
Quote from: tfsNo joy. It's still wide in IE7.
ARGGGGG! This is becoming frustrating! I've 2 exams friday and I need to study a lot to them but Saturday I'll have a look on those CSS files and resolve your problem once and for all! Till then, you can use the shoutbox like a top or bottom block (with the original shoutbox.html file)
I wonder how hard it would be to make the smileys into a little popup window so that only a button shows on the shoutbox.
Well, since it's an ID of a div, it'll be the CSS that defines it.
Look in /chat/css/positions.css and look for #content #emoticonsContainer.
I'm sure you can use SMF's built-in IE7 detector to give IE7 another CSS sheet that contains just that one class and the IE7-specific values it needs. That is, unless they're so IE-specific that it doesn't matter (if Firefox/Opera/Chrome/Konq/etc won't read them anyway) or if they don't screw up the rest of the browsers.
Hey,
I have a problem with my shoutboxblock using ajax chat integration.
The block has no scroll bar. That means if i write something in to the chat the block keeps getting bigger and bigger. But I want to scroll through the chat and not such a big block. So whats the problem?
I know this issue has been addressed, but no matter how hard I try I can't fix this simple alignment problem. Pic 1 is the shoutbox in Firefox...Pic 2 is the shoutbox in IE....
I uploaded the newer shoutbox.html and the css sheets from the fix at Simple Portal...but still have the alignment issue. I'm using SP 2.2 and SMF 2.0 RC1-1.
Any Ideas?
Thanks...Jim
I know this issue has been addressed, but no matter how hard I try I can't fix this simple alignment problem. Pic 1 is the shoutbox in Firefox...Pic 2 is the shoutbox in IE....
I uploaded the newer shoutbox.html and the css sheets from the fix at Simple Portal...but still have the alignment issue. I'm using SP 2.2 and SMF 2.0 RC1-1.
Any Ideas?
Thanks...Jim
are you talking about my fix from here?
http://simpleportal.net/index.php?topic=2233.msg17374#msg17374
you applied it and it is not working?
I know this issue has been addressed, but no matter how hard I try I can't fix this simple alignment problem. Pic 1 is the shoutbox in Firefox...Pic 2 is the shoutbox in IE....
I uploaded the newer shoutbox.html and the css sheets from the fix at Simple Portal...but still have the alignment issue. I'm using SP 2.2 and SMF 2.0 RC1-1.
Any Ideas?
Thanks...Jim
are you talking about my fix from here?
http://simpleportal.net/index.php?topic=2233.msg17374#msg17374
you applied it and it is not working?
Yeah. I'm sure I musta screwed up something...but it escaping me! That usually means the fix is very easy and obvious...
Jim
For others with this problem...I switched to the minishoutbox.html included with integretion 3.2 and this fixed it. Thanks mrtrc266 for the fix!
Jim
Workin on some new layouts for the shoutbox.
You can see it in a topblock here.
http://monsters-mansion.com/testsmf2/index.php
And on index page here
http://monsters-mansion.com/testsmf2/index.php?action=forum
Will post it when it's complete.
You need to upgrade your SP. :P
Workin on some new layouts for the shoutbox.
You can see it in a topblock here.
http://monsters-mansion.com/testsmf2/index.php
And on index page here
http://monsters-mansion.com/testsmf2/index.php?action=forum
Will post it when it's complete.
Really nice new layout ;)
Workin on some new layouts for the shoutbox.
You can see it in a topblock here.
http://monsters-mansion.com/testsmf2/index.php
And on index page here
http://monsters-mansion.com/testsmf2/index.php?action=forum
Will post it when it's complete.
its always "just worked" right out of the box on every server I have ever put it on. I dont think it could be Blues box code. **I have not tried the updated ajax chat 3.2.
Have you looked at mrtrc266's F.A.Q.'s on the support thread of the mod?
// 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>
<script src="',$boardurl,'/yshout/js/soundmanager2.js" type="text/javascript"></script>
<script type="text/javascript">
soundManager.url="',$boardurl,'/yshout/soundmanager2.swf";
soundManager.debugMode = false;soundManager.consoleOnly = false;
soundManager.onload = function()
{
soundManager.createSound({id:"sound", url:"', $boardurl, '/yshout/chat.mp3", autoPlay:false});
}
</script>';
// YSHOUT END - <head> code
// 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>
<script src="',$boardurl,'/yshout/js/soundmanager2.js" type="text/javascript"></script>
<script type="text/javascript">soundManager.url="',$boardurl,'/yshout/";
soundManager.debugMode = false;
soundManager.consoleOnly = false;
soundManager.onload = function() {
soundManager.createSound({id:"sound", url:"', $boardurl, '/yshout/chat.mp3", autoPlay:true});
}</script>
<style type="text/css">
#yshout #shouts {
overflow: auto;
width: auto; /* the width you want to display */
height: 200px; /* the height you want to display */
}
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: small;
font-weight: small;
}
#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: 50px;
margin-right: 5px;
}
#yshout #shout-text {
width: auto;
margin-right: 2px;
}
#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 '<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
I will never understand that.. if you are using the chat block why bother inserting the shoutbox into your index. just make it a block and put it on all the pages you want it on... its prettier anyway.
whats your website address?
// 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>
<script src="',$boardurl,'/yshout/js/soundmanager2.js" type="text/javascript"></script>
<script type="text/javascript">soundManager.url="',$boardurl,'/yshout/";
soundManager.debugMode = false;
soundManager.consoleOnly = false;
soundManager.onload = function() {
soundManager.createSound({id:"sound", url:"', $boardurl, '/yshout/chat.mp3", autoPlay:false});
}</script>
<style type="text/css">
#yshout #shouts {
overflow: auto;
width: autopx; /* the width you want to display */
height: 245px; /* the height you want to display */
}
font-size: 12px;
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: 50px;
margin-right: 5px;
}
#yshout #shout-text {
width: 150px;
margin-right: 2px;
}
#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 '<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
Optional Flash based sound support
The Flash plugin is used for (optional) sound support and to establish the (optional) socket connection on client side. The (optional) socket server is implemented in Ruby.
Does sound work when its not in a bloc? What about when you are in the chat room?
looking at the ajax chat website it looks like sound is considered optional and will work if your server has the appropriate stuff installedQuoteOptional Flash based sound supportQuoteThe Flash plugin is used for (optional) sound support and to establish the (optional) socket connection on client side. The (optional) socket server is implemented in Ruby.
you are using XAMP for your server right? I think you will need ruby installed also.. I would ask on the ajax chat site.. or the smf support thread.
oh snap.. I am sry.. I reread your first post (Its fundamental).. you are using nneonneo's Shoutbox? ok.. I used to use that on my site (using the ajax chat now). First off, I always found using the "advance shoutbox" version of nneonneo's was the easiest way to get sound working... that being said I could never get sound working with it on my new server/host (it worked on the old one, i migrated the same code and it didnt work anymore)... its one of the reasons I switched to ajax chat.
// 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>
<script src="',$boardurl,'/yshout/js/soundmanager2.js" type="text/javascript"></script>
<script type="text/javascript">soundManager.url="',$boardurl,'/yshout/";
soundManager.debugMode = false;
soundManager.consoleOnly = false;
soundManager.onload = function() {
soundManager.createSound({id:"sound", url:"', $boardurl, '/yshout/chat.mp3", autoPlay:false});
}</script>
<style type="text/css">
#yshout #shouts {
overflow: auto;
width: auto; /* the width you want to display */
height: 245px; /* the height you want to display */
}
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: 50px;
margin-right: 5px;
}
#yshout #shout-text {
width: 350px;
margin-right: 2px;
}
#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 '<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
8: Undefined variable: scripturl
File: /XXXX/XXXXXX/XXXXXXXX/XX/Sources/SPortal2.php(3218) : eval()'d code
Line: 4
global $boardurl,$shoutFile;
global $boardurl,$shoutFile;$scripturl;
im using neoneo shoutbox which is not advance can i still put it in to the block?
Doesn't work ?
Can't install install yShout on SMF 2.0 RC2?
Oh, amazing XD it's working.. but this plugin doesn't work...Doesn't work ?
Can't install install yShout on SMF 2.0 RC2?
Can't get AjaxChat to work with SimplePortal... AjaxChat works stand alone.
Fatal error: Call to undefined function getShoutBoxContent() in /home/maarten/domains/[mywebsite].nl/public_html/beta/Sources/PortalBlocks.php(3272) : eval()'d code on line 10
got problem with my simpleportal blocks for neo shoutbox its not working.. the message is not showing.. need help pls thanks! heres the picture take a look:
(http://img686.imageshack.us/img686/1839/newbitmapimagesq.png)
Filipino eh?
You should really start your own thread since the original poster had their own issues with a different version of ajax chat.
Anyhow...
Give us a copy of the code you used (in a code block please).
And also attach a copy of your :
/ Themes / default / index.template.php
... I am guessing that the style coding (head code) for the shoutbox is installed in the file mentioned above and you are probably using a custom theme? I usually just edit out the style and initialize code from that file and apply it in the block itself, this way no matter what theme or side/top block is used, the shoutbox block will always work with a specific style for each instance (side or top/bottom).
Also tell which smf version you are using and if you edited any of the index.template.php and/or BoardIndex.template.php files from other themes with code from nneonneo shoutbox.
You can do it my way or just add the style (head) code to the index.template.php file of all your themes but these settings will be uniform throughout your site no matter where you place a shout block if you do it this way.
If you look at my forum you can see examples of the nneonneo shoutbox on the forum page (as a top block) and the arcade page (as a side block) where being able to adjust the style within the block itself comes into play. (You have to register to view it)
UD
<?php
global $txt,$context,$boarddir;
//Ajax Chat | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir . '/chat/lib/'))
{
if (allowedTo('shout_access')){
echo'
<div id="ShoutBox">
', getShoutBoxContent() ,'
</div>';
}
}
//YSHOUT HERE | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir . '/yshout/yshout.php'))
{
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'];
}
?>
@Underdog
I was wondering if you had the Ajax Chat code that would also work like YSHOUT ?
Thank You.
Does there is a Ajax Chat integration script for SMF 2.0 RC2
I can't find 1 :S:S:S
(http://img691.imageshack.us/img691/2609/errordu.png)
This Error what id got
http://custom.simplemachines.org/mods/index.php?mod=1295
Can anyone get this to work with SMFPacks shoutbox mod?Code: [Select]http://custom.simplemachines.org/mods/index.php?mod=1295
<?php
global $txt,$context,$boarddir;
//Ajax Chat | belongs to Smart Shoutbox Detection Block for Simple Portal <> by Blue @ Chrome!
if (file_exists($boarddir . '/chat/lib/'))
{
if (allowedTo('shout_access')){
echo'
<div id="ShoutBox">
', getShoutBoxContent() ,'
</div>';
}
}
?>
<iframe src="./chat/index.php" width="100%" height="300"> </iframe>
Hey,
I have a problem with my shoutboxblock using ajax chat integration.
The block has no scroll bar. That means if i write something in to the chat the block keeps getting bigger and bigger. But I want to scroll through the chat and not such a big block. So whats the problem?
This might help...
http://www.simplemachines.org/community/index.php?topic=257973.msg2105662#msg2105662
Not working fine here.