vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Chat Modifications - Dream's Chatbox (https://vborg.vbsupport.ru/showthread.php?t=131002)

Dream 03-12-2007 04:54 PM

Not by me, sorry

LaPiba 03-13-2007 06:16 PM

Installed on 3.6.5 and working fine. Thank you! :)

Is there a way to display who is currently in the Chatbox?

Dream 03-13-2007 11:43 PM

No there isn't LaPiba, unless you change the code.

GXT Owner 03-14-2007 10:34 PM

How Do i make it so the chatbox is on the top of the page?

Dream 03-14-2007 11:47 PM

Where, after the navbar and before the forum listing?

GXT Owner 03-14-2007 11:49 PM

Right below the nav bar

daddygrim 03-14-2007 11:53 PM

chatbox sucks

GXT Owner 03-14-2007 11:57 PM

Any help would be thankfull

Dream 03-15-2007 12:05 AM

GXT try this

GXT Owner 03-15-2007 01:03 AM

<a href="http://www.xeon-gaming.net/forums/index.php" target="_blank">http://www.xeon-gaming.net/forums/index.php</a>

How Do i delete the bottom chat?

Dream 03-15-2007 01:08 AM

remove this

PHP Code:

<!-- Chatbox -->
<
tbody>
    <
tr>
        <
td class="thead" colspan="2">
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_chatbox')"><img id="collapseimg_forumhome_chatbox" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatbox].gif" alt="" border="0" /></a>
            <
a href="#" onclick="return openChatbox()">$vbphrase[chatbox_chatbox]</a>
        </
td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_forumhome_chatbox" style="$vbcollapse[collapseobj_forumhome_chatbox]">
    <
tr>
        <
td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center"><iframe src="chatbox.php?nofocus=1" width="100%" style="border: 0px" frameborder="0"></iframe></div></td>
    </
tr>
</
tbody>
<!-- / 
Chatbox --> 


also, add a <br /> before <!-- / Chatbox --> in the new code I gave you

edit:

not before <!-- Chatbox -->, before <!-- / Chatbox -->

GXT Owner 03-15-2007 01:25 AM

Thank you for all your help.

Dream 03-15-2007 01:33 AM

No problem

You added the <br /> in the wrong place, its before <!-- / Chatbox --> not before <!-- Chatbox -->

GXT Owner 03-15-2007 12:34 PM

<a href="http://www.xeon-gaming.net/forums/" target="_blank">http://www.xeon-gaming.net/forums/</a>

Why doesnt mine work now?

Dream 03-16-2007 04:25 PM

Updated, added "Delete messages older than XX days" in the Admin options. Just upload chatbox_admin.php again.

dbirosel 03-16-2007 05:03 PM

Question: How is the server load and does this add any queries? I just removed Shoutbox and i am looking for a reliable chat mod. Is this the one for me?! :D

Dream 03-16-2007 05:10 PM

This adds one query, two if you send a message or delete a message.

I wouldn't know the exact server load to tell you.

dbirosel 03-16-2007 05:13 PM

Would recommending setting autorefresh = 0?

Dream 03-16-2007 05:22 PM

Yep, if you have a busy forum and your load is too high.

Please click install if you use it :)

dbirosel 03-16-2007 05:27 PM

Looks great so far. Thank you dream. And sorry, i forgot to click Install.


www.CarAudioJunkyard.com/forum


Nothing big, but my collapse arrow isn't the same as my template skin. usually it's automatic and matches.

Also, suggestion, it would be great if the username has that certain color like the usergroups. But i assume that it will be too much ehh?


Thanks again!

Dream 03-16-2007 05:32 PM

I'll take a look on the template issue O_o

Colored usernames would need a slower query, maybe two. I can look into making it as an option.

dbirosel 03-16-2007 05:33 PM

Also, is it possible to increase the size of the text a bit? Members are complaining it's hard to see. They like how it loads fast though.

But there main concern is..

-the size of the text
-There username is not colored

dbirosel 03-16-2007 05:35 PM

Overall, i love your mod. I'll keep getting suggestons from my members and keep testing it. I'll be coming over here more often. :) So far the support is great!

