collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 376
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Thanks for having an interest with our portal. If you have any requests for features, have a look at the Feature Requests board.

Author Topic: SP block for Hack's Park Shoutbox.  (Read 77890 times)

0 Members and 1 Guest are viewing this topic.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
SP block for Hack's Park Shoutbox.
« 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.
Hack's Park shoutBox MUST be installed, you can download it here or here (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.
« Last Edit: June 09, 2009, 09:38:15 PM by Nathaniel »
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Paragaya

  • Jr. Member
  • **
  • Posts: 91
  • Gender: Male
  • Heyo Basit Portal :D
  • SMF Version: None
  • SP Version: None
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #1 on: February 23, 2009, 03:12:30 AM »
Thanks :)

Offline white

  • Semi Newbie
  • *
  • Posts: 9
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #2 on: March 23, 2009, 06:26:13 AM »
can you make a mod SP Block for HacksPark ShoutBox that compatible for 2.0 shoutbox and to simple portal 2.1.1

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #3 on: March 23, 2009, 06:31:25 AM »
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 or nneonneo's Shoutbox mods. Although it might take me a while to find the time. ;)

SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline white

  • Semi Newbie
  • *
  • Posts: 9
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #4 on: March 23, 2009, 06:43:42 AM »
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..

Offline white

  • Semi Newbie
  • *
  • Posts: 9
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #5 on: March 23, 2009, 06:50:39 AM »
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?

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #6 on: March 23, 2009, 06:56:27 AM »
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline white

  • Semi Newbie
  • *
  • Posts: 9
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #7 on: March 23, 2009, 06:59:21 AM »
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...

Offline white

  • Semi Newbie
  • *
  • Posts: 9
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #8 on: March 23, 2009, 07:05:29 AM »
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..

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #9 on: March 23, 2009, 07:10:32 AM »
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.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline white

  • Semi Newbie
  • *
  • Posts: 9
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #10 on: March 23, 2009, 07:35:04 AM »
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..


Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #11 on: March 23, 2009, 04:30:37 PM »
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.
Code: [Select]
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, \'&quot;\');
smileyPopupWindow.document.write(\'<a href="javascript:void(0);" onclick="window.opener.replaceText(&quot; \' + smileys[row][i][0] + \'&quot;, 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>';
}
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline white

  • Semi Newbie
  • *
  • Posts: 9
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #12 on: March 24, 2009, 01:31:40 AM »
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?
« Last Edit: March 24, 2009, 01:37:06 AM by white »

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #13 on: March 24, 2009, 01:46:38 AM »
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.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline white

  • Semi Newbie
  • *
  • Posts: 9
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #14 on: March 24, 2009, 01:56:12 AM »
yeah he only post it on their support site..well thanks to you.

i will wait your updated mod..thanks....

Offline white

  • Semi Newbie
  • *
  • Posts: 9
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #15 on: March 24, 2009, 12:46:32 PM »
 :'( :'( :'(

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..

Offline Nabil

  • Full Member
  • ***
  • Posts: 110
  • SMF Version: 1.1.7
  • SP Version: 2.2.1
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #16 on: March 24, 2009, 03:25:35 PM »
Quote
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 ..

Offline Smoky Blue

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Female
    • HouseOfSmoky
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #17 on: April 07, 2009, 10:31:05 PM »
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..

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #18 on: April 07, 2009, 10:41:06 PM »
Nope, something to do for today though. ;)
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline Smoky Blue

  • Jr. Member
  • **
  • Posts: 52
  • Gender: Female
    • HouseOfSmoky
Re: [Mod] SP block for Hack's Park Shoutbox.
« Reply #19 on: April 08, 2009, 08:29:58 AM »
 ;D  thank you h.. im sure he will be happy when you are done..  :nervous-happy: