SimplePortal

Development => Feature Requests => Applied Requests => Topic started by: Kosedragen on December 04, 2008, 05:55:06 AM

Title: Shoutbox?
Post 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 ^^;
Title: Re: Shoutbox?
Post by: [SiNaN] on December 04, 2008, 07:11:42 AM
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.
Title: Re: Shoutbox?
Post by: Nintendofanthr33 on December 14, 2008, 05:59:09 PM
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

Code: [Select]
// 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
Title: Re: Shoutbox?
Post by: Succubus Evaligan on January 20, 2009, 05:02:01 AM
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.

Title: Re: Shoutbox?
Post by: gamerxgirl on January 27, 2009, 10:39:00 PM
I second that, I prefer HarcksPark ShoutBox, I prefer the format better.
Title: Re: Shoutbox?
Post by: [SiNaN] on February 02, 2009, 04:41:15 AM
I liked the idea.

http://simpleportal.net/index.php?issue=110.0
Title: Re: Shoutbox?
Post by: Killer on February 17, 2009, 03:11:12 PM
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...
Title: Re: Shoutbox?
Post by: Robbo on February 19, 2009, 07:54:45 AM
There will be a shoutbox built into a future release.
Title: Re: Shoutbox?
Post by: Chandy on February 22, 2009, 02:10:24 AM
I think that simpleportal.net can make a full Shoutbox much better than all  :applause: !
Title: Re: Shoutbox?
Post by: Normally on February 26, 2009, 06:14:42 AM
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.
Title: Re: Shoutbox?
Post by: c23_Mike on March 19, 2009, 08:27:09 AM
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 .."
Title: Re: Shoutbox?
Post by: c23_Mike on April 04, 2009, 04:03:47 PM
Hi there !

I now use also nneonneos shoutbox, works wonderful. But as I found this

Quote
What's in store for the future?
As of now, ..... and possibly a shoutbox. ... your feedback will guide the direction ....
Quote

YESSSSS!!!

native is always better  :D
Title: Re: Shoutbox?
Post by: [SiNaN] on December 02, 2011, 09:05:23 AM
This was added with 2.3 version.
SimplePortal 2.3.8 © 2008-2024, SimplePortal