News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMFPacks.com Shoutbox

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

Previous topic - Next topic

RIGILKENTARUS

#220
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
// 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
WwW.ChileDescargas.Com Comunidad de Descargas..... Si no lo tenemos, pidelo y lo traemos.......

Captain_Neptune

Quote from: 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

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

SuddenRedScare

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

ruckstande

I just tried installing and only had to manually edit my custom theme index.template.php file. I now get this
QuoteParse 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

makito

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
Do not PM me for support, make a post if you need help.

Dr. Jay Sin

#225
Quote from: makito on December 11, 2008, 09:11:22 PM
Quote from: Menard on December 11, 2008, 08:02:57 PMUnder 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*

makito

#226
QuoteLittle 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

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

QuoteEDIT: 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
Do not PM me for support, make a post if you need help.

Dr. Jay Sin

#227
Quote from: makito on December 13, 2008, 03:25:15 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)

ruckstande

Quote from: 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 ' 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.

SuddenRedScare

I've been working on this for days, but I can seem to get it working... Help please!

Dr. Jay Sin

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?

Ordogg

I saw the demo, I love it.... When is a 2.0 Beta 4 version going to be out?
\

haito

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
www.japanesia.co.id | Portal Berita & Komunitas Untuk Kamu yang Suka Jepang

AlienTech

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 :(


HR

#234
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


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


I can explain this as simply as possible.. If I do it & implement I guarantee it.
If I do it and you implement it its a crap shoot.

crazie

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!!!  :)


Maliante

If possible increase a height and font size??

I try to find this option but i can't find it.

Please help me.

Maliante 




HR

#238
Quote from: 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 

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 can explain this as simply as possible.. If I do it & implement I guarantee it.
If I do it and you implement it its a crap shoot.

scenerip2k

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.

Advertisement: