News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMFPacks.com Shoutbox

Started by Nibogo, October 19, 2008, 11:41:06 AM

Previous topic - Next topic

Don Pepito

How to set my shoutbox being seen in every action....

JCS

Quote from: assam_siddibapa on January 17, 2009, 03:49:07 PMi did every ting as said by u
but wen i tried in on my theme it showed
Template Parse Error!
There was a problem loading the /Themes/extreme61/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
syntax error, unexpected T_STRING, expecting ',' or ';'


please help me


EDIT
if found that if i go to /index.php?action=shoutbox on the custom theme it works so i guess there must be some thing wrong in the code
i have attached my index.template.php

if u dont mind plz say me wat to edit becuase i am currently install other mods to so if i replace ur give file then i will have to do the edits again

you used a package parser right?, cuz the problem is that you have this('), when you must have (& #39;) "without the space between & and #", so look in your .php for this
Hack's Park, and repleace it for this Hack& #39;s Park "without the space ^^"
Quote from: mash-e1 on January 17, 2009, 06:47:29 PMit works on default thread then i had some one install it on a diffrent theme now that i have chnged the theme its gone please help me please
make sure all the manuall edits are done, also see if you have the .js and .php files, and images that the shoutbox needs on your custom template´s folder
Quote from: CL0WNER on January 18, 2009, 01:37:46 AM
Quote from: JCS on January 17, 2009, 11:35:03 AM
Quote from: CL0WNER on January 15, 2009, 02:00:29 AMcan anyone help me how to use it with the clean blue theme?
i have it installed and only edited the clean blue theme since i dont think i really need to change anything else do i?
extract the files of the package and youll see some files that the mod add to your theme folder, then upload them to your custom theme
tried that already
URL of your forum please
Quote from: Mr.IT on January 18, 2009, 08:45:06 AMI want to use HacksPark shoutBox on Movies07 theme .plesase give me index.template.php file

http://custom.simplemachines.org/themes/index.php?lemma=377
i cant do that, you must edit your files manually, use a package parser if you need help, then ifu still having problems, let me know the problem
Quote from: sibit on January 18, 2009, 02:49:16 PMbut i set hot editor and when i set up this mod smiles had become inactive because of changing of script.js as a hot aditor can you help about this problem?
you dont have to change script.js, this mod works with its own .js files
HP_colorPicker.js
HP_shoutBox.js
HP_shoutBox_Mod.js
Quote from: t0k3nBuDz on January 18, 2009, 04:40:20 PMI have not done any upgrades.  I freshly installed 1.1.7 about 2 weeks ago.  How should I proceed?

I'll see whats going on, give me some time please
Quote from: Legend Zero on January 18, 2009, 07:15:24 PMFinally got everything working, but I was wondering if there was a way to make the box play a sound everytime a new post was made, b/c we find people missing the conversation if they are looking away.
not yet, but soon
Quote from: Quexinos on January 19, 2009, 03:45:22 AMThis, the link to your manual doesn't work.  I uploaded all the proper files and what not, but if I try to just  modify the index.template it goes berserk.  Can you please fix the link to the manual?
I'll check the manual, but remember, you can use a package parser to do the modifications
Quote from: Don Pepito on January 19, 2009, 09:54:17 AMHow to set my shoutbox being seen in every action....
just set it to all ^^
Dont PM me for support, unless I ask you to do that

OtaKumi
Hacks-Park

Don Pepito

What should i do...??
One more question....
What to ****** is problem where shouts are not seen until i dont press update...?? i have changed a litle bit the main table...but nothing that shuld affect on functionating...

Quexinos

QuoteI'll check the manual, but remember, you can use a package parser to do the modifications
I don't know what this means... I'm sorry this is my first SMF forum and I'm just not familiar with all the terms.  Since this topic is 17 pages long, can you point out where you said how to do this?  I'd appreciate it.  The shoutbox is really nice when it's working :)

Quexinos

I'm supposed to do what it says here right?
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1295;attach=72700;smf_version=1.1.6

I did but I always get errors :( when the traffic dies down a bit on my forum I'll try it again and post the error.

sibit

#325
you dont have to change script.js, this mod works with its own .js files
HP_colorPicker.js
HP_shoutBox.js
HP_shoutBox_Mod.js


yeah its point that i cant understand.why when i set hot editorr smileyss become inactive

can you check this mod from this?
http://www.smfciyiz.biz/index.php/topic,1728.0.html [nofollow]

when i set hot editor i must change script.js this like and this problem will be occur

this code 


// Replaces the currently selected text with the passed text.
function replaceText(text, textarea)
{
   // Attempt to create a text range (IE).
   if (typeof(textarea.caretPos) != "undefined" && textarea.createTextRange)
   {
      var caretPos = textarea.caretPos;

      caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
      caretPos.select [nofollow]();
   }
   // Mozilla text range replace.
   else if (typeof(textarea.selectionStart) != "undefined")
   {
      var begin = textarea.value.substr(0, textarea.selectionStart);
      var end = textarea.value.substr(textarea.selectionEnd);
      var scrollPos = textarea.scrollTop;

      textarea.value = begin + text + end;

      if (textarea.setSelectionRange)
      {
         textarea.focus();
         textarea.setSelectionRange(begin.length + text.length, begin.length + text.length);
      }
      textarea.scrollTop = scrollPos;
   }
   // Just put it on the end.
   else
   {
      textarea.value += text;
      textarea.focus(textarea.value.length - 1);
   }
}


replace with

// Replaces the currently selected text with the passed text.
function replaceText(text, textarea)
{
   if(editor_type==1){
      text=BBCodeToHTML(text);
      WriteHTML(text,"editor");
   }
   else{
      WriteTEXT(text,"editor");
   }   
}

duder673

#326
My problem with this is that their(Hack Park's) English website sends you in a loop.
If you contact them and tell them that whenever you click the link to check the English manual installation it refers you back to their main page, it would save you a lot of trouble.

Or tell them to post the instructions on this site to begin with  ::)


I cannot get it to work with a custom theme and have now idea what to do Spanish -> English translation isn't good enough.

Any pointers as to what I need to change?  Do I have to manipulate the index.php file and copy files to the new themse directory?


*Edit: fixed it myself using the excellent SMF Package Parser
http://resourcez.biz/PackageParser/index.php
Thank you for making it and posting it in this thread.

Anyone trying to use a custom theme with Hack Park shoutbox should be immediately referred to it imo.
Thanks to the mods and anyone else who is spending their time helping ppl in this thread.

Sheree

hi there I liked this mod a lot ... great job
I have one quick question .. is there anyway we can also show the members avatar before the name?

GhostWalker

I love the Mod and it has worked well but as of late my members are getting this message: 

"session is invalid or you are not connected"

Any ideas as to why?

CesarManara

Hello man, I'm here to day to report a bug on your mod.

# Hack's Park ||
$txt['hp_admin'] = 'Hack's Park';
$txt['hp_mod_shoutbox'] = 'ShoutBox';


the smf 1.1.7 template found an error in line "$txt['hp_admin'] = 'Hack's Park';"

the correct must be:

# Hack's Park ||
$txt['hp_admin'] = 'Hacks Park';
$txt['hp_mod_shoutbox'] = 'ShoutBox';


Without the '

Fix this the more fast as possible please

JCS

Quote from: Don Pepito on January 19, 2009, 12:31:52 PMWhat should i do...??
One more question....
What to ****** is problem where shouts are not seen until i dont press update...?? i have changed a litle bit the main table...but nothing that shuld affect on functionating...

what did you modify exactly??, i need mor info

Quote from: Quexinos on January 20, 2009, 01:39:00 AMI'm supposed to do what it says here right?
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1295;attach=72700;smf_version=1.1.6

I did but I always get errors :( when the traffic dies down a bit on my forum I'll try it again and post the error.

please post more information

Quote from: sibit on January 20, 2009, 10:04:03 AMyou dont have to change script.js, this mod works with its own .js files
HP_colorPicker.js
HP_shoutBox.js
HP_shoutBox_Mod.js


yeah its point that i cant understand.why when i set hot editorr smileyss become inactive

can you check this mod from this?
http://www.smfciyiz.biz/index.php/topic,1728.0.html

when i set hot editor i must change script.js this like and this problem will be occur

this code  
 

// Replaces the currently selected text with the passed text.
function replaceText(text, textarea)
{
   // Attempt to create a text range (IE).
   if (typeof(textarea.caretPos) != "undefined" && textarea.createTextRange)
   {
      var caretPos = textarea.caretPos;

      caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
      caretPos.select();
   }
   // Mozilla text range replace.
   else if (typeof(textarea.selectionStart) != "undefined")
   {
      var begin = textarea.value.substr(0, textarea.selectionStart);
      var end = textarea.value.substr(textarea.selectionEnd);
      var scrollPos = textarea.scrollTop;

      textarea.value = begin + text + end;

      if (textarea.setSelectionRange)
      {
         textarea.focus();
         textarea.setSelectionRange(begin.length + text.length, begin.length + text.length);
      }
      textarea.scrollTop = scrollPos;
   }
   // Just put it on the end.
   else
   {
      textarea.value += text;
      textarea.focus(textarea.value.length - 1);
   }
}


replace with

// Replaces the currently selected text with the passed text.
function replaceText(text, textarea)
{
   if(editor_type==1){
      text=BBCodeToHTML(text);
      WriteHTML(text,"editor");
   }
   else{
      WriteTEXT(text,"editor");
   }  
}

Ill ask makito to check tyhat, cuz thats strange

Quote from: duder673 on January 20, 2009, 02:37:14 PMMy problem with this is that their(Hack Park's) English website sends you in a loop.
If you contact them and tell them that whenever you click the link to check the English manual installation it refers you back to their main page, it would save you a lot of trouble.

Or tell them to post the instructions on this site to begin with  ::)


I cannot get it to work with a custom theme and have now idea what to do Spanish -> English translation isn't good enough.

Any pointers as to what I need to change?  Do I have to manipulate the index.php file and copy files to the new themse directory?


*Edit: fixed it myself using the excellent SMF Package Parser
http://resourcez.biz/PackageParser/index.php
Thank you for making it and posting it in this thread.

Anyone trying to use a custom theme with Hack Park shoutbox should be immediately referred to it imo.
Thanks to the mods and anyone else who is spending their time helping ppl in this thread.

Srry, we are working on lots of projects, some personal ones also, so the translation is slower than we hope, in few days i think ill get it translated, and im glad you make it work on your forum

Quote from: Sheree on January 22, 2009, 06:23:55 PMhi there I liked this mod a lot ... great job
I have one quick question .. is there anyway we can also show the members avatar before the name?

that could be done by manual modification of the files, also the next version of the shoutbox will have that option, so people just have to check a checkbox, and then the avatar appears

BTW, loved your site

Quote from: GhostWalker on January 22, 2009, 10:01:54 PMI love the Mod and it has worked well but as of late my members are getting this message:  

"session is invalid or you are not connected"

Any ideas as to why?

URL of your forum please

Quote from: CesarManara on January 24, 2009, 12:07:22 AMHello man, I'm here to day to report a bug on your mod.

# Hack's Park ||
$txt['hp_admin'] = 'Hack's Park';
$txt['hp_mod_shoutbox'] = 'ShoutBox';


the smf 1.1.7 template found an error in line "$txt['hp_admin'] = 'Hack's Park';"

the correct must be:

# Hack's Park ||
$txt['hp_admin'] = 'Hacks Park';
$txt['hp_mod_shoutbox'] = 'ShoutBox';


Without the '

Fix this the more fast as possible please

thats not an error, cuz its hack's park no hacks park, so the correct must be

Hack& #39;s Park
without the space between & and #

ill fix that, thanks
Dont PM me for support, unless I ask you to do that

OtaKumi
Hacks-Park

Marcus Forsberg

Quote from: JCS on January 24, 2009, 11:33:49 AM

Hack& #39;s Park
without the space between & and #

Use Hack\'s Park

That will get rid of the error, while the \ won't be visible.

JCS

sure, the scape works, but i preffer the & #39; ^^
Dont PM me for support, unless I ask you to do that

OtaKumi
Hacks-Park

GhostWalker

Quote from: JCS on January 24, 2009, 11:33:49 AM

Quote from: GhostWalker on January 22, 2009, 10:01:54 PMI love the Mod and it has worked well but as of late my members are getting this message: 

"session is invalid or you are not connected"

Any ideas as to why?

URL of your forum please


You will need to join or have me register you to see it. Let me know which you prefer.

http://www.huntershavens.org

EdwardR

Hi There,

I don't know if this is a regular problem or not but I've been trying to install the shoutbox on to the "impulse" theme by  Bloc, I've manually put the code in but the shoutbox isn't displaying?

Can this be solved? I already had the package installed on the default theme because that's where I got the code from, Did I go wrong somewhere? 

Any help would be appriceated, I've pasted the code below.. Thanks!

Ed x

<?php
// Version: 1.1.5; index

/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.

The init sub template should load any data and set any hardcoded options.

The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.

The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.

The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.

The menu sub template should display all the relevant buttons the user
wants and or needs.

For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/

// Initialize the template... mainly little settings.
function template_init()
{
global $context$settings$options$txt$boarddir;

/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';

/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;

// load custom language strings
if(loadLanguage('ThemeStrings') == false)
      
loadLanguage('ThemeStrings''english');

// make sure undefined actions use their own template
$settings['catch_action'] = array('layers' => array('main','pages'));

if($context['browser']['is_ie6'])
loadtemplate('ie6');
}
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 class="tborder" style="margin: 10px 0 10px 0;">
<div class="catbg" style="padding: 5px 15px 5px 10px;margin:0 auto;text-align:center;">
<a rel="nofollow" href="#" onclick="HP_shoutBox_sh(!HP_shoutBox[\'hd_msgs\'], \'msgs\'); return false;"><img id="hp_shoutbox_collapse" src="'
$settings['theme_url'], '/images/collapse.gif" alt="*" style="margin-right: 2ex;" align="right" /></a>
$HP_settings['shoutBox']['boxTitle'] . '</div>
<noscript>
<div class="windowbg" style="padding: 5px 15px 5px 10px;">' 
$txt['hs_sb_2'] . '</div></noscript>
<div id="hp_shoutbox_div_msgs">
<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&#38;#39;s Park colorPicker" target="_blank">(cc) Hack&#38;#39;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&#38;#39;s Park shoutBox" target="_blank">(cc) Hack&#38;#39;s Park</a></span></td></tr></table>
</div>
</div>'
;
}

// any special pages?
function template_pages_above()
{
global $context$settings$options$scripturl$txt;

echo '<div id="pages">';
if(isset($_GET['action']))
$what=$_GET['action'];

if(file_exists($settings['theme_dir'] . '/pages/' $what'.template.php'))
loadtemplate('pages/'.$what);
else
loadtemplate('pages/blank');

        
# Hack's Park ||
template_HP_shoutBoxMain();
}


function 
template_pages_below()
{
echo '</div>';
}

// The main sub template above the content.
function template_main_above()
{
global $context;

// decide...
if($context['browser']['is_ie6'])
template_ie6_above();
else
template_default_above();
}

function 
template_default_above()
{
global $context$settings$options$scripturl$txt$modSettings;

if($context['page_title']=='' && isset($_GET['action']))
$context['page_title']=$context['forum_name'].' - '.$_GET['action'];
elseif($context['page_title']=='' && !isset($_GET['action']))
$context['page_title']=$context['forum_name'];

// Show right to left and the character set for ease of translating.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"'
$context['right_to_left'] ? ' dir="rtl"' '''><head>
<meta http-equiv="Content-Type" content="text/html; charset='
$context['character_set'], '" />
<meta name="description" content="'
$context['page_title'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?fin11"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" media="print" />';


// theme css
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/impulse.css?fin11" />';

if($context['browser']['is_ie6'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/ie6.css?fin11" />';

if($context['browser']['is_ie7'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/ie7.css?fin11" />';

// Show all the relative links, such as help, search, contents, and the like.
echo '
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';

// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="'
$context['forum_name'], ' - RSS" href="'$scripturl'?type=rss;action=.xml" />';

// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="'
$scripturl'?topic='$context['current_topic'], '.0;prev_next=next" />';

// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' 
$scripturl '?board=' $context['current_board'] . '.0" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = '
, empty($options['collapse_header']) ? 'false' 'true'';

function shrinkHeader(mode)
{'
;

// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink").src = "'
$settings['theme_url'],'/theme" + (mode ? "/user2.png" : "/user.png");

document.getElementById("userbox").style.display = mode ? "none" : "";
current_header = mode;
}

// ]]></script>'
;

// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = '
, empty($options['collapse_header_ic']) ? 'false' 'true'';

function shrinkHeaderIC(mode)
{'
;

if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);'
;
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "'
$context['session_id'], '");';

echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");

document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";

current_header_ic = mode;
}
// ]]></script>
</head>
<body>'
;

echo '
<div id="mainarea">
<div id="topsection">'
;

if (empty($settings['header_logo_url']))
echo '
<h1 id="mainheader"><a href="' 
$scripturl '">'$context['forum_name'], '</a></h1>';
else
echo '
<a href="' 
$scripturl '"><img id="mainheader" src="'$settings['header_logo_url'], '" alt="'$context['forum_name'], '" /></a>';

echo '
<div id="muser">
<a href="#" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="'
$settings['theme_url'], '/theme/', empty($options['collapse_header']) ? 'user.png' 'user2.png''" alt="*" title="'$txt['upshrink_description'], '" align="bottom" style="margin: 0 1ex;" /></a>
<div id="userbox" class="content"'
, empty($options['collapse_header']) ? '' ' style="display: none;"''>';
if($context['user']['is_logged'])
{
echo '<b>'$txt['hello_member_ndt'], ' '$context['user']['name'] , '</b>
<br />'
;
if ($context['allow_pm'])
echo $txt[152], ' <a href="'$scripturl'?action=pm">'$context['user']['messages'], ' '$context['user']['messages'] != $txt[153] : $txt[471], '</a>'$txt['newmessages4'], ' '$context['user']['unread_messages'], ' '$context['user']['unread_messages'] == $txt['newmessages0'] : $txt['newmessages1'];
echo '.<br />';

echo '
<a href="'
$scripturl'?action=unread">'$txt['unread_since_visit'], '</a> <br />
<a href="'
$scripturl'?action=unreadreplies">'$txt['show_unread_replies'], '</a><br />';

// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>'
$txt[616], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $txt['approve_member'] : $context['unapproved_members'] . ' ' $txt['approve_members'], '</a> '$txt['approve_members_waiting'], '<br />';

}
else
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>
<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" class="middletext" style="text-align: center;margin: 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' $context['session_id'] . '\');"' '''>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">'
$txt['smf53'], '</option>
<option value="1440">'
$txt['smf47'], '</option>
<option value="10080">'
$txt['smf48'], '</option>
<option value="43200">'
$txt['smf49'], '</option>
<option value="-1" selected="selected">'
$txt['smf50'], '</option>
</select><br />
<input type="submit" value="'
$txt[34], '" /><br />
<span class="middletext">'
$txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>'
;

if (!empty($context['user']['avatar']))
echo '
<div id="myavatar">'
$context['user']['avatar']['image'], '</div>';

echo '
</div>
<span class="footer"></span>
</div>
</div>
<div id="topsection2">
<span class="left"></span>
<span class="right"></span>
<div class="content">
</div>
</div>
<div id="topsection3">
<span class="left"></span>
<span class="right"></span>
<div class="content"></div>
</div>
<div id="topmiddle">
<div class="left">
<div class="right">
<div class="content">
<h3 id="news">' 
$txt['impulse_newsline'] , '</h3>
$context['random_news_line'] , '
</div>
</div>
</div>
</div>
<div id="middlesection">
<span class="left"></span>
<span class="right"></span>
<div class="content">'
template_menu(), '</div>
</div>
<div id="content">
<div class="inner">
<div class="mid">'
;

// for TP 0.9.8
if(!empty($context['TPortal']['version']) && $context['TPortal']['version']=='098')
tpcode();

echo '<div style="overflow: auto;">';
}

function 
template_main_below()
{
global $context;

// decide...
if($context['browser']['is_ie6'])
template_ie6_below();
else
template_default_below();

}

function 
template_default_below()
{
global $context$settings$options$scripturl$txt;

echo '</div>';

// for TP 0.9.8
if(!empty($context['TPortal']['version']) && $context['TPortal']['version']=='098')
tpcode2();

echo '
</div>
</div>
</div>
<div id="footersection">
<span class="left"></span>
<span class="right"></span>
<div class="content"><div id="copywrite">' 
theme_copyright() , function_exists('tportal_version') ? '<div>' tportal_version() . '</div>' '' '<br /><strong>imPulse</strong> theme by <a href="http://www.tinyportal.net">Bloc</a></div></div>
</div>'
;

// Show the load time?
if ($context['show_load_time'])
echo '
<div id="rendertime">'
$txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</div>';

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '
<div id="linktree">'
;

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '">' $tree['name'] . '</a>' $tree['name'];

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '&nbsp;»&nbsp;';
}

echo '
</div>'
;
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin','tpadmin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('forum','staff','gallery','contact','search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// add buttons here
$context['menubox'] = array();

/*
'title' - the string the link will have
'link' - the actual link
'chosen' - which "current_action" this button belongs to.
*/

// home button
$context['menubox'][]=array(
'title' => $txt[103],
'link' => $scripturl,
'chosen' => '',
);

// TP onboard?
if (function_exists('tportal_version'))
$context['menubox'][]=array(
'title' => $txt['tp-forum'],
'link' => $scripturl '?action=forum',
'chosen' => '',
);

// help button
$context['menubox'][]=array(
'title' => $txt[119],
'link' => $scripturl.'?action=help',
'chosen' => 'help',
);


// search button
$context['menubox'][]=array(
'title' => $txt[182],
'link' => $scripturl.'?action=search',
'chosen' => 'search',
);

// admin button.This one have permission check for admin as well
if($context['allow_admin'])
$context['menubox'][]=array(
'title' => $txt[2],
'link' => $scripturl.'?action=admin',
'chosen' => 'admin',
);

// profile button
if($context['allow_edit_profile'])
$context['menubox'][]=array(
'title' => $txt[79],
'link' => $scripturl.'?action=profile',
'chosen' => 'profile',
);

// PM button
if($context['allow_pm'])
$context['menubox'][]=array(
'title' => $txt['pm_short'] . ' '. ($context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' ''),
'link' => $scripturl.'?action=pm',
'chosen' => 'pm',
);

// calendar button
if($context['allow_calendar'])
$context['menubox'][]=array(
'title' => $txt['calendar24'],
'link' => $scripturl.'?action=calendar',
'chosen' => 'calendar',
);

// members
if($context['allow_memberlist'])
$context['menubox'][]=array(
'title' => $txt[331],
'link' => $scripturl.'?action=mlist',
'chosen' => 'mlist',
);

// login button - just for guests
if(!$context['user']['is_logged'])
$context['menubox'][]=array(
'title' => $txt[34],
'link' => $scripturl.'?action=login',
'chosen' => 'login',
);

// register button - just for guests
if(!$context['user']['is_logged'])
$context['menubox'][]=array(
'title' => $txt[97],
'link' => $scripturl.'?action=register',
'chosen' => 'register',
);

// logout button - just for members
if($context['user']['is_logged'])
$context['menubox'][]=array(
'title' => $txt[108],
'link' => $scripturl.'?action=logout;sesc='$context['session_id'],
'chosen' => 'logout',
);

template_menu2();
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu2()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Show the start of the tab section.
echo '
<div id="mainmenu">
<ul>'
;

foreach ($context['menubox'] as $act => $button)
echo '
<li' 
$button['chosen']==$current_action ' class="chosen"' '' '><a href="'$button['link'], '">' $button['title'] , '</a> </li>';
echo '
</ul>
</div>'
;
}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="oldmenu">'
implode(''$button_strip) , '</td>';
}

function 
tpcode()
{
global $settings$context$options$txt;

echo '
<div id="innerframe2">
<table width="100%" cellspacing="0" cellpadding="2">
<tr>'
;


// TinyPortal integrated bars
if(!empty($settings['use_tp']) && $context['TPortal']['leftbar'])
{
echo '<td  class="padtop" width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' 'px; padding-top: 4px;padding-right: 1ex; " valign="top">
<div id="leftbarHeader" style="'
, empty($options['collapse_leftbar']) ? '' 'display: none;''padding-top: 15px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
        
TPortal_sidebar('left');
        echo 
' </div>
</td>'
;
}


echo '
<td width="100%" align="left" valign="top" style="padding-top: 15px; padding-bottom: 10px;" >'
;
        if(!empty(
$settings['use_tp']) && $context['TPortal']['centerbar'])
                     echo 
'<div>' TPortal_sidebar('center') , '</div>';

}

function 
tpcode2()
{
global $settings,$context$txt$options;

echo '
</td>'
;
// TinyPortal integrated bars
if(!empty($settings['use_tp']) && $context['TPortal']['rightbar'])
{
echo '<td  class="padtop" width="' ,$context['TPortal']['rightbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
                 <div id="rightbarHeader" style="'
, empty($options['collapse_rightbar']) ? '' 'display: none;''padding-top: 15px; width: ' ,$context['TPortal']['rightbar_width'], 'px;">';
        
TPortal_sidebar('right');
        echo 
'</div></td>';
}

echo '
</tr>
</table>
</div>'
;
}
?>

You got the best of me ... Now I'm losing it .. Oh Oh Oh la la la oh oh!

LinK187

I've successfully installed this mod via package manager. I've manually edited my theme. The box does not appear. There are no errors in the log. There must be something you didn't anticipate in your instructions.

How do I get the shoutbox to appear using this theme: http://custom.simplemachines.org/themes/index.php?lemma=718

Any help is much appreciated.

JCS

Quote from: EdwardR on January 25, 2009, 06:27:26 AMHi There,

I don't know if this is a regular problem or not but I've been trying to install the shoutbox on to the "impulse" theme by  Bloc, I've manually put the code in but the shoutbox isn't displaying?

Can this be solved? I already had the package installed on the default theme because that's where I got the code from, Did I go wrong somewhere? 

Any help would be appriceated, I've pasted the code below.. Thanks!

Ed x

Quote from: LinK187 on January 26, 2009, 07:13:10 AMI've successfully installed this mod via package manager. I've manually edited my theme. The box does not appear. There are no errors in the log. There must be something you didn't anticipate in your instructions.

How do I get the shoutbox to appear using this theme: http://custom.simplemachines.org/themes/index.php?lemma=718

Any help is much appreciated.

please make sure you both have this files where they belong

Sources/HP_shoutBox.php
Sources/HP_shoutBox_Manage.php
Sources/HP_shoutBox_Subs.php
Themes/"Your theme"/HP_colorPicker.js
Themes/"Your theme"/HP_shoutBox.js
Themes/"Your theme"/HP_shoutBox_Mod.js
Themes/"Your theme"/HP_shoutBox.template.php
Themes/"Your theme"/HP_shoutBox_Manage.template.php
Themes/"Your theme"/images/del.gif
Themes/"Your theme"/images/edit.gif
Themes/"Your theme"/images/loading.gif
Themes/"Your theme"/images/bbc/bgcolor.gif
Themes/"Your theme"/images/bbc/caretos.gif
Themes/"Your theme"/images/bbc/clean.gif
Themes/"Your theme"/images/bbc/fontcolor.gif
Themes/"Your theme"/images/bbc/nocolor.gif
Themes/"Your theme"/languages/HP_shoutBox.english.php
Themes/"Your theme"/languages/HP_shoutBox_Manage.english.php

Quote from: GhostWalker on January 25, 2009, 04:09:07 AMYou will need to join or have me register you to see it. Let me know which you prefer.

http://www.huntershavens.org

Ill be waiting for aproval ^^
Dont PM me for support, unless I ask you to do that

OtaKumi
Hacks-Park

LinK187

Quote from: JCS on January 26, 2009, 08:15:05 AM
Quote from: EdwardR on January 25, 2009, 06:27:26 AMHi There,

I don't know if this is a regular problem or not but I've been trying to install the shoutbox on to the "impulse" theme by  Bloc, I've manually put the code in but the shoutbox isn't displaying?

Can this be solved? I already had the package installed on the default theme because that's where I got the code from, Did I go wrong somewhere? 

Any help would be appriceated, I've pasted the code below.. Thanks!

Ed x

Quote from: LinK187 on January 26, 2009, 07:13:10 AMI've successfully installed this mod via package manager. I've manually edited my theme. The box does not appear. There are no errors in the log. There must be something you didn't anticipate in your instructions.

How do I get the shoutbox to appear using this theme: http://custom.simplemachines.org/themes/index.php?lemma=718

Any help is much appreciated.

please make sure you both have this files where they belong

Sources/HP_shoutBox.php
Sources/HP_shoutBox_Manage.php
Sources/HP_shoutBox_Subs.php
Themes/"Your theme"/HP_colorPicker.js
Themes/"Your theme"/HP_shoutBox.js
Themes/"Your theme"/HP_shoutBox_Mod.js
Themes/"Your theme"/HP_shoutBox.template.php
Themes/"Your theme"/HP_shoutBox_Manage.template.php
Themes/"Your theme"/images/del.gif
Themes/"Your theme"/images/edit.gif
Themes/"Your theme"/images/loading.gif
Themes/"Your theme"/images/bbc/bgcolor.gif
Themes/"Your theme"/images/bbc/caretos.gif
Themes/"Your theme"/images/bbc/clean.gif
Themes/"Your theme"/images/bbc/fontcolor.gif
Themes/"Your theme"/images/bbc/nocolor.gif
Themes/"Your theme"/languages/HP_shoutBox.english.php
Themes/"Your theme"/languages/HP_shoutBox_Manage.english.php

Quote from: GhostWalker on January 25, 2009, 04:09:07 AMYou will need to join or have me register you to see it. Let me know which you prefer.

http://www.huntershavens.org

Ill be waiting for aproval ^^

No worries I just removed it and installed nneos shoutbox, works perfect.

EdwardR

Quote from: JCS on January 26, 2009, 08:15:05 AM
Quote from: EdwardR on January 25, 2009, 06:27:26 AMHi There,

I don't know if this is a regular problem or not but I've been trying to install the shoutbox on to the "impulse" theme by  Bloc, I've manually put the code in but the shoutbox isn't displaying?

Can this be solved? I already had the package installed on the default theme because that's where I got the code from, Did I go wrong somewhere? 

Any help would be appriceated, I've pasted the code below.. Thanks!

Ed x

Quote from: LinK187 on January 26, 2009, 07:13:10 AMI've successfully installed this mod via package manager. I've manually edited my theme. The box does not appear. There are no errors in the log. There must be something you didn't anticipate in your instructions.

How do I get the shoutbox to appear using this theme: http://custom.simplemachines.org/themes/index.php?lemma=718

Any help is much appreciated.

please make sure you both have this files where they belong

Sources/HP_shoutBox.php
Sources/HP_shoutBox_Manage.php
Sources/HP_shoutBox_Subs.php
Themes/"Your theme"/HP_colorPicker.js
Themes/"Your theme"/HP_shoutBox.js
Themes/"Your theme"/HP_shoutBox_Mod.js
Themes/"Your theme"/HP_shoutBox.template.php
Themes/"Your theme"/HP_shoutBox_Manage.template.php
Themes/"Your theme"/images/del.gif
Themes/"Your theme"/images/edit.gif
Themes/"Your theme"/images/loading.gif
Themes/"Your theme"/images/bbc/bgcolor.gif
Themes/"Your theme"/images/bbc/caretos.gif
Themes/"Your theme"/images/bbc/clean.gif
Themes/"Your theme"/images/bbc/fontcolor.gif
Themes/"Your theme"/images/bbc/nocolor.gif
Themes/"Your theme"/languages/HP_shoutBox.english.php
Themes/"Your theme"/languages/HP_shoutBox_Manage.english.php

Quote from: GhostWalker on January 25, 2009, 04:09:07 AMYou will need to join or have me register you to see it. Let me know which you prefer.

http://www.huntershavens.org

Ill be waiting for aproval ^^

I've made sure everything's in the right place and still it's not showing? I'll PM you the board URL and some login details so you can see what I mean, I'm not exactly sure why it's not showing!

Thanks for your help so far,

Regards,

Ed x
You got the best of me ... Now I'm losing it .. Oh Oh Oh la la la oh oh!

JCS

Quote from: LinK187 on January 26, 2009, 08:52:23 AMNo worries I just removed it and installed nneos shoutbox, works perfect.

oks, thanks for trying

Quote from: EdwardR on January 26, 2009, 05:05:12 PMI've made sure everything's in the right place and still it's not showing? I'll PM you the board URL and some login details so you can see what I mean, I'm not exactly sure why it's not showing!

Thanks for your help so far,

Regards,

Ed x

i can use the shoutbox

http://www.theradiogossip.com/board/index.php?action=shoutbox

please send me your index.template.php file, so i can check it
Dont PM me for support, unless I ask you to do that

OtaKumi
Hacks-Park

Advertisement: