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 04-01-2007 04:25 AM

If you want me to take a look, send me your forum link through PM rnmcd

MelH 04-01-2007 10:55 PM

I'm trying to get the pop up to stay on top when pages are changed etc.

I found this code by searching google.
<body onblur="self.focus();">

In chatbox.php I changed this:
echo '</head><body class="alt1">';

to this:
echo '</head><body onBlur="self.focus();" class="alt1">';

The change made the pop up stay on top but you cant change pages or open or close other programs on your desktop.

The idea of having the pop up stay on top is so that you can use other programs whilst still always having the chatbox visible. Just move it if it gets in the way of what you are doing.

Any ideas anyone??

LBmtb 04-02-2007 01:31 AM

Found a small bug today. I got this email about a db error from chatbox:
Quote:

Database error in vBulletin 3.6.4:

Invalid SQL:
INSERT INTO vb_chatbox (userid, username, shout, dateline, ipaddress)
VALUES (1030, '26'er Zen Master', 'Sart Kicked ASS Today', 1175478886, '66.74.144.57');
It was due to the single quote in the user's name. Here's the fix:

FIND: (was on line 47 for me)
Code:

        $db->query_write("INSERT INTO ".TABLE_PREFIX.$chatbox_table." (userid, username, shout, dateline, ipaddress)
VALUES (".$vbulletin->userinfo['userid'].", '".$db->escape_string($vbulletin->userinfo['username'])."', '".$db->escape_string($_POST['shout'])."', ".TIMENOW.", '".$db->escape_string(IPADDRESS)."')");

REPLACE WITH:
Code:

        $db->query_write(htmlentities("INSERT INTO ".TABLE_PREFIX.$shoutstable." (userid, username, shout, dateline, ipaddress)
VALUES (".$vbulletin->userinfo['userid'].", '".$vbulletin->userinfo['username']."', '".$db->escape_string($_POST['shout'])."', ".TIMENOW.", '".$db->escape_string(IPADDRESS)."')"));

This will sanitize the query a bit more before it gets run on the database.

Emre Goren 04-02-2007 02:39 AM

great stuff thanks..but how can I change send and refresh buttons? and I need to know how change text color written on these buttons..thanks again

rnmcd 04-02-2007 03:36 PM

Quote:

Originally Posted by Dream (Post 1217252)
If you want me to take a look, send me your forum link through PM rnmcd

I will PM it to you.

Also,
Do a lot more server 'resources' get used if I change the refresh time to 1 second versus 300 seconds?

Dream 04-02-2007 05:25 PM

Yep.

mawby 04-02-2007 05:53 PM

Quote:

Originally Posted by rnmcd (Post 1218416)
Also,
Do a lot more server 'resources' get used if I change the refresh time to 1 second versus 300 seconds?

It also becomes unusable (as I found out) because every time the page refreshes you lose the contents of the new/send message box and so you wont have a chance to type something and press send before it refreshes and is gone. :)

Would it be possible to only refresh the message history and have the new message box on a separate frame which isn't refreshed?

Dream 04-02-2007 07:18 PM

Nope sorry. Would make stuff too complex.

You can get someone to do that for you though.

monasa 04-03-2007 04:53 PM

I have installed vbShout 2.0 on the main page of my forum and it works fine. I'm planning to install another shoutbox in the same forum but in different page or subforum. Is this possible, having 2 shoutbox in one forum? Appreciate your feedback and guide.

VB Version : 3.6.5

porscheman170 04-05-2007 12:22 AM

Hi I just want to install chatbox in the center module of my vbadvanced home page is this possible and if so how do I do it? I tried to add a module using chatbox.php but it crashed the whole site lol... I am a total noob when it comes to this stuff.

Thanks for all your help!


All times are GMT. The time now is 03:19 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.01647 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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