SimplePortal
Customization => Blocks and Modifications => Topic started by: Nathaniel on February 20, 2009, 02:04:27 AM
-
Information:
The attached mod will install the SP Block for HacksPark ShoutBox.
SimplePortal MUST be installed, you can download it here (http://simpleportal.net/index.php?action=download).
Hack's Park shoutBox MUST be installed, you can download it here (http://custom.simplemachines.org/mods/index.php?mod=1295) or here (http://en.hackspark.com/index.php?topic=3.0) (for latest version).
Make sure that you uninstall this mod before uninstalling SimplePortal. If you don't then errors may occur.
Also note that the normal setting to choose where your shoutbox is shown has been removed, you can control where the shoutbox block is shown with SimplePortal.
SimplePortal block created by Nathaniel.
Versions:
1.00: Created/Tested for SMF 1.1.8/2 RC1 and SP 2.1.1. Hack's Park ShoutBox 1.2.2.
2.2: Created/Tested for SMF 1.1.8/2 RC1 and SP 2.2. Hack's Park ShoutBox 2.0.
-
Thanks :)
-
can you make a mod SP Block for HacksPark ShoutBox that compatible for 2.0 shoutbox and to simple portal 2.1.1
-
HacksPark ShoutBox is only compatible with SMF 1.1.x, so it wouldn't be using the HacksPark ShoutBox if it was for SMF 2. The normal SMF mod needs to be compatible with SMF 2 for me to make a 'SMF 2 compatible' block. I could try and make a SimplePortal block for the AjaxChat Integration (http://custom.simplemachines.org/mods/index.php?mod=1319) or nneonneo's Shoutbox (http://custom.simplemachines.org/mods/index.php?mod=585) mods. Although it might take me a while to find the time. ;)
-
yes im using smf 1.1.8,simple portal 2.1.1,hackspark 1.2.2, and themes Helios Multi design by Bloc gfx http://www.bloczone.net/smf
after i install it it gives me an error saying cang include something...
wait i will try to install in again,...
i will post here for whats wrong..
-
updated here is the problem
Fatal error: Call to undefined function template_hp_shoutboxmain() in /myaccount/Sources/Subs-SPortal1-1.php on line 720
whats wrong?
-
Have you installed the Hack's Park Shoutbox mod (http://custom.simplemachines.org/mods/index.php?mod=1295)? You can download it at the link below:
http://custom.simplemachines.org/mods/index.php?action=download;mod=1295;id=72700
-
yeah i installed that i have to version 2.0 and 1.2.2 the version on your links.
first i try the version 1.2.2 and it gaves me a
Fatal error: Call to undefined function template_hp_shoutboxmain() in /myaccount/Sources/Subs-SPortal1-1.php on line 72
the i tried 2.0 i cant remember the problem but it says error...
-
im also trying this code on php block
// Hack's Park Shoutbox -->
if (function_exists('template_shoutbox')) template_shoutbox('main');
// <-- Hack's Park Shoutbox
but it gives me blank page..
-
So, you have SMF 1.1.8, HacksPark ShoutBox 1.2.2 and SimplePortal 2.1.1, right?
I think I know what your issue is. Are you using a custom theme? If so then you will need to install HacksPark ShoutBox and the SP Block for that theme. I can do it if you post your '/themes/{themename}/index.template.php' as an attachment.
-
thanks for your helping here is my index.template.php of my themes..
and can you gave mo exactly how to install it to there.
and what code you added..
i have a little something know about php hehee..
-
The attached file should work. I only performed a single edit, I added the code below to the end of the file.
This code is a the normal Hack's Park Shoutbox template function, with the edits made by this mod applied to it.
function template_HP_shoutBoxMain()
{
global $context, $settings, $scripturl, $txt, $HP_settings;
if (empty($context['hp_shoutbox_show']))
return;
if ($HP_settings['shoutBox']['out_noban'])
echo '
<script language="javascript" type="text/javascript" src="', $settings['theme_url'], '/HP_colorPicker.js"></script>';
echo '
<script language="javascript" type="text/javascript" src="', $settings['theme_url'], '/HP_shoutBox.js"></script>
<script language="javascript" type="text/javascript">';
if ($HP_settings['shoutBox']['out_noban'])
echo '
HP_shoutBox["lng_emos"] = "' . $txt['hs_sb_10'] . '";
HP_shoutBox["lng_sendingPost"] = "' . $txt['hs_sb_11'] . '";
HP_shoutBox["lng_empty"] = "' . $txt['hs_sb_12'] . '";
HP_shoutBox["lng_jstSending"] = "' . $txt['hs_sb_16'] . '";
HP_shoutBox["lng_sent"] = "' . $txt['hs_sb_13'] . '";
HP_shoutBox["refresh"] = ' . $HP_settings['shoutBox']['refreshShouts'] . ';
HP_shoutBox["lng_no_empty"] = "' . $txt['hs_sb_20'] . '";
HP_shoutBox["lng_empty_url"] = "' . $txt['hs_sb_21'] . '";
HP_shoutBox["lng_insert_url"] = "' . $txt['hs_sb_22'] . '";
HP_shoutBox["in_color"] = "' . $HP_settings['shoutBox']['textColor'] . '";
HP_shoutBox["in_bgcolor"] = "' . $HP_settings['shoutBox']['backgroundColor'] . '";';
echo '
HP_shoutBox["is_ie"] = ' . ($context['browser']['is_ie'] ? 'true' : 'false') . ';
</script>
<div>
<noscript><div class="windowbg" style="padding: 5px 15px 5px 10px;">' . $txt['hs_sb_2'] . '</div></noscript>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor" style="margin-top: 1px;">';
if ($HP_settings['shoutBox']['out_noban'])
{
echo '
<tr><td class="windowbg" width="100%" align="left" colspan="2">
<form name="shoutbox" action="' . $scripturl . '" method="post" accept-charset="' . $context['character_set'] . '" onsubmit="HP_shoutBox_Post(\'' . $context['session_id'] . '\'); return false;">
<table cellpadding="0" cellspacing="0" width="100%" style="margin: 4px;">
<tr><td nowrap="nowrap" valign="middle" style="padding-right: 8px;">
<input class="smalltext" type="text" id="hp_shoutbox_imsg" name="msg" tabindex="1" maxlength="120" value="" style="font-weight: normal;color: ' . $HP_settings['shoutBox']['textColor'] . ';font-style: normal;text-decoration: none;width: ' . $HP_settings['shoutBox']['widthInputMsg'] . ';padding: 3px;border-width: 1px;border-color: ' . $HP_settings['shoutBox']['textColor'] . ';background-color: ' . $HP_settings['shoutBox']['backgroundColor'] . ';" />
<input class="smalltext" type="submit" value="' . $txt['hs_sb_13'] . '" name="send" style="padding: 2px;" /></td>
<td style="padding: 0 0 0 8px; border-left: 1px solid #9c9c9c" valign="middle" width="100%">
<div style="position: relative;padding-top: 4px;margin:0;">
<a href="javascript:void(0);" onclick="HP_shoutBox_sURL()">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/url.gif" width="23" height="22" alt="' . $txt['hs_sb_48'] . '" title="' . $txt['hs_sb_48'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<a href="javascript:void(0);" onclick="HP_shoutBox_sh(!HP_shoutBox[\'hd_emos\'], \'emos\')">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/caretos.gif" width="23" height="22" alt="' . $txt['hs_sb_10'] . '" title="' . $txt['hs_sb_10'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<a href="javascript:void(0);" onclick="HP_shoutBox_Clear()">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/clean.gif" width="23" height="22" alt="' . $txt['hs_sb_50'] . '" title="' . $txt['hs_sb_50'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<a href="javascript:void(0);" onclick="HP_shoutBox_setPro(\'n\', !HP_shoutBox[\'hd_n\']);">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/bold.gif" width="23" height="22" alt="' . $txt['hs_sb_52'] . '" title="' . $txt['hs_sb_52'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<a href="javascript:void(0);" onclick="HP_shoutBox_setPro(\'k\', !HP_shoutBox[\'hd_k\']);">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/italicize.gif" width="23" height="22" alt="' . $txt['hs_sb_53'] . '" title="' . $txt['hs_sb_53'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<a href="javascript:void(0);" onclick="HP_shoutBox_setPro(\'s\', !HP_shoutBox[\'hd_s\']);">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/underline.gif" width="23" height="22" alt="' . $txt['hs_sb_54'] . '" title="' . $txt['hs_sb_54'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<a href="javascript:void(0);" onclick="HP_shoutBox_shFace()">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/face.gif" width="23" height="22" alt="' . $txt['hs_sb_55'] . '" title="' . $txt['hs_sb_55'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<a href="javascript:void(0);" onclick="HP_colorPicker_sh(false)">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/fontcolor.gif" width="23" height="22" alt="' . $txt['hs_sb_56'] . '" title="' . $txt['hs_sb_56'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<img id="hp_shoutbox_s_color" src="' . $settings['images_url'] . '/bbc/nocolor.gif" width="18" height="18" alt="" style="background-color: #FFFFFF;border: 1px solid #b2b2b2;" />
<a href="javascript:void(0);" onclick="HP_colorPicker_sh(true)">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/bgcolor.gif" width="23" height="22" alt="' . $txt['hs_sb_57'] . '" title="' . $txt['hs_sb_57'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<img id="hp_shoutbox_s_bgcolor" src="' . $settings['images_url'] . '/bbc/nocolor.gif" width="18" height="18" alt="" style="background-color: #FFFFFF;border: 1px solid #b2b2b2;" />
<div style="display: none; z-index: 11; position: absolute; top: 28px; left: 45px;" id="hp_shoutbox_div_face">
<table cellpadding="0" cellspacing="0" class="tborder" width="120">
<tr class="windowbg2"><td width="100%">
<a href="javascript:void(0);" onclick="HP_shoutBox_setFace(\'inherit\'); document.forms.shoutbox.msg.focus(); HP_shoutBox_shFace();" style="font-family: inherit; display: block; padding: 2px;" class="smalltext">' . $txt['hs_sb_49'] . '</a></td></tr>';
foreach (explode(';', $HP_settings['shoutBox']['msgFaces']) as $face)
echo '
<tr class="windowbg2"><td width="100%">
<a href="javascript:void(0);" onclick="HP_shoutBox_setFace(\'' . $face . '\'); document.forms.shoutbox.msg.focus(); HP_shoutBox_shFace();" style="font-family: ' . $face . ', sans-serif; display: block; padding: 2px;" class="smalltext">' . $face . '</a></td></tr>';
echo '</table></div>
<div style="display: none; z-index: 12; position: absolute; top: 28px; left: -34px;" id="hp_colorpicker_div">
<table cellpadding="4" cellspacing="0" class="tborder">
<tr class="windowbg2"><td>
<script language="javascript" type="text/javascript">HP_colorPicker_PrintBox();</script>
<img border="0" src="', $settings['images_url'], '/blank.gif" width="1" height="8" alt="" /><br />
<div style="margin:0 auto;text-align:center;"><script language="javascript" type="text/javascript">HP_colorPicker_PrintBoxGrayScale();</script></div></td>
<td align="left" valign="top" class="smalltext">
<input type="text" value="#FFFFFF" style="padding: 3px; width: 120px;" id="hp_colorpicker_input_aply" class="smalltext" /><br />
<input type="button" value="' . $txt['hs_sb_58'] . '" style="padding: 2px; margin-top: 4px" onclick="HP_shoutBox_setColor(true);" class="smalltext" /> <input type="button" value="' . $txt['hs_sb_64'] . '" style="padding: 2px; margin-top: 4px" onclick="HP_shoutBox_setColor(true, \'\');" class="smalltext" />
<br />
<br />
' . $txt['hs_sb_59'] . ':
<table cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #8d8d8d; margin: 2px 0 8px 0;">
<tr><td id="hp_colorpicker_div_show" style="background-color: #FFFFFF;">
<img border="0" src="', $settings['images_url'], '/blank.gif" width="80" height="18" alt="" /></td></tr></table>
' . $txt['hs_sb_60'] . ':
<table cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #8d8d8d; margin-top: 2px;">
<tr><td id="hp_colorpicker_div_select" style="background-color: #FFFFFF;">
<img border="0" src="', $settings['images_url'], '/blank.gif" width="80" height="18" alt="" /></td></tr></table></td>
</tr><tr class="windowbg"><td colspan="2" align="right"><span class="smalltext"><a href="http://www.hackspark.com/scripts/smf-colorpicker_10.0.html" title="Hack\'s Park colorPicker" target="_blank">(cc) Hack\'s Park</a></span></td></tr></table>
</div></div></td></tr></table>
<input type="hidden" value="0" name="hdn" /><input type="hidden" value="0" name="hds" /><input type="hidden" value="0" name="hdk" /><input type="hidden" value="" name="hdcolor" /><input type="hidden" value="" name="hdbgcolor" /><input type="hidden" value="" name="hdface" />';
// Smilies
echo '
<div id="hp_shoutbox_div_emos" style="display:none;margin-top:4px;text-align:center;">';
if (!empty($HP_settings['shoutBox']['out_caritas']['postform']))
{
foreach ($HP_settings['shoutBox']['out_caritas']['postform'] as $smiley_row)
foreach ($smiley_row['smileys'] as $smiley)
echo '
<a href="javascript:void(0);" onclick="replaceText(\' ', $smiley['code'], '\', document.forms.shoutbox.msg); return false;"><img src="', $settings['smileys_url'], '/', $smiley['filename'], '" align="bottom" alt="', $smiley['description'], '" title="', $smiley['description'], '" /></a>';
if (empty($smiley_row['last']))
echo '<br />';
if (!empty($HP_settings['shoutBox']['out_caritas']['popup']))
echo '
<a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>';
}
if (!empty($HP_settings['shoutBox']['out_caritas']['popup']))
{
echo '
<script language="JavaScript" type="text/javascript"><!-- // -->
var smileys = [';
foreach ($HP_settings['shoutBox']['out_caritas']['popup'] as $smiley_row)
{
echo '
[';
foreach ($smiley_row['smileys'] as $smiley)
{
echo '
["', $smiley['code'], '","', $smiley['filename'], '","', $smiley['js_description'], '"]';
if (empty($smiley['last']))
echo ',';
}
echo ']';
if (empty($smiley_row['last']))
echo ',';
}
echo '];
var smileyPopupWindow;
function moreSmileys()
{
var row, i;
if (smileyPopupWindow)
smileyPopupWindow.close();
smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes");
smileyPopupWindow.document.write(\'\n<html>\');
smileyPopupWindow.document.write(\'\n\t<head>\n\t\t<title>', $txt['more_smileys_title'], '</title>\n\t\t<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/style.css" />\n\t</head>\');
smileyPopupWindow.document.write(\'\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">', $txt['more_smileys_pick'], '</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">\');
for (row = 0; row < smileys.length; row++)
{
for (i = 0; i < smileys[row].length; i++)
{
smileys[row][i][2] = smileys[row][i][2].replace(/"/g, \'"\');
smileyPopupWindow.document.write(\'<a href="javascript:void(0);" onclick="window.opener.replaceText(" \' + smileys[row][i][0] + \'", window.opener.document.forms.shoutbox.msg); window.focus(); return false;"><img src="', $settings['smileys_url'], '/\' + smileys[row][i][1] + \'" alt="\' + smileys[row][i][2] + \'" title="\' + smileys[row][i][2] + \'" style="padding: 4px;" border="0" /></a> \');
}
smileyPopupWindow.document.write("<br />");
}
smileyPopupWindow.document.write(\'</td></tr>\n\t\t\t<tr><td style="margin:0 auto;text-align:center;" class="windowbg"><a href="javascript:window.close();\\">', $txt['more_smileys_close_window'], '</a></td></tr>\n\t\t</table>\n\t</body>\n</html>\');
smileyPopupWindow.document.close();
}
// ]]></script>';
}
echo '</div>';
// End - Smilies
echo '
</form></td></tr>';
} elseif ($context['user']['is_logged'])
echo '
<tr><td class="windowbg" width="100%" align="left" colspan="2">
<table cellpadding="0" cellspacing="0" width="100%" style="margin: 4px;">
<tr><td nowrap="nowrap" valign="middle" style="padding-right: 8px;" class="smalltext">
<b>' . $txt['hs_sb_85'] . ':</b> ' . $HP_settings['shoutBox']['out_banned']['reason'] . '<br />
<b>' . $txt['hs_sb_86'] . ':</b> ' . $HP_settings['shoutBox']['out_banned']['end'] . '</td></tr></table>
</td></tr>';
echo '
<tr><td class="windowbg2" width="100%" align="left" colspan="2">
<table cellpadding="0" cellspacing="0" width="100%">
<tr><td align="right" style="padding-right: 8px;">
<span class="smalltext">' . ($HP_settings['shoutBox']['out_mod'] ? '<a href="' . $scripturl . '?action=shoutbox;sa=mod" onclick="reqWin(this.href, 750, 360); HP_shoutBox_sh(!HP_shoutBox[\'hd_msgs\'], \'msgs\'); return false;">' . $txt['hs_sb_61'] . '</a> | ' : '') . '<a href="javascript:void(0);" onclick="HP_shoutBox_getMsgs();">' . $txt['hs_sb_62'] . '</a>' . ($context['user']['is_logged'] ? ' | <a href="' . $scripturl . '?action=shoutbox" onclick="reqWin(this.href, 750, 360); HP_shoutBox_sh(!HP_shoutBox[\'hd_msgs\'], \'msgs\'); return false;">' . $txt['hs_sb_63'] . '</a>' : '') . '</span></td>
</tr></table>
<div style="padding: 0;">
<div id="hp_shoutbox_div_shouts" style="margin-top: 4px;overflow: auto;width: 99%;' . ($context['browser']['is_ie'] ? 'height: ' . $HP_settings['shoutBox']['divHeightMsgs'] . ';' : 'max-height: ' . $HP_settings['shoutBox']['divHeightMsgs'] . ';') . '">
<script language="javascript" type="text/javascript">' . ($HP_settings['shoutBox']['out_noban'] ? '
HP_shoutBox_Clear();' : '') . '
HP_shoutBox[\'timeout\'] = setTimeout("HP_shoutBox_getMsgs();", 5000);
</script>
</div></div></td></tr>
<tr class="windowbg"><td width="100%" align="left">
<div id="hp_shoutbox_div_status">
</div></td>
<td align="right" nowrap="nowrap" valign="middle">
<span class="smalltext"><a href="http://www.hackspark.com/scripts/smf-shoutbox_7.0.html" title="Hack\'s Park shoutBox" target="_blank">(cc) Hack\'s Park</a></span></td></tr></table>
</div>
</div>';
}
-
it doesnt work... :'( :'(
the sb will show but if you shout there,your shout doesnt appear...
look at this version of hackspark sb http://en.hackspark.com/index.php?topic=3.0 he did not use a large template that to index.template.php maybe this one will work to my board..but i dont how to do it...
huhuhuhu!!
anyway where can i find the template of simple portal?
-
Oh, I hadn't realised that there is a newer version of the Shoutbox. They haven't posted it on SimpleMachines.org yet. I will try to update the mod so that it works with the new version, hopefully sometime tonight. Although it depends if I can find the time or not.
-
yeah he only post it on their support site..well thanks to you.
i will wait your updated mod..thanks....
-
:'( :'( :'(
for the mean time i use the html block and put the code this code of
<iframe name="the_iframe" id="the_iframe" src="index.php?action=shoutbox" allowtransparency="true" frameborder="0" scrolling="no" width="100% height="250"></iframe>
but the problem when user logout,the whole frame on the html block will the display the whole board....huhuhu
i wish the author of hackspark made that if user logout shows,you need to login..
-
Oh, I hadn't realised that there is a newer version of the Shoutbox. They haven't posted it on SimpleMachines.org yet
I can understand very well why the author didn't submit the new version to smf , who would want to wait for the eternity to gain the holly approvement of the smf administrators ..
-
Oh, I hadn't realised that there is a newer version of the Shoutbox. They haven't posted it on SimpleMachines.org yet. I will try to update the mod so that it works with the new version, hopefully sometime tonight. Although it depends if I can find the time or not.
any news on this h?? i got someone that wont upgrade sp till there is a fix on it..
-
Nope, something to do for today though. ;)
-
;D thank you h.. im sure he will be happy when you are done.. :nervous-happy:
-
;D thank you h.. im sure he will be happy when you are done.. :nervous-happy:
You know I will Smoky! 8)
-
Mmk guys this is what i did to get this working on my forum (www.idkgaming.com)(SMF 1.1.8, ShoutBox 1.2.2 and SimplePortal 2.1.1)
Follow LHVWB's instructions except to install in a different theme first you need to copy all the files out of the Hacks Park install file into your custom themes appropriate directory.
Then copy the code below into the end of the theme's template
Hope that helps :D
The attached file should work. I only performed a single edit, I added the code below to the end of the file.
This code is a the normal Hack's Park Shoutbox template function, with the edits made by this mod applied to it.
function template_HP_shoutBoxMain()
{
global $context, $settings, $scripturl, $txt, $HP_settings;
if (empty($context['hp_shoutbox_show']))
return;
if ($HP_settings['shoutBox']['out_noban'])
echo '
<script language="javascript" type="text/javascript" src="', $settings['theme_url'], '/HP_colorPicker.js"></script>';
echo '
<script language="javascript" type="text/javascript" src="', $settings['theme_url'], '/HP_shoutBox.js"></script>
<script language="javascript" type="text/javascript">';
if ($HP_settings['shoutBox']['out_noban'])
echo '
HP_shoutBox["lng_emos"] = "' . $txt['hs_sb_10'] . '";
HP_shoutBox["lng_sendingPost"] = "' . $txt['hs_sb_11'] . '";
HP_shoutBox["lng_empty"] = "' . $txt['hs_sb_12'] . '";
HP_shoutBox["lng_jstSending"] = "' . $txt['hs_sb_16'] . '";
HP_shoutBox["lng_sent"] = "' . $txt['hs_sb_13'] . '";
HP_shoutBox["refresh"] = ' . $HP_settings['shoutBox']['refreshShouts'] . ';
HP_shoutBox["lng_no_empty"] = "' . $txt['hs_sb_20'] . '";
HP_shoutBox["lng_empty_url"] = "' . $txt['hs_sb_21'] . '";
HP_shoutBox["lng_insert_url"] = "' . $txt['hs_sb_22'] . '";
HP_shoutBox["in_color"] = "' . $HP_settings['shoutBox']['textColor'] . '";
HP_shoutBox["in_bgcolor"] = "' . $HP_settings['shoutBox']['backgroundColor'] . '";';
echo '
HP_shoutBox["is_ie"] = ' . ($context['browser']['is_ie'] ? 'true' : 'false') . ';
</script>
<div>
<noscript><div class="windowbg" style="padding: 5px 15px 5px 10px;">' . $txt['hs_sb_2'] . '</div></noscript>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor" style="margin-top: 1px;">';
if ($HP_settings['shoutBox']['out_noban'])
{
echo '
<tr><td class="windowbg" width="100%" align="left" colspan="2">
<form name="shoutbox" action="' . $scripturl . '" method="post" accept-charset="' . $context['character_set'] . '" onsubmit="HP_shoutBox_Post(\'' . $context['session_id'] . '\'); return false;">
<table cellpadding="0" cellspacing="0" width="100%" style="margin: 4px;">
<tr><td nowrap="nowrap" valign="middle" style="padding-right: 8px;">
<input class="smalltext" type="text" id="hp_shoutbox_imsg" name="msg" tabindex="1" maxlength="120" value="" style="font-weight: normal;color: ' . $HP_settings['shoutBox']['textColor'] . ';font-style: normal;text-decoration: none;width: ' . $HP_settings['shoutBox']['widthInputMsg'] . ';padding: 3px;border-width: 1px;border-color: ' . $HP_settings['shoutBox']['textColor'] . ';background-color: ' . $HP_settings['shoutBox']['backgroundColor'] . ';" />
<input class="smalltext" type="submit" value="' . $txt['hs_sb_13'] . '" name="send" style="padding: 2px;" /></td>
<td style="padding: 0 0 0 8px; border-left: 1px solid #9c9c9c" valign="middle" width="100%">
<div style="position: relative;padding-top: 4px;margin:0;">
<a href="javascript:void(0);" onclick="HP_shoutBox_sURL()">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/url.gif" width="23" height="22" alt="' . $txt['hs_sb_48'] . '" title="' . $txt['hs_sb_48'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<a href="javascript:void(0);" onclick="HP_shoutBox_sh(!HP_shoutBox[\'hd_emos\'], \'emos\')">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/caretos.gif" width="23" height="22" alt="' . $txt['hs_sb_10'] . '" title="' . $txt['hs_sb_10'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<a href="javascript:void(0);" onclick="HP_shoutBox_Clear()">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/clean.gif" width="23" height="22" alt="' . $txt['hs_sb_50'] . '" title="' . $txt['hs_sb_50'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<a href="javascript:void(0);" onclick="HP_shoutBox_setPro(\'n\', !HP_shoutBox[\'hd_n\']);">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/bold.gif" width="23" height="22" alt="' . $txt['hs_sb_52'] . '" title="' . $txt['hs_sb_52'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<a href="javascript:void(0);" onclick="HP_shoutBox_setPro(\'k\', !HP_shoutBox[\'hd_k\']);">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/italicize.gif" width="23" height="22" alt="' . $txt['hs_sb_53'] . '" title="' . $txt['hs_sb_53'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<a href="javascript:void(0);" onclick="HP_shoutBox_setPro(\'s\', !HP_shoutBox[\'hd_s\']);">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/underline.gif" width="23" height="22" alt="' . $txt['hs_sb_54'] . '" title="' . $txt['hs_sb_54'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<a href="javascript:void(0);" onclick="HP_shoutBox_shFace()">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/face.gif" width="23" height="22" alt="' . $txt['hs_sb_55'] . '" title="' . $txt['hs_sb_55'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<a href="javascript:void(0);" onclick="HP_colorPicker_sh(false)">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/fontcolor.gif" width="23" height="22" alt="' . $txt['hs_sb_56'] . '" title="' . $txt['hs_sb_56'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<img id="hp_shoutbox_s_color" src="' . $settings['images_url'] . '/bbc/nocolor.gif" width="18" height="18" alt="" style="background-color: #FFFFFF;border: 1px solid #b2b2b2;" />
<a href="javascript:void(0);" onclick="HP_colorPicker_sh(true)">
<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="' . $settings['images_url'] . '/bbc/bgcolor.gif" width="23" height="22" alt="' . $txt['hs_sb_57'] . '" title="' . $txt['hs_sb_57'] . '" style="background-image: url(\'' . $settings['images_url'] . '/bbc/bbc_bg.gif\');" /></a>
<img id="hp_shoutbox_s_bgcolor" src="' . $settings['images_url'] . '/bbc/nocolor.gif" width="18" height="18" alt="" style="background-color: #FFFFFF;border: 1px solid #b2b2b2;" />
<div style="display: none; z-index: 11; position: absolute; top: 28px; left: 45px;" id="hp_shoutbox_div_face">
<table cellpadding="0" cellspacing="0" class="tborder" width="120">
<tr class="windowbg2"><td width="100%">
<a href="javascript:void(0);" onclick="HP_shoutBox_setFace(\'inherit\'); document.forms.shoutbox.msg.focus(); HP_shoutBox_shFace();" style="font-family: inherit; display: block; padding: 2px;" class="smalltext">' . $txt['hs_sb_49'] . '</a></td></tr>';
foreach (explode(';', $HP_settings['shoutBox']['msgFaces']) as $face)
echo '
<tr class="windowbg2"><td width="100%">
<a href="javascript:void(0);" onclick="HP_shoutBox_setFace(\'' . $face . '\'); document.forms.shoutbox.msg.focus(); HP_shoutBox_shFace();" style="font-family: ' . $face . ', sans-serif; display: block; padding: 2px;" class="smalltext">' . $face . '</a></td></tr>';
echo '</table></div>
<div style="display: none; z-index: 12; position: absolute; top: 28px; left: -34px;" id="hp_colorpicker_div">
<table cellpadding="4" cellspacing="0" class="tborder">
<tr class="windowbg2"><td>
<script language="javascript" type="text/javascript">HP_colorPicker_PrintBox();</script>
<img border="0" src="', $settings['images_url'], '/blank.gif" width="1" height="8" alt="" /><br />
<div style="margin:0 auto;text-align:center;"><script language="javascript" type="text/javascript">HP_colorPicker_PrintBoxGrayScale();</script></div></td>
<td align="left" valign="top" class="smalltext">
<input type="text" value="#FFFFFF" style="padding: 3px; width: 120px;" id="hp_colorpicker_input_aply" class="smalltext" /><br />
<input type="button" value="' . $txt['hs_sb_58'] . '" style="padding: 2px; margin-top: 4px" onclick="HP_shoutBox_setColor(true);" class="smalltext" /> <input type="button" value="' . $txt['hs_sb_64'] . '" style="padding: 2px; margin-top: 4px" onclick="HP_shoutBox_setColor(true, \'\');" class="smalltext" />
<br />
<br />
' . $txt['hs_sb_59'] . ':
<table cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #8d8d8d; margin: 2px 0 8px 0;">
<tr><td id="hp_colorpicker_div_show" style="background-color: #FFFFFF;">
<img border="0" src="', $settings['images_url'], '/blank.gif" width="80" height="18" alt="" /></td></tr></table>
' . $txt['hs_sb_60'] . ':
<table cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #8d8d8d; margin-top: 2px;">
<tr><td id="hp_colorpicker_div_select" style="background-color: #FFFFFF;">
<img border="0" src="', $settings['images_url'], '/blank.gif" width="80" height="18" alt="" /></td></tr></table></td>
</tr><tr class="windowbg"><td colspan="2" align="right"><span class="smalltext"><a href="http://www.hackspark.com/scripts/smf-colorpicker_10.0.html" title="Hack\'s Park colorPicker" target="_blank">(cc) Hack\'s Park</a></span></td></tr></table>
</div></div></td></tr></table>
<input type="hidden" value="0" name="hdn" /><input type="hidden" value="0" name="hds" /><input type="hidden" value="0" name="hdk" /><input type="hidden" value="" name="hdcolor" /><input type="hidden" value="" name="hdbgcolor" /><input type="hidden" value="" name="hdface" />';
// Smilies
echo '
<div id="hp_shoutbox_div_emos" style="display:none;margin-top:4px;text-align:center;">';
if (!empty($HP_settings['shoutBox']['out_caritas']['postform']))
{
foreach ($HP_settings['shoutBox']['out_caritas']['postform'] as $smiley_row)
foreach ($smiley_row['smileys'] as $smiley)
echo '
<a href="javascript:void(0);" onclick="replaceText(\' ', $smiley['code'], '\', document.forms.shoutbox.msg); return false;"><img src="', $settings['smileys_url'], '/', $smiley['filename'], '" align="bottom" alt="', $smiley['description'], '" title="', $smiley['description'], '" /></a>';
if (empty($smiley_row['last']))
echo '<br />';
if (!empty($HP_settings['shoutBox']['out_caritas']['popup']))
echo '
<a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>';
}
if (!empty($HP_settings['shoutBox']['out_caritas']['popup']))
{
echo '
<script language="JavaScript" type="text/javascript"><!-- // -->
var smileys = [';
foreach ($HP_settings['shoutBox']['out_caritas']['popup'] as $smiley_row)
{
echo '
[';
foreach ($smiley_row['smileys'] as $smiley)
{
echo '
["', $smiley['code'], '","', $smiley['filename'], '","', $smiley['js_description'], '"]';
if (empty($smiley['last']))
echo ',';
}
echo ']';
if (empty($smiley_row['last']))
echo ',';
}
echo '];
var smileyPopupWindow;
function moreSmileys()
{
var row, i;
if (smileyPopupWindow)
smileyPopupWindow.close();
smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes");
smileyPopupWindow.document.write(\'\n<html>\');
smileyPopupWindow.document.write(\'\n\t<head>\n\t\t<title>', $txt['more_smileys_title'], '</title>\n\t\t<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/style.css" />\n\t</head>\');
smileyPopupWindow.document.write(\'\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">', $txt['more_smileys_pick'], '</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">\');
for (row = 0; row < smileys.length; row++)
{
for (i = 0; i < smileys[row].length; i++)
{
smileys[row][i][2] = smileys[row][i][2].replace(/"/g, \'"\');
smileyPopupWindow.document.write(\'<a href="javascript:void(0);" onclick="window.opener.replaceText(" \' + smileys[row][i][0] + \'", window.opener.document.forms.shoutbox.msg); window.focus(); return false;"><img src="', $settings['smileys_url'], '/\' + smileys[row][i][1] + \'" alt="\' + smileys[row][i][2] + \'" title="\' + smileys[row][i][2] + \'" style="padding: 4px;" border="0" /></a> \');
}
smileyPopupWindow.document.write("<br />");
}
smileyPopupWindow.document.write(\'</td></tr>\n\t\t\t<tr><td style="margin:0 auto;text-align:center;" class="windowbg"><a href="javascript:window.close();\\">', $txt['more_smileys_close_window'], '</a></td></tr>\n\t\t</table>\n\t</body>\n</html>\');
smileyPopupWindow.document.close();
}
// ]]></script>';
}
echo '</div>';
// End - Smilies
echo '
</form></td></tr>';
} elseif ($context['user']['is_logged'])
echo '
<tr><td class="windowbg" width="100%" align="left" colspan="2">
<table cellpadding="0" cellspacing="0" width="100%" style="margin: 4px;">
<tr><td nowrap="nowrap" valign="middle" style="padding-right: 8px;" class="smalltext">
<b>' . $txt['hs_sb_85'] . ':</b> ' . $HP_settings['shoutBox']['out_banned']['reason'] . '<br />
<b>' . $txt['hs_sb_86'] . ':</b> ' . $HP_settings['shoutBox']['out_banned']['end'] . '</td></tr></table>
</td></tr>';
echo '
<tr><td class="windowbg2" width="100%" align="left" colspan="2">
<table cellpadding="0" cellspacing="0" width="100%">
<tr><td align="right" style="padding-right: 8px;">
<span class="smalltext">' . ($HP_settings['shoutBox']['out_mod'] ? '<a href="' . $scripturl . '?action=shoutbox;sa=mod" onclick="reqWin(this.href, 750, 360); HP_shoutBox_sh(!HP_shoutBox[\'hd_msgs\'], \'msgs\'); return false;">' . $txt['hs_sb_61'] . '</a> | ' : '') . '<a href="javascript:void(0);" onclick="HP_shoutBox_getMsgs();">' . $txt['hs_sb_62'] . '</a>' . ($context['user']['is_logged'] ? ' | <a href="' . $scripturl . '?action=shoutbox" onclick="reqWin(this.href, 750, 360); HP_shoutBox_sh(!HP_shoutBox[\'hd_msgs\'], \'msgs\'); return false;">' . $txt['hs_sb_63'] . '</a>' : '') . '</span></td>
</tr></table>
<div style="padding: 0;">
<div id="hp_shoutbox_div_shouts" style="margin-top: 4px;overflow: auto;width: 99%;' . ($context['browser']['is_ie'] ? 'height: ' . $HP_settings['shoutBox']['divHeightMsgs'] . ';' : 'max-height: ' . $HP_settings['shoutBox']['divHeightMsgs'] . ';') . '">
<script language="javascript" type="text/javascript">' . ($HP_settings['shoutBox']['out_noban'] ? '
HP_shoutBox_Clear();' : '') . '
HP_shoutBox[\'timeout\'] = setTimeout("HP_shoutBox_getMsgs();", 5000);
</script>
</div></div></td></tr>
<tr class="windowbg"><td width="100%" align="left">
<div id="hp_shoutbox_div_status">
</div></td>
<td align="right" nowrap="nowrap" valign="middle">
<span class="smalltext"><a href="http://www.hackspark.com/scripts/smf-shoutbox_7.0.html" title="Hack\'s Park shoutBox" target="_blank">(cc) Hack\'s Park</a></span></td></tr></table>
</div>
</div>';
}
-
I'm having some trouble with the shoutbox and no one on hacksparks.com is helping, I'm being blatantly ignored.
I was wondering if anyone here would know how to help?
the shoutbox works if I go to /index.php?action=shoutbox
But the shoutbox doesn't appear on any of the main pages. I'm using SMF v1.1.8 and HacksPark's shoutbox v2.0
I've put ";All" into the "pages where shoutbox will be printed" box but it hasn't helped. Anyone able to help me?
-
;D thank you h.. im sure he will be happy when you are done.. :nervous-happy:
You know I will Smoky! 8)
Being VERY patient. :'(
-
Yeah, I have been meaning to get this done. Unfortunately there have been a few other SP things that I want to get done first, and don't have much free time. :(
-
Yeah, I have been meaning to get this done. Unfortunately there have been a few other SP things that I want to get done first, and don't have much free time. :(
Completely Understandable
-
I'm using SMF 1.1.8, Simple Portal 2.2 & Hack's Park 2.0
And i really manage to put the HP Shoutbox in Simple Portal and show to all pages and working perfectly without any problems
If you want to check it here's my website link www.pinoyxpat.org (http://www.pinoyxpat.org)
How did I manage it:
Install Simple Portal 2.2 & HP shoutbox 2.0 on SMF 1.1.8
On Simple Portal ADMIN
----> Add Block (Custom HTML)
and put this code
<iframe name="the_iframe" id="the_iframe" src="index.php?action=shoutbox" allowtransparency="true" frameborder="0" scrolling="no" width="100%" height="430"></iframe>
That's it no more no less
you can manage to show the shoutbox in your forum
-
TYVM I had just upgraded to RC1 and was looking for a shout box and this works perfectly
(I had to mod your text to the right height)
I'm using SMF 1.1.8, Simple Portal 2.2 & Hack's Park 2.0
And i really manage to put the HP Shoutbox in Simple Portal and show to all pages and working perfectly without any problems
If you want to check it here's my website link www.pinoyxpat.org (http://www.pinoyxpat.org)
How did I manage it:
Install Simple Portal 2.2 & HP shoutbox 2.0 on SMF 1.1.8
On Simple Portal ADMIN
----> Add Block (Custom HTML)
and put this code
<iframe name="the_iframe" id="the_iframe" src="index.php?action=shoutbox" allowtransparency="true" frameborder="0" scrolling="no" width="100%" height="430"></iframe>
That's it no more no less
you can manage to show the shoutbox in your forum
-
Hmmm so now i find out its only working for me and only i can see it.
Any ideas why?
**EDIT** You have to give permission for user groups to see it.
-
Hmmm so now i find out its only working for me and only i can see it.
Any ideas why?
**EDIT** You have to give permission for user groups to see it.
YES, definitely you have to give permissions otherwise you and your staff will only can use that SB
I'm glad that it works also to your forum
-
I could try and make a SimplePortal block for the AjaxChat Integration (http://custom.simplemachines.org/mods/index.php?mod=1319) or nneonneo's Shoutbox (http://custom.simplemachines.org/mods/index.php?mod=585) mods. Although it might take me a while to find the time. ;)
LHVWB, can I post the code for nneonneo's Shoutbox that I have? It works great :)
I've a better idea:
Maybe a block that could detect what shoutbox you are using and show it :P
Can I use your code of Hack'sPark for the next block I'm creating? If you don't mind of course ;)
-
Updated this for SimplePortal 2.2.
@Blue,
Its probably better to make separate blocks for each shoutbox, than a single one that can detect all of them. If you look at the 2.2 package of this mod, then you will notice that it makes important changes to the Shoutbox mods source files. This is so that it can work as effectively as possible.
Feel free to use the block code itself if you want to make a 'detector' shoutbox block, but I'm not sure how well it would work.
-
I'm making the detector shoutbox block only with shoutbox itself. When I created the Ajax Chat Block and put it to work in a block, the format was all messed up and I had to change one of the source files of the Ajax Chat.
It seams that the Hack's Park Block does some big changes in the source files, nothing compared to ajax chat, that only need one source file changed and nneonneo's shoutbox doesn't need any change at all, which is great, for me :P
Well, I could had some smileys bar but that is going to be an extra like a cleaner and beautiful shoutbox for Ajax Chat. Replacing a file via FTP is not that difficult. If needed I'll do a package to install.
So, I think I'm going to focus only in Shoutbox for SMF 2.0 (currently 2: nneonneo's and Ajax Chat)
But, you have done a great work with hack's park shoutbox block :) Congrats for that eheh ;D
-
So, I think I'm going to focus only in Shoutbox for SMF 2.0 (currently 2: nneonneo's and Ajax Chat)
I'm looking forward to the AJAX Chat block. I have AJAX running, but the ability to have choices as to where to place it would be awesome. Let me know if you need a tester.
-
Let me guess, Nath, you tested this on a WAMP or XAMPP on Windows? Or on a windows server of some kind. :P
You need to rename the call to shoutbox.js so that it's in lowercase. Linux servers count Shoutbox.js and shoutbox.js as two different files.
-
Lol, I tested it with Xampp, because my ubuntu server's mysql is playing up at the moment. I'll fix that after school. ;)
-
It seems the little error with Shoutbox.js and shoutbox.js is still in the package which is available for downloading in the download section.
I loaded down the package and when I tried to install it, I got the "Failed"-Message cause of the "S" in the install.xml. :-s
/me know shes annoying ppl :P
-
Updated the package for the first post and for the downloads site.
/me tends to forget things, reminders are always good. :P
-
thanks a lot, thumbs up
-
sorry if this is a really stupid question but how do I install this block? I cant find anything on installing this, or other blocks.
-
You have to install this block with the SMF package manager. It installs like a normal SMF mod does.
-
You have to install this block with the SMF package manager. It installs like a normal SMF mod does.
Hmm, I uploaded the file "SP_block_HacksPark_ShoutBox_2.2.zip" to the packages folder via FTP, then I go to admin, packages, and I only have the following listed:
Hack's Park Shoutbox 2.0
SimplePortal 2.2.1
both have been installed. the SP_block package is not listed.
I am running SMF 2.0 RC1-1
-
Uploading packages to the 'Packages' directory doesn't seem to work with SMF 2 RC1.1 (it doesn't detect them), can't you upload it via the package manager?
-
Thanks for the help, doing that gave me an error saying it was empty. After reading about it on the SMF forums I was able to get it installed by creating a new folder in packages, then uploading the unzipped block package files into the new folder, then it showed up in the package manager and installed perfectly, Thanks guys!
-
Nathaniel,
Just curious, but would the code you used to make Hack's Park work in a portal be something adaptable to make the same thing happen with say http://custom.simplemachines.org/mods/index.php?mod=182 (http://custom.simplemachines.org/mods/index.php?mod=182) Complete PJIRC Integration by 3guk?
I'm just looking for some code to help me get started in accomplishing that for PJIRC and I'm only a couple of steps up from a n00b coder :)
Thanks!
-
PJIRC, in my opinion, truly belongs on its own page. As it requires you to load java and it only works once per page (instead of being persistent across pages like shoutbox is, as its tied to the SMF database and not an IRC server) and prevents users from staying logged into the IRC chat simultaneously with browsing the forum.
On its own page, it can be opened in a new window or tab and left there, but as a block is forced to load on each page. With the addition of Java, that gives each page anywhere from a 15-30 second load on high speed (cable, DSL, sat) internet, not to even start touching dialup speeds. That's inconsiderate to users who merely wish to browse the forum.
-
PJIRC, in my opinion, truly belongs on its own page. As it requires you to load java and it only works once per page (instead of being persistent across pages like shoutbox is, as its tied to the SMF database and not an IRC server) and prevents users from staying logged into the IRC chat simultaneously with browsing the forum.
On its own page, it can be opened in a new window or tab and left there, but as a block is forced to load on each page. With the addition of Java, that gives each page anywhere from a 15-30 second load on high speed (cable, DSL, sat) internet, not to even start touching dialup speeds. That's inconsiderate to users who merely wish to browse the forum.
Ah you've broken my heart Ms Tamerin :'( I thought PJIRC in a Portal block would be the ultimate chat box for our site. I had no idea there would be such technical constraints, but you've opened my eyes to using a tab as an alternative which is something I hadn't considered. Thanks :thumbsup:
-
Is there anyway to get this package block to work with SMF 1.1.9? I tried installing it on my SMF 1.1.9 board the shoutbox and block and it does not load,show,work. I installed it on my SMF 2.0 RC1-1 forum and it works.
-
Make sure that you have the 'SP_block_HacksPark_ShoutBox_2.2.zip' package and the latest version of HacksPark_ShoutBox (2.0). At the moment it looks like their domain has expired, so you may not be able to download a copy of the latest shoutbox version. :/
-
SP_block_HacksPark_ShoutBox_2.2.zip
ShoutBox 2.0
-
Maybe this is just me but its doing my nut in, whenever I try to install the block via package manager it tells me the package is either corrupt or invalid. I've tried downloading it a few times always with the same outcome.
Any help is appreciated.
-
Has this happened for any other packages?
It likely to be the usual issues that cause problems with packages. Try chmoding your packages directory to 0777. If that doesn't work then create a directory within your 'packages' directory called 'temp', chmod that to 0777 as well.
-
Thanks for the quick reply,
I've changed the chmod settings (including a temp folder) but its still throwing up the same issue, I've just tried another package and it went through with no problems. I'm highly confused :P
-
Try redownloading the package, its possible that it your browser may have not downloaded it right (very unlikely though).
Also, try uploading the package straight into the 'packages' directory, that could work as well.
-
I'd already tried downloading it a few times, even using different browsers. If I FTP it straight to the packages folder it doesn't show it the "browse packages" section so I can't apply it.
I've no idea what's going on with it, as I said other packages aren't giving me any trouble.
Again, thanks for the help.
-
Your not alone Vade, im having the exact same problem !
-
All you need to do is extract it and repack it into a new .zip, it installs fine after that.
Now why the sound doesn't work in the chat module, I have no idea, and wish it would work.
-
That worked a charm, any ideas as to why it happened?
-
One of the my computers has had issues with compressing archives in the past, that could have been the issue (although I did test those packages before uploading them).
I have re-compressed the package using a different computer, so hopefully the packages on the download site and the first post of this topic should work properly.
-
Just wanted to say it works like a charm. Thanks.
-
so what exactly does this do? does it enable the shoutbox ontop of the portal?
-
This mod puts lets you make a block that contains the shoutbox.
-
how do i use this? i have SMF 1.1.9 | SimplePortal 2.2.2 | Hackspark shoutbox 2.0.
-
@BluRanium,
This is a mod, install it via the package manager. Then there will be a new block type called "Hackspark shoutbox".
-
Is there someone who can view the image or link son shows how it looks.
-
Hey nathan, when i try to install your mod threw the packaging system *isn't that how im supposed to do it?* it gives me a corrupted error xD i tried both versions of ur hack and get that.
and i do have his thing installed ^^
-
It might be an issue with my compression again. Try unzipping the package and then recompressing it, then upload it and see if it works.
-
ok will try bro i'll let ya know how it goes
-
still corrupt bro.
even tried diffrent formats .zip .tar .7zip :'( lol all say corrupted except 7zip it tells me that it's not a valid file type >:-D
-
Is there someone who can view the image or link son shows how it looks.
?
-
i tried even installing it manuelly that didn't go so well kept getting parse errors :dead: so restored my old file
-
how do i install this?
-
You can install it by using the package manager like you would any other mod :)
Also, I tried what Nathaniel said about unpacking and recompressing the mod. That got my error about being corrupt to go away.
I will attach the version I used on my website.
yes, I was in hurry and accidentally put an L instead of a k
-
So i installed this mod and works great, however i'm trying to get the shoutbox in a left or right column . Is their anyway to do that without the box trying to expand itself after a long post or everything below getting smushed togther?
its not text wrapping and the images are overlaping the typing bar.
any ideas?
(http://i58.photobucket.com/albums/g242/Jogfrantic/shoutboxexample.jpg)
-
I place the "Hack's Park Shoutbox Block" in the Top block
Fatal error: Call to undefined function template_shoutbox() in SPortal1-1.php on line 3345
Only regular forum members get this. SMF admins can see the block just fine and the rest of the content loads just fine. admins can also use the shoutbox just fine
I have checked the permissions for the block and they are correct, only guest is turned off (as a test I turned on guest for this block and it still generates the above error), which is the same for the rest of the blocks on the page which load fine for the members.
any ideas?
SMF ver 1.1.9
SP ver 2.2.2
EDIT: I have resolved this: members did not have SMF permissions to see the shoutbox or post to the shoutbox. I did not realize that I had to do this additional step, via "members- permissions"
-
i've got error....
admin and global moderator cant see shoutbox after my global modeator clear the messages..... only regular member can see the SB...
any sollution
i put SB in the top block,
SMF 1.1.10
Sp 2.2.2
-
Specs: SMF 2.0 RC1.2 / SP 2.2.2 / Shoutbox 2.0.1
So I decided to try the shoutbox on my forum today. I have the above installed already and the Shoutbox works fine. I then decided to add this function and put the shoutbox in a block instead. When trying to install during the upload process, I get the following error. Any help would be appreciated. Thanks.
(http://i25.tinypic.com/ml4hvc.jpg)
-
lol, i couldnt get this installed. but anyways. im on a new server and fresh install of smf. so i have smf 1.1.10 and simpleportal 2.3. would this still work?
-
You don't really need it now sp has their own portal.
-
I prefer Hack's Park Shoutbox over the one included with SP 2.3
Will the mod to add this shoutbox as a block be udated for 2.3?
-
I'll update this mod for 2.3 when I can find the time, at the moment that is difficult. ;)
-
*ehm* ..when trying to activate the block.. allready where you set the dot to choose the predefined block, ( select block type ) .I get this:
Fatal error: Call to undefined function sp_hacks_park_shoutbox() in /the_path_to_my_place/Sources/SPortalAdmin1-1.php on line 648
line648 is:
'options'=> $_POST['selected_type'][0](array(), false, true),
what went wrong ??
-
The mod didn't install properly. Try uninstalling it and then reinstalling it.
-
The mod didn't install properly. Try uninstalling it and then reinstalling it.
well... I had to manually install it, because the zip is corruptet or not a real package for smf ( as seen reported in earlier topics in this tread ).
I tried to reinstall it with:
http://simpleportal.net/index.php?topic=1529.msg17959#msg17959
and that works..the installation part..
now Im having this problem:
http://simpleportal.net/index.php?topic=1529.msg18064#msg18064
( the CSS or template??.. isnt fit to be a side block )
AND .. when writing words in the really small textbox, you cant hit enter..the words You write just stays in the inputbox, and isnt sent to the shoutbox.
( www.bfmaw.dk )
Any ideas for a solution ?
-
Hi, I think I found a fix to use this mod with:
Hack's Park Shoutbox 2.0.2
SimplePortal 2.3
I'll test it at my forum and if it works without bugs I'll send "my work" to Nataniel and if he approves it ... well, the mod will be posted!
-
You should be able to do that with a Custom PHP block as well.
From memory, the main purpose of this mod was to edit code in other places to make a 'cleaner' integration of the Hack's Park shoutbox mod with SimplePortal. It also removed some admin settings, added a new block type, etc.
-
I used the simple HTML cited in much earlier replies and it worked like a charm. I don't like to crap up message boards with useless info so, I've deleted the post with my workaround since it was sub-par anyway. Just glad this all lead me to what works!
Thanks.
-
someone is planning to update this block ?
-
Does this still work?
-
works this with sp 2.3.5 ?
-
It was designed for 2.2 version of SimplePortal. So, no, unfortunately it won't work on 2.3.5. I guess people weren't very much interested in updating this since SimplePortal now has it's own shoutbox module.