SimplePortal
Development => Feature Requests => Applied Requests => Topic started by: Kosedragen on December 04, 2008, 05:55:06 AM
-
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 ^^;
-
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.
-
you could install nneonneo's Shoutbox (http://custom.simplemachines.org/mods/index.php?mod=585)
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
// 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
-
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.
-
I second that, I prefer HarcksPark ShoutBox, I prefer the format better.
-
I liked the idea.
http://simpleportal.net/index.php?issue=110.0
-
Well personally I can't get nneonneo's shoutbox to work on SMF 2... However why can't you add your own shoutbox into this? SimplePortal could take over SMF in total :D j/k
But good idea, I'll try that now...
-
There will be a shoutbox built into a future release.
-
I think that simpleportal.net can make a full Shoutbox much better than all :applause: !
-
Great job,
But i have one big problem.
I have installed nneonneo's Shoutbox (http://custom.simplemachines.org/mods/index.php?mod=585) 1.22.
Paste the code in the block.
Removed the code from index.php.
The screen get refreched many times and i see the site 3 times. (see screenshot).
Stef.
-
Hi there !
I also have a problem belong the shoutbox in a box.
As described from Nintendofanthr33 I disabled it in the index.template.php and put the code given in a php block.
As admin it works perfect, as user there is no content of the box, also tried as different user. As guest it correctly shows the text "Please log on .."
-
Hi there !
I now use also nneonneos shoutbox, works wonderful. But as I found this
What's in store for the future?
As of now, ..... and possibly a shoutbox. ... your feedback will guide the direction ....
YESSSSS!!!
native is always better :D
-
This was added with 2.3 version.