vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Chatbox Lite (https://vborg.vbsupport.ru/showthread.php?t=92537)

RFViet 06-29-2006 06:05 PM

How to prevent unregisters to use chatbox ??

RFViet 06-30-2006 12:56 PM

How to add color, smillies , font box to the chatbox ??

ab420 07-01-2006 04:07 AM

Is there any way to make the user names in the chatbox a link to their profile?

ab420 07-01-2006 03:28 PM

I was messing around with the chat box this morning, and this is what I came up with:

I have my chatbox only in a seperate window, so they have to click a link on the forum home page to open it. I don't want the big fully-functional chatbox on the home page, but I did want a way for people to see what's going on in there.

I took the chatbox_lite.php file, and renamed it chatboxc_lite.php

Attachment 50151

That is the chatboxc_lite.php file I used. I edited it so you can't shout, delete or refresh from this box. What you can do is edit the options in this chatboxc_lite.php file, such as how many shouts per page, which I set to 3, and set show pages to false.

I removed the chatbox from the forum home page, as I said before, then I added this code right under $navbar in the forumhome template:

Code:

<tbody>
<tbody>
        <tr>
                <td align="center" colspan="2"><div align="center">
                        <a href="#" onclick="return openChatboxLite()">These are the last few comments in the $vbphrase[chatboxlite_chatbox]</a></div>
                </td>
        </tr>
</tbody>
        <tr>
                <td class="alt1" width="100%" colspan="2"><div class="smallfont" align="center" height="50"><iframe src="chatboxc_lite.php?nofocus=1" width="100%" height="75" style="border: 0px"></iframe></div></td>
        </tr>
</tbody>


What it does is shows the last few shouts, by allowing you to use a second set of options, but still works from the same database. By not allowing manual refreshes or shouting from the main page, the already minimal server load becomes almost nothing, but still allows people to see what's up in the chat room right when they get to your forum!

Screenshot:

Attachment 50144

Cyruski 08-06-2006 06:00 AM

is it ok with 3.6.0 ? I installed it but now worked for me, need help :)

beano33 08-08-2006 11:51 PM

I installed this on 3.6 'Gold' today with no problems. Great hack! :D

Rahuldhanpat 08-13-2006 06:10 AM

i have vbulletin 3.6 and when i tried to run the Hack_install.php the the error msg i m getting is this... help me please
Fatal error: Call to undefined function: query() in /hsphere/local/home/rahuldha/devghar.com/install/his_files/hack_install_b3.php on line 48

seangworld 11-16-2006 04:16 AM

awesome, thanks man.
oh snap, i just noticed a 'similar link' to move the shoutbox to the welcome panel lol, i moved it myself and dropped it between the main body of my forum and the quote-it lol. heehee, im good, yeah that's right! :P

Dream 11-16-2006 04:53 AM

Did importing the product file work for you? I think this product file has an error, but if it worked for you im wrong.

Been Told 11-21-2006 08:53 PM

This is a really nice hack!
I needed to modify it very very slightly because I wanted to hide the chatbox from guests.
To achieve that, do this:
After installing the chatbox...

in Navbar find:
Code:

<td class="vbmenu_control"><a href="#" onclick="return openChatbox()">Chatbox</a></td>
Replace with:
Code:

<if condition="$show['member']"><td class="vbmenu_control"><a href="#" onclick="return openChatbox()">Chatbox</a></td></if>
In FORUMHOME find:
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 -->

Replace with:
Code:

<!-- Chatbox -->
<if condition="$show['member']">
<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>
</if>
<!-- / Chatbox -->

What it does is, it checks if the person viewing the page has a user ID (i.e. is logged in) and it shows it only to people with a user ID. And since guests have no user ID, it hides the chatbox from the guests.

As I said, a great hack and a very nice alternative for bigger forums! :D


All times are GMT. The time now is 05:01 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.01364 seconds
  • Memory Usage 1,748KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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