Dream 03-16-2007 05:47 PM

You are welcome :)

I'm looking into making the text bigger for you. There doesn't seem to be a CSS class for bigger text in vB. But you have to change all appearances of the code "smallfont" in chatbox.php for another class.

khoadv 03-16-2007 10:32 PM

I've used this mod. It's great.

I've made some modifies: the $cantshout group won't see the text box so they can't input text. It'll prevent the guest posting and the script won't run.

Open the chatbox.php, find:

PHP Code:

echo '<div class="smallfont">'.$date.'<form action="'.THIS_SCRIPT.'.php" method="post" name="chatboxForm"><input type="text" name="shout" size="50" maxlength="255" class="smallfont"> <input type="submit" value="'.$text_send.'" class="smallfont"> <input type="button" value="'.$text_refresh.'" onclick="refreshChatboxLite(\'\')" class="smallfont"> '.$pagelinks.'<br /></form></div>'

(line 162)


replace with:

PHP Code:

echo '<div class="smallfont">'.$date.'<form action="'.THIS_SCRIPT.'.php" method="post" name="chatboxForm">';
if ( !empty(
$canshout) ) {
echo 
'<input type="text" name="shout" size="50" maxlength="255" class="smallfont"> <input type="submit" value="'.$text_send.'" class="smallfont">';
}
echo 
'<input type="button" value="'.$text_refresh.'" onclick="refreshChatboxLite(\'\')" class="smallfont"> '.$pagelinks.'<br /></form></div>'

Then find:

PHP Code:

if (empty($_REQUEST['nofocus'])) {
?> 

replace with:

PHP Code:

if (empty($_REQUEST['nofocus']) && !empty($canshout)) {
?> 


obmob 03-16-2007 11:46 PM

Wondering how is this different from vbshout?

And would be nice to have smilies available too :D

Dream 03-17-2007 12:46 AM

It's a lot more simple than vBShout.

Smilies are available.

Dream 03-17-2007 12:54 AM

Nice modifications khoadv! I'll add them in the next version.

Oh and please click install if you still use it :)

ggiersdorf 03-18-2007 09:27 PM

can this be used in ANY forum? I want to place this in my Staff forum only so we can chat is this possible?

Dream 03-18-2007 11:08 PM

You can configure chatbox.php to only allow usergroupid 6 people to use it (admin group ID), and make it show only on that forum with template modifications.

But people knowing the URL where chatbox.php is can view the conversation.

scan-pa 03-18-2007 11:44 PM

Someone needs to add a few lines of code that only allow usergroup id"s to View the chatroom box.

How hard is that? Make it just like the readpms userid check, but use usergroup id checks.

Dream 03-19-2007 01:13 AM

Yeah it's not hard to do, I can do it for him if he needs.

scan-pa 03-19-2007 01:27 AM

Dream,

I think alot of us would like that option added in.

Thanks in advanced.

Dream 03-19-2007 01:35 AM

Ok I'll put it into my to-do list.

Would an option like this work?

$hide_from_cantshout = true; // hides the whole chatbox from people that can't shout. true or false

evotion 03-19-2007 11:39 AM

Great mod.. Thanks vm.

by the way, did anybody find a way to have the chat JUST show up in a forum of one's choice....

I'd like it to just show up only in forum ID 6, for example, and NOT the forum home.

Where do I got to make the required change.

ra7al 03-19-2007 12:03 PM

i'll try it

it seem good

momo2 03-20-2007 09:50 AM

can this be installed in the portal section only ? and yet still have the vbshout 2.0 in the forum ????

vbreal 03-21-2007 10:19 PM

how is this different from vbshout does it use less resources

Dream 03-21-2007 10:40 PM

Yes Vbreal

Yes Momo

obmob 03-22-2007 04:02 AM

Quote:

Originally Posted by Dream (Post 1205279)
It's a lot more simple than vBShout.

Smilies are available.

I'll test it, thanks!


All times are GMT. The time now is 09:39 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01712 seconds
  • Memory Usage 1,809KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete