Development > Applied Requests

Shoutbox?

(1/3) > >>

Kosedragen:
Hmm.. Hi, I was just wondering if it would be possible to get a shoutbox block?
There was such a block in TinyPortal before, and it has been somewhat missed by the members of my forum since we switched to SimplePortal ^^;

[SiNaN]:
I don't think we will ever code our own shoutbox for SimplePortal. But maybe we can include a built-in block, which would recognize if you have shoutbox mod installed and display it on the portal.

For now, if you are using a shoutbox mod, we can help you to display it in a block on the portal.

Nintendofanthr33:
you could install nneonneo's Shoutbox
and disable it on index.template.php by removing the added codes to it and add a Top block and add this code to the PHP block


--- 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>
<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
--- End code ---

Succubus Evaligan:
I like more the HarcksPark ShoutBox
http://custom.simplemachines.org/mods/index.php?mod=1295

I hope that in the future we can have a block where we can put the shoutbox in every board that we want and in every site of the forum that we like.

gamerxgirl:
I second that, I prefer HarcksPark ShoutBox, I prefer the format better.

Navigation

[0] Message Index

[#] Next page

Go to full version