Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Nibogo on October 19, 2008, 11:41:06 AM

Title: SMFPacks.com Shoutbox, Chat
Post by: Nibogo on October 19, 2008, 11:41:06 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=1295)

(https://www.smfpacks.com/imagenes/nuevo_logo_mod.png) (https://www.smfpacks.com)

SMFPacks Shoutbox v1.1 - NIBOGO
Powerful Shoutbox Mod fully integrated and fully customizable with SMF with a lot of great features!


CHECK THE PRO VERSION: Search for gifs, Whisper, History, Download History, Notifications from forum, Images, Strickstough BBCode, Mini-Links, New layout for smileys, Icons instead of text, Dynamically change page title when new messages are received, and much more! Click here now! (http://www.smfpacks.com/index.php?action=shoutboxmod)


Website (http://www.smfpacks.com) |  Donate (http://www.smfpacks.com/donate.php) | My Mods (http://custom.simplemachines.org/mods/index.php?action=search;author=126412) | Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1295) | License (https://www.smfpacks.com/page/sa=smfpackslicense)


Important Info:
o This Mod was created by SMFPacks.com - The #1 Website for the Customization of your SMF.

SMFPacks.com Provides Other Great Packages:
- Reason for Editing Mod.
- Yet Another Global Announcements Mod.
- SMF Social Groups.
- SMF Links Directory.
- SMF Downloads Directory.
- SMF Dynamic Directory.
- Advanced Topic Prefix Mod.
- Advanced Invitations System.
- SMFPacks Shoutbox.
- Move Topic Notification.
- PM to New Members.
- Permissions Info.
- Next Post Level.
- Karma Buttons.
- SMF Multi Quote.
- Attachments in Topics.
- ZuneCard BBCODE.
- and much more visit us on SMFPacks.com

Original Author:
- makito

Developer:
- NIBOGO

Features:

Compatibility:
- 1.1.X
- 2.0

Special Thanks:
- makito (Original Author of the Mod)
- JCS (Spanish Translator)



Changelog:

1.1 - 27 May 2017
* Much easier installation.
- Support for SMF 1.1.X
+ Support for PHP 7.X
* New sound method for better compatibility.
! Minor tidy up!
+ Added "everywhere" as a key string to show the shoutbox across the entire forum!

1.0.5 - 02 April 2014
! SSL Links weren't converted property

1.0.4 - 14 July 2012
! SSL Links weren't converted property
! IE9 Issues

1.0.3 - 30 June 2011
! Fixed Moderation actions in pages different than 1. (Thanks to KeeKee for the fix)
! Auto focus on page load.
! Users could be logged while using the shoutbox.
! Shouts with ' couldn't be modified. (Thanks to Akyhne for the fix)

1.0.2 - 29 June 2011
@ Updated for SMF 2.0
Title: Re: HacksPark shoutBox
Post by: blondeamon on October 19, 2008, 01:13:35 PM
Im thinking of installing it.

Of course i can put it on the end of the page if i want right ?
Title: Re: HacksPark shoutBox
Post by: JCS on October 19, 2008, 01:16:42 PM
yeah, if you have any knowledge on html, you can put the shoutbox where you want it to be showed, also, you can ask for help
Title: Re: HacksPark shoutBox
Post by: blondeamon on October 19, 2008, 01:24:27 PM
Yeah i know some stuff.

I am installing it now on DilberMc , i am adding the edits manually on my files on Themes/DilberMc/index.template.php and etc
Title: Re: HacksPark shoutBox
Post by: blondeamon on October 19, 2008, 01:35:20 PM
Mate im having problems editing my index.template.php file.

Can you plz help me by adding the necessary code where it should be ?

Attached.(themes/dilbermc index file)
Title: Re: HacksPark shoutBox
Post by: JCS on October 19, 2008, 01:49:26 PM
here you got, if you have any problem, let me know
Title: Re: HacksPark shoutBox
Post by: blondeamon on October 19, 2008, 02:04:31 PM
Thanks.

Well i did all i should do , moved the files(.js and .gif , .php) to my custom themes directories according to themes/default. I even went to admin-->shoutbox-->"Sites where shoutBox will be printed" and put only forum there.

The shoutbox isnt showing somewhere..what should i do ?

(its attached, this one is the one of the default index.template.php)


P.S On the initial install it didnt install properly on the index.template.php file of the default theme but i didnt pay attention cause none of us is using te default theme , does it matter?
Title: Re: HacksPark shoutBox
Post by: JCS on October 19, 2008, 02:55:05 PM
look at this:

http://yourforum/index.php?action=shoutbox

if its working, everything should be working

think theres an issue with the tinyportal mod, so ill check the file and see what's going on
Title: Re: HacksPark shoutBox
Post by: Nibogo on October 19, 2008, 02:57:47 PM
Simply the best shoutbox of SMF

Thanks HP Team
Title: Re: HacksPark shoutBox
Post by: blondeamon on October 19, 2008, 04:01:01 PM
http://www.kamenos.gr/index.php?action=shoutbox  gives me a 404 error
Title: Re: HacksPark shoutBox
Post by: JCS on October 19, 2008, 04:06:29 PM
your forum isn't in the root folder

http://www.kamenos.gr/forum/index.php?action=shoutbox

its just me or there's no images??
Title: Re: HacksPark shoutBox
Post by: blondeamon on October 19, 2008, 04:41:36 PM
Yes there arent....although i moved all the necessary images to the appropriate DIlberMc's directories.

I followed the instructions on the parser. What should i do now to make it visible on my forum (and put the pics too)
Title: Re: HacksPark shoutBox
Post by: skokk on October 19, 2008, 07:50:14 PM
I have installed the shoutBox and as expected it only works with the default theme..  :(

What are the steps to install it on "BacknBlack114" theme? (..or any other custom theme)

Thanks in advance
Title: Re: HacksPark shoutBox
Post by: Nibogo on October 19, 2008, 09:28:09 PM
I have installed the shoutBox and as expected it only works with the default theme..  :(

What are the steps to install it on "BacknBlack114" theme? (..or any other custom theme)

Thanks in advance

Try the parser:

http://custom.simplemachines.org/mods/index.php?action=parse;mod=1295;attach=72700;smf_version=1.1.6
Title: Re: HacksPark shoutBox
Post by: Cal O'Shaw on October 20, 2008, 12:18:51 AM
Hello,

Not quite sure I understand all the options you've provided, but wish to know if I could use it as follows:

For Admins and Admin-selected groups only, as a way to communicate in real time during Maintenance Mode (1), or during certain times where relying upon PMs is far too slow.  We do NOT want it visible or available to the rest of the membership.

Will this work in that way?

Grazie

(1) We have a manual fix that allows hardcoded groups besides the Admins to log on during Maintenance Mode, though I would really like to see that feature as a proper mod...?
Title: Re: HacksPark shoutBox
Post by: SA™ on October 20, 2008, 12:52:53 AM
i just spent the  last few hours trying to figar this out how do you add thi to another page instead of just the forum index please
Title: Re: HacksPark shoutBox
Post by: SA™ on October 20, 2008, 12:59:33 AM
never mind i fagard it out cool shoutbox any news on getting it working with tp ?
Title: Re: HacksPark shoutBox
Post by: SA™ on October 20, 2008, 01:29:40 AM
lol never mind got it working with tp  :D ;D
Title: Re: HacksPark shoutBox
Post by: waronyou on October 20, 2008, 06:34:33 AM
how did you get it working with tp?"

Title: Re: HacksPark shoutBox
Post by: JCS on October 20, 2008, 06:52:38 AM
Yes there arent....although i moved all the necessary images to the appropriate DIlberMc's directories.

I followed the instructions on the parser. What should i do now to make it visible on my forum (and put the pics too)

PM sent

I have installed the shoutBox and as expected it only works with the default theme..  :(

What are the steps to install it on "BacknBlack114" theme? (..or any other custom theme)

Thanks in advance

You need to edit the index.template.php manually in order to show the shoutbox, try the package parser, and see what do you have to add to your file

lol never mind got it working with tp  :D ;D

glad you got it working now, btw, you can edit your posts ^^

how did you get it working with tp?"



you have to add the string

Code: [Select]
template_HP_shoutBoxMain();
where do you want the shoutbox to be showed, so just see carefully the file and put that string in the right place, also you can add an iframe an put in there the action for the shoutbox

Code: [Select]
index.php?action=shoutbox
Title: Re: HacksPark shoutBox
Post by: waronyou on October 20, 2008, 08:05:50 AM
this is where my shoutbox is at. whats up with that?
http://waronyou.com/forums/index.php?action=shoutbox

Im trying to put it in the top panel. Do I use script or phpbox. I tried both in various places. Im obviously reading this wrong.

Do I put one in a template and the other in the tp panel?
Title: Re: HacksPark shoutBox
Post by: alex30 on October 20, 2008, 10:23:15 PM
this is where my shoutbox is at. whats up with that?
http://waronyou.com/forums/index.php?action=shoutbox

Im trying to put it in the top panel. Do I use script or phpbox. I tried both in various places. Im obviously reading this wrong.

Do I put one in a template and the other in the tp panel?

How did you put "Log in" section aside, on the left side? Is there a mod that does that or you coded? Thanks.
Title: Re: HacksPark shoutBox
Post by: waronyou on October 20, 2008, 11:41:53 PM
aww I thought my help arrived... Its  tinyportal, im trying to insert this damn shoutbox there. 


I disabled the shoutbox so my link takes you to the forum. but when its enabled the shoutbox is in its own screen,...
Title: Re: HacksPark shoutBox
Post by: JCS on October 21, 2008, 07:12:51 AM
I haven't use tiny portal, but let me check and see where the shoutbox string must be to show it with tiny portal, or if it needs additional lines of code
Title: Re: HacksPark shoutBox
Post by: SA™ on October 21, 2008, 11:15:31 AM
in shoutbox admin you can add it to any page tis how i got it working with tp

look for

Sites where shoutBox will be printed (?action=)

and in the box i have this to show it in arcade and works

boardindex;collapse;forum;arcade
Title: Re: HacksPark shoutBox
Post by: ryozo on October 22, 2008, 01:02:04 AM
installed this successfully on 1.1.6 with default theme.
i cab make it appear to the other page by adding -- "pm" , "chat", etc in the admin's 'Sites where shoutBox will be printed (?action=)'.

but i cant make it appear on the forum index itself.
the deafult value is boardindex;collapse; - nothing happens

an suggesstions? thanks!


thanks wdm2005!
I'll just wait for other updates how to integrate this one into tportal blocks.
Title: Re: HacksPark shoutBox
Post by: SA™ on October 22, 2008, 01:10:02 AM
add forum to the arrey where you put pm and what not
Title: Re: HacksPark shoutBox
Post by: DBO on October 22, 2008, 04:19:00 AM
nice shoutbox this.....well done to the author  ;)

just two questions i would like to ask

1. where and how would i add the code to get bbcode image tag to work with this shoutbox?

2. is there a way that i can set this so my members can post clickable links directly in to the shoutbox without using the add url button?
Title: Re: HacksPark shoutBox
Post by: JCS on October 22, 2008, 06:37:30 AM
nice shoutbox this.....well done to the author  ;)

just two questions i would like to ask

1. where and how would i add the code to get bbcode image tag to work with this shoutbox?

2. is there a way that i can set this so my members can post clickable links directly in to the shoutbox without using the add url button?

1. theres no way to set img bbcode yet
2. the only way to add an url is with the url button

the shoutbox doesn't have this options, cuz thats not essential on a shoutbox, but just send your suggestions trough mp and every suggestion will be studied

for now, the new version of the shoutbox is being prepared, and it got alert when a message came, studying the possibility of send private messages and other stuff, so if there's any suggestion, we are gonna read it, and see if its possible to bring on soon

wdm2005, thanks for answer :p ^^
Title: Re: HacksPark shoutBox
Post by: waronyou on October 22, 2008, 06:59:48 AM
my problem has to do with my home has no action, I can load it into a category with this action below,. I cant figure out tp cuz of the action thing again.

home http://waronyou.com/forums/index.php
action -- - -- >
http://waronyou.com/forums/index.php?action=collapse;c=1;sa=expand#1

;forums doesnt work either but someone said it popped up and made a post about it and then it was gone.


Mack put the action from pm,categorizes,or home if you got one.
 Look at the url on the top of the screen. And take the action out of it.
Title: Re: HacksPark shoutBox
Post by: brtz on October 22, 2008, 07:15:55 AM
Very nice mod JCS.

I was wondering if its possible to remove some of the features to get a clean shoutbox. (like links, font, backgroundcolor etc)?


And is it possible to convert this mod into a vertical one, because i want to move it to the left side of the infocenter :)

Keep up the good work!
Title: Re: HacksPark shoutBox
Post by: ryozo on October 22, 2008, 12:38:01 PM
Very nice mod JCS.

I was wondering if its possible to remove some of the features to get a clean shoutbox. (like links, font, backgroundcolor etc)?


And is it possible to convert this mod into a vertical one, because i want to move it to the left side of the infocenter :)

Keep up the good work!

this would be a great idea
Title: Re: HacksPark shoutBox
Post by: Mack450 on October 22, 2008, 03:15:31 PM
i did this and it didn't even work with the default theme!!
Title: Re: HacksPark shoutBox
Post by: Mack450 on October 22, 2008, 03:22:26 PM
Here is my index.template.php for the theme i use. I did the edits for it but its a no go. I cant see to find the things that i need to edit for index.php

Title: Re: HacksPark shoutBox
Post by: akateisakate on October 22, 2008, 06:12:50 PM
I've read this thread and I'm still a little confused. I have 1.1.6, default theme, and I do not have TP. I only have a couple other Mods installed- AJAX Instant Quick Reply, Youtube BBCode, and LimitPostsPerDay.

I can't see the shoutbox on my board index. I've also tried changing the option on the AdminPanel to "boardindex;collapse;forum" as mentioned. So what do I do?

Thank you. :)

Also, could the coding for my index.template.php please be edited for this to shown toward the bottom of the forum- This is my babylon theme? Thank you very much! It is attached.


Title: Re: HacksPark shoutBox
Post by: ryozo on October 22, 2008, 06:38:08 PM
I've read this thread and I'm still a little confused. I have 1.1.6, default theme, and I do not have TP. I only have a couple other Mods installed- AJAX Instant Quick Reply, Youtube BBCode, and LimitPostsPerDay.

I can't see the shoutbox on my board index. I've also tried changing the option on the AdminPanel to "boardindex;collapse;forum" as mentioned. So what do I do?

Thank you. :)

Also, could the coding for my index.template.php please be edited for this to shown toward the bottom of the forum- This is my babylon theme? Thank you very much! It is attached.

i encountered this problem early today.
i just entered "forum" in the field.
it showed in the home/forum page afterwards.
after some refreshes its gone.
i entered "PM" to check if itll show in message center, it did.
i changed it to "forum" again, but its not showing anymore.
Title: Re: HacksPark shoutBox
Post by: alex30 on October 22, 2008, 06:58:06 PM
Now my quick question.

Is there a negative aspect of the shoutbox, don't you
think that members will post comments only there instead of expending forum boards?

How does it improve forum if you just started?
Title: Re: HacksPark shoutBox
Post by: akateisakate on October 22, 2008, 06:59:59 PM
Now my quick question.

Is there a negative aspect of the shoutbox, don't you
think that members will post comments only there instead of expending forum boards?

How does it improve forum?

That's up to you. If members are having random coversation in threads, then this is good to avoid that clutter.
Title: Re: HacksPark shoutBox
Post by: alex30 on October 22, 2008, 07:02:03 PM
It seems that alll forum conversations will be ended in shoutbox.

How to disable viewing shoutbox for guests, couldn't find this option?
Title: Re: HacksPark shoutBox
Post by: JCS on October 22, 2008, 08:48:02 PM
my problem has to do with my home has no action, I can load it into a category with this action below,. I cant figure out tp cuz of the action thing again.

home http://waronyou.com/forums/index.php
action -- - -- >
http://waronyou.com/forums/index.php?action=collapse;c=1;sa=expand#1

Mack put the action from pm,categorizes,or home if you got one.
 Look at the url on the top of the screen. And take the action out of it.


in action, at the final put ;forum, it should work

Very nice mod JCS.

I was wondering if its possible to remove some of the features to get a clean shoutbox. (like links, font, backgroundcolor etc)?


And is it possible to convert this mod into a vertical one, because i want to move it to the left side of the infocenter :)

Keep up the good work!

actually, as you can see, the shoutbox doesn't have so much features, it was meant to be that... a shotubox, i understand what you are trying to say..., what do you think about a modification, that allow you to put a "light" version of the shoutbox??

i did this and it didn't even work with the default theme!!

its working: http://www.atvsector.com/index.php?action=shoutbox

just do the same that i told to waronyou, add ";forum" in actions

please, if you need something, you can always edit your post, this way is easier for me to read all your questions

I've read this thread and I'm still a little confused. I have 1.1.6, default theme, and I do not have TP. I only have a couple other Mods installed- AJAX Instant Quick Reply, Youtube BBCode, and LimitPostsPerDay.

I can't see the shoutbox on my board index. I've also tried changing the option on the AdminPanel to "boardindex;collapse;forum" as mentioned. So what do I do?

Thank you. :)

Also, could the coding for my index.template.php please be edited for this to shown toward the bottom of the forum- This is my babylon theme? Thank you very much! It is attached.

can you please send me your forum url, thanks

i encountered this problem early today.
i just entered "forum" in the field.
it showed in the home/forum page afterwards.
after some refreshes its gone.
i entered "PM" to check if itll show in message center, it did.
i changed it to "forum" again, but its not showing anymore.

same as akateisakate

Now my quick question.

Is there a negative aspect of the shoutbox, don't you
think that members will post comments only there instead of expending forum boards?

How does it improve forum if you just started?

mmm don't wanna be rude, but if a shoutbox replaces the forum board, then the problem is the forum..., at least I hate topics that became a chat, thats why i got a shoutbox on my site

It seems that alll forum conversations will be ended in shoutbox.

How to disable viewing shoutbox for guests, couldn't find this option?

doesn't have the option, that was a mistake :P, but with a manual edit to your index.template.php, you can do that... so

# Hack's Park ||
template_HP_shoutBoxMain();

# Hack's Park ||
if ($context['user']['is_logged'])
template_HP_shoutBoxMain();
Title: Re: HacksPark shoutBox
Post by: akateisakate on October 22, 2008, 08:55:17 PM
Thanks so much for the quick response!

http://katyperryforum.com
And I did find it at http://katyperryforum.com/index.php?action=shoutbox but no dice.

:)
Title: Re: HacksPark shoutBox
Post by: JCS on October 22, 2008, 09:03:27 PM
Thanks so much for the quick response!

http://katyperryforum.com
And I did find it at http://katyperryforum.com/index.php?action=shoutbox but no dice.

:)

add this lines where you want to show the mod


# Hack's Park ||
template_HP_shoutBoxMain();
Title: Re: HacksPark shoutBox
Post by: akateisakate on October 22, 2008, 09:40:40 PM
Thanks so much for the quick response!

http://katyperryforum.com
And I did find it at http://katyperryforum.com/index.php?action=shoutbox but no dice.

:)

add this lines where you want to show the mod


# Hack's Park ||
template_HP_shoutBoxMain();

Thanks, but due to my crappy PHP coding skills, I keep getting parse errors wherever I place it. I looked at the manual edit files and I just stink. Any advice?
Title: Re: HacksPark shoutBox
Post by: alex30 on October 22, 2008, 10:57:05 PM
Does anyone know how to place this shoutbox on the top of stats?

Thanks you.
Title: Re: HacksPark shoutBox
Post by: Cal O'Shaw on October 22, 2008, 11:44:54 PM
Asking my question another way:

1) Can I set up the shoutbox to be visible ONLY to Admins and Global Moderators to use when we need to communicate and coordinate in real time?

2) Can the shoutbox be made invisible and unusable by everyone else (guests and members)?

Grazie

Cal
Title: Re: HacksPark shoutBox
Post by: brtz on October 23, 2008, 03:55:06 AM
actually, as you can see, the shoutbox doesn't have so much features, it was meant to be that... a shotubox, i understand what you are trying to say..., what do you think about a modification, that allow you to put a "light" version of the shoutbox??

That would be very nice JCS :)

Do u have any idea if it's possible to change it into a horizontal box, placed on the left side of the infocenter? I had something like that with an old YaBB forum and it was great. (see screenshot :))
Title: Re: HacksPark shoutBox
Post by: JCS on October 23, 2008, 08:08:44 AM
Thanks, but due to my crappy PHP coding skills, I keep getting parse errors wherever I place it. I looked at the manual edit files and I just stink. Any advice?

PM sent

Does anyone know how to place this shoutbox on the top of stats?

Thanks you.

abobe the stats is on the sats page???, or abobe the info center on the index of the forum??

Asking my question another way:

1) Can I set up the shoutbox to be visible ONLY to Admins and Global Moderators to use when we need to communicate and coordinate in real time?

2) Can the shoutbox be made invisible and unusable by everyone else (guests and members)?

Grazie

Cal

unfortunately, there's an issue with the permissions, but that wold change on a newest version that is being prepared

That would be very nice JCS :)

Do u have any idea if it's possible to change it into a horizontal box, placed on the left side of the infocenter? I had something like that with an old YaBB forum and it was great. (see screenshot :))

its possible to do that, it just need some work, give us some time ^^
Title: Re: HacksPark shoutBox
Post by: Mack450 on October 23, 2008, 08:27:37 AM
Still a no go. I put ";forum" in the "Sites where shoutBox will be printed (?action=)" Box

and still its not even showing up on my default skin.
Title: Re: HacksPark shoutBox
Post by: JCS on October 23, 2008, 08:33:20 AM
mmm then a manual edit must be done, please send me your index.template.php
Title: Re: HacksPark shoutBox
Post by: Mack450 on October 23, 2008, 09:17:29 AM
Ok here is the index.template.php to the theme I use. This is not the default theme. Would you like the default theme index template also? It is not working on the default theme either.
Title: Re: HacksPark shoutBox
Post by: alex30 on October 23, 2008, 09:20:29 AM
Just tell me please where to replace code of shoutbox so it appears over index stats on the bottom.
Title: Re: HacksPark shoutBox
Post by: brtz on October 23, 2008, 09:48:44 AM

its possible to do that, it just need some work, give us some time ^^

great news, really looking forward to it! Let me know if u need someone to test it :)

Thanks!
Title: Re: HacksPark shoutBox
Post by: akateisakate on October 23, 2008, 11:29:00 AM
Thanks, but due to my crappy PHP coding skills, I keep getting parse errors wherever I place it. I looked at the manual edit files and I just stink. Any advice?

PM sent

I didn't get a PM...
Title: Re: HacksPark shoutBox
Post by: ryozo on October 23, 2008, 11:44:33 AM
JCS, mine is already working.
i setup a frontpage, so it became the homepage.
and the forum page can now be invoke using the action=forum.
so adding forum in the HP's setting will force it to show in the forum page. :D

thanks thanks!
Title: Re: HacksPark shoutBox
Post by: JCS on October 23, 2008, 09:07:09 PM
Ok here is the index.template.php to the theme I use. This is not the default theme. Would you like the default theme index template also? It is not working on the default theme either.

don't know if this is what are you looking for :P, if you want it to be displayed in other part of the site, just tell me

great news, really looking forward to it! Let me know if u need someone to test it :)

Thanks!

ill let you know, thanks for your offer, and your suggestion

I didn't get a PM...

Solved

JCS, mine is already working.
i setup a frontpage, so it became the homepage.
and the forum page can now be invoke using the action=forum.
so adding forum in the HP's setting will force it to show in the forum page. :D

thanks thanks!

glad it works
Title: Re: HacksPark shoutBox
Post by: Mack450 on October 23, 2008, 09:58:34 PM
Hey it works! Thanks man! Also. Is there a way to put it on every page?

Also, is there a way to disable the delay when you refresh the page and see the shoutbox?
Title: Re: HacksPark shoutBox
Post by: JCS on October 23, 2008, 11:42:39 PM
Hey it works! Thanks man! Also. Is there a way to put it on every page?

Also, is there a way to disable the delay when you refresh the page and see the shoutbox?

you can display it in every page you got an action

mmm sorry but i don't understand your question
Title: Re: HacksPark shoutBox
Post by: alex30 on October 24, 2008, 12:48:57 AM
Guys can you add an otpion "hide from guests" and maybe other groups if possible?

Some of the buttons don't appear, will you fix that?

How to hide it from guests by the way, is there manual adding?
Title: Re: HacksPark shoutBox
Post by: mcmaddysmum on October 24, 2008, 04:52:01 AM
Hi, I wonder if you could help me too???

I have downloaded the "package" and installed it - however it doesn't show anywhere....

I am using DilberMC...

I am very new to all this - so do not have any idea how to do my own modifications etc...  :D
Title: Re: HacksPark shoutBox
Post by: JCS on October 24, 2008, 06:49:18 AM
Guys can you add an otpion "hide from guests" and maybe other groups if possible?

Some of the buttons don't appear, will you fix that?

How to hide it from guests by the way, is there manual adding?

told you before, please read my answers

and yes, the permissions are gonna be better on future versions

It seems that alll forum conversations will be ended in shoutbox.

How to disable viewing shoutbox for guests, couldn't find this option?

doesn't have the option, that was a mistake :P , but with a manual edit to your index.template.php, you can do that... so

   # Hack's Park ||
   template_HP_shoutBoxMain();

   # Hack's Park ||
   if ($context['user']['is_logged'])
      template_HP_shoutBoxMain();

Hi, I wonder if you could help me too???

I have downloaded the "package" and installed it - however it doesn't show anywhere....

I am using DilberMC...

I am very new to all this - so do not have any idea how to do my own modifications etc...  :D

please, use a package parser to see what modifications you should do and where, follow this link:

http://resourcez.biz/PackageParser/ (http://resourcez.biz/PackageParser/)
Title: Re: HacksPark shoutBox
Post by: synicfan on October 24, 2008, 08:29:08 AM
This is a GREAT shoutbox.
thank you so much!

I have a question. I want to make the minimum message sent 1 character.
it will not go any less than 3 characters even though in the admin settings I changed it to 1.

Can you help please?

Thank you!
Title: Re: HacksPark shoutBox
Post by: Mack450 on October 24, 2008, 10:00:19 AM
This will help you understand what i am saying. I refresh the page and the content of the shoutbox doesn't show up for awhile.

http://screencast.com/t/kBrLz0pw
Title: Re: HacksPark shoutBox
Post by: makito on October 24, 2008, 12:04:11 PM
Also, is there a way to disable the delay when you refresh the page and see the shoutbox?

This will help you understand what i am saying. I refresh the page and the content of the shoutbox doesn't show up for awhile.

http://screencast.com/t/kBrLz0pw

Hi
could you please send me the details of your browser? maybe after that, I could need the details of your os

Thanks


I have a question. I want to make the minimum message sent 1 character.
it will not go any less than 3 characters even though in the admin settings I changed it to 1.

Can you help please?

I must check it before get any answer, maybe you have found a bug  :P
Sorry

Edit

I found my error  O:)

Please go to $themeurl/HP_shoutBox.js and delete all lines between 33 and 38

if (document.forms.shoutbox.msg.value.length <= 2) {
alert(HP_shoutBox["lng_empty"]);
return;
}

Or simply change the 2 with 1

if (document.forms.shoutbox.msg.value.length <= 1) {


Greetings
Title: Re: HacksPark shoutBox
Post by: JCS on October 24, 2008, 12:08:30 PM
This is a GREAT shoutbox.
thank you so much!

I have a question. I want to make the minimum message sent 1 character.
it will not go any less than 3 characters even though in the admin settings I changed it to 1.

Can you help please?

Thank you!

don't have an answer right now, but when i came back, ill gave you one

This will help you understand what i am saying. I refresh the page and the content of the shoutbox doesn't show up for awhile.

http://screencast.com/t/kBrLz0pw (http://screencast.com/t/kBrLz0pw)

makito already gave you an answer xD
Title: Re: HacksPark shoutBox
Post by: brtz on October 24, 2008, 07:51:49 PM
This will help you understand what i am saying. I refresh the page and the content of the shoutbox doesn't show up for awhile.

http://screencast.com/t/kBrLz0pw

I have the same 'problem' on my site. Removed the mod for the time being, because its quite annoying.

I'm running the latest FireFox and so are my members :)
Title: Re: HacksPark shoutBox
Post by: tivaelydoc on October 28, 2008, 10:07:23 PM
Thanks so much for the quick response!

http://katyperryforum.com
And I did find it at http://katyperryforum.com/index.php?action=shoutbox but no dice.

:)

add this lines where you want to show the mod


# Hack's Park ||
template_HP_shoutBoxMain();

Thanks, but due to my crappy PHP coding skills, I keep getting parse errors wherever I place it. I looked at the manual edit files and I just stink. Any advice?

I'm having the same problem.

As well, how do you add additional features to it such as font size and what not?
Title: Re: HacksPark shoutBox
Post by: tivaelydoc on October 29, 2008, 03:51:19 PM
Also, how do you make the maximum length of the chat longer?


I want it longer then 20 lines.
Title: Re: HacksPark shoutBox
Post by: genieuk on October 30, 2008, 09:45:58 AM
Hi,

I am thinking about installing this mod, can you tell me wheter it uses allot of bandwidth etc?

Thanks,
Mathew
Title: Re: HacksPark shoutBox
Post by: qubbah on October 30, 2008, 10:43:39 AM
where is my shoutbox.

i try install it in 2 site. One in fresh. But i dont see where is the shoutbox. I have no problem when install it.
Title: Re: HacksPark shoutBox
Post by: qubbah on October 30, 2008, 10:54:12 AM
how can i put it in block for tp
Title: Re: HacksPark shoutBox
Post by: fiveflat on October 30, 2008, 11:54:46 AM
Good question qubbah.
I'd like to put it in a block for simpleportal as well...
Title: Re: HacksPark shoutBox
Post by: JCS on October 31, 2008, 06:36:03 AM
I have the same 'problem' on my site. Removed the mod for the time being, because its quite annoying.

I'm running the latest FireFox and so are my members :)

the shoutbox is going to show the mesages depends on the refresh time you set on the admin panel

Also, how do you make the maximum length of the chat longer?


I want it longer then 20 lines.

you could set that on the administration panel

where is my shoutbox.

i try install it in 2 site. One in fresh. But i dont see where is the shoutbox. I have no problem when install it.

are you using a custom template?

how can i put it in block for tp

Good question qubbah.
I'd like to put it in a block for simpleportal as well...

dont know, but gonna check TP and Simple portal and then ill give you guys an answer

Hi,

I am thinking about installing this mod, can you tell me wheter it uses allot of bandwidth etc?

Thanks,
Mathew

sorry for not answering before, this is a full ajax based shoutbox, it doesnt consume lots of bandwith, it was codded in order to optimize the reloads, the messages fetch from the DB, etc..., also your page is is not gonna be affected on the refresh or something

I'm having the same problem.

As well, how do you add additional features to it such as font size and what not?

PM sent
Title: Re: HacksPark shoutBox
Post by: tivaelydoc on October 31, 2008, 03:48:50 PM

Also, how do you make the maximum length of the chat longer?


I want it longer then 20 lines.

you could set that on the administration panel


There is nothing in there like that. Would I have to add it?
Title: Re: HacksPark shoutBox
Post by: qtime on October 31, 2008, 05:53:15 PM
This is a great future, we can use it as a chat and shoutbox too.
I have a very busy forum, over 1000 members online at 1 time, so I was affraid this kind of features will kill my server, but no problem at all, even with the original refresh rate.

Thanks from me and a lot of my forum members!
Title: Re: HacksPark shoutBox
Post by: ryozo on October 31, 2008, 07:58:10 PM
JCS

is there any way to remove these?

thanks
Title: Re: HacksPark shoutBox
Post by: Nibogo on October 31, 2008, 08:09:19 PM
JCS

is there any way to remove these?

thanks

Why you want to remove the bbcodes??
Title: Re: HacksPark shoutBox
Post by: BlackVenom2 on October 31, 2008, 09:25:26 PM
Finally a good looking Shoutbox, lol. Thanks for it!


Problem:
Code: [Select]


Template Parse Error!
There was a problem loading the /Themes/graytech111/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 (\).


Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/graytech111/index.template.php on line 161

152: <br />
153: ' . $txt['hs_sb_59'] . ':
154: <table cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #8d8d8d; margin: 2px 0 8px 0;">
155: <tr><td id="hp_colorpicker_div_show" style="background-color: #FFFFFF;">
156: <img border="0" src="', $settings['images_url'], '/blank.gif" width="80" height="18" alt="" /></td></tr></table>
157: ' . $txt['hs_sb_60'] . ':
158: <table cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #8d8d8d; margin-top: 2px;">
159: <tr><td id="hp_colorpicker_div_select" style="background-color: #FFFFFF;">
160: <img border="0" src="', $settings['images_url'], '/blank.gif" width="80" height="18" alt="" /></td></tr></table></td>

161: </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>

162: </div></div></td></tr></table>
163: <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" />';
164:
165: // Smilies
Title: Re: HacksPark shoutBox
Post by: Easyone on November 01, 2008, 11:46:42 AM
Hey,

I'm using SMF 1.1.6 and SimplePortal. So it works like that :
Index url : http://mysite.com/forum/index.php
Forum url : http://mysite.com/forum/index.php?action=forum

The shoutbox is displayed on the forum page but not on the index. Anyway to do it ?

Another problem : I'm french and if I change the forum language, there's no more link in the admin panel, even if I rename the default/languages files to french.
Title: Re: HacksPark shoutBox
Post by: JCS on November 01, 2008, 08:18:41 PM
Finally a good looking Shoutbox, lol. Thanks for it!

Please send me your index.template.php

Hey,

I'm using SMF 1.1.6 and SimplePortal. So it works like that :
Index url : http://mysite.com/forum/index.php
Forum url : http://mysite.com/forum/index.php?action=forum

The shoutbox is displayed on the forum page but not on the index. Anyway to do it ?

Another problem : I'm french and if I change the forum language, there's no more link in the admin panel, even if I rename the default/languages files to french.

can you please check my translation to french of the language packages, Im studying french, but dont know if the translation is a god one :p

im studying a way to put the shoutbox in a block on simple portal and tiny portal, but cuz i havent use those mods, i have to search a lot xD

give us some time please, while, you can do this:

create a block on the index of your forum trough the admin panel of the portal, and there you can add an iframe containing the shoutbox

Code: [Select]
http://yourforum.com/index.php?action=shoutbox
Title: Re: HacksPark shoutBox
Post by: ryozo on November 02, 2008, 11:57:11 AM
Why you want to remove the bbcodes??

trying to make it look simple as it could be.
so all shouts are plain and uniform (no colors, no bold letters, no backgrounds)
and also there are two buttons in there that are blanks/of no use?
thanks
Title: Re: HacksPark shoutBox
Post by: Easyone on November 02, 2008, 02:55:10 PM
I must be blind, but I didn't find the french package. Nothing here (http://www.hackspark.com/manuales/smf-shoutbox-agregar-lenguaje_6.0.html).
I'll try the iframe.

Thanks.
Title: Re: HacksPark shoutBox
Post by: EMOrtal on November 02, 2008, 03:35:09 PM
Any chances of getting this for 2.0 Beta 4?
Title: Re: HacksPark shoutBox
Post by: JCS on November 02, 2008, 03:52:09 PM
trying to make it look simple as it could be.
so all shouts are plain and uniform (no colors, no bold letters, no backgrounds)
and also there are two buttons in there that are blanks/of no use?
thanks

those blanks ones actually are used, if you select a bgcolor or a font face color, you'll see the color you selected there

to remove them, you have to fin the bbcode strings on the hp_shoutbox_template funciotn on the index.template.php

I must be blind, but I didn't find the french package. Nothing here (http://www.hackspark.com/manuales/smf-shoutbox-agregar-lenguaje_6.0.html).
I'll try the iframe.

Thanks.

haven't add the French one yet, if you can help me correcting the translation, then ill send you the files trough mp

Any chances of getting this for 2.0 Beta 4?

haven't use 2.0, but i can see if its easy or not xD
Title: Re: HacksPark shoutBox
Post by: EMOrtal on November 02, 2008, 08:33:38 PM
Any chances of getting this for 2.0 Beta 4?

haven't use 2.0, but i can see if its easy or not xD
[/quote]

It would be greatly appreciated  :D
Title: Re: HacksPark shoutBox
Post by: BlackVenom2 on November 02, 2008, 10:59:21 PM
JCS:

here it is (http://scriptcore.net/ftp/index.template.txt). I changed it to a text for simplicity. Thanks
Title: Re: HacksPark shoutBox
Post by: ryozo on November 03, 2008, 01:23:37 AM

those blanks ones actually are used, if you select a bgcolor or a font face color, you'll see the color you selected there

to remove them, you have to fin the bbcode strings on the hp_shoutbox_template funciotn on the index.template.php



thank you for clarification
Title: Re: HacksPark shoutBox
Post by: tivaelydoc on November 03, 2008, 04:23:51 PM
How do you add additional font modifications to it? Similar to all the modifications in this reply box.

As well, is there a way to add a code so that you can change the maximum chat length?
Title: Re: HacksPark shoutBox
Post by: Easyone on November 04, 2008, 03:10:05 PM
haven't add the French one yet, if you can help me correcting the translation, then ill send you the files trough mp

I'll try to help, you can send me the files. :)
Title: Re: HacksPark shoutBox
Post by: Martingonnella on November 05, 2008, 04:42:48 AM
I'm changing the code a little on Install.XML, but everytime I change the code and Zip it..As soon as I upload it I recieve "The package you tried to upload either is not a valid package or has become corrupted. "

I'm only changing one letter, but it seems anything I touch and zip it, it says the same thing. Please help or show me a different methos of changing code and uploading it. Thanks
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on November 05, 2008, 06:52:06 PM
please, use a package parser to see what modifications you should do and where, follow this link:

http://resourcez.biz/PackageParser/ (http://resourcez.biz/PackageParser/)

Before I take the dive to mod my theme (Aa New Damage), I just wanted quick verification here, as I'm a bit retarded in these matters; I installed on default, and it works beautifully.  I went to the package parser above to see what I need to change in the index.template to get it to show on Aa New Damage, selected INSTALL and ONLY THEME EDITS.  I've got only two edits to make; the first one a big block, and the second a very small adjustment. Question...

The second edit...does it go before that right bracket above the word 'function' (position 1), or before the word 'function' itself (position 2)?  My guess is position 1, but I'm asking because in my theme, the right bracket is at the very end of the box above the word 'function', which appears in the next box below and that's throwing me off.  Just double checking...

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg399.imageshack.us%2Fimg399%2F1774%2Fbracket2ua2.jpg&hash=67fddee6dfc461c3aae70b6931f7e5fd)
Title: Re: HacksPark shoutBox
Post by: Pwhheee on November 06, 2008, 01:23:51 AM
Im having a problem. Now when i enter the site this is what i get;

Database Error
Table 'fpsforums_org.smf_hp_settings' doesn't exist
File: /customers/fpsforums.org/fpsforums.org/httpd.www/Sources/HP_shoutBox_Subs.php
Line: 106

Heres the site.
http://www.fpsforums.org/index.php

Whats wrong? I installed it correctly. Its urgent so please help me!

Please...?
Title: Re: HacksPark shoutBox
Post by: JCS on November 06, 2008, 08:47:22 AM
How do you add additional font modifications to it? Similar to all the modifications in this reply box.

As well, is there a way to add a code so that you can change the maximum chat length?

in the admin panel you got an input to put in there the name of the fonts allowed to use in the shoutbox, just add it, and make sure you have the font on your server.

I'll try to help, you can send me the files. :)

thanks, MP sent.

I'm changing the code a little on Install.XML, but everytime I change the code and Zip it..As soon as I upload it I recieve "The package you tried to upload either is not a valid package or has become corrupted. "

I'm only changing one letter, but it seems anything I touch and zip it, it says the same thing. Please help or show me a different methos of changing code and uploading it. Thanks

actually I don't know, make sure that the file names and stuff like that are fine, if you want put here the line and i can change that for you.

Before I take the dive to mod my theme (Aa New Damage), I just wanted quick verification here, as I'm a bit retarded in these matters; I installed on default, and it works beautifully.  I went to the package parser above to see what I need to change in the index.template to get it to show on Aa New Damage, selected INSTALL and ONLY THEME EDITS.  I've got only two edits to make; the first one a big block, and the second a very small adjustment. Question...

The second edit...does it go before that right bracket above the word 'function' (position 1), or before the word 'function' itself (position 2)?  My guess is position 1, but I'm asking because in my theme, the right bracket is at the very end of the box above the word 'function', which appears in the next box below and that's throwing me off.  Just double checking...

as the package parser show, you have to add the code before the bracket, that means, add that on the (position 1).

Im having a problem. Now when i enter the site this is what i get;

Database Error
Table 'fpsforums_org.smf_hp_settings' doesn't exist
File: /customers/fpsforums.org/fpsforums.org/httpd.www/Sources/HP_shoutBox_Subs.php
Line: 106

Heres the site.
http://www.fpsforums.org/index.php

Whats wrong? I installed it correctly. Its urgent so please help me!

Please...?

you installed it manually???, cuz you don't have the database that the shoutbox uses, please add the table of the shoutbox to your database "an installation through package parser is recommended if you dont know how to add the table manually"

sorry for answering late, but I'm really busy at college :p
Title: Re: HacksPark shoutBox
Post by: Pwhheee on November 06, 2008, 09:04:15 AM
Whatta hell is a package parser?

EDIT: Okay, i googled and i know now.

I didnt even know there was sutch a thing :o

How does it work?

EDIT;  So i uploaded it to http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/) Package Parser

It said, parseArchive(): No package-info.xml in this mod! Is it corrupted?
Title: Re: HacksPark shoutBox
Post by: Pwhheee on November 06, 2008, 10:35:39 AM
PLEAAEEAASEE!! SOMEONEEE!
Title: Re: HacksPark shoutBox
Post by: makito on November 06, 2008, 12:39:28 PM
PLEAAEEAASEE!! SOMEONEEE!

Upload HP_shoutBox_Install.php to $boarddir
run it (you need to have $boarddir/SSI.php)
if is ok, you will get a message: "Database changes are complete!"

Greetings
Title: Re: HacksPark shoutBox
Post by: Pwhheee on November 06, 2008, 01:02:31 PM
I have already uninstalled it.

I will do it later, thank you so much.. :P
Title: Re: HacksPark shoutBox
Post by: Easyone on November 06, 2008, 03:00:45 PM

thanks, MP sent.


My Inbox is empty. :(
Title: Re: HacksPark shoutBox
Post by: Pwhheee on November 06, 2008, 03:38:11 PM
Excuse me agian :-\

What is $boarddir ?
Title: Re: HacksPark shoutBox
Post by: makito on November 07, 2008, 10:20:05 AM
Excuse me agian :-\

What is $boarddir ?

The path of you forum (Settings.php). It is like /host/user/public_html

Greetings
Title: Re: HacksPark shoutBox
Post by: ryuuza on November 08, 2008, 03:50:36 AM
i want to ask:

how to put the shoutbox on the bottom of the page?

and second question - where i can send my language modification so it could be available for everybody? (language: Polish)
Title: Re: HacksPark shoutBox
Post by: tivaelydoc on November 08, 2008, 01:08:17 PM
How do you add additional font modifications to it? Similar to all the modifications in this reply box.

As well, is there a way to add a code so that you can change the maximum chat length?

in the admin panel you got an input to put in there the name of the fonts allowed to use in the shoutbox, just add it, and make sure you have the font on your server.

That is not all what I'm talking about. I'm wanna add new buttons such as the ones in this reply box:

 - Strikethrough
 - Preformatted Text
 - Left Justified
 - Centered
 - Right Align

I want all of these features and more. Not so much the table making ones, but I would like to make my font glow and all that.

Second, what do you have to change in the php so that there is 100 shouts in the shoutbox instead of 20.

Third, how do you get the chat box on every page?

Fourth, how do you set it so that guests can't view your shoutbox?
Title: Re: HacksPark shoutBox
Post by: adamcanada on November 08, 2008, 11:24:17 PM
I would love to be able to install this, I am using Tiny Portal..anyone have any luck getting this to work with Tiny Portal?
Title: Re: HacksPark shoutBox
Post by: makito on November 09, 2008, 12:45:12 AM
To people who can read spanish...

Recomiendo este tema: [shoutBox] Ancho de banda usado (http://www.hackspark.com/sugerencias/smf-shoutbox-ancho-de-banda-usado_64.0.html)

Saludos



You don't? follow this link, maybe it helps: Google Translation (http://translate.google.com.pe/translate?u=http%3A%2F%2Fwww.hackspark.com%2Fsugerencias%2Fsmf-shoutbox-ancho-de-banda-usado_64.0.html&sl=es&tl=en&hl=es&ie=UTF-8)

Topic is about bandwidth used by shoutBox.

Greetings
Title: Re: HacksPark shoutBox
Post by: ryozo on November 09, 2008, 08:56:07 PM
JCS

what should be added in the action field to have this shoutbox show during browsing the board and or replying to the post.
its only showing in the forum page alone.

also, how to remove the loading/refresh gif?

thanks
Title: Re: HacksPark shoutBox
Post by: Adish - (F.L.A.M.E.R) on November 09, 2008, 10:15:35 PM
When i go in the admin panel and shoutbox --> permissions --> as i click edit i get this:-

Code: [Select]
Not Acceptable
An appropriate representation of the requested resource /forum/skywise/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at goldysun.com Port 80

It happens on both the edit links...


Also is it possible to lock the shoutbox as in for maintanance when unwanted..? or just lock it in a way that by hitting /lock it shows the shouts by just the forum admins and no one else ?
Title: Re: HacksPark shoutBox
Post by: Cal O'Shaw on November 11, 2008, 03:17:30 AM
Would it be possible to set permissions as to who can see it?  I'd like to use it as a way for our Admin Team to coordinate, but not be used by anyone else (it would cause problems).

Grazie
Title: Re: HacksPark shoutBox
Post by: tink on November 13, 2008, 12:30:01 AM
Okay, I am so not a techie person so bear with me.

I downloaded and applied the mod and like it very much, but I want it in the info section so when my members go from thread to thread they can still see it and I can not figure out what to put in the (?action=) box to have this happen. I really don't want to go to my database to do this.

Can someone just tell me what to put in that box for this to happen?
Title: Increase History Retention?
Post by: gotorx7 on November 13, 2008, 06:50:45 AM
Hi!

Thanks for the Mod, love it!

Is there practical way to increase the number of shouts held as History please?

Regards,
Dave
Title: Re: HacksPark shoutBox
Post by: spliffeh on November 13, 2008, 08:54:08 PM
Nice mod

I'd also like to know if there's a way to increase history size?

Also... I've installed successfully and it runs, but I dont see any admin panel or new tabs in my Features & Options admin section. Is there supposed to be a screen for options somewhere that I am missing? It's not there in the default theme or the custom one I use. I'm using SMF 1.1.7.
Title: Re:
Post by: haito on November 14, 2008, 09:26:18 AM
how to make HacksPark shoutBox appear in orangelime theme?
below is the index.template

Code: [Select]
<?php
// Version: 1.1; 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;

/* 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.4';

/* 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;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// 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" />';

/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/fonts-compat.css" />';

// 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 = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").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>'
;
echo 
'
</head>
 <body>
  <div id="wrapper"/>
 <div id="header">
<div id="head-l">
  <div id="head-r">
  <div id="userarea">'
;
if ($context['user']['is_logged'])
{
echo '<b>'$txt['hello_member_ndt'], ' '$context['user']['name'], '</b><br />';

// Only tell them about their messages if they can read their messages!
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'] , '.<br />';

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

}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
'
$txt['welcome_guest'], '
<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'], '" style="margin: 4px 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" />
<input type="submit" value="'
$txt[34], '" />
<input type="hidden" name="hash_passwrd" value="" />
</form>'
$context['current_time'],'<br />';
}
echo '
</div>
<div id="search">'
;
echo '
 <form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" style="margin: 0;">
 <a href="'
$scripturl'?action=search;advanced" title="'$txt['smf298'], '"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="'$txt['smf298'], '" /></a>
 <input type="text" class="inputs" name="search" value="'
$txt[182], '.." style="width: 120px;" /> 
 <input type="submit" name="submit" value="'
$txt[182], '" style="width: 10ex;" />
 <input type="hidden" name="advanced" value="0" />'
;

 // Search within current topic?
if (!empty($context['current_topic']))
 echo '
<input type="hidden" name="topic" value="'
$context['current_topic'], '" />';

 // If we're on a certain board, limit it to this board ;).
 elseif (!empty($context['current_board']))
 echo '
<input type="hidden" name="brd['
$context['current_board'], ']" value="'$context['current_board'], '" />';
echo '
</form>
</div>
<a href="'
.$scripturl.'?action=forum" title=""><span id="logo"> </span></a>';
echo '
  </div>  
 </div>
</div>
  <div id="toolbar">
'
,template_menu(),'
  </div>
  <div id="bodyarea">'
;
}

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

  echo '
</div>'
;


// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '

<div id="footer">
 <div id="foot-l">
  <div id="foot-r">
<div id="footerarea">
<span class="smalltext">'
theme_copyright(), '
<br />OrangeLine by <a href="http://www.jr62.com"><b>Crip</b></a></span>'
;

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

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.

if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])

{

// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";

}

}'
;

elseif ($context['browser']['is_firefox'])

echo '

window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '

var window_oldOnload = window.onload;
window.onload = smf_codeFix;
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");
for (var i = codeFix.length - 1; i > 0; i--)
{

if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))

codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}
if (window_oldOnload)

{

window_oldOnload();

window_oldOnload = null;

}

}'
;

echo '
// ]]></script>'
;
}
echo '

</div>
  </div>
 </div>
</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>';
echo 
'
</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 class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// 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 '<b>'$settings['linktree_link'] && isset($tree['url']) ? '<a href="' $tree['url'] . '" class="nav">' $tree['name'] . '</a>' $tree['name'], '</b>';

// 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;&#38;#0187;&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''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';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

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

 // Show the [home] button.
echo '<li><a' $current_action=='home' ' class="chosen"' '' ' href="'$scripturl'"><b>' $txt[103] , '</b></a></li>';

// Show the [forum] button.
echo '<li><a href="http://kawand.com/index.php?action=forum"><span>Forum</span></a></li>';

 // Show the [help] button.
echo '<li><a' $current_action=='help' ' class="chosen"' '' ' href="'$scripturl'?action=help"><b>' $txt[119] , '</b></a></li>';

// How about the [search] button?
if ($context['allow_search'])
echo '<li><a' $current_action=='search' ' class="chosen"' '' ' href="'$scripturl'?action=search"><b>Search</b></a></li>';

 // The [calendar]!
if ($context['allow_calendar'])
echo '<li><a' $current_action=='calendar' ' class="chosen"' '' ' href="'$scripturl'?action=calendar"><b>' $txt['calendar24'] , '</b></a></li>'

 // Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo '<li><a' $current_action=='admin' ' class="chosen"' '' ' href="'$scripturl'?action=admin"><b>' $txt[2] , '</b></a></li>';
 // Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a' $current_action=='profile' ' class="chosen"' '' ' href="'$scripturl'?action=profile"><b>' $txt[79] , '</b></a></li>';

 // Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a' $current_action=='pm' ' class="chosen"' '' ' href="'$scripturl'?action=pm"><b>' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</b></a></li>';

// the [member] list button
 if ($context['allow_memberlist'])
 echo '<li><a ' $current_action=='mlist' ' class="chosen"' '' ' href="'$scripturl'?action=mlist"><b>' $txt[331] , '</b></a></li>';

 // If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
 echo '<li><a ' $current_action=='login' ' class="chosen"' '' ' href="'$scripturl'?action=login"><b>' $txt[34] , '</b></a></li>';

 // If the user is a guest, also show [register] button.
  if ($context['user']['is_guest'])
echo '<li><a ' $current_action=='register' ' class="chosen"' '' ' href="'$scripturl'?action=register"><b>' $txt[97] , '</b></a></li>';

// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo '<li><a ' $current_action=='logout' ' class="chosen"' '' 'href="'$scripturl'?action=logout;sesc='$context['session_id'], '"><b>' $txt[108] , '</b></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="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}
?>

i had read http://www.hackspark.com/manuales/smf-shoutbox-instalacion-en-diferentes-temas_40.0.html
but im not understand~
Title: Re: HacksPark shoutBox
Post by: makito on November 14, 2008, 11:41:40 AM
how to make HacksPark shoutBox appear in orangelime theme?
below is the index.template

I added an attachment with source code of the new index.template.php
Just upload it to your server

Please, edit your message and delete all that code, cuz it's too long  ;D

Is there practical way to increase the number of shouts held as History please?

I'd also like to know if there's a way to increase history size?

In this momment, there isn't a way, but in new version, it could
and believe me, you dont want to add it now, cuz the use of bandwith will increase  :P

Also... I've installed successfully and it runs, but I dont see any admin panel or new tabs in my Features & Options admin section. Is there supposed to be a screen for options somewhere that I am missing? It's not there in the default theme or the custom one I use. I'm using SMF 1.1.7.

It is a language error

Code: [Select]
<file name="$languagedir/Modifications.english.php">
<operation>
<search position="end" />
<add><![CDATA[# Hack's Park ||
$txt['hp_admin'] = 'Hack&#39;s Park';
$txt['hp_mod_shoutbox'] = 'ShoutBox';
]]></add>
</operation>
</file>

If you have english-utf language pack, or any other one, you should go to $languagedir/Modifications.language.php and add this in the end of file:

Code: [Select]
# Hack's Park ||
$txt['hp_admin'] = 'Hack&#39;s Park';
$txt['hp_mod_shoutbox'] = 'ShoutBox';

Okay, I am so not a techie person so bear with me.

I downloaded and applied the mod and like it very much, but I want it in the info section so when my members go from thread to thread they can still see it and I can not figure out what to put in the (?action=) box to have this happen. I really don't want to go to my database to do this.

Can someone just tell me what to put in that box for this to happen?

You have to edit index.template.php and boardindex.template.php

Go to file $themedir/index.template.php

Search and Delete !!
Code: [Select]
# Hack's Park ||
template_HP_shoutBoxMain();

Ops  :P, I dont have boardindex.template.php, you have to wait ^^, sry

EDIT:

(Theme default) Go to file $themedir/boardindex.template.php

Search
Code: [Select]
// Here's where the "Info Center" starts...
echo '<br />
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? 'style="width: 100%;"' : '', '>
<div class="catbg" style="padding: 6px; vertical-align: middle; text-align: center; ">
<a href="#" onclick="shrinkHeaderIC(!current_header_ic); return false;"><img id="upshrink_ic" src="', $settings['images_url'], '/', empty($options['collapse_header_ic']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin-right: 2ex;" align="right" /></a>
', $txt[685], '
</div>
<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">';

Add before
Code: [Select]
# Hack's Park ||
template_HP_shoutBoxMain();

Would it be possible to set permissions as to who can see it?  I'd like to use it as a way for our Admin Team to coordinate, but not be used by anyone else (it would cause problems).

Grazie

In this version you can't do it, but in the next one you will  :P

When i go in the admin panel and shoutbox --> permissions --> as i click edit i get this:-

Code: [Select]
Not Acceptable
An appropriate representation of the requested resource /forum/skywise/index.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

--------------------------------------------------------------------------------
Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at goldysun.com Port 80

It happens on both the edit links...

Also is it possible to lock the shoutbox as in for maintanance when unwanted..? or just lock it in a way that by hitting /lock it shows the shouts by just the forum admins and no one else ?

mmm, could it be an error of the shoutBox? because it is the right index file (/forum/skywise/index.php), right?  :-\

You can disable (desactivate jaja  :P) the shoutBox by editing actions options (?action=*)  in admin panel to "" (empty or nothing xD).

In this version, is not possible to restrict it to a group of users, sry. I'm working on it

JCS

what should be added in the action field to have this shoutbox show during browsing the board and or replying to the post.
its only showing in the forum page alone.

also, how to remove the loading/refresh gif?

thanks

Just add "messageindex;display;post" in the field (dont delete the others actions)

the gif is part of the shoutBox, you wont remove it easily

How do you add additional font modifications to it? Similar to all the modifications in this reply box.

As well, is there a way to add a code so that you can change the maximum chat length?

in the admin panel you got an input to put in there the name of the fonts allowed to use in the shoutbox, just add it, and make sure you have the font on your server.

That is not all what I'm talking about. I'm wanna add new buttons such as the ones in this reply box:

 - Strikethrough
 - Preformatted Text
 - Left Justified
 - Centered
 - Right Align

I want all of these features and more. Not so much the table making ones, but I would like to make my font glow and all that.

Second, what do you have to change in the php so that there is 100 shouts in the shoutbox instead of 20.

Third, how do you get the chat box on every page?

Fourth, how do you set it so that guests can't view your shoutbox?
First, why do you want all that futures?... is not a chat !! well, is a little similar, but dont
uhm, just let me think about it  ;) ,, maybe I'll add they in the next version

Second
Quote
In this momment, there isn't a way, but in new version, it could
and believe me, you dont want to add it now, cuz the use of bandwith will increase  :P

Third, go to admin panel and edit actions field to ";all"

Fourth, go to file $themedir/index.template.php

Search
Code: [Select]
# Hack's Park ||
template_HP_shoutBoxMain();

Replace with
Code: [Select]
# Hack's Park ||
if ($context['user']['is_logged'])
template_HP_shoutBoxMain();

i want to ask:

how to put the shoutbox on the bottom of the page?

and second question - where i can send my language modification so it could be available for everybody? (language: Polish)

You have to edit $themedir/index.template.php
I dont have the file now, you have to wait  :(, sry

Edit:

Go to file $themedir/index.template.php

Search and delete
Code: [Select]
# Hack's Park ||
template_HP_shoutBoxMain();

Search
Code: [Select]
function template_main_below()
{

Add after
Code: [Select]
# Hack's Park ||
template_HP_shoutBoxMain();

The lang pack... that's great!! thanks a lot, send it  by PM pls,, love you  :-*

Wooo, I did a lot here...

Greetings
Title: Re: HacksPark shoutBox
Post by: spliffeh on November 14, 2008, 09:36:03 PM

Is there practical way to increase the number of shouts held as History please?

I'd also like to know if there's a way to increase history size?

In this momment, there isn't a way, but in new version, it could
and believe me, you dont want to add it now, cuz the use of bandwith will increase  :P


Could you explain why it is limited to only 25 (or whatever) lines of shouts? It seems like it would be a very simple change to just go in and switch the value of a variable from 25 to 50.  I'd really like it to be bigger, and I'm certainly not concerned about bandwidth from a few extra lines of text.

What is preventing the change?

Title: Re: HacksPark shoutBox
Post by: gotorx7 on November 15, 2008, 03:33:23 AM

Is there practical way to increase the number of shouts held as History please?

I'd also like to know if there's a way to increase history size?

In this momment, there isn't a way, but in new version, it could
and believe me, you dont want to add it now, cuz the use of bandwith will increase  :P


Could you explain why it is limited to only 25 (or whatever) lines of shouts? It seems like it would be a very simple change to just go in and switch the value of a variable from 25 to 50.  I'd really like it to be bigger, and I'm certainly not concerned about bandwidth from a few extra lines of text.

What is preventing the change?

Understand the bandwidth and load problems..

How about logging into a text file or database, and having an archive view?

Cheers,
Dave
Title: Re: HacksPark shoutBox
Post by: haito on November 15, 2008, 07:44:19 AM
waw... success.. thanks makito :D

but, how to make it appear in all page?
Title: Re: HacksPark shoutBox
Post by: gotorx7 on November 16, 2008, 06:35:19 AM
Can anyone tell me if their font and colour selections are being lost after a refresh please?

Cheers,
Dave
Title: Re: HacksPark shoutBox
Post by: spliffeh on November 16, 2008, 02:02:44 PM
Quote
Could you explain why it is limited to only 25 (or whatever) lines of shouts? It seems like it would be a very simple change to just go in and switch the value of a variable from 25 to 50.  I'd really like it to be bigger, and I'm certainly not concerned about bandwidth from a few extra lines of text.

What is preventing the change?

Quote
Understand the bandwidth and load problems..

Granted I'm a rookie with php/java. But no - I don't understand why this is a bandwidth/load issue. We're talking about displaying maybe 1k of extra text, how does this create load? Is this using my smf sql database or something? (it shouldn't.. just display a text file). Or is it quering a 3rd party server or something? How is there more load?

As for bandwidth, on a small site like mine I don't see how this is an issue, even if it's displaying the extra 1kb 2000+ times a day I'm okay with it.

The size of the history should be changable & up to us to decide on. I ask again: what is preventing us changing it? I'm curious how is the code limited that this is an issue?

Title: Re: HacksPark shoutBox
Post by: makito on November 16, 2008, 05:55:14 PM
waw... success.. thanks makito :D

but, how to make it appear in all page?

go to admin panel and edit actions field to ";all"

Can anyone tell me if their font and colour selections are being lost after a refresh please?

Cheers,
Dave

There is not a function that save selected colors, but I will add one in the next version.

Quote
Could you explain why it is limited to only 25 (or whatever) lines of shouts? It seems like it would be a very simple change to just go in and switch the value of a variable from 25 to 50.  I'd really like it to be bigger, and I'm certainly not concerned about bandwidth from a few extra lines of text.

What is preventing the change?

Quote
Understand the bandwidth and load problems..

Granted I'm a rookie with php/java. But no - I don't understand why this is a bandwidth/load issue. We're talking about displaying maybe 1k of extra text, how does this create load? Is this using my smf sql database or something? (it shouldn't.. just display a text file). Or is it quering a 3rd party server or something? How is there more load?

As for bandwidth, on a small site like mine I don't see how this is an issue, even if it's displaying the extra 1kb 2000+ times a day I'm okay with it.

The size of the history should be changable & up to us to decide on. I ask again: what is preventing us changing it? I'm curious how is the code limited that this is an issue?

Sorry if I didn't explain either

What I mean is that the current method of loading shouts with more than 50 in each reload could increase use of bandwith (what is not suppose to). I'm now working on a new one (the next version of shoutBox) where you will have the option to change the initial shouts displayed and it wont affect this with an overuse
I'm just suggesting that continue with 20 shouts...
But If you dont have a limitation of the use of bandwith, it wont be a problem

Go to file $sourcedir/HP_shoutBox.php and search
Code: [Select]
$query = db_query("SELECT ID_MEMBER, realName, style, message, timestamp, colorName FROM {$db_prefix}hp_shoutbox
ORDER BY timestamp DESC LIMIT 20", __FILE__, __LINE__);

Go to file $sourcedir/HP_shoutBox.php and search
Code: [Select]
$query = db_query("SELECT ID_SHOUT, ID_MEMBER, realName, style, message, timestamp, colorName FROM {$db_prefix}hp_shoutbox
ORDER BY timestamp DESC LIMIT 20", __FILE__, __LINE__);

and replace LIMIT 20 to LIMIT %
where % is the number of shouts displayed
Title: Re: HacksPark shoutBox
Post by: pikeman on November 16, 2008, 06:34:56 PM
Hello! On the default theme all works really great. But in kelo-lt115v1 theme, that I use does not work. What's the problem?
Title: Re: HacksPark shoutBox
Post by: tivaelydoc on November 16, 2008, 06:44:41 PM

How do you add additional font modifications to it? Similar to all the modifications in this reply box.

As well, is there a way to add a code so that you can change the maximum chat length?

in the admin panel you got an input to put in there the name of the fonts allowed to use in the shoutbox, just add it, and make sure you have the font on your server.

That is not all what I'm talking about. I'm wanna add new buttons such as the ones in this reply box:

 - Strikethrough
 - Preformatted Text
 - Left Justified
 - Centered
 - Right Align

I want all of these features and more. Not so much the table making ones, but I would like to make my font glow and all that.

Second, what do you have to change in the php so that there is 100 shouts in the shoutbox instead of 20.

Third, how do you get the chat box on every page?

Fourth, how do you set it so that guests can't view your shoutbox?
First, why do you want all that futures?... is not a chat !! well, is a little similar, but dont
uhm, just let me think about it  ;) ,, maybe I'll add they in the next version

Second
Quote
In this momment, there isn't a way, but in new version, it could
and believe me, you dont want to add it now, cuz the use of bandwith will increase  :P

Third, go to admin panel and edit actions field to ";all"

Fourth, go to file $themedir/index.template.php

Search
Code: [Select]
# Hack's Park ||
template_HP_shoutBoxMain();

Replace with
Code: [Select]
# Hack's Park ||
if ($context['user']['is_logged'])
template_HP_shoutBoxMain();


where is the actions field?
Title: Re: HacksPark shoutBox
Post by: makito on November 17, 2008, 01:34:06 AM
Hello! On the default theme all works really great. But in kelo-lt115v1 theme, that I use does not work. What's the problem?

Could you please upload the source code of index.template.php?

where is the actions field?

Admin -> Hack's Park -> ShoutBox -> Sites where shoutBox will be printed (?action=)

Replace "boardindex;collapse" with ";all"
Title: Re: HacksPark shoutBox
Post by: pikeman on November 17, 2008, 08:25:52 AM
Hello! On the default theme all works really great. But in kelo-lt115v1 theme, that I use does not work. What's the problem?

Could you please upload the source code of index.template.php?



Here's source without HacksPark adding code Shoutbox. Thank you for your help!
Title: Re: HacksPark shoutBox
Post by: Jakki on November 17, 2008, 09:03:35 PM
The only thing I found is that on my custom theme, the admin box is not showing up.
I used winmerge to do the index.template file and got it going but I can't get it to show in the admin section.

eta: Never mind I found the problem, it was with the modifications.english.php file.


Great Mod BTW, I'm enjoying it.
Title: Re: HacksPark shoutBox
Post by: Jakki on November 18, 2008, 09:06:44 AM
Just wanted you to know I have it up and running without errors in the error log, Great job,!
Title: Re: HacksPark shoutBox
Post by: EMOrtal on November 18, 2008, 05:32:49 PM
All I want for Christmas is a way for this to work with 2.0 Beta 4 :(
Title: Re: HacksPark shoutBox
Post by: flapjack on November 18, 2008, 06:39:05 PM
can you please point me to the right direction: I would like to have a separate subpage on the forum (like the gallery page or help. etc), how would I do that?

thanks
Title: Re: HacksPark shoutBox
Post by: adamcanada on November 18, 2008, 10:19:44 PM
Anyone have a chance to get this working with TinyPortal?
Title: Re: HacksPark shoutBox
Post by: MultiformeIngegno on November 19, 2008, 08:28:42 AM
All I want for Christmas is a way for this to work with 2.0 Beta 4 :(
Seconded!!
I really like this MOD but I'm on beta 4!! :(
Title: Re: HacksPark shoutBox
Post by: pooya on November 19, 2008, 08:44:50 AM
All I want for Christmas is a way for this to work with 2.0 Beta 4 :(
Seconded!!
I really like this MOD but I'm on beta 4!! :(

ME 3 !
Title: Re: HacksPark shoutBox
Post by: pikeman on November 19, 2008, 10:47:45 AM
I succeeded, great work!
Title: Re: HacksPark shoutBox
Post by: bullbreedluverz on November 19, 2008, 02:04:39 PM
I want to change the minimum messge character length to 1 and seen the following post which i assumes means to edit the value in HP_shoutBox.js but i cant find this file in /public_html/myforum/theme/ or in any other files in my forum files

I have a question. I want to make the minimum message sent 1 character.
it will not go any less than 3 characters even though in the admin settings I changed it to 1.

Can you help please?

I must check it before get any answer, maybe you have found a bug  :P
Sorry

Edit

I found my error  O:)

Please go to $themeurl/HP_shoutBox.js and delete all lines between 33 and 38

if (document.forms.shoutbox.msg.value.length <= 2) {
alert(HP_shoutBox["lng_empty"]);
return;
}

Or simply change the 2 with 1

if (document.forms.shoutbox.msg.value.length <= 1) {



Title: Re: HacksPark shoutBox
Post by: J-Bird on November 20, 2008, 11:30:13 AM
Is it possible to have the shoutbox in a frame that is static, and does not refresh as one moves through the forum below the shoutbox?
Title: Re: HacksPark shoutBox
Post by: Lae on November 20, 2008, 02:04:06 PM
I installed the shoutbox, but I'm having a weird problem with it. When writing to the shoutbox the text that I write won't show, but only the nicks and the background.
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on November 20, 2008, 08:13:20 PM
EDIT: Okay, I found an obvious mistake, corrected it, and I still get the problem described below...

Before I take the dive to mod my theme (Aa New Damage), I just wanted quick verification here, as I'm a bit retarded in these matters; I installed on default, and it works beautifully.  I went to the package parser above to see what I need to change in the index.template to get it to show on Aa New Damage, selected INSTALL and ONLY THEME EDITS.  I've got only two edits to make; the first one a big block, and the second a very small adjustment. Question...

The second edit...does it go before that right bracket above the word 'function' (position 1), or before the word 'function' itself (position 2)?  My guess is position 1, but I'm asking because in my theme, the right bracket is at the very end of the box above the word 'function', which appears in the next box below and that's throwing me off.  Just double checking...

as the package parser show, you have to add the code before the bracket, that means, add that on the (position 1).

Alright.  I installed on default, and it works great FLAWLESSLY.  I then used the Package Parser, and it didn't quite work because the one I had only went up to 1.1.6 for the version of SMF you can choose from.  Only half the buttons showed up, I couldn't post messages, none of the bbc buttons worked (couldn't bold, italicize, post links, etc), whatever.  So I chopped out my edits from my theme's index.template, made sure everything was back to normal, and then went through this thread and found a better one (the one I just linked in my siggy below) and used that one because it DOES let you choose 1.1.7.

I went back through and edited my index.template but now...same problem...any ideas?  If I were just missing some button images, that would be obvious enough...I'd have to upload stuff to my theme's BBC button images folder.  But I'm missing total functionality, too.  I can enter text into the field, but nothing happens when I hit Send message...nor anything else.

I can't wait to get it to work with my theme, because it really is a FANTASTIC mod, and me peeps are going to LOVE it!   :)
Title: Re: HacksPark shoutBox
Post by: Nibogo on November 20, 2008, 08:45:08 PM
EDIT: Okay, I found an obvious mistake, corrected it, and I still get the problem described below...

Before I take the dive to mod my theme (Aa New Damage), I just wanted quick verification here, as I'm a bit retarded in these matters; I installed on default, and it works beautifully.  I went to the package parser above to see what I need to change in the index.template to get it to show on Aa New Damage, selected INSTALL and ONLY THEME EDITS.  I've got only two edits to make; the first one a big block, and the second a very small adjustment. Question...

The second edit...does it go before that right bracket above the word 'function' (position 1), or before the word 'function' itself (position 2)?  My guess is position 1, but I'm asking because in my theme, the right bracket is at the very end of the box above the word 'function', which appears in the next box below and that's throwing me off.  Just double checking...

as the package parser show, you have to add the code before the bracket, that means, add that on the (position 1).

Alright.  I installed on default, and it works great FLAWLESSLY.  I then used the Package Parser, and it didn't quite work because the one I had only went up to 1.1.6 for the version of SMF you can choose from.  Only half the buttons showed up, I couldn't post messages, none of the bbc buttons worked (couldn't bold, italicize, post links, etc), whatever.  So I chopped out my edits from my theme's index.template, made sure everything was back to normal, and then went through this thread and found a better one (the one I just linked in my siggy below) and used that one because it DOES let you choose 1.1.7.

I went back through and edited my index.template but now...same problem...any ideas?  If I were just missing some button images, that would be obvious enough...I'd have to upload stuff to my theme's BBC button images folder.  But I'm missing total functionality, too.  I can enter text into the field, but nothing happens when I hit Send message...nor anything else.

I think of you dont have the images of the shoutbox , try to modifiy the index.template or add the missing images

I installed the shoutbox, but I'm having a weird problem with it. When writing to the shoutbox the text that I write won't show, but only the nicks and the background.

Do you check the color of the font in the admin panel??

Is it possible to have the shoutbox in a frame that is static, and does not refresh as one moves through the forum below the shoutbox?

If you dont want to refresh just add a  (really) big number for that option in the shoutbox admin

All I want for Christmas is a way for this to work with 2.0 Beta 4 :(

PLease be patient with this , the mod have a lot of features , functions , modifications and other things , also the developers JCS and makito have a lot of work with other important things ;)

Anyone have a chance to get this working with TinyPortal?

Try adding a iframe with the action=shoutbox window , is really easy to do ;) , but the developers dont have an official
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on November 20, 2008, 09:25:54 PM

Quote
Alright.  I installed on default, and it works great FLAWLESSLY.  I then used the Package Parser, and it didn't quite work because the one I had only went up to 1.1.6 for the version of SMF you can choose from.  Only half the buttons showed up, I couldn't post messages, none of the bbc buttons worked (couldn't bold, italicize, post links, etc), whatever.  So I chopped out my edits from my theme's index.template, made sure everything was back to normal, and then went through this thread and found a better one (the one I just linked in my siggy below) and used that one because it DOES let you choose 1.1.7.

I went back through and edited my index.template but now...same problem...any ideas?  If I were just missing some button images, that would be obvious enough...I'd have to upload stuff to my theme's BBC button images folder.  But I'm missing total functionality, too.  I can enter text into the field, but nothing happens when I hit Send message...nor anything else.

I think of you dont have the images of the shoutbox , try to modifiy the index.template or add the missing images

As predicted, all that did was add the images.  I still have zero functionality.  When I type a message and press Send message, it disappears from the input field and does not appear in the display field.  Still cannot bold, italicize, add a link, etc.  Everything LOOKS great, but nothing DOES anything.

What do you mean 'images of the shoutbox'?  That's kinda vague (for me).  Are you talking about the box itself?  Everything APPEARS as it does in default, except with my theme.  It just doesn't DO anything, including indicating that there are no messages in the shout box upon opening it initially.

EDIT: stripped out all edits and tried again just now.  Same problem.  Attached my index.template.php again for reference.
Title: Re: HacksPark shoutBox
Post by: J-Bird on November 20, 2008, 11:23:45 PM
Is it possible to have the shoutbox in a frame that is static, and does not refresh as one moves through the forum below the shoutbox?

Quote
If you dont want to refresh just add a  (really) big number for that option in the shoutbox admin.

Im afraid your answer will only slow the refresh rate, which is NOT what I want.
What I want, is to be able to changes forum pages, but have the shoutbox remain without reloading. Like frames. You understand?
Title: Re: HacksPark shoutBox
Post by: J-Bird on November 20, 2008, 11:39:06 PM
Is there a way to increase the maximum amount of characters per message?
I have the shoutbox widened, but cant find how to increase length of each posted message.
Title: Re: HacksPark shoutBox
Post by: JaGuR on November 21, 2008, 12:41:10 AM
To display in index with out an action, and display every where on forum

Found this Gem in the Code while trying to Mod it to work on my index

add this in the admin section  in this field "Sites where shoutBox will be printed (?action=)" ;all

Simple as that, no need for Iframes Tiny Portals
Title: Re: HacksPark shoutBox
Post by: Lae on November 21, 2008, 04:15:09 AM
I installed the shoutbox, but I'm having a weird problem with it. When writing to the shoutbox the text that I write won't show, but only the nicks and the background.

Do you check the color of the font in the admin panel??

Yes of course, it's not about that, because the text just won't show in the box (f.e. when selecting there where the text should be, there's nothing). I tried it now on an other board, where we have no other mods even, and it doesn't work there either. We're using the 1.1.7. version.

Edit. And weirder it gets. I can see the messages when looking from my database, but the shoutbox won't show them in any view. It seems to read all the other information, but not the message part.
Title: Re: HacksPark shoutBox
Post by: dimdom on November 21, 2008, 06:34:16 AM
I am using overview dark theme and I have Tiny Portal 0.9.8 installed...

Any help with the modifications in this file?

---solved---
Title: Re: HacksPark shoutBox
Post by: dimdom on November 21, 2008, 08:29:56 AM
I have just installed that excellent mod.

Two questions now:

Is there a way to totally disable autorefresh?

Where and how can I watch as an admin all the messages in the shoutbox?

Thank you...


And a bug ( ? )

In guests it will autorefresh every one second no matter the settings in admin panel...
Title: Re: HacksPark shoutBox
Post by: alexander71 on November 21, 2008, 12:42:10 PM
If you would like to bigger popup window, you rewrite it in the index.template.php:

Code: [Select]
<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>
Width: 750 and height: 360
Title: Re: HacksPark shoutBox
Post by: mrtrc266 on November 21, 2008, 09:16:13 PM
This is a great mod! I'm having a hard time gettin it to ork on my custom theme, could you please give me  a hand?

Site www.monsters-mansion.com

here is the index template for the forum of my custom theme

......if possible I would like to have it on my arcade page as well

Thank you very much in advance

Title: Re: HacksPark shoutBox
Post by: M-DVD on November 21, 2008, 11:33:50 PM
Hacía tiempo que este MOD estaba en espera y es un MOD realmente EXCELENTE.

Bien que ya esté como MOD oficial  Felicidades :D

Title: Re: HacksPark shoutBox
Post by: makito on November 22, 2008, 01:58:00 AM
All I want for Christmas is a way for this to work with 2.0 Beta 4 :(

All I want for Christmas is a way for this to work with 2.0 Beta 4 :(
Seconded!!
I really like this MOD but I'm on beta 4!! :(

All I want for Christmas is a way for this to work with 2.0 Beta 4 :(
Seconded!!
I really like this MOD but I'm on beta 4!! :(

ME 3 !

and I want a quad core 3.0 with 8gb ram
JK :P ... We will have this working on 2.0 at december ;) (hope)

I succeeded, great work!

I'm late... sorry  :(

I want to change the minimum messge character length to 1 and seen the following post which i assumes means to edit the value in HP_shoutBox.js but i cant find this file in /public_html/myforum/theme/ or in any other files in my forum files

I have a question. I want to make the minimum message sent 1 character.
it will not go any less than 3 characters even though in the admin settings I changed it to 1.

Can you help please?

I must check it before get any answer, maybe you have found a bug  :P
Sorry

Edit

I found my error  O:)

Please go to $themeurl/HP_shoutBox.js and delete all lines between 33 and 38

if (document.forms.shoutbox.msg.value.length <= 2) {
alert(HP_shoutBox["lng_empty"]);
return;
}

Or simply change the 2 with 1

if (document.forms.shoutbox.msg.value.length <= 1) {

You should edit an option in admin panel after this replace...
"Minimun characters per message (while sending message)"

$themeurl is not /public_html/myforum/theme/, it is /public_html/myforum/theme/{name} where {name} is the current Theme (could be "default")

Is it possible to have the shoutbox in a frame that is static, and does not refresh as one moves through the forum below the shoutbox?
Is it possible to have the shoutbox in a frame that is static, and does not refresh as one moves through the forum below the shoutbox?

Quote
If you dont want to refresh just add a  (really) big number for that option in the shoutbox admin.

Im afraid your answer will only slow the refresh rate, which is NOT what I want.
What I want, is to be able to changes forum pages, but have the shoutbox remain without reloading. Like frames. You understand?


mmm, I don't get it at all, but you want to go from one page to other in your forum (where shoutBox is) and not refresh the shoutBox, right?

if it is... that why Open on PopUp is there

Is there a way to increase the maximum amount of characters per message?
I have the shoutbox widened, but cant find how to increase length of each posted message.

I think it wont be posible... I thought long messages aren't used in a shoutBox or chat becouse of that, they are long... so I made all it (queries, tablas, conditionales, etc) to short messages... sry

To display in index with out an action, and display every where on forum

Found this Gem in the Code while trying to Mod it to work on my index

add this in the admin section  in this field "Sites where shoutBox will be printed (?action=)" ;all

Simple as that, no need for Iframes Tiny Portals

mmm, Yeah... ;all is for printing shoutBox in all pages ;)

I installed the shoutbox, but I'm having a weird problem with it. When writing to the shoutbox the text that I write won't show, but only the nicks and the background.

Do you check the color of the font in the admin panel??

Yes of course, it's not about that, because the text just won't show in the box (f.e. when selecting there where the text should be, there's nothing). I tried it now on an other board, where we have no other mods even, and it doesn't work there either. We're using the 1.1.7. version.

Edit. And weirder it gets. I can see the messages when looking from my database, but the shoutbox won't show them in any view. It seems to read all the other information, but not the message part.

maybe you will need to contact me for support... could you send me users and pass to access your forum? by PM here or in Hack's Park (http://www.hackspark.com), or mail  8)

.... I will continue later... sry
Title: Re: HacksPark shoutBox
Post by: bullbreedluverz on November 22, 2008, 05:01:20 AM
thanx makito... maybe i was being blind or my ftp was being an idiot but the .js files werent displaying in my forum files when i asked that question the other day lol
Title: Re: HacksPark shoutBox
Post by: Jakki on November 22, 2008, 09:46:00 AM
Here's an interesting thing a I found I installed the shout onto the default, then made a custom theme. Well I moved the js files as it said in the instructions, now when I go into my css style sheet the little color pic box shows up. If I remove the HPcolorpicker.js, then shoutbox will not work, but then the box doesn't show in my style sheet.

Pic included to show what I mean..

Any ideas on this?
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on November 22, 2008, 07:35:15 PM
In reference to my LAST POST (http://www.simplemachines.org/community/index.php?topic=269091.msg1807970#msg1807970) about the utter lack of functionality after doing the edits to my theme suggested by the package parser linked in my signature, I just noticed something...maybe someone could tell me if this has anything to do with it.

I downloaded v1.2.2 from the mod page.  But the package parser says the package version is...wait for it...DUN DUN DUNNNNN 1.2.1!!!  Would this...1) indicate a problem with the package parser that could lead to my problem?  Or is this...2) info garnered from a file within the package itself with a number that just wasn't updated to reflect the newest version?
Title: Re: HacksPark shoutBox
Post by: JCS on November 22, 2008, 11:59:44 PM
:S, forgot change the version on the package, thats because the diference between them is just a line :S, it will be fixed as soon as possible
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on November 23, 2008, 04:04:56 PM
:S, forgot change the version on the package, thats because the diference between them is just a line :S, it will be fixed as soon as possible
Okay, that's cool.  At least I know the package parser didn't screw anything up.  Any thoughts though as to why it would work perfectly in default, but show up fine in Aa New Damage yet not function at all?
Title: Re: HacksPark shoutBox
Post by: d_robers on November 23, 2008, 11:02:14 PM
i installed it to my darkmun theme. when i type in the input area nothing shows in the output area and when i press the send message the whole forum refresh's. what could be wrong?
Title: Re: HacksPark shoutBox
Post by: d_robers on November 24, 2008, 12:52:05 AM
i installed it to my darkmun theme. when i type in the input area nothing shows in the output area and when i press the send message the whole forum refresh's. what could be wrong?

problemb solved i left out a file in my mod theme
Title: Re: HacksPark shoutBox
Post by: tanny on November 24, 2008, 03:27:22 AM
hi here is my index.template  for my custom theme..  can u put the code in to it?

thnx

tanny
Title: Re: HacksPark shoutBox
Post by: Dordt on November 25, 2008, 07:11:57 AM
How did you get it working with tp (Center blocks)

Please help !!!

Thanks.....
Title: Re: HacksPark shoutBox
Post by: Xclusive on November 25, 2008, 09:47:53 AM
ok!! i'm REALLY so pissed off =[
i'm so STUCK!!! i read all through 8pages with no luck =[
i hope someone can help me..
i'm currently using
1.1.7,TP,installed through Packages,theme: Slient Wave by DznierStudio..
after when i install,everything seeems 2 be working fine(in ADMIN PANEL)
but when i go out into Forum i cannot see my Shoutbox on the Index..
i tried so many things 2 edit the index.template.php
nothing can work..
i'll upload the file for you guys..
i hope you guys can help

cheers all!! u guys are awesome =]
Title: Re: HacksPark shoutBox
Post by: CFStar on November 25, 2008, 01:56:50 PM
pls help me, i have successfully installed  it and edited my theme's index.template.php
but my problem is whenever i type a msg it wont show. Ive already checked my font color and it seems that i cant even highlight the msg i have typed.

here's my Forum Site (http://bbs.coldfusiongaming.net/)

Title: Re: HacksPark shoutBox
Post by: ramasik on November 25, 2008, 06:09:05 PM
thnx - great mod
i have a few little question:
1.how change  -  link to profile (if set that display nick as link) to place nick in message box to sent with ?
I tried edit  HP_shoutBox.php in sourcedir.. but i can't do this :(
2. can you create a list of active users right of chat with private messages?

PS big thnx and sorry for my english..
Title: Re: HacksPark shoutBox
Post by: InternetMafia on November 26, 2008, 09:11:51 PM
Just one quick question.

When the user goes back to the index, there is a slight delay before the messages in the SB show up.  Is there a way to fix this?
Title: Re: HacksPark shoutBox
Post by: nneonneo on November 26, 2008, 09:26:09 PM
FYI: the sdemo account at http://www.hackspark.com/smf-test/index.php seems to have been deleted.
Title: Re: HacksPark shoutBox
Post by: Martingonnella on November 27, 2008, 06:53:14 PM
Hi,

If I wanted to add a modification to your code using Notepad...I save it, zip it, and I try to re-upload it.

I get the "This file maybe currupted..." etc

I've tried using a Mod Creator program that can open and save.XML file.. and still no luck.

What program did you use to create Shout.box?

Any suggestions?
Title: Re: HacksPark shoutBox
Post by: MummiesOnline on November 28, 2008, 01:24:19 AM
hi just wondering how I can disable guest viewing.

Thanks :)
Title: Re: HacksPark shoutBox
Post by: shanksta13 on November 28, 2008, 02:59:48 AM
Just wanted to let you guys know that this is a great mod, all of my users loved it!  I had it running for three days on 1.1.7 and then upgraded to 2.0 Beta 4 and already some of my members are calling for my head because their shoutbox disappeared.  :D

Anyway, thanks alot guys, can't wait till yall make this compatible with 2.0 Beta 4!

Also, a random note.  Using this mod will affect your stats page, in the page views section.  I think it counts a page view every time the shoutbox refreshes (i.e. If you have it set to refresh every 10 seconds, then every 10 seconds that a user's shoutbox refreshes it will count as a page view).  I went from about 10,000 views per day to easily 70,000 or so after I installed the mod.  Not a big deal, just figured it was worth mentioning.
Title: Re: HacksPark shoutBox
Post by: pikeman on November 29, 2008, 11:47:27 AM
Why shout not work properly in Internet Explorer?
In the Firefox is great, but many people use IE.

Link to forum:
http://vukovisadunava.com/index.php?action=forum
Title: Re: HacksPark shoutBox
Post by: qubbah on November 29, 2008, 01:49:44 PM
im still waiting if this shoutbox can put in the block for TinyPortal users.
Title: Re: HacksPark shoutBox
Post by: rubelNB on November 30, 2008, 12:58:09 PM
Hi, I am using the dilber theme and have gone through the parser but i still cannot get the shoutbox to work on the dilber theme.

It works great on the default theme.

I attach the index.template file. please help me :-[
Title: Re: HacksPark shoutBox
Post by: unik63 on November 30, 2008, 05:02:54 PM
I'm just wondering if you are able to make it work with 2.0 beta 4.
It seems to be a great mod. I'm running 2.0 beta 4, and would love to have it...!!!!
Title: Re: HacksPark shoutBox
Post by: shanksta13 on November 30, 2008, 11:13:14 PM
I'm just wondering if you are able to make it work with 2.0 beta 4.
It seems to be a great mod. I'm running 2.0 beta 4, and would love to have it...!!!!

Agreed.  There seems to be a big push for this from a lot of people.  Sounded to me like they're working on it.  I hope it comes out soon, my users are bugging the hell out of me about getting it back since I upgraded to 2.0 beta 4.
Title: Re: HacksPark shoutBox
Post by: KathyT on December 01, 2008, 04:11:45 AM
Same problems as many.  I used the parser to make the edits to the dilber custom theme I'm using, and shoutbox ceased to function. 

Bbc buttons did not show, so I copied the missing ones from default bbc image buttons folder into the dilber bbc image buttons folder, and that fixed that problem.  But the none of the bbc buttons work  -- something to do with the javascript?     

Shoutbox is showing on my custom theme, but does not function.  When I try to enter text, nothing happens. 
When I hit send - refreshes the whole page. 
When I click pop up  - window pops up but browser index page also refreshes to mimic the pop up page.  Nothing in the pop up window works. 
Moderate doesn't work.   


These are all the same problems others before me are having, but I just wanted to note that it's happening here too.  In default all works well, so I know it's a wonderful program!!   Can't wait to see the fixes, but I will try to be patient, don't need it until January anyway.   
Title: Re: HacksPark shoutBox
Post by: gotorx7 on December 01, 2008, 04:20:19 AM
I have it working on 2 sites with Dilber, so it's unlikely to be the program I think..

Did you copy the js file into the /dilbermc/ folder?

All the HP_ files in fact...

Cheers,
Dave
Title: Re: HacksPark shoutBox
Post by: JCS on December 01, 2008, 07:07:37 AM
Here's an interesting thing a I found I installed the shout onto the default, then made a custom theme. Well I moved the js files as it said in the instructions, now when I go into my css style sheet the little color pic box shows up. If I remove the HPcolorpicker.js, then shoutbox will not work, but then the box doesn't show in my style sheet.

Pic included to show what I mean..

Any ideas on this?

have to check this very carefully, thanks for let us know that
hi here is my index.template  for my custom theme..  can u put the code in to it?

thnx

tanny

ill try, but you should try a package parser

How did you get it working with tp (Center blocks)

Please help !!!

Thanks.....

in the admin of the shoutbox, put the "index" action

ok!! i'm REALLY so pissed off =[
i'm so STUCK!!! i read all through 8pages with no luck =[
i hope someone can help me..
i'm currently using
1.1.7,TP,installed through Packages,theme: Slient Wave by DznierStudio..
after when i install,everything seeems 2 be working fine(in ADMIN PANEL)
but when i go out into Forum i cannot see my Shoutbox on the Index..
i tried so many things 2 edit the index.template.php
nothing can work..
i'll upload the file for you guys..
i hope you guys can help

cheers all!! u guys are awesome =]

same as tanny

pls help me, i have successfully installed  it and edited my theme's index.template.php
but my problem is whenever i type a msg it wont show. Ive already checked my font color and it seems that i cant even highlight the msg i have typed.

here's my Forum Site (http://bbs.coldfusiongaming.net/)

srry, haven't see the shoutbox on your page

thnx - great mod
i have a few little question:
1.how change  -  link to profile (if set that display nick as link) to place nick in message box to sent with ?
I tried edit  HP_shoutBox.php in sourcedir.. but i can't do this :(
2. can you create a list of active users right of chat with private messages?

PS big thnx and sorry for my english..

thanks for the advises, we'll see if that functions could be able for the next version

Just one quick question.

When the user goes back to the index, there is a slight delay before the messages in the SB show up.  Is there a way to fix this?

the delay is the same you set on the admin for refreshing the shoutbox

FYI: the sdemo account at http://www.hackspark.com/smf-test/index.php seems to have been deleted.

fixed

Hi,

If I wanted to add a modification to your code using Notepad...I save it, zip it, and I try to re-upload it.

I get the "This file maybe currupted..." etc

I've tried using a Mod Creator program that can open and save.XML file.. and still no luck.

What program did you use to create Shout.box?

Any suggestions?

just notepad :S, what do you want to add??

hi just wondering how I can disable guest viewing.

Thanks :)

open your index.template.php and look for this:

# Hack's Park ||
template_HP_shoutBoxMain();

then, leave it this way:

# Hack's Park ||
if ($context['user']['is_logged'])
template_HP_shoutBoxMain();

Just wanted to let you guys know that this is a great mod, all of my users loved it!  I had it running for three days on 1.1.7 and then upgraded to 2.0 Beta 4 and already some of my members are calling for my head because their shoutbox disappeared.  :D

Anyway, thanks alot guys, can't wait till yall make this compatible with 2.0 Beta 4!

Also, a random note.  Using this mod will affect your stats page, in the page views section.  I think it counts a page view every time the shoutbox refreshes (i.e. If you have it set to refresh every 10 seconds, then every 10 seconds that a user's shoutbox refreshes it will count as a page view).  I went from about 10,000 views per day to easily 70,000 or so after I installed the mod.  Not a big deal, just figured it was worth mentioning.

thanks, already working on that

Why shout not work properly in Internet Explorer?
In the Firefox is great, but many people use IE.

Link to forum:
http://vukovisadunava.com/index.php?action=forum

that's strange, we tested it in so many browsers and everything was okay, ill check something and then i'll give you an answer

im still waiting if this shoutbox can put in the block for TinyPortal users.

have to see how to do that, cuz we haven't use TP

Hi, I am using the dilber theme and have gone through the parser but i still cannot get the shoutbox to work on the dilber theme.

It works great on the default theme.

I attach the index.template file. please help me :-[

I'll check that as soon as possible

I'm just wondering if you are able to make it work with 2.0 beta 4.
It seems to be a great mod. I'm running 2.0 beta 4, and would love to have it...!!!!

it will be working on SMF 2.0 soon

Same problems as many.  I used the parser to make the edits to the dilber custom theme I'm using, and shoutbox ceased to function. 

Bbc buttons did not show, so I copied the missing ones from default bbc image buttons folder into the dilber bbc image buttons folder, and that fixed that problem.  But the none of the bbc buttons work  -- something to do with the javascript?    

Shoutbox is showing on my custom theme, but does not function.  When I try to enter text, nothing happens. 
When I hit send - refreshes the whole page. 
When I click pop up  - window pops up but browser index page also refreshes to mimic the pop up page.  Nothing in the pop up window works. 
Moderate doesn't work.   


These are all the same problems others before me are having, but I just wanted to note that it's happening here too.  In default all works well, so I know it's a wonderful program!!   Can't wait to see the fixes, but I will try to be patient, don't need it until January anyway.

let me know your forum address

I have it working on 2 sites with Dilber, so it's unlikely to be the program I think..

Did you copy the js file into the /dilbermc/ folder?

All the HP_ files in fact...

Cheers,
Dave

nice, thanks for using this mod
Title: Re: HacksPark shoutBox
Post by: gotorx7 on December 01, 2008, 07:14:45 AM
Quote
I have it working on 2 sites with Dilber, so it's unlikely to be the program I think..

Did you copy the js file into the /dilbermc/ folder?

All the HP_ files in fact...

Cheers,
Dave

nice, thanks for using this mod

Nah, thank you for supplying it  :)

If I can help with English Instructions or anything, please let me know..

Cheers,
Dave
Title: Re: HacksPark shoutBox
Post by: rubelNB on December 01, 2008, 06:47:44 PM
Hi, I am using the dilber theme and have gone through the parser but i still cannot get the shoutbox to work on the dilber theme.

It works great on the default theme.

I attach the index.template file. please help me :-[

Anyone able to help me on this? :(
Title: Re: HacksPark shoutBox
Post by: KathyT on December 01, 2008, 08:43:54 PM
I have it working on 2 sites with Dilber, so it's unlikely to be the program I think..

Did you copy the js file into the /dilbermc/ folder?

All the HP_ files in fact...

Cheers,
Dave


Hi Dave,

Can you be a little more specific on the location of the files I need to copy and /or move (from where to where??)   I just followed the code changes from the parser and saw nothing about moving files?

I sooo hope you can help me...I have been working on this for days - I think I missed some major holiday recently?  ;)  (ok so I didn't exactly mind not cooking!).    But I have a lot of other mods that I need to make work on the dilber theme...and  to be honest the term 'cascading style sheet' just brings to mind waterfalls and luxurious hotels.... (maybe I need a vacation).  In other words, I have NO clue what I'm doing.

Do you know if there are easy ways or at least a tutorial for customizing Dilber to make my mods work like the default?  I have gallery, chat, and hopefully shoutbox soon.   I am using a Christmas theme now, but I have to have the Dilber ready to change right after. 

Thanks and God bless!
Kathy T

 
Oops missed this   
Quote
let me know your forum address

It's http://riobravoreversal.com/SMFbb/index.php   

You'd have to be registered to see it, and currently I have the members using a Christmas theme (where it doesn't show) while I'm using the Dilber theme to customize it for change after Christmas.   So I'm not sure it will help..but if you want to see it you can sign in as a member and I can set your default theme to Dilber so you can see what I'm up against....


Title: Re: HacksPark shoutBox
Post by: xxwckdxx on December 02, 2008, 01:04:03 AM
can anyone help me out here iam getting a error when i did a manual edit for my theme

"Template Parse Error!
There was a problem loading the /Themes/Workspace_/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."

it says line 151

149:       <tr><td id="hp_colorpicker_div_select" style="background-color: #FFFFFF;">
150:          <img border="0" src="', $settings['images_url'], '/blank.gif" width="80" height="18" alt="" /></td></tr></table></td> ';

151:       </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> ';

152:    </div></div></td></tr></table>
153:    



Title: Re: HacksPark shoutBox
Post by: gotorx7 on December 02, 2008, 02:58:05 AM
I have it working on 2 sites with Dilber, so it's unlikely to be the program I think..

Did you copy the js file into the /dilbermc/ folder?

All the HP_ files in fact...

Cheers,
Dave


Hi Dave,

Can you be a little more specific on the location of the files I need to copy and /or move (from where to where??)   I just followed the code changes from the parser and saw nothing about moving files?

I sooo hope you can help me...I have been working on this for days - I think I missed some major holiday recently?  ;)  (ok so I didn't exactly mind not cooking!).    But I have a lot of other mods that I need to make work on the dilber theme...and  to be honest the term 'cascading style sheet' just brings to mind waterfalls and luxurious hotels.... (maybe I need a vacation).  In other words, I have NO clue what I'm doing.

Do you know if there are easy ways or at least a tutorial for customizing Dilber to make my mods work like the default?  I have gallery, chat, and hopefully shoutbox soon.   I am using a Christmas theme now, but I have to have the Dilber ready to change right after. 

Thanks and God bless!
Kathy T

 
Oops missed this   
Quote
let me know your forum address

It's http://riobravoreversal.com/SMFbb/index.php   

You'd have to be registered to see it, and currently I have the members using a Christmas theme (where it doesn't show) while I'm using the Dilber theme to customize it for change after Christmas.   So I'm not sure it will help..but if you want to see it you can sign in as a member and I can set your default theme to Dilber so you can see what I'm up against....

Hi KathyT,

You need to copy the following files from the Themes/default folder to Themes/dilbermc

Themes/default/HP_colorPicker.js
Themes/default/HP_shoutBox.js
Themes/default/HP_shoutBox_Mod.js
Themes/default/HP_shoutBox.template.php
Themes/default/HP_shoutBox_Manage.template.php
Themes/default/images/del.gif
Themes/default/images/edit.gif
Themes/default/images/loading.gif
Themes/default/images/bbc/bgcolor.gif
Themes/default/images/bbc/caretos.gif
Themes/default/images/bbc/clean.gif
Themes/default/images/bbc/fontcolor.gif
Themes/default/images/bbc/nocolor.gif

Hope that helps!

Cheers,
Dave
Title: Re: HacksPark shoutBox
Post by: JCS on December 02, 2008, 07:58:08 AM
can anyone help me out here iam getting a error when i did a manual edit for my theme

"Template Parse Error!
There was a problem loading the /Themes/Workspace_/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."

it says line 151

149:       <tr><td id="hp_colorpicker_div_select" style="background-color: #FFFFFF;">
150:          <img border="0" src="', $settings['images_url'], '/blank.gif" width="80" height="18" alt="" /></td></tr></table></td> ';

151:       </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> ';

152:    </div></div></td></tr></table>
153:

please send me more information about your site via mp
Title: Re: HacksPark shoutBox
Post by: KathyT on December 02, 2008, 09:44:59 AM
Quote
Hi KathyT,

You need to copy the following files from the Themes/default folder to Themes/dilbermc

Themes/default/HP_colorPicker.js
Themes/default/HP_shoutBox.js
Themes/default/HP_shoutBox_Mod.js
Themes/default/HP_shoutBox.template.php
Themes/default/HP_shoutBox_Manage.template.php
Themes/default/images/del.gif
Themes/default/images/edit.gif
Themes/default/images/loading.gif
Themes/default/images/bbc/bgcolor.gif
Themes/default/images/bbc/caretos.gif
Themes/default/images/bbc/clean.gif
Themes/default/images/bbc/fontcolor.gif
Themes/default/images/bbc/nocolor.gif

Hope that helps!

Cheers,
Dave


Beautiful Dave!  Works wondeful thank you so so so much!!

Kathy T
Title: Re: HacksPark shoutBox
Post by: makito on December 02, 2008, 10:03:34 AM
can anyone help me out here iam getting a error when i did a manual edit for my theme

"Template Parse Error!
There was a problem loading the /Themes/Workspace_/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."

it says line 151

149:       <tr><td id="hp_colorpicker_div_select" style="background-color: #FFFFFF;">
150:          <img border="0" src="', $settings['images_url'], '/blank.gif" width="80" height="18" alt="" /></td></tr></table></td> ';

151:       </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> ';

152:    </div></div></td></tr></table>
153:

As I see some package parser change &#39; to '

That's the problem in that line (151)

Go to the line and replace what you have there with this:
Code: [Select]
</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&#39;s Park colorPicker" target="_blank">(cc) Hack&#39;s Park</a></span></td></tr></table> ';
Title: Re: HacksPark shoutBox
Post by: Afro on December 02, 2008, 10:23:18 AM
wow, the best shoutbox so far...

how do i move it to the bottom of the forum


'''
Ok sorry for the bump..i have moved it to the bottom of the forum
Title: Re: HacksPark shoutBox
Post by: gotorx7 on December 02, 2008, 03:52:44 PM
Quote
Hi KathyT,

You need to copy the following files from the Themes/default folder to Themes/dilbermc

Themes/default/HP_colorPicker.js
Themes/default/HP_shoutBox.js
Themes/default/HP_shoutBox_Mod.js
Themes/default/HP_shoutBox.template.php
Themes/default/HP_shoutBox_Manage.template.php
Themes/default/images/del.gif
Themes/default/images/edit.gif
Themes/default/images/loading.gif
Themes/default/images/bbc/bgcolor.gif
Themes/default/images/bbc/caretos.gif
Themes/default/images/bbc/clean.gif
Themes/default/images/bbc/fontcolor.gif
Themes/default/images/bbc/nocolor.gif

Hope that helps!

Cheers,
Dave


Beautiful Dave!  Works wondeful thank you so so so much!!

Kathy T

You are Welcome  :)

Glad it worked for you..

Cheers,
Dave
Title: Re: HacksPark shoutBox
Post by: micky13 on December 03, 2008, 09:43:29 AM
Can someone show me how to add this Shoutbox to my second style. I only have 2 styles, the Default, and one called "Blues". It works perfectly on the default style, but I need to get it working on the "Blues" style. Can you show me how? Thanks.
Title: Re: HacksPark shoutBox
Post by: Mikeric on December 03, 2008, 03:31:47 PM
Everytime i try and add the code to my index.template.php like it says to add to another theme i keep getting an error. The theme is default Multicolour. I attached my index.template.php.
Title: Re: HacksPark shoutBox
Post by: shanksta13 on December 03, 2008, 11:46:20 PM
Any updates on the version for 2.0 Beta 4?
Title: Re: HacksPark shoutBox
Post by: pikeman on December 04, 2008, 04:55:32 AM
Why shout not work properly in Internet Explorer?
In the Firefox is great, but many people use IE.

Link to forum:
http://vukovisadunava.com/index.php?action=forum

that's strange, we tested it in so many browsers and everything was okay, ill check something and then i'll give you an answer

OK  ;)
Title: Re: HacksPark shoutBox
Post by: Pяηѕѕ LF on December 04, 2008, 11:02:55 AM
Hello,

If it possible I want to know more information about:

the number 1 in the image >

it's possible to "interdit" not allowed Normal users, to put a link in the shoutbox, to see "the bbc" for this ? but moderator and admin can.

for the number 2 >

If we can make anything with this bbc. We can delete it ? If yes, how we can delet it.

and my last question is for +- how many users this shoutbox is advise.

thanks for your mod and support.




(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg512.imageshack.us%2Fimg512%2F4414%2Fsssvc1to2.gif&hash=da815b65745dbc1746b1ccdcf0584324)
Title: Re: HacksPark shoutBox
Post by: JCS on December 04, 2008, 03:56:20 PM
Can someone show me how to add this Shoutbox to my second style. I only have 2 styles, the Default, and one called "Blues". It works perfectly on the default style, but I need to get it working on the "Blues" style. Can you show me how? Thanks.

Everytime i try and add the code to my index.template.php like it says to add to another theme i keep getting an error. The theme is default Multicolour. I attached my index.template.php

use this parser: http://resourcez.biz/PackageParser/index.php, or this one: http://www.sleepycode.com/PackageParser/index.php

no matter if you have the 1.1.7 version, use the 1.1.6 for the parser, its the same for this

if get any error, please paste the error here

Any updates on the version for 2.0 Beta 4?

nothing for now, but be patient and stay tuned with us

Hello,

If it possible I want to know more information about:

the number 1 in the image >

it's possible to "interdit" not allowed Normal users, to put a link in the shoutbox, to see "the bbc" for this ? but moderator and admin can.

for the number 2 >

If we can make anything with this bbc. We can delete it ? If yes, how we can delet it.

and my last question is for +- how many users this shoutbox is advise.

thanks for your mod and support.




(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg512.imageshack.us%2Fimg512%2F4414%2Fsssvc1to2.gif&hash=da815b65745dbc1746b1ccdcf0584324)

1. its possible, but we didn't meant that to work that way, so that need some time to be implemented

2. the first button is the one to remove the stile, for example, an user activates bold, italicized, underlined, change the font and set colours for the background and text, if he clicks this button, all that stuff will disappear and it gets back to normal.

the other two icons "with the X" is where the selected background and font colour preview is showed, so I don't think that remove them is a good idea.

users... well, I'm going to let makito to answer that ^^
Title: Re: HacksPark shoutBox
Post by: rubelNB on December 04, 2008, 04:28:08 PM
Hi, I am using the dilber theme and have gone through the parser but i still cannot get the shoutbox to work on the dilber theme.

It works great on the default theme.

I attach the index.template file. please help me :-[

I'll check that as soon as possible

Hi JCS, I don't suppose you have had a chance to look at the index.template file yet? I'm really stuck now and have no idea on what to do :-[
Title: Re: HacksPark shoutBox
Post by: JCS on December 04, 2008, 08:32:43 PM
srry, but I'm finishing this semester at the university, so you can imagine the amount of work I have right now, try a package parser or something, and if you get an error, just paste it here, there are so may people that may can help you, remember to backup your files before make something
Title: Re: HacksPark shoutBox
Post by: RoH on December 05, 2008, 06:33:16 AM
is there a way that we show this shoutbox inside a specific board rather showing at the main board ?

i mean, if i have Tech Talk board, is their a way i can show this shoutbox only the those who are currently viewing Tech Talk board ?

Title: Re: HacksPark shoutBox
Post by: Pяηѕѕ LF on December 05, 2008, 05:52:18 PM
JCS, ok now i see the bbc button I think I don't utilise but they have a fonction :). Thanks for information.

I have another question.

in my ./Themes/default/index.template.php I delete all the code about the shoubox because I dont utilise the shoutbox in index etc.. I utilise only action=shoutbox.

It's a problem if I deleted the code in index.template.php ?  :-\

And it's possible to add a image in action=shoutbox ?
Title: Re: HacksPark shoutBox
Post by: Gadget.. on December 05, 2008, 08:27:48 PM
Well I did not back up & after installing this mod I recieve this error only when I try to login:

Quote
Fatal error: Cannot redeclare template_hp_shoutboxmain() (previously declared in /home/content/c/a/r/carnage101/html/Gadget/PSPimp/forum/Sources/Load.php(1726) : eval()'d code:61) in /home/content/c/a/r/carnage101/html/Gadget/PSPimp/forum/Sources/Load.php(1726) : eval()'d code on line 271

Can I back out of this error or am I screwed??

Help is appreciated, Thanks...
Title: Re: HacksPark shoutBox
Post by: VegaTheChosen on December 06, 2008, 01:27:03 PM
I've installed your shoutbox and everything works fine on the default template then i added it to my theme and it displays but doesn't work also some of the images are missing as you can see I was wondering how to remedy this problem? I've provided and image of what I'm talking about as well as my index.template thanks for any help you can give
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi35.tinypic.com%2F2wgeywx.jpg&hash=207c41e5454fe1f8fcf43ba335bc89c7)
also how can I re-size the font smaller for your tag (CC) Hack's Park on the shout box?

thanks for your help

edit also another problem is the close button doesn't work on the other theme but it works in the default theme

--SOLVED IT
maybe i overlooked it but in order for this to work on themes other than default you must edit the index.template.php and then extract the hacks Park package there will be a folder named "theme" open it you'll see another folder default open this one and you'll see 5 files and 2 folder, the files all start with HP, open your ftp program which should be open if you've already edited the index.template go to the theme(s) you want to install this on open the theme folder like forum/theme/winter and transfer the HP files then upload the images to there respectable places within your theme and bam you'll be shouting/chatting in no time
Title: Re: HacksPark shoutBox
Post by: viper787878 on December 06, 2008, 05:32:38 PM
Ok, I've downloaded the shout box, it works on defalt core but not on the one I use.
The theme I use is Helios Multi.  Is It possible to have a shout box on that type of theme?
Title: Re: HacksPark shoutBox
Post by: GorGon on December 06, 2008, 10:24:30 PM
mod installed and work fine!
except ...
when I go to shout box>admin>permission , and want to edit the permission, i have 404 error page.
can't edit the permission .... plz help :(
Title: Re: HacksPark shoutBox
Post by: Gadget.. on December 07, 2008, 02:28:56 AM
Well I did not back up & after installing this mod I recieve this error only when I try to login:

Quote
Fatal error: Cannot redeclare template_hp_shoutboxmain() (previously declared in /home/content/c/a/r/carnage101/html/Gadget/PSPimp/forum/Sources/Load.php(1726) : eval()'d code:61) in /home/content/c/a/r/carnage101/html/Gadget/PSPimp/forum/Sources/Load.php(1726) : eval()'d code on line 271

Can I back out of this error or am I screwed??

Help is appreciated, Thanks...


SOLVED,...  I just editied all my templates! & removed all the Hack's Park text & everything is fine at my forum just this mod does not work for me... :(
Title: Re: HacksPark shoutBox
Post by: CanadianIce on December 07, 2008, 03:56:19 PM
My members (and myself) absolutely LOVE this shoutbox.  Awesome job!

I was wondering if there is a way to add custom commands to it (like the /me one)

Seems my members want a snowball fight  ;D
Title: Re: HacksPark shoutBox
Post by: shanksta13 on December 08, 2008, 03:10:34 PM
What needs to be done to get this mod on SMF 2.0 Beta 4?  Is it as simple as simply manually applying the edits?  I really need to get this back up on my site, my members are about to kill me.
Title: Re: HacksPark shoutBox
Post by: JCS on December 08, 2008, 05:43:40 PM
JCS, ok now i see the bbc button I think I don't utilise but they have a fonction :). Thanks for information.

I have another question.

in my ./Themes/default/index.template.php I delete all the code about the shoubox because I dont utilise the shoutbox in index etc.. I utilise only action=shoutbox.

It's a problem if I deleted the code in index.template.php ?  :-\

And it's possible to add a image in action=shoutbox ?

actually, i dont understand what do you want ^^, the code that prints the shoutbox is

Code: [Select]
template_HP_shoutBoxMain();
so only delete that one to not show that on the index

the image thing, can you explain me exactly what you want please

Well I did not back up & after installing this mod I recieve this error only when I try to login:

Quote
Fatal error: Cannot redeclare template_hp_shoutboxmain() (previously declared in /home/content/c/a/r/carnage101/html/Gadget/PSPimp/forum/Sources/Load.php(1726) : eval()'d code:61) in /home/content/c/a/r/carnage101/html/Gadget/PSPimp/forum/Sources/Load.php(1726) : eval()'d code on line 271

Can I back out of this error or am I screwed??

Help is appreciated, Thanks...

see your index.template.php file, you have twice this function:

Code: [Select]
template_hp_shoutboxmain()
delete one of them, try a package parser

I've installed your shoutbox and everything works fine on the default template then i added it to my theme and it displays but doesn't work also some of the images are missing as you can see I was wondering how to remedy this problem? I've provided and image of what I'm talking about as well as my index.template thanks for any help you can give
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi35.tinypic.com%2F2wgeywx.jpg&hash=207c41e5454fe1f8fcf43ba335bc89c7)
also how can I re-size the font smaller for your tag (CC) Hack's Park on the shout box?

thanks for your help

edit also another problem is the close button doesn't work on the other theme but it works in the default theme

--SOLVED IT
maybe i overlooked it but in order for this to work on themes other than default you must edit the index.template.php and then extract the hacks Park package there will be a folder named "theme" open it you'll see another folder default open this one and you'll see 5 files and 2 folder, the files all start with HP, open your ftp program which should be open if you've already edited the index.template go to the theme(s) you want to install this on open the theme folder like forum/theme/winter and transfer the HP files then upload the images to there respectable places within your theme and bam you'll be shouting/chatting in no time

url link please

Ok, I've downloaded the shout box, it works on defalt core but not on the one I use.
The theme I use is Helios Multi.  Is It possible to have a shout box on that type of theme?

use a package parser to made the modifications, if you still having troubles, post here those ones

mod installed and work fine!
except ...
when I go to shout box>admin>permission , and want to edit the permission, i have 404 error page.
can't edit the permission .... plz help :(

make sure that all the files are where they must be, compare the files in the mod qith the ones you got on your custom theme folder

My members (and myself) absolutely LOVE this shoutbox.  Awesome job!

I was wondering if there is a way to add custom commands to it (like the /me one)

Seems my members want a snowball fight  ;D

working on that, now, the only way to add custom actions is doing it manually by yourself

What needs to be done to get this mod on SMF 2.0 Beta 4?  Is it as simple as simply manually applying the edits?  I really need to get this back up on my site, my members are about to kill me.

patience, we have other projects and college, also we don't really know SMF 2.0, so we are studying it

if you have any knowledge about SMF 2.0, php, ajax and stuff, you can make it works with 2.0, for now, we have to be sure that it's going to work the best it can do

is there a way that we show this shoutbox inside a specific board rather showing at the main board ?

i mean, if i have Tech Talk board, is their a way i can show this shoutbox only the those who are currently viewing Tech Talk board ?

you can show the shoutbox on the action pages, theres no way to be showed on an specificall forum, but its a nice feature, gonna see how hard it is to be implemented
Title: Re: HacksPark shoutBox
Post by: shanksta13 on December 09, 2008, 01:02:42 PM
What needs to be done to get this mod on SMF 2.0 Beta 4?  Is it as simple as simply manually applying the edits?  I really need to get this back up on my site, my members are about to kill me.

patience, we have other projects and college, also we don't really know SMF 2.0, so we are studying it

if you have any knowledge about SMF 2.0, php, ajax and stuff, you can make it works with 2.0, for now, we have to be sure that it's going to work the best it can do

Yeah, I hear you, I've been booked to the hilt with finals myself.  I'll take a look at it and see if I can't come up with something for 2.0.
Title: Re: HacksPark shoutBox
Post by: brtz on December 09, 2008, 01:38:13 PM
Hey JCS, i was wondering if there was any news about getting this mod integrated in the infocenter :)

Thanks!
Title: Re: HacksPark shoutBox
Post by: JCS on December 09, 2008, 03:55:46 PM
Hey JCS, i was wondering if there was any news about getting this mod integrated in the infocenter :)

Thanks!

info center??, in the admin panel, add the action stats, if thats not what you mean, please tell me what info center ^^
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on December 10, 2008, 05:23:37 PM
As is the case with others here I'm hugely busy with finals, and don't feel like typing my problem out yet AGAIN.  I'm still waiting to hear if anyone knows what the deal is with this from four pages back:

http://www.simplemachines.org/community/index.php?topic=269091.msg1807970#msg1807970

Looks nice in default, would be cool if I could use it.   :)
Title: Re: HacksPark shoutBox (Annoyance)
Post by: Captain_Neptune on December 10, 2008, 06:07:23 PM
Ok, I'm about to go nutz here and remove this mod.

HacksPark_shoutBox_v1.2.2
SMF 1.17

I can get shoutbox to work on all pages except the one I want it to (the main index)

I have read threw all 11 pages here. Tried a snotload of 'fixes'

At the moment it is only working as a link off the index page.
Tried setting "Sites where shoutBox will be printed (?action=)" in admin to

boardindex   ..Nothing
;all                ..Shows shoutbox on every page BUT the index   :'(
shoutbox      ..Nothing

if I comment out this line in index.template in func template_HP_shoutBoxMain()

   if (empty($context['hp_shoutbox_show']))
      return;

it shows at the top of the main index page (but not where I want it) but not functional

I modified the default theme directly , no other themes are present.

This at the moment is the only way I can have members access it from a link on the main index page
(guests allowed to view but not post)

From index.template.php

--- Code ---

// Show the menu here, according to the menu sub template.
template_menu();

echo '<br><A HREF="http://ukh.oldmmogamers.net/forums/index.php?action=shoutbox"><b>CLICK HERE for Shoutbox</b></a>  (Until I can figure out how the frack to get it to show in line) Only UKH Members can post, Guest can only read, May load SLOW..';


// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}

# Hack's Park ||
template_HP_shoutBoxMain();
 
function template_main_below()
{


---code---

I have also tried moving "template_HP_shoutBoxMain()" around.

I want to show ONLY on the 'main forum index page' where the current 'Click here' link is.
Kinda strange that ";all" shows it just fine on all pages EXCEPT the main index page!

Any ideas would be appreciated. This is getting fully annoying. I REALLY DON'T want to write a version mysel using SSI Perl.

Website: http://ukh.oldmmogamers.net/forum

Cheers
Title: Re: HacksPark shoutBox
Post by: JCS on December 10, 2008, 06:19:33 PM
As is the case with others here I'm hugely busy with finals, and don't feel like typing my problem out yet AGAIN.  I'm still waiting to hear if anyone knows what the deal is with this from four pages back:

http://www.simplemachines.org/community/index.php?topic=269091.msg1807970#msg1807970

Looks nice in default, would be cool if I could use it.   :)

u sure u put all the .js file where they must be??, cuz everything seems normal

Ok, I'm about to go nutz here and remove this mod.

HacksPark_shoutBox_v1.2.2
SMF 1.17

I can get shoutbox to work on all pages except the one I want it to (the main index)...

...Website: http://ukh.oldmmogamers.net/forum

Cheers

heres the problem

Code: [Select]
// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';
}

# Hack's Park ||
template_HP_shoutBoxMain();
 
function template_main_below()
{

it must be

Code: [Select]
// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">';

# Hack's Park ||
template_HP_shoutBoxMain();

}
 
function template_main_below()
{
Title: Re: HacksPark shoutBox
Post by: Captain_Neptune on December 10, 2008, 07:08:08 PM
Well ...That worked :)
Thanks!

Boy, do I feel mentally challenged...

FYI Most the manual install instructions state:

Find: function template_main_below()
{

Add Above:
# Hack's Park ||
template_HP_shoutBoxMain();

That was confusing...

Thanks again..
Title: Re: Next Question
Post by: Captain_Neptune on December 10, 2008, 07:12:07 PM
What do I change to increase the amount of characters you can type in 1 line..and will it wrap itself on a long message.

I have a member that likes to write books in shoutbox :D (Very long messages) 1024 characters might be enough ...

Cheers
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on December 10, 2008, 09:35:15 PM
As is the case with others here I'm hugely busy with finals, and don't feel like typing my problem out yet AGAIN.  I'm still waiting to hear if anyone knows what the deal is with this from four pages back:

http://www.simplemachines.org/community/index.php?topic=269091.msg1807970#msg1807970

Looks nice in default, would be cool if I could use it.   :)

u sure u put all the .js file where they must be??, cuz everything seems normal

All I did was place the two blocks of code given to me by the package parser and upload some image files.  I didn't do anything with any JavaScript (unless it was included in what the package parser gave me?).  I was unaware there were additional steps.
Title: Re: HacksPark shoutBox
Post by: brtz on December 11, 2008, 12:59:11 PM
Hey JCS, i was wondering if there was any news about getting this mod integrated in the infocenter :)

Thanks!

info center??, in the admin panel, add the action stats, if thats not what you mean, please tell me what info center ^^

I mean this:
http://www.simplemachines.org/community/index.php?topic=269091.msg1764353#msg1764353

:)
Title: Re: HacksPark shoutBox
Post by: makito on December 11, 2008, 01:42:44 PM
As is the case with others here I'm hugely busy with finals, and don't feel like typing my problem out yet AGAIN.  I'm still waiting to hear if anyone knows what the deal is with this from four pages back:

http://www.simplemachines.org/community/index.php?topic=269091.msg1807970#msg1807970

Looks nice in default, would be cool if I could use it.   :)

Forum url pls
Title: Re: HacksPark shoutBox (Increase Input Box Max Characters)
Post by: Captain_Neptune on December 11, 2008, 04:31:17 PM
What do I change to increase the amount of characters you can type in 1 line..and will it wrap itself on a long message.

I have a member that likes to write books in shoutbox :D (Very long messages) 1024 characters might be enough ...

Cheers
Title: Re: HacksPark shoutBox
Post by: brtz on December 11, 2008, 06:41:09 PM
Hey JCS, i was wondering if there was any news about getting this mod integrated in the infocenter :)

Thanks!

info center??, in the admin panel, add the action stats, if thats not what you mean, please tell me what info center ^^

I mean this:
http://www.simplemachines.org/community/index.php?topic=269091.msg1764353#msg1764353

:)


hmm, for some reason the attachment is gone. Here is it again:
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on December 11, 2008, 08:02:57 PM
As is the case with others here I'm hugely busy with finals, and don't feel like typing my problem out yet AGAIN.  I'm still waiting to hear if anyone knows what the deal is with this from four pages back:

http://www.simplemachines.org/community/index.php?topic=269091.msg1807970#msg1807970

Looks nice in default, would be cool if I could use it.   :)

Forum url pls
Under my avatar.  Not sure how that would help though.  I've taken out the package parser edits because it would look ridiculous to have a shout box up there that doesn't function.  Still, there it is.  Still installed and functional in default.     :)
Title: Re: HacksPark shoutBox
Post by: makito on December 11, 2008, 09:11:22 PM
Under my avatar.  Not sure how that would help though.  I've taken out the package parser edits because it would look ridiculous to have a shout box up there that doesn't function.  Still, there it is.  Still installed and functional in default.     :)

http://zombiedeathhouse.com/horrorforum/index.php?action=shoutbox

You dont have to uninstall the mod to disable... you should only change the option "Sites where shoutBox will be printed (?action=)" ("boardindex;collapse") to " "

As I see, you dont have JS files: http://zombiedeathhouse.com/horrorforum/Themes/Aa_New_Damage/HP_shoutBox.js

msgs are getting right: http://zombiedeathhouse.com/horrorforum/index.php?action=shoutbox;sa=get;xml

Be sure all JS and image files are in /horrorforum/

Greetings
Title: Re: HacksPark shoutBox
Post by: theS3X on December 11, 2008, 09:33:00 PM
These are probably two very simple questions, but I can't seem to figure them out. First, how do you change the time so it displays in a 12 hour clock instead of 24 hours? I see the spot to change it, but no matter what I put there it doesn't display right. Second, is there a way to remove certain features like the text background color option so users can't use it?  Thanks in advance for the help.
Title: Re: HacksPark shoutBox
Post by: PHILLYFAN on December 12, 2008, 02:21:21 AM
New to SMF always used vbulletin! I figured how to installl the mod, but it only shows up on the theme that came with the smf download. I added a new theme so where do I edit it to work with the theme im using?

Thanks
Title: Re: HacksPark shoutBox (Increase Input Box Max Characters)
Post by: Captain_Neptune on December 12, 2008, 07:10:30 AM
What do I change to increase the amount of characters you can type in 1 line..and will it wrap itself on a long message.

I have a member that likes to write books in shoutbox :D (Very long messages) 1024 characters might be enough ...

Cheers

I guess no one knows the answer to this or if its even possible??

Cheers
Title: Re: HacksPark shoutBox
Post by: makito on December 12, 2008, 10:35:19 AM
These are probably two very simple questions, but I can't seem to figure them out. First, how do you change the time so it displays in a 12 hour clock instead of 24 hours? I see the spot to change it, but no matter what I put there it doesn't display right. Second, is there a way to remove certain features like the text background color option so users can't use it?  Thanks in advance for the help.

1) Go to admin panel and edit "Time format (Messages list)" option (to "%I:%M %p")
You can find some information about Time format here: http://www.php.net/manual/es/function.strftime.php

2) We're working on it. The unique way to do it now is editing files manualy

New to SMF always used vbulletin! I figured how to installl the mod, but it only shows up on the theme that came with the smf download. I added a new theme so where do I edit it to work with the theme im using?

Thanks

Use a Package Parser

What do I change to increase the amount of characters you can type in 1 line..and will it wrap itself on a long message.

I have a member that likes to write books in shoutbox :D (Very long messages) 1024 characters might be enough ...

Cheers

I guess no one knows the answer to this or if its even possible??

Cheers


Go to file $themedir/HP_shoutBox.template.php

Search
Code: [Select]
<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']['widthInputMsgPopUp'] . ';padding: 3px;border-width: 1px;border-color: ' . $HP_settings['shoutBox']['textColor'] . ';background-color: ' . $HP_settings['shoutBox']['backgroundColor'] . ';" />
And replace maxlength="120" width maxlength="1028"

- - - - -

Go to file $themedir/index.template.php

Search
Code: [Select]
<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'] . ';" />

And replace maxlength="120" width maxlength="1028"

- - - - -

(Let me tell you that it is too much ^^, 255 could be better)

Greetings
Title: Re: HacksPark shoutBox
Post by: theS3X on December 12, 2008, 11:26:21 AM
Thanks a lot for the help, I really appreciate it. I would have never gotten the time thing. I was using different time formats that you would use to alter the time that is displayed on your PC.  For instance h:mm for Standard 12 hour time.

As for the background color thing, I will wait for an update from you guys that allows an easier way to manipulate it.

Thanks for the awesome shoutBox by the way! I happened to stumble upon it when my hosting server suspended my account because the nneonneo's ShoutBox I had installed was "causing performance issues with their servers and needed to be removed in order to have my account reinstated". Right...
Title: Re: HacksPark shoutBox
Post by: PHILLYFAN on December 12, 2008, 02:36:06 PM
what is a package parser and where do I get it?

thanks
Title: Re: HacksPark shoutBox
Post by: theS3X on December 12, 2008, 04:02:50 PM
As for the background color thing, I will wait for an update from you guys that allows an easier way to manipulate it.

I take that back. If you don't mind showing me what to edit to remove the background color feature I would really appreciate it. It is starting to get annoying seeing people post a purple background with green text and quoting Joker lines from the Dark Knight.
Title: Re: HacksPark shoutBox
Post by: RIGILKENTARUS on December 12, 2008, 06:29:11 PM
First iof all i want to say that you have done a great job in this mod.

my problem/questtion is this....

I have a button to the shoutbox in the mean menu and this is the code
Code: [Select]
// the [CHAT] button
echo '<li' , $current_action=='shoutbox' ? ' class="chosen"' : '' , '><span class="menu_r"><a href="', $scripturl, '?action=shoutbox"><span class="menu_ar">' , Chat , '</span></a></span></li>';

I want to know how can be this code to the PopUp Shoutbox and not to the mean page of the shoutbox
Title: Re: HacksPark shoutBox
Post by: Captain_Neptune on December 12, 2008, 07:50:55 PM
What do I change to increase the amount of characters you can type in 1 line..and will it wrap itself on a long message.

I have a member that likes to write books in shoutbox :D (Very long messages) 1024 characters might be enough ...

Cheers

I guess no one knows the answer to this or if its even possible??

Cheers

[/quote]

Go to file $themedir/HP_shoutBox.template.php

Search
Code: [Select]
<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']['widthInputMsgPopUp'] . ';padding: 3px;border-width: 1px;border-color: ' . $HP_settings['shoutBox']['textColor'] . ';background-color: ' . $HP_settings['shoutBox']['backgroundColor'] . ';" />
And replace maxlength="120" width maxlength="1028"

- - - - -

Go to file $themedir/index.template.php

Search
Code: [Select]
<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'] . ';" />

And replace maxlength="120" width maxlength="1028"

- - - - -

(Let me tell you that it is too much ^^, 255 could be better)

Greetings
[/quote]

Worked...thanks muchly

Cheers
Title: Re: HacksPark shoutBox
Post by: SuddenRedScare on December 12, 2008, 09:49:16 PM
Hey, I'm with Philly.  He has been trying to help me on my boards but this mod has us both stumped.  I have been messing with codes for the past five hours and still have yet to get it to work.  Any help would be greatly appreciated...
Title: Re: HacksPark shoutBox
Post by: ruckstande on December 13, 2008, 09:28:35 AM
I just tried installing and only had to manually edit my custom theme index.template.php file. I now get this
Quote
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in .../Themes/Xbox360_Elite/index.template.php on line 161

152:       <br />
153:       ' . $txt['hs_sb_59'] . ':
154:       <table cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #8d8d8d; margin: 2px 0 8px 0;">
155:       <tr><td id="hp_colorpicker_div_show" style="background-color: #FFFFFF;">
156:          <img border="0" src="', $settings['images_url'], '/blank.gif" width="80" height="18" alt="" /></td></tr></table>
157:       ' . $txt['hs_sb_60'] . ':
158:       <table cellpadding="0" cellspacing="0" border="0" style="border: 1px solid #8d8d8d; margin-top: 2px;">
159:       <tr><td id="hp_colorpicker_div_select" style="background-color: #FFFFFF;">
160:          <img border="0" src="', $settings['images_url'], '/blank.gif" width="80" height="18" alt="" /></td></tr></table></td>

161:       </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>

162:    </div></div></td></tr></table>
163:          <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" />';
164:
165:       // Smilies
Title: Re: HacksPark shoutBox
Post by: makito on December 13, 2008, 11:46:11 AM
Hi ruckstande

Some Parsers do a bad job with an HTML special character. I don't know if it is happening with all parsers, but just a few people ask for this error, so I suppose that (convert &#39; to ').

Search for Hack's Park and replace it with Hack&#39;s Park (as the original code) 4 times

- - - - - -

By the way.... is any budy interesting in helping with Hack's Park english site? (support (not only english), translate (spanish site to english, and maybe then to other language)) If you are, pls contact me by PM.

Greetings
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on December 13, 2008, 03:07:43 PM
Under my avatar.  Not sure how that would help though.  I've taken out the package parser edits because it would look ridiculous to have a shout box up there that doesn't function.  Still, there it is.  Still installed and functional in default.     :)

http://zombiedeathhouse.com/horrorforum/index.php?action=shoutbox

You dont have to uninstall the mod to disable... you should only change the option "Sites where shoutBox will be printed (?action=)" ("boardindex;collapse") to " "

As I see, you dont have JS files: http://zombiedeathhouse.com/horrorforum/Themes/Aa_New_Damage/HP_shoutBox.js

msgs are getting right: http://zombiedeathhouse.com/horrorforum/index.php?action=shoutbox;sa=get;xml

Be sure all JS and image files are in /horrorforum/

Greetings

Thank you, Makito!  I found three .js files in the default theme I had to copy into notepad and upload into my theme.  And whaddya know, it is now working exactly as it should be.  Thank you SO much!  Thumbs up to you, sir!   :D

One question: Is it supposed to be set up so that only complete messages get bolded, italicized, underlined?  I was under the impression you would be able to do that by selecting the text, but it applies the style to the entire message.

EDIT: Quick question if anybody here remembers; are guests NOT able to participate on shout?  That would be preferable.  Maybe if not this is by default?  I looked all through permissions everywhere, and couldn't find settings for guests anywhere.  I know it's been mentioned in this thread before, but please forgive me -I simply don't have the time to look at the moment.  I apologize for being lazy, but I really need to eat and take care of some sh$%.  Normally I'd look through the thread; just...not this time. *rolls eyes at self*
Title: Re: HacksPark shoutBox
Post by: makito on December 13, 2008, 03:25:15 PM
Quote
Little bug; when I select text and say I wanna BOLD the text...it bolds ALL the text.  Any ideas on what the deal is?  Same with underline and italicize.

It isn't a bug. Users have the option to select an style for their messages, but not for an specific part of text (as a normal chat: you dont do it on msn, do you?)
BB Code is disable

Quote
Also, I am unable to select text color.  These are minor, though.

Be sure HP_colorPicker.js exists

Quote
Everything else works well -the only thing that is bothersome is that I cannot restart the shoutbox.  The moderation link shows up with nothing in it, and also there is no text that shows up when there are no messages in the box, yet I have it set up to display a default message which DOES display in the default theme.

As I saw, you have it going...

Quote
EDIT: Quick question if anybody here remembers; are guests NOT able to participate on shout

Guests dont have nothing to say (cause they even dont participate in the forum), do they? (but maybe I am wrong)

Greetings
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on December 13, 2008, 03:34:02 PM

Guests dont have nothing to say (cause they even dont participate in the forum), do they? (but maybe I am wrong)

Greetings

I took the dive to find out for myself.  Guests are allowed to read the message board, so I wasn't sure how that permission would effect the shoutbox, since there are no guest permission controls built into the shoutbox.  But I see now that it is read-only.

Again, thank you very much for the help.  I see you must have started replying to my last post while I was going in and making the other .js edits after everything finally dawned on me!  So yeah...great mod, and I'm glad it's finally working!

:)

Is there a way to make it blind to guests while still allowing them to read the read the rest of the board?  I do have a members only area of the board.  Perhaps the chat can be moved to there?  I'll have to look through this thread tonight for clues...it can't possibly be that tough to have it display on only one board...some small tweak to where is installs on the default theme, surely.

EDIT:  I did find this to make it blind to guests:

Find...
# Hack's Park ||
template_HP_shoutBoxMain();
   
Switch to...
# Hack's Park ||
if ($context['user']['is_logged'])
template_HP_shoutBoxMain();

I could do that, and I'll try it in a bit to see how it works, but I would prefer to move it to a members only area of the board.  Any suggestions there?  I'll keep looking through this thread to see if I find anything...


EDIT #2: I inserted the trick above and made it invisible to guests -works like a charm!  I decided to go with that because after looking through the thread, I saw some posts that indicated that one is not yet able to move it to a specific board.  Maybe in the future.  For now I have a slick chat that is 1,000% invisible to guests.  Ummm, yeah -that's pretty much what my people have been bugging me for.  I think they've just been spoiled enough.

Thanks again for the great mod and for the great support despite everybody being busy with their own lives/schedules.  Your efforts are much appreciated; especially around the holidays, folks.  :) :D 8)
Title: Re: HacksPark shoutBox
Post by: ruckstande on December 14, 2008, 02:04:22 PM
Hi ruckstande

Some Parsers do a bad job with an HTML special character. I don't know if it is happening with all parsers, but just a few people ask for this error, so I suppose that (convert ' to ').

Search for Hack's Park and replace it with Hack's Park (as the original code) 4 times

- - - - - -

By the way.... is any budy interesting in helping with Hack's Park english site? (support (not only english), translate (spanish site to english, and maybe then to other language)) If you are, pls contact me by PM.

Greetings
I tried what you said but it doesn't show up. At least my site works again though.
Title: Re: HacksPark shoutBox
Post by: SuddenRedScare on December 14, 2008, 09:48:11 PM
I've been working on this for days, but I can seem to get it working... Help please!
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on December 15, 2008, 02:02:41 PM
Well, the shoutbox has been up for a couple days and everybody's giving it rave reviews.  We all love it very much.  My peeps had an idea, and I told them I'd check it out.  They want to know if it's possible to embed a video player into the shoutbox, like above the text input box...just below the shoutbox title.

We want to be able to have a "movie night."  We all love the old public domain horror movies out there.  I could upload a bunch of them to my webhost in a video subdirectory.  We'd then chat about the flick while we watch it.  Major nerd stuff.  Sound workable to anyone?  I have the auto-embed video mod installed on my theme if that helps to know.

Any thoughts?
Title: Re: HacksPark shoutBox
Post by: Ordogg on December 15, 2008, 11:23:47 PM
I saw the demo, I love it.... When is a 2.0 Beta 4 version going to be out?
\
Title: Re: HacksPark shoutBox
Post by: haito on December 17, 2008, 02:46:34 AM
hey, i've 2 forums, both of them using this mod...
the first forum, i use simple portal 2.05 (without sidebar at forum page), the hackpark shoutbox can appear at forum page...
but at the second forum, i use simple portal 2.1 (with sidbar at forum page), hackpark shoutbox cant appear at forum page...

i use 1.1.7 and outline themes
Title: Re: HacksPark shoutBox
Post by: AlienTech on December 19, 2008, 05:45:43 PM
has anyone used this Mod with SMF 2.0 b4 ??

I was using it with great success in 1.1.7 and didn't check to see if it was available for 2.0 :(

Title: Re: HacksPark shoutBox
Post by: HR on December 20, 2008, 10:44:37 AM
OK, can anybody who has gotten this to work in TP drop me a line? For whatever reason after I enter a shout the thing refreshes to home and when I go back to the forum the shouts arent registering.

Resolved.. while it gets the template from the default theme directory when using a custom theme it does NOT pull for images or JS files. They need uploaded to your custom theme directory.

Now I just need to find the history length to make it a bit longer

**Update: History can be expanded by editing /Sources/HP_shoutbox.php line 67

Code: [Select]
$query = db_query("SELECT ID_MEMBER, realName, style, message, timestamp, colorName FROM {$db_prefix}hp_shoutbox

ORDER BY timestamp DESC LIMIT [b]20[/b]", __FILE__, __LINE__);

Change the value of 20 to the number of shouts you wish included in the window. Of ciourse /clear sill dumps the content.

Title: Re: HacksPark shoutBox
Post by: crazie on December 26, 2008, 06:35:33 AM
Will the new version have the option for users to turn the shoutbox on/off?

Also, will it "Remember" if I minimize it?  For example, I may want the shoutbox turned on, but not view it, so I minimize it.  However, every time I return to a page with the shoutbox enabled (i.e. boardindex), it reappears, and I'd have to minimize it again.

Also, how about the ability to have the actual input box at the bottom, and the most recent shout on the bottom (reverse order of what it is currently)?

GREAT MOD!  I love everything about it, minus the little things I picked out, but they are not necessary, just nice items if included.

Excellent job, and I look forward to the next release!!!  :)
Title: Re: HacksPark shoutBox
Post by: shanksta13 on December 28, 2008, 02:00:54 AM
December has come and gone.  Any updates on the version for 2.0 Beta 4?
Title: Re: HacksPark shoutBox
Post by: Maliante on December 28, 2008, 05:09:08 PM
If possible increase a height and font size??

I try to find this option but i can't find it.

Please help me.

Maliante 
Title: Re: HacksPark shoutBox
Post by: HR on December 28, 2008, 06:27:15 PM
If possible increase a height and font size??

I try to find this option but i can't find it.

Please help me.

Maliante 

In default/HP_shoutbox.template.php you can change font size by editing all instances of "smalltext" and making them "mediumtext" to make the font a bit larger if you like (course this will do it throughout and not just the messages). As for height.. I did a post above regarding the number of messages displayed. If your talking about the box itself it can be done from administration for HacksPark.

Perhaps he'll make these administrative settings in a future update
Title: Re: HacksPark shoutBox
Post by: scenerip2k on December 29, 2008, 12:44:47 PM
SMF 2.0 Beta 4 dont work
Installations actions for "HacksPark shoutBox":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: HacksPark shoutBox
Post by: HR on December 29, 2008, 12:53:14 PM
Id try and redownload a few times and/or reupload just to b e certain some corruption didnt occour durring transfer.
Title: Re: HacksPark shoutBox
Post by: scenerip2k on December 29, 2008, 12:55:25 PM
did that couple of times still no luck
Title: Re: HacksPark shoutBox
Post by: HR on December 29, 2008, 01:12:41 PM
hmm I think I have a 2.0b4 install will give it a try and see what I can see.

Didnt have to go that far lol.. looking at the download page it isnt compatible for 2.0
Title: Re: HacksPark shoutBox
Post by: Maliante on December 29, 2008, 10:50:37 PM
If possible increase a height and font size??

I try to find this option but i can't find it.

Please help me.

Maliante 

In default/HP_shoutbox.template.php you can change font size by editing all instances of "smalltext" and making them "mediumtext" to make the font a bit larger if you like (course this will do it throughout and not just the messages). As for height.. I did a post above regarding the number of messages displayed. If your talking about the box itself it can be done from administration for HacksPark.

Perhaps he'll make these administrative settings in a future update

I find a solution in the admin panel it's everyting configurable. Tnx. Dude.

Maliante
Title: Re: HacksPark shoutBox
Post by: scenerip2k on December 29, 2008, 11:46:49 PM
hmm I think I have a 2.0b4 install will give it a try and see what I can see.

Didnt have to go that far lol.. looking at the download page it isnt compatible for 2.0

damn....thats a very good shout box! to ad it dont work on 2.0 beta 4....are there any compatible ones like this one that will work on beta 4?
Title: Re: HacksPark shoutBox
Post by: HR on December 30, 2008, 12:25:11 AM
Not that I am aware of although a search on the mod site does turn up a few options.. just be sure you check for compatibility
Title: Re: HacksPark shoutBox
Post by: blakey on December 30, 2008, 01:46:22 PM
I have added the code to my dilber themed forum, but theres no sign of it working, is there anything I need to edit?

Thanks
Title: Re: HacksPark shoutBox
Post by: HR on December 30, 2008, 02:25:39 PM
I have added the code to my dilber themed forum, but theres no sign of it working, is there anything I need to edit?

Thanks
Unfamiliar with the theme can you provide a link?
Title: Re: HacksPark shoutBox
Post by: blakey on December 31, 2008, 02:56:51 AM
worldwidechristiansonline.co.uk

Thanks

Blakey
Title: Re: HacksPark shoutBox
Post by: scenerip2k on January 01, 2009, 01:52:50 PM
can anyone please update this version to 2.0 beta 4
Title: Re: HacksPark shoutBox
Post by: JCS on January 01, 2009, 09:27:23 PM
what is a package parser and where do I get it?

thanks

look for it on google

First iof all i want to say that you have done a great job in this mod.

my problem/questtion is this....

I have a button to the shoutbox in the mean menu and this is the code
Code: [Select]
// the [CHAT] button
echo '<li' , $current_action=='shoutbox' ? ' class="chosen"' : '' , '><span class="menu_r"><a href="', $scripturl, '?action=shoutbox"><span class="menu_ar">' , Chat , '</span></a></span></li>';

I want to know how can be this code to the PopUp Shoutbox and not to the mean page of the shoutbox

<a href="#" onClick="window.open('URL TO THE SHOUTBOX','popup','width=xx,height=xx)">Chat</a>

Hey, I'm with Philly.  He has been trying to help me on my boards but this mod has us both stumped.  I have been messing with codes for the past five hours and still have yet to get it to work.  Any help would be greatly appreciated...

exactly, whats your problem?

Well, the shoutbox has been up for a couple days and everybody's giving it rave reviews.  We all love it very much.  My peeps had an idea, and I told them I'd check it out.  They want to know if it's possible to embed a video player into the shoutbox, like above the text input box...just below the shoutbox title.

We want to be able to have a "movie night."  We all love the old public domain horror movies out there.  I could upload a bunch of them to my webhost in a video subdirectory.  We'd then chat about the flick while we watch it.  Major nerd stuff.  Sound workable to anyone?  I have the auto-embed video mod installed on my theme if that helps to know.

Any thoughts?

mmm you can do it manually everytime you want to do that, changing the video, just edit the file where you want the video to be showed

I saw the demo, I love it.... When is a 2.0 Beta 4 version going to be out?
\

ShoutBox for 2.0 is gonna take a while, we have some other projects running, so its kind of hard

hey, i've 2 forums, both of them using this mod...
the first forum, i use simple portal 2.05 (without sidebar at forum page), the hackpark shoutbox can appear at forum page...
but at the second forum, i use simple portal 2.1 (with sidbar at forum page), hackpark shoutbox cant appear at forum page...

i use 1.1.7 and outline themes

in the admin panel, in the where to show the ShoutBox input, what do you have?

Will the new version have the option for users to turn the shoutbox on/off?

Also, will it "Remember" if I minimize it?  For example, I may want the shoutbox turned on, but not view it, so I minimize it.  However, every time I return to a page with the shoutbox enabled (i.e. boardindex), it reappears, and I'd have to minimize it again.

Also, how about the ability to have the actual input box at the bottom, and the most recent shout on the bottom (reverse order of what it is currently)?

GREAT MOD!  I love everything about it, minus the little things I picked out, but they are not necessary, just nice items if included.

Excellent job, and I look forward to the next release!!!  :)

those things are gonna be studied, we must see if its functional and make sure that the ShoutBox works the best it can

I have added the code to my dilber themed forum, but theres no sign of it working, is there anything I need to edit?

Thanks

theres no just code edits, you must put in your custom theme folder, some files that are contained in the package, unzip it and you'll know what files are those ones

can anyone please update this version to 2.0 beta 4

we are gonna anounce the shoutbox working with SMF 2.0, the problem is that we must be sure that the new version is gonna be a really good one, we have to see also the comments you guys made in order to get a better one, a new admin panel, more options and stuff.

if someone get this one working on 2.0, nice, but for now, we cant asure the users that its a good shoutbox, cuz we dont know it
Title: Re: HacksPark shoutBox
Post by: chrisb on January 02, 2009, 05:18:08 AM
with the shout box can we have the following added to this module

Date & Time

at who is online , if possible can we add this to who is chatting in the who online currently and how long was the last post .If they havent posted for the last 4 hours do not show.
Title: Re: HacksPark shoutBox
Post by: JCS on January 02, 2009, 10:09:18 AM
with the shout box can we have the following added to this module

Date & Time

at who is online , if possible can we add this to who is chatting in the who online currently and how long was the last post .If they havent posted for the last 4 hours do not show.

all the suggestions are gonna be studied to be implemented on the new version of the shoutbox

thanks
Title: Re: HacksPark shoutBox
Post by: crazie on January 02, 2009, 04:50:14 PM
JCS,

Thanks for the update!  Good to hear and good luck with the future release!
Title: Re: HacksPark shoutBox
Post by: GhostWalker on January 02, 2009, 09:37:21 PM
I added the mod but no Shout Box appears. Any ideas as to why? Under Admin it shows I can edit permissions so something is there, but no shoutbox :(
Title: Re: HacksPark shoutBox
Post by: Maliante on January 03, 2009, 12:54:04 AM
It's possible make the shoutbox hidden for guest??

I don't want my guest read anything in my forum register or do nothing.

Thanks

Maliante
Title: Re: HacksPark shoutBox
Post by: CrisisX on January 03, 2009, 02:57:53 PM
I have installed it, and on the admin section of my site I see a Hack's Park tab, but how do I make this shoutbox show on my website, www.CrisisX.com?
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on January 03, 2009, 04:10:10 PM
Well, the shoutbox has been up for a couple days and everybody's giving it rave reviews.  We all love it very much.  My peeps had an idea, and I told them I'd check it out.  They want to know if it's possible to embed a video player into the shoutbox, like above the text input box...just below the shoutbox title.

We want to be able to have a "movie night."  We all love the old public domain horror movies out there.  I could upload a bunch of them to my webhost in a video subdirectory.  We'd then chat about the flick while we watch it.  Major nerd stuff.  Sound workable to anyone?  I have the auto-embed video mod installed on my theme if that helps to know.

Any thoughts?

mmm you can do it manually everytime you want to do that, changing the video, just edit the file where you want the video to be showed

Sorry for being dumb, but is that your way of saying, "Yes, you CAN integrate video directly into this shout box"?  Because I'd have no idea where to begin or what would need to be done to the shoutbox code to integrate a video player.  I can obviously get everything set with organizing a video subdirectory on my webhost and all that jazz.  But as for adjusting the shoutbox code in order to display video above the text input field, I'm one of those idiots whose hand would need to be held.  Well, maybe that's a slight exaggeration.

Based on what you said above (and my own naivete), I'm led to believe that simply slapping in a video url somewhere in the shoutbox code (perhaps where the adjustments were made to index.template.php?) will allow the autoembed to play a video just like I want it to.  But I have a hard time believing it would really be that simple.  Is it?


Unrelated question: In another part of my board, we have a Quotations Hall of Shame.  Any chance a future version would be able to integrate a quotation feature for exportation to the message board?
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on January 03, 2009, 04:14:01 PM
It's possible make the shoutbox hidden for guest??

I don't want my guest read anything in my forum register or do nothing.

Thanks

Maliante

In index.template.php just above function template_main_below()...

Find...
# Hack's Park ||
template_HP_shoutBoxMain();
   
Switch to...
# Hack's Park ||
if ($context['user']['is_logged'])
template_HP_shoutBoxMain();
Title: Re: HacksPark shoutBox
Post by: CrisisX on January 03, 2009, 05:27:09 PM

How do I make the shoutbox show?
Title: Re: HacksPark shoutBox
Post by: Maliante on January 03, 2009, 06:26:47 PM
In index.template.php just above function template_main_below()...

Find...
# Hack's Park ||
template_HP_shoutBoxMain();
   
Switch to...
# Hack's Park ||
if ($context['user']['is_logged'])
template_HP_shoutBoxMain();

Thanks a lot working perfectly .

Regards
Maliante
Title: Re: HacksPark shoutBox
Post by: GhostWalker on January 04, 2009, 06:03:28 AM
Mine does not show either CrisisX so you are not alone
Title: Re: HacksPark shoutBox
Post by: henryjesus on January 04, 2009, 07:21:50 AM
I tried installing Hackspark shoutbox , all is good , it showed , but here is my problem

1. no button shows the "Send Message" button
2. No admin panel
3. when you go to admin --- under forums , there is no HP or HacksPark Link for shoutbox :( am I missing something ?

my theme is default , and I downloaded and zip package and uploaded it to my server and automatically installed it. any ideas would be great
Title: Re: HacksPark shoutBox
Post by: JCS on January 04, 2009, 11:41:57 AM
I added the mod but no Shout Box appears. Any ideas as to why? Under Admin it shows I can edit permissions so something is there, but no shoutbox :(
I have installed it, and on the admin section of my site I see a Hack's Park tab, but how do I make this shoutbox show on my website, www.CrisisX.com?

make sure all the files that the ShoutBox needs are on your custom template folder, also in the administration panel, in the input where you set the pages where you liked the ShoutBox to be showed, add this "boardindex"

Sorry for being dumb, but is that your way of saying, "Yes, you CAN integrate video directly into this shout box"?  Because I'd have no idea where to begin or what would need to be done to the shoutbox code to integrate a video player.  I can obviously get everything set with organizing a video subdirectory on my webhost and all that jazz.  But as for adjusting the shoutbox code in order to display video above the text input field, I'm one of those idiots whose hand would need to be held.  Well, maybe that's a slight exaggeration.

Based on what you said above (and my own naivete), I'm led to believe that simply slapping in a video url somewhere in the shoutbox code (perhaps where the adjustments were made to index.template.php?) will allow the autoembed to play a video just like I want it to.  But I have a hard time believing it would really be that simple.  Is it?


Unrelated question: In another part of my board, we have a Quotations Hall of Shame.  Any chance a future version would be able to integrate a quotation feature for exportation to the message board?

About the video, try making an image to let me know where exactly you wanna embed clips, then ill give you an answer, maybe i can do the modification in a bit

about the quotation thing, i think its possible, ill let makito know that

I tried installing Hackspark shoutbox , all is good , it showed , but here is my problem

1. no button shows the "Send Message" button
2. No admin panel
3. when you go to admin --- under forums , there is no HP or HacksPark Link for shoutbox :( am I missing something ?

my theme is default , and I downloaded and zip package and uploaded it to my server and automatically installed it. any ideas would be great

please, link to your forum

Regards
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on January 04, 2009, 05:50:31 PM
Sorry for being dumb, but is that your way of saying, "Yes, you CAN integrate video directly into this shout box"?

About the video, try making an image to let me know where exactly you wanna embed clips, then ill give you an answer, maybe i can do the modification in a bit.

Alright.  Currently, it looks like pic #1.  Which is wonderful.  When in movie mode, it would be nice if it looked like pic #2, or some approximation thereof.

Again, no rush.  It's more or less one of those "in a perfect world" scenarios.  As is, we're already quite enjoying the shout box.  Cannot WAIT to see what the future has in store for this mod!



On another unrelated note, I'm going to scour this thread again to see what it takes to get this up and running with Tiny Portal; I checked out their site last night, and TP looks quite awesomely feature-packed indeed!  I may switch over & join the cult.  :)
Title: Re: HacksPark shoutBox
Post by: GhostWalker on January 05, 2009, 03:00:40 AM
Alright, now I see the box and where to add text. But when you "Send message" it does not show up at all. The Mod says it works for 1.1.7 but the "Files" installing with the Mod just say 1.1.5 and 1.1.6  :(   WHat am I doing wrong?
Title: Re: HacksPark shoutBox
Post by: henryjesus on January 05, 2009, 08:01:48 AM
I tried installing Hackspark shoutbox , all is good , it showed , but here is my problem

1. no button shows the "Send Message" button
2. No admin panel
3. when you go to admin --- under forums , there is no HP or HacksPark Link for shoutbox  am I missing something ?

my theme is default , and I downloaded and zip package and uploaded it to my server and automatically installed it. any ideas would be great

please, link to your forum  <----- wha ??? how ??? im a complete newbie or an idiot should i say :)

Regards 
 
 
 
Title: Re: HacksPark shoutBox
Post by: henryjesus on January 05, 2009, 08:11:04 AM
btw, more detailed post for this , here is what i got in the error logs if this helps

8: Undefined index: hp_mod_shoutbox
File: /home/filipino/public_html/forums/Sources/Subs.php
Line: 2752

8: Undefined index: hp_admin
File: /home/filipino/public_html/forums/Sources/Subs.php
Line: 2750

Unable to load the 'HP_shoutBox.english-utf8' language file.
Title: Re: HacksPark shoutBox
Post by: JCS on January 05, 2009, 11:24:28 AM
Alright.  Currently, it looks like pic #1.  Which is wonderful.  When in movie mode, it would be nice if it looked like pic #2, or some approximation thereof.

Again, no rush.  It's more or less one of those "in a perfect world" scenarios.  As is, we're already quite enjoying the shout box.  Cannot WAIT to see what the future has in store for this mod!



On another unrelated note, I'm going to scour this thread again to see what it takes to get this up and running with Tiny Portal; I checked out their site last night, and TP looks quite awesomely feature-packed indeed!  I may switch over & join the cult.  :)

so, add in the admin panel an option to activate or deactivate the movie mode, and add an input to put in there the embeded video to be showed where you want it to be..., well, ill try when i get some free time

Alright, now I see the box and where to add text. But when you "Send message" it does not show up at all. The Mod says it works for 1.1.7 but the "Files" installing with the Mod just say 1.1.5 and 1.1.6  :(   WHat am I doing wrong?

srry, when updating the mod, i forgot some things, have to update those, but i have no time right now

btw, more detailed post for this , here is what i got in the error logs if this helps

8: Undefined index: hp_mod_shoutbox
File: /home/filipino/public_html/forums/Sources/Subs.php
Line: 2752

8: Undefined index: hp_admin
File: /home/filipino/public_html/forums/Sources/Subs.php
Line: 2750

Unable to load the 'HP_shoutBox.english-utf8' language file.

please make sure all the Hak's Park ShoutBox's files are where they must be, for example

Code: [Select]
HP_shoutBox.english-utf8
change the extension of the file "HP_shoutBox.english.php" to "HP_shoutBox.english-utf8.php", and put it into your custom template folder, also look at the .js files, images and stuff, you can unpack the .zip package and copy the files, they are in folders, so you can easy understand where they must be

Regards
Title: Re: HacksPark shoutBox
Post by: GhostWalker on January 05, 2009, 03:20:09 PM
Oh Gotcha so it won't work with 1.1.7 :(:(:(  Good to know I am not doing something wrong
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on January 05, 2009, 05:49:44 PM
Oh Gotcha so it won't work with 1.1.7 :(:(:(  Good to know I am not doing something wrong

He must have been referring to something very unique to your situation mate, because we're running 1.1.7 here on my site and everything works ace.  No bollocks here.

You said everything looks normal now but you can't send a message?
A couple things:

1) It seems you might be using a custom theme?  If so, go to your webhost and pull up your file manager.  Look at your SMF default theme folder.  For the Hack's Park Shoutbox items in there, there will be some .js files and a few php files.  Take a quick mental note of them.  I believe there ought to be like 5 or so.  They all start with "HP_"

2) Now go to the folder containing the theme you're using (again, assuming you're using a non-default theme).  Open the folder and assess the situation: is it or is it not the case that all the same Hack's Park files are also there?  If not, that's your problem.

3) Go back to default, copy all those files into Notepad, save those files with the SAME NAMES AND appropriate extension (copy/paste the file name for a fool-proof measure).  Go back to your custom theme and simply upload those files to that theme's folder.  Or, if you like, you can FTP them.

That's what worked for me when I had the same problem.  I had to copy nearly every file from default that started with HP_ and suddenly, everything worked great!  Good luck!





For anyone encountering a similar problem with the BBC buttons not showing up in your custom theme's shoutbox (I had this problem at one point, and thus I bring it up), but they are there in default, guess what?  Same easy fix as described above...go to Default Theme > Images > BBC > find/save the button images you are lacking in your custom theme, go to Your_Theme > Images > BBC > upload those images.
Title: Re: HacksPark shoutBox
Post by: GhostWalker on January 05, 2009, 10:30:56 PM
Alright! It is working yet a small glitch. In the lower left corner it keeps flashing like it is trying to send something. Does that continue?
Title: Re: HacksPark shoutBox
Post by: DareDevil1990 on January 06, 2009, 03:37:48 AM
well first of all it s the lovely sb :D... and second of all i need some help

i have installed it but the problem is that it doesnt show up every time when i load the main page of my site....it shos randomly i have to load the main page like 5-6 time before i can see the sb :( ...whats wrong here? i am on smf 1.1.7
Title: Re: HacksPark shoutBox
Post by: GhostWalker on January 06, 2009, 10:12:19 AM
It is collapsible and does that to me as well. Do you see the "Title Box" at all?
Title: Re: HacksPark shoutBox
Post by: DareDevil1990 on January 06, 2009, 10:19:58 AM
nop i sometimes i see nothing at all on the main page its just blank :(
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on January 06, 2009, 12:58:33 PM
Alright! It is working yet a small glitch. In the lower left corner it keeps flashing like it is trying to send something. Does that continue?

I believe that is just the auto-refresh indicator.  It goes off every so many seconds when the box is active; this is something that can be adjusted in the admin. options.  Glad you got things up and running!  I hope it was my directions that helped!
Title: Re: HacksPark shoutBox
Post by: JCS on January 06, 2009, 06:09:56 PM
Alright! It is working yet a small glitch. In the lower left corner it keeps flashing like it is trying to send something. Does that continue?

that must appear every 5 minutes, thats the default refresh time of the SB

well first of all it s the lovely sb :D... and second of all i need some help

i have installed it but the problem is that it doesnt show up every time when i load the main page of my site....it shos randomly i have to load the main page like 5-6 time before i can see the sb :( ...whats wrong here? i am on smf 1.1.7

have tryed it on 6 diferent browsers, and everything was fine, the SB appears everytime i reload the main page, dont know whats that happening to you
Title: Re: HacksPark shoutBox
Post by: GhostWalker on January 07, 2009, 12:34:18 AM
I hope it was my directions that helped!

It was Thank you. Forgive me for not giving you due credit. I appreciate the help and love the Shout Box!
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on January 07, 2009, 01:00:16 AM
I hope it was my directions that helped!

It was Thank you. Forgive me for not giving you due credit. I appreciate the help and love the Shout Box!

 :)  Oh, I didn't mention that for credit's sake.  Credit should go to JCS, who walked ME through it more or less a few pages back.  I just reiterated it in great detail to make things clear.  What I was more referring to was not knowing if you were working with a theme other than default and the fact that I was taking a stab in the dark and then spouting off in the hopes that WAS your problem.  Either way, good to know you're up and running.  I find problems like this are a good way to learn a few basic things along the way, too.
Title: Re: HacksPark shoutBox
Post by: DareDevil1990 on January 07, 2009, 01:57:31 AM
again i have problem...i have "Minimum characters per message (while sending message)" to 0 but when i enter a word "ok" it gives me the error and but when i enter"ok+space[not the letter space  ]" the message goes through :(...whats the problem i want it to allow the message go through with entering space
Title: Re: HacksPark shoutBox
Post by: shanksta13 on January 07, 2009, 02:43:20 PM
Any updates on the 2.0 Beta 4 version?  :-\
Title: Re: HacksPark shoutBox
Post by: GhostWalker on January 07, 2009, 03:43:43 PM
Oh Man I can't get the "Custom themes" to come out right. Menard do you change the FTP files? or your index templates?
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on January 08, 2009, 12:01:45 AM
Oh Man I can't get the "Custom themes" to come out right. Menard do you change the FTP files? or your index templates?

Can you be more specific as to what your problem is please?  What do you mean "come out right"?  Do they function normally on your board as usual but display weird only in the shoutbox?  Is that what you mean?  I was under the impression all was well.  Are we talking about a NEW custom theme?

If you are looking at your shoutbox after having loaded an ADDITIONAL new theme and it doesn't look right/function correctly, you will have to use the package parser again (linked in my siggy below :) )to find the necessary adjustments to add to THAT theme's index.template.php and go through the steps I outlined above again...for EACH THEME you add to your board.

I hope that helps. :)
Title: Re: HacksPark shoutBox
Post by: DareDevil1990 on January 08, 2009, 01:21:32 AM
hi guys i just wanted to know is there anyway to make shoutbox rember the text settings i.e color bold or italics etc for every user whenever the users reload that page.......
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on January 08, 2009, 01:26:18 AM
hi guys i just wanted to know is there anyway to make shoutbox rember the text settings i.e color bold or italics etc for every user whenever the users reload that page.......

Very large second.  Great idea!
Title: Re: HacksPark shoutBox
Post by: chrisb on January 08, 2009, 05:56:43 AM
You can look for support also in www.hackspark.com, there you will find more scripts, and new versions if apply.

when going to the site its in another language  and i cant find more scripts for this and any new updates as i cant read the forum
Title: Re: HacksPark shoutBox
Post by: chrisb on January 08, 2009, 06:01:23 AM
My List of new Add on for the shoutbox and these would make the shout box a better shout box.

1. Date and Time of every member
2. Users who are chatting in shoutbox under who online
3. achieve the shoutbox messages in a file for reference
4. Not been able to swear in the shoutbox and have banned words
5. Not been able to flood the shout box and need to wait for a certain amount of time before porting again.


here is my input to this shoutbox and my customer are happy as they like this shoutbox at present.
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on January 08, 2009, 01:50:44 PM
My List of new Add on for the shoutbox and these would make the shout box a better shout box.

1. Date and Time of every member
2. Users who are chatting in shoutbox under who online
3. achieve the shoutbox messages in a file for reference
4. Not been able to swear in the shoutbox and have banned words
5. Not been able to flood the shout box and need to wait for a certain amount of time before porting again.


here is my input to this shoutbox and my customer are happy as they like this shoutbox at present.

Similar to this, already being studied (I just looked again; it's a quote by JCS of one of your posts, chrisb :) ):
http://www.simplemachines.org/community/index.php?topic=269091.msg1861983#msg1861983

For #3, I take it you mean 'archive'.

For #5, wouldn't that unfortunately interfere with the core function of the shoutbox, that being basically multiple person IM'ing?  If you are having trouble with people flooding your shoutbox I take it they are not regular message board members, otherwise you'd ban them...is this correct?  If this is the case, you could make your shoutbox invisible to guests with the following fix:

In index.template.php just above function template_main_below()...

Find...
# Hack's Park ||
template_HP_shoutBoxMain();
   
Switch to...
# Hack's Park ||
if ($context['user']['is_logged'])
template_HP_shoutBoxMain();

I know it's a random stab in the dark; I'm just putting it out there.  Hope this helps you out!  Good luck, chap! :)
Title: Re: HacksPark shoutBox
Post by: makito on January 08, 2009, 03:48:44 PM
Hi

I'm sry, I took so much time to start Shoutbox 2.0. I have some others projects and is kind of hard to be at time with all of them.

But I  will start it now. Here are some of the new functions I will add:

%d means any integer
To change
To add
To  remove
Naming something
Link to Spanish details


Do you have any other ideas?
By the way, I need some who can mod Hack's Park English site, is any one interesting in?


1. Date and Time of every member
2. Users who are chatting in shoutbox under who online
3. achieve the shoutbox messages in a file for reference
4. Not been able to swear in the shoutbox and have banned words
5. Not been able to flood the shout box and need to wait for a certain amount of time before porting again.

1. You can add it if you want, time is completely editable (http://www.simplemachines.org/community/index.php?topic=269091.200)
2. I like it, who is active in the last %d minutes :)
3. ya, I was thinking in it too. Each time admin or mod use /clear (or link in Mod Panel), that will create a history file (Date_Time_By_ByID_NumOfShouts.txt) with all shouts including the deleted ones
4. to swear? sry, I don't get it xD. About the banner words, I forgot it !! I will add the function now
5. I will add a function that wont let users to send more than %d continuous messages (lasts ones), but the other one is kind of restrict users to participate and its not the idea...
Title: Re: HacksPark shoutBox
Post by: bullbreedluverz on January 08, 2009, 04:05:32 PM
sounds like some good updates  :D

better integration with SimplePortal would be good as section of coding for the shoutbox are placed in the same place as SimplePortal which causes problems with installing both
Title: Re: HacksPark shoutBox
Post by: fragwürdig on January 09, 2009, 02:39:40 AM
Hello makito,

thanks for pointing me here.

I have 2 questions/requests for you:

1) I was able to integrate your shoutbox into my forum and now I would like to increase the maximum length of text.
Where do I find the setting I have to change?

2) How can I let the shoutbox turn up on all other pages of my board not just the main index?

Tip for all users, who don't speak either spanish or portugese:
Use the Yahoo! or any other translation-service on the net and c&p the description on hackspark.com into it.

That way I easily managed to include this nifty shoutbox into my index-template and can use it in another theme now. (and I am a total geek when it comes to templates, js, php or whatever - i don't know what I actually did, but it works and thats what I wanted! ;) )
Title: Re: HacksPark shoutBox
Post by: GhostWalker on January 09, 2009, 08:32:42 AM
In addition to an archive for posts is there anyway to have the Admin be able to see a full list of pages from the shout box? When you go to "Moderate" you only see the last page. :( Maybe we can have it so all pages ( so 10 pages) are seen and then we can clear them after being viewed.
Title: Re: HacksPark shoutBox
Post by: shortchange on January 09, 2009, 10:35:23 AM
Is there a way to have any url typed into the shoutbox become a link?

thanks
Title: Re: HacksPark shoutBox
Post by: bullbreedluverz on January 09, 2009, 10:45:26 AM
theres a link button on the shoutbox - looks like a globe, you just click it and post the url in that
Title: Re: HacksPark shoutBox
Post by: shortchange on January 09, 2009, 10:51:25 AM
I am aware of that. That does not answer my question but thank you. My question is:

Is there a way to have a url that is typed into chat become a link. I want to remove the button the above person mentioned because it is a redundent function.

Also I added the code to not to allow guests to view the shoutbox. This works in Opera and Firefox. In IE it allows guest to view the shoutbox but not post in it. Is there a way to not display the shoutbox for IE also?

Thanks
Title: Re: HacksPark shoutBox
Post by: bullbreedluverz on January 09, 2009, 10:55:12 AM
soz werent sure if you was aware of that function  ;)
Title: Re: HacksPark shoutBox
Post by: makito on January 09, 2009, 12:03:26 PM
1) I was able to integrate your shoutbox into my forum and now I would like to increase the maximum length of text.
Where do I find the setting I have to change?

2) How can I let the shoutbox turn up on all other pages of my board not just the main index?

1. http://www.simplemachines.org/community/index.php?topic=269091.msg1837080#msg1837080

2. http://www.simplemachines.org/community/index.php?topic=269091.msg1809591#msg1809591

Quote
To display in index with out an action, and display every where on forum

Found this Gem in the Code while trying to Mod it to work on my index

add this in the admin section  in this field "Sites where shoutBox will be printed (?action=)" ;all

Simple as that, no need for Iframes Tiny Portals

mmm, Yeah... ;all is for printing shoutBox in all pages ;)



In addition to an archive for posts is there anyway to have the Admin be able to see a full list of pages from the shout box? When you go to "Moderate" you only see the last page. :( Maybe we can have it so all pages ( so 10 pages) are seen and then we can clear them after being viewed.

I added it ;)



I am aware of that. That does not answer my question but thank you. My question is:

Is there a way to have a url that is typed into chat become a link. I want to remove the button the above person mentioned because it is a redundent function.

Also I added the code to not to allow guests to view the shoutbox. This works in Opera and Firefox. In IE it allows guest to view the shoutbox but not post in it. Is there a way to not display the shoutbox for IE also?

Thanks

1. I didn't allowed links because of long ones, but I think they can auto change to a short one (to an specific number of chars) like http://www.simplemachines.org/comu... (http://www.simplemachines.org/community/index.php) (Maybe I can use shorten_subject function  ::) )

2. The aditional code to hide shoutbox to guest works for all navigators...

Quote
Find...
# Hack's Park ||
template_HP_shoutBoxMain();
   
Switch to...
# Hack's Park ||
if ($context['user']['is_logged'])
template_HP_shoutBoxMain();
Title: Re: HacksPark shoutBox
Post by: shortchange on January 09, 2009, 12:41:07 PM
if ($context['user']['is_logged'])
template_HP_shoutBoxMain();

Does not work for internet explorer. It prevents guests from posting but if they click the update button they can see all of the chat.

If I may suggest about the auto link (I am confident you can program it if not I would gladly offer assistance) add an option in the admin to allow this or not, and dont worry about the url being longer than the box, if it is then too bad I can live with that, they can get a tinyurl.com or they can use the aforementioned button.

Also maybe in the future an addition to Who.php can be added for this mod?

Thank you.
Title: Re: HacksPark shoutBox
Post by: makito on January 09, 2009, 12:59:16 PM
1. I tried to see your index.template.php, but you don't have any copy of
Please, upload it or send it to me by PM

2. Ya, I will make it configurable
Title: Re: HacksPark shoutBox
Post by: shortchange on January 09, 2009, 01:07:39 PM
DOH!

My apolgies.

Code: [Select]
if ($context['user']['is_logged'])
template_HP_shoutBoxMain();

works. I just made a tiny mistake. I would like to get more involved in this community. I know how to program fairly well in many languages, though I haven't done much with SMF other than manually edit mods. I have a basic understanding of how SMF functions because of my manual edits but by no means am I fully knowledgeable yet. Contact me if I may help you.
Title: Re: HacksPark shoutBox
Post by: GhostWalker on January 10, 2009, 01:39:23 AM
With all the additions is there a update now?
Title: Re: HacksPark shoutBox
Post by: makito on January 10, 2009, 05:13:06 PM
With all the additions is there a update now?

It isn't right now. But I'm working now in the update
Title: Re: HacksPark shoutBox
Post by: GhostWalker on January 12, 2009, 09:38:44 AM
You are wonderful Thank you for all you have done! I am still trying to get my custom themes to work but it is a big hit on the default one
Title: Re: HacksPark shoutBox
Post by: tasman2 on January 14, 2009, 12:19:08 AM
Hi , this is a GREAT mod . I am new at forums etc etc . Before I download and install the shoutbox , does it have a feature where the admin can disable the shoutbox - eg control the time when board members can use it ?
Thanks
Title: Re: HacksPark shoutBox
Post by: Dr. Jay Sin on January 14, 2009, 05:17:58 PM
Hi , this is a GREAT mod . I am new at forums etc etc . Before I download and install the shoutbox , does it have a feature where the admin can disable the shoutbox - eg control the time when board members can use it ?
Thanks
Indeed there is!

Once installed, you'd need to go to your regular board Admin. options.  On the left side, you'll see a spot for your shoutbox admin. options.  Click on that, and you'll see a line that reads, "Sites where shoutBox will be printed (?action=)"  By 'printed' they mean where it's displayed on your site.  Delete any value that is in that box and it will be deactivated.  (hint: you might want to save that default value or write it down somewhere so you have it handy to reactivate it later on).  You can also make it invisible to guests, but that's something to look into once you get it installed...

Good luck to you.
Title: Re: HacksPark shoutBox
Post by: NHWD on January 15, 2009, 02:00:29 AM
can anyone help me how to use it with the clean blue (http://custom.simplemachines.org/themes/index.php?lemma=874) 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?
Title: Re: HacksPark shoutBox
Post by: KathyT on January 15, 2009, 02:33:52 AM
Installed on default theme and-  it works perfect.  During Christmas I modified my Xmas theme to use sb and it worked perfect.      Now trying to customize Dilbermc as default theme for everyone, followed the same steps as on the other theme, but it just does not work. 

I used the parser, checked and double checked, and it just isn't showing anywhere on my dilbermc theme.  Read all the instructions on the topic here again, still no go.

Oh, I did move all the js and img /bbc files to their proper places also.    I just don't get it what is wrong. 

SMF board 1.1.7   Dilbermc theme. 

Title: Re: HacksPark shoutBox
Post by: t0k3nBuDz on January 16, 2009, 07:51:47 PM
Hello,

I just recently manually installed this on my forum.  I am using 1.1.7

I get the following error.  Please help.  Let me know if more information in needed.


Database Error
Table 'c732108_smf.smf_hp_settings' doesn't exist
File: /home/c732108/public_html/forum/Sources/HP_shoutBox_Subs.php
Line: 106

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php.
Title: Re: HacksPark shoutBox
Post by: Legend Zero on January 16, 2009, 10:09:42 PM
Hi there.

Running 1.1.7, I installed your chat mod, and no dice.

I need help installing this with a custom theme.

Attempted the Manual Install instructions, and the thing bugged out altogether. I had to revert to the CORE theme, and then had to reinstall the theme I was using because it was busted.

I finally was able to get the chat to appear, but it was meaningless tables, no interactivity at all. Help me out please if ya can!

~legend0922
CEO Legend Zero
Title: Re: HacksPark shoutBox
Post by: NHWD on January 17, 2009, 03:24:09 AM
can anyone help us ???
Title: Re: HacksPark shoutBox
Post by: JCS on January 17, 2009, 11:35:03 AM
You are wonderful Thank you for all you have done! I am still trying to get my custom themes to work but it is a big hit on the default one

to make it work on a custom theme, just make sure that the files are in your custom theme folder ".js and .php files, images", then do manual modifications to the files and done

can anyone help me how to use it with the clean blue (http://custom.simplemachines.org/themes/index.php?lemma=874) 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

Installed on default theme and-  it works perfect.  During Christmas I modified my Xmas theme to use sb and it worked perfect.      Now trying to customize Dilbermc as default theme for everyone, followed the same steps as on the other theme, but it just does not work. 

I used the parser, checked and double checked, and it just isn't showing anywhere on my dilbermc theme.  Read all the instructions on the topic here again, still no go.

Oh, I did move all the js and img /bbc files to their proper places also.    I just don't get it what is wrong. 

SMF board 1.1.7   Dilbermc theme.

have to see whats going on with the DilberMC theme, give me some time

Hello,

I just recently manually installed this on my forum.  I am using 1.1.7

I get the following error.  Please help.  Let me know if more information in needed.


Database Error
Table 'c732108_smf.smf_hp_settings' doesn't exist
File: /home/c732108/public_html/forum/Sources/HP_shoutBox_Subs.php
Line: 106

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php

have you upgrade your forum to 1.1.7 from another version??, cuz thats the message, make sure that the upgrade to 1.1.7 was successfull

Hi there.

Running 1.1.7, I installed your chat mod, and no dice.

I need help installing this with a custom theme.

Attempted the Manual Install instructions, and the thing bugged out altogether. I had to revert to the CORE theme, and then had to reinstall the theme I was using because it was busted.

I finally was able to get the chat to appear, but it was meaningless tables, no interactivity at all. Help me out please if ya can!

~legend0922
CEO Legend Zero

theres a learning, always make a backup of your files before modify them, make sure that you put the images and other files that the shoutbox requires on your custom theme folder

Regards
JCS
Title: Re: HacksPark shoutBox
Post by: assam_siddibapa on January 17, 2009, 03:49:07 PM
i 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
Title: Re: HacksPark shoutBox
Post by: mash-e1 on January 17, 2009, 06:47:29 PM
it 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
Title: Re: HacksPark shoutBox
Post by: NHWD on January 18, 2009, 01:37:46 AM
can anyone help me how to use it with the clean blue (http://custom.simplemachines.org/themes/index.php?lemma=874) 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
Title: Re: HacksPark shoutBox
Post by: Mr.IT on January 18, 2009, 08:45:06 AM
I want to use HacksPark shoutBox on Movies07 theme .plesase give me index.template.php file

http://custom.simplemachines.org/themes/index.php?lemma=377
Title: Re: HacksPark shoutBox
Post by: Legend Zero on January 18, 2009, 11:31:23 AM
I have everything backed up, no issue there, but your manual install instructions refuse to work for me. Anything not written in the instructions you have revealed in this thread over time? Any hints or errors in the directions? Already tried twice following your instructions to the letter, and no dice.
Title: Re: HacksPark shoutBox
Post by: sibit on January 18, 2009, 02:49:16 PM
but 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?
Title: Re: HacksPark shoutBox
Post by: t0k3nBuDz on January 18, 2009, 04:40:20 PM

Hello,

I just recently manually installed this on my forum.  I am using 1.1.7

I get the following error.  Please help.  Let me know if more information in needed.


Database Error
Table 'c732108_smf.smf_hp_settings' doesn't exist
File: /home/c732108/public_html/forum/Sources/HP_shoutBox_Subs.php
Line: 106

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.7, while your database is at version 1.1.6. The above error might possibly go away if you execute the latest version of upgrade.php

Quote
have you upgrade your forum to 1.1.7 from another version??, cuz thats the message, make sure that the upgrade to 1.1.7 was successfull


I have not done any upgrades.  I freshly installed 1.1.7 about 2 weeks ago.  How should I proceed?
Title: Re: HacksPark shoutBox
Post by: Legend Zero on January 18, 2009, 07:15:24 PM
Finally 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.
Title: Re: HacksPark shoutBox
Post by: Quexinos on January 19, 2009, 03:45:22 AM
I have everything backed up, no issue there, but your manual install instructions refuse to work for me. Anything not written in the instructions you have revealed in this thread over time? Any hints or errors in the directions? Already tried twice following your instructions to the letter, and no dice.
This, 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?
Title: Re: HacksPark shoutBox
Post by: Don Pepito on January 19, 2009, 09:54:17 AM
How to set my shoutbox being seen in every action....
Title: Re: HacksPark shoutBox
Post by: JCS on January 19, 2009, 10:32:01 AM
i 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 ^^"
it 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
can anyone help me how to use it with the clean blue (http://custom.simplemachines.org/themes/index.php?lemma=874) 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
I want to use HacksPark shoutBox on Movies07 theme .plesase give me index.template.php file

http://custom.simplemachines.org/themes/index.php?lemma=377 (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
but 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
I 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
Finally 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
This, 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
How to set my shoutbox being seen in every action....
just set it to all ^^
Title: Re: HacksPark shoutBox
Post by: Don Pepito on January 19, 2009, 12:31:52 PM
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...
Title: Re: HacksPark shoutBox
Post by: Quexinos on January 19, 2009, 07:37:39 PM
Quote
I'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 :)
Title: Re: HacksPark shoutBox
Post by: Quexinos on January 20, 2009, 01:39:00 AM
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.
Title: Re: HacksPark shoutBox
Post by: sibit on January 20, 2009, 10:04:03 AM
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

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");
   }   
}
Title: Re: HacksPark shoutBox
Post by: duder673 on January 20, 2009, 02:37:14 PM
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.
Title: Re: HacksPark shoutBox
Post by: Sheree on January 22, 2009, 06:23:55 PM
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?
Title: Re: HacksPark shoutBox
Post by: GhostWalker on January 22, 2009, 10:01:54 PM
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?
Title: Re: HacksPark shoutBox
Post by: CesarManara on January 24, 2009, 12:07:22 AM
Hello man, I'm here to day to report a bug on your mod.

Code: [Select]
# 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:

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

Without the '

Fix this the more fast as possible please
Title: Re: HacksPark shoutBox
Post by: JCS on January 24, 2009, 11:33:49 AM
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...

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

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

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

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

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?

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

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?

URL of your forum please

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

Code: [Select]
# 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:

Code: [Select]
# 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

Code: [Select]
Hack& #39;s Parkwithout the space between & and #

ill fix that, thanks
Title: Re: HacksPark shoutBox
Post by: Marcus Forsberg on January 24, 2009, 11:36:10 AM

Code: [Select]
Hack& #39;s Parkwithout the space between & and #

Use
Code: [Select]
Hack\'s Park
That will get rid of the error, while the \ won't be visible.
Title: Re: HacksPark shoutBox
Post by: JCS on January 24, 2009, 12:50:24 PM
sure, the scape works, but i preffer the & #39; ^^
Title: Re: HacksPark shoutBox
Post by: GhostWalker on January 25, 2009, 04:09:07 AM

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?

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
Title: Re: HacksPark shoutBox
Post by: EdwardR on January 25, 2009, 06:27:26 AM
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

Code: [Select]
<?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>'
;
}
?>
Title: Re: HacksPark shoutBox
Post by: LinK187 on January 26, 2009, 07:13:10 AM
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.
Title: Re: HacksPark shoutBox
Post by: JCS on January 26, 2009, 08:15:05 AM
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

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.

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

You 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 ^^
Title: Re: HacksPark shoutBox
Post by: LinK187 on January 26, 2009, 08:52:23 AM
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

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.

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

You 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.
Title: Re: HacksPark shoutBox
Post by: EdwardR on January 26, 2009, 05:05:12 PM
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

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.

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

You 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
Title: Re: HacksPark shoutBox
Post by: JCS on January 26, 2009, 07:09:13 PM
No worries I just removed it and installed nneos shoutbox, works perfect.

oks, thanks for trying

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

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
Title: Re: HacksPark shoutBox
Post by: Sheree on January 26, 2009, 07:42:38 PM
Quote
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

Thanks JCS I am really looking forward to it
Cheers!
Title: Re: HacksPark shoutBox
Post by: makito on January 27, 2009, 04:57:49 PM
Quote
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

Shoutbox function is inside template_pages_above()

It shoud go inside template_main_above() (at the end of function)

Greetings

----
If you would like quick support, visit http://www.hackspark.com/
Title: Re: HacksPark shoutBox
Post by: EdwardR on January 28, 2009, 03:24:10 PM
Hi again all!

@ Makito.. I'm sorry, I do not understand?

@ JCS.. Please find the index.template.php below, Thanks for your continued assistance!


Code: [Select]
<?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'<