vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vBChat v2.3 (https://vborg.vbsupport.ru/showthread.php?t=71049)

Mijae 11-08-2004 09:32 PM

Gah, I get this when I submit the vBchat settings:

Warning: Cannot modify header information - headers already sent by (output started at /home/invoid/public_html/forum/includes/adminfunctions.php:223) in /home/invoid/public_html/forum/admincp/admin_vbchat.php on line 126

Line 223 should be somewhere in there:

Code:

        // get the appropriate <title> for the page
        switch(VB_AREA)
        {
                case 'AdminCP': $titlestring = iif($title, "$title - ") . "$vboptions[bbtitle] - vBulletin $vbphrase[admin_control_panel]"; break;
                case 'ModCP': $titlestring = iif($title, "$title - ") . "$vboptions[bbtitle] - vBulletin $vbphrase[moderator_control_panel]"; break;
                case 'Upgrade': $titlestring = iif($title, "vBulletin $title - ") . "$vboptions[bbtitle]"; break;
                case 'Install': $titlestring = iif($title, "vBulletin $title - ") . "$vboptions[bbtitle]"; break;
                default: $titlestring = iif($title, "$title - ") . "$vboptions[bbtitle]";
        }

        // if there is an onload action for <body>, set it up
        $onload = iif($onload != '', " $onload");

        // set up some options for nav-panel and head frames
        if (defined('IS_NAV_PANEL'))
        {
                $htmlattributes = ' class="navbody"';
                $bodyattributes .= ' class="navbody"';
                $headinsert .= '<base target="main">';
        }
        else
        {
                $htmlattributes = '';
        }

No idea what is wrong. I did a clean install on a 3.0.3 of 1.0.1

Thanks for any help.

EDIT: Possible little bug, you can private message yourself. It doesnt do any harm, but I want to let you know anyway.

EDIT2: As a suggestion for next version, could you make it so the chat recognizes who is admin/mod/regular user? To show the different color ranks and stuff?

And as for the chat, impressive work. I most definetly like it.

taffy056 11-09-2004 12:14 AM

Hi,

Install went okay no problems, but when I go to the chat I get a white screen with nothing on it, what have I done wrong?

Regards

taffy

AKINCI 11-09-2004 01:20 AM

Thanks for nice hack.
I get also this error
______________
Warning: Cannot modify header information - headers already sent by (output started at /home/avaralar/public_html/includes/adminfunctions.php:222) in /home/avaralar/public_html/admincp/admin_vbchat.php on line 126
______________
Sorry, does not understand this post .
Quote:

I decided not to go with redirects with this acp control, so i used the header(); function, now default the vb acp does not echo/output any html before the script has executed, so a modification has changed this, you will have to find out what im afraid.
What exactly here do I have to change?
greets

Harley D 11-09-2004 04:47 AM

Quote:

Originally Posted by Sonikku
heh, I just did my own CSS portion on the chat_iframe template. I deleted the $headinclude, and typed in the css coding for text only. Here, gimmie a few and I'll post a txt file.

EDIT: I just copy/pasted my chat_iframe template in a txt file and attached it.

What I did, is I took $headinclude off, and replaced it with my own CSS coding. You can change the link font color, and/or background. Hope it came in handy! ^^

Your addition to this hack made it acceptable to use.
thanks to both the creator and yourself.

RsX 11-09-2004 10:56 AM

Can someone please help me & zorobz? we had a little problem :

In the middle of the installation, i clicked 'Apply Database Modifications' to go next, but then i had a gateway timeout.. As I know this is nothing serious, so i went back and again clicked 'Apply Database Modifications', but then i got SQL Server errors that the table allready exists(mysql error: Table 'vb3_vbchat_store' already exists & mysql error: Table 'vb3_vbchat_datastore' already exists), so i went back and deleted all tables with the words 'VbChat' in them (vb3_vbchat_store & vb3_vbchat_datastore) BUT then when i try again i get a Collumn error ( mysql error: Duplicate column name 'vbchat_pref_font_face' )........ What can i do to fix this? I did not backup the database before i started the installation (sorry)

How can we fix this? :S:S:S

Zero Tolerance 11-09-2004 01:44 PM

Quote:

Originally Posted by RsX
Can someone please help me & zorobz? we had a little problem :

In the middle of the installation, i clicked 'Apply Database Modifications' to go next, but then i had a gateway timeout.. As I know this is nothing serious, so i went back and again clicked 'Apply Database Modifications', but then i got SQL Server errors that the table allready exists(mysql error: Table 'vb3_vbchat_store' already exists & mysql error: Table 'vb3_vbchat_datastore' already exists), so i went back and deleted all tables with the words 'VbChat' in them (vb3_vbchat_store & vb3_vbchat_datastore) BUT then when i try again i get a Collumn error ( mysql error: Duplicate column name 'vbchat_pref_font_face' )........ What can i do to fix this? I did not backup the database before i started the installation (sorry)

How can we fix this? :S:S:S

Then it means the database modifications were successful, by doing that it means the install has finished, comtinue with the file edits and you'll be done with it :)

[quote=AKINCI]Warning: Cannot modify header information - headers already sent by (output started at /home/avaralar/public_html/includes/adminfunctions.php:222) in /home/avaralar/public_html/admincp/admin_vbchat.php on line 126[/code]

Open admincp/admin_vbchat.php

Find:
Code:

// ----------------------------
// Globalize CP Header
// ----------------------------

print_cp_header("vBChat v1.0.1 Control [Created By Zero Tolerance]");

Replace It With:
Code:

// ----------------------------
// Globalize CP Header
// ----------------------------

        if($_POST['do'] == "" && ($_GET['do'] == "" || $_GET['do'] == "prune")) {
        print_cp_header("vBChat v1.0.1 Control [Created By Zero Tolerance]");
        }

Save & Upload admincp/admin_vbchat.php

That should fix the error :)

- Zero Tolerance

RsX 11-09-2004 01:54 PM

ok, but what 2 files do i need to delete? (after i get error i need 2 dl install files)

Mijae 11-09-2004 02:49 PM

[QUOTE=Zero Tolerance]Then it means the database modifications were successful, by doing that it means the install has finished, comtinue with the file edits and you'll be done with it :)

Quote:

Originally Posted by AKINCI
Warning: Cannot modify header information - headers already sent by (output started at /home/avaralar/public_html/includes/adminfunctions.php:222) in /home/avaralar/public_html/admincp/admin_vbchat.php on line 126[/code]

Open admincp/admin_vbchat.php

Find:
Code:

// ----------------------------
// Globalize CP Header
// ----------------------------

print_cp_header("vBChat v1.0.1 Control [Created By Zero Tolerance]");

Replace It With:
Code:

// ----------------------------
// Globalize CP Header
// ----------------------------

        if($_POST['do'] == "" && ($_GET['do'] == "" || $_GET['do'] == "prune")) {
        print_cp_header("vBChat v1.0.1 Control [Created By Zero Tolerance]");
        }

Save & Upload admincp/admin_vbchat.php

That should fix the error :)

- Zero Tolerance

Should it say Settings Saved after you click the Save vBChat Options?

Zero Tolerance 11-09-2004 02:50 PM

Quote:

Originally Posted by Mijae
Should it say Settings Saved after you click the Save vBChat Options?

Nah it just simply reloads =)

- Zero Tolerance

Zero Tolerance 11-09-2004 02:51 PM

Quote:

Originally Posted by RsX
ok, but what 2 files do i need to delete? (after i get error i need 2 dl install files)

Delete the xml file and the install_vbchat.php

- Zero Tolerance

Guy G 11-09-2004 03:32 PM

how can i change the chat background or the text color permently?

RsX 11-09-2004 03:33 PM

yay works ^^ only 1 prob.. it uses the forums background.. i dont want that :S:S plus its hard to see text... hwo can i change the background of the messages and connected users list area?

Zero Tolerance 11-09-2004 05:02 PM

Edit the template chat_iframe and modify the html tag <body>

- Zero Tolerance

Zero Tolerance 11-09-2004 05:03 PM

vBChat 1.1.0 Under Construction - Expected Feature List:
  • Smilie Box - Smilies Are displayed above the chat input
    • Additional Features
    • ACP - Select if the smilies are displayed
    • ACP - Select amount of smilies shown
    • Query Reduction - No extra queries are required for the smilies to be loaded
  • Current Condition: Completed!
  • User Status - User status is displayed in the vBChat Page (in replace of time/date)
    • Additonal Features
    • User can edit there user status in the vBChat User Preferences page
  • Current Condition: Completed!
  • User Auto Responder - User can choose to have an auto message auto sent to anyone that Private MSG's them on vBChat
    • Additional Features
    • User can input a message that will be displayed with the auto responder
    • User can select if the auto responder is on or off
  • Current Condition: Completed!
  • Private MSG Link Updated (When you press people's names at the side on vBChat, the command to private msg them pop's into the input box)
    • Additional Features
    • If using internet explorer, the text "<Your Private MSG Here>" will automatically be highlighted
  • Current Condition: Completed!
  • Admin/SMod Ban/Unban Abilities - Type in /ban [Username] or /unban [Username] to ban/unban members
    • Additonal Features
    • ACP - Choose if unban/ban tags are operational
  • Current Condition: Not Completed
  • Chat Rooms
    • Additonal Features
    • ACP - Create/Edit/Remove Chat Rooms
    • ACP - Delete "All" Inactive Rooms
    • ACP - Set max number of rooms that can be open at the same time
    • Optional Password Protection
  • Current Condition: Not Completed
  • Display Users In Chat On Forum Index Page
    • Additional Features
    • None
  • Current Condition: Not Completed

4/7 Features Completed - vBChat 1.1.0 56% Completed

- Zero Tolerance

Mijae 11-09-2004 05:15 PM

Quote:

Originally Posted by Zero Tolerance
Nah it just simply reloads =)

- Zero Tolerance

Great :D Working fine now :P

Great hack.

RsX 11-09-2004 05:23 PM

Oo wow cant wait for that one!! :O

bdw what do i need to do to change the background white?

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="-1" />
        <meta http-equiv="Cache-Control" content="no-cache" />
$headinclude
</head>
<body class='alt2'>
$chat_page
</body>
<if condition="$do_scroll_auto == '1'">
<script type="text/javascript">
<!--
scroll(0,999999999)
-->
</script>
</if>
</html>


Blam Forumz 11-09-2004 05:40 PM

Looking extremely forward to v 1.1.0

Zero Tolerance 11-09-2004 05:41 PM

Quote:

Originally Posted by RsX
Oo wow cant wait for that one!! :O

bdw what do i need to do to change the background white?

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="-1" />
        <meta http-equiv="Cache-Control" content="no-cache" />
$headinclude
</head>
<body class='alt2'>
$chat_page
</body>
<if condition="$do_scroll_auto == '1'">
<script type="text/javascript">
<!--
scroll(0,999999999)
-->
</script>
</if>
</html>


Change
Code:

<body class='alt2'>
To:
Code:

<body bgcolor='#ffffff'>
- Zero Tolerance

RsX 11-09-2004 05:49 PM

used this:
Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
        <!-- no cache headers -->
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="-1" />
        <meta http-equiv="Cache-Control" content="no-cache" />
$headinclude
</head>
<body bgcolor='#ffffff'>
$chat_page
</body>
<if condition="$do_scroll_auto == '1'">
<script type="text/javascript">
<!--
scroll(0,999999999)
-->
</script>
</if>
</html>

As u can se it still doesnt work :(

Zero Tolerance 11-09-2004 06:31 PM

Try removing the $headinclude :)

- Zero Tolerance

Zero Tolerance 11-09-2004 06:31 PM

vBChat 1.1.0 Under Construction - Expected Feature List:
  • Smilie Box - Smilies Are displayed above the chat input
    • Additional Features
    • ACP - Select if the smilies are displayed
    • ACP - Select amount of smilies shown
    • Query Reduction - No extra queries are required for the smilies to be loaded
  • Current Condition: Completed!
  • User Status - User status is displayed in the vBChat Page (in replace of time/date)
    • Additonal Features
    • User can edit there user status in the vBChat User Preferences page
  • Current Condition: Completed!
  • User Auto Responder - User can choose to have an auto message auto sent to anyone that Private MSG's them on vBChat
    • Additional Features
    • User can input a message that will be displayed with the auto responder
    • User can select if the auto responder is on or off
  • Current Condition: Completed!
  • Private MSG Link Updated (When you press people's names at the side on vBChat, the command to private msg them pop's into the input box)
    • Additional Features
    • If using internet explorer, the text "<Your Private MSG Here>" will automatically be highlighted
  • Current Condition: Completed!
  • Admin/SMod Ban/Unban Abilities - Type in /ban [Username] or /unban [Username] to ban/unban members
    • Additonal Features
    • ACP - Choose if unban/ban tags are operational
  • Current Condition: Completed
  • Chat Rooms
    • Additonal Features
    • ACP - Create/Edit/Remove Chat Rooms
    • ACP - Delete "All" Inactive Rooms
    • ACP - Set max number of rooms that can be open at the same time
    • Optional Password Protection
  • Current Condition: Not Completed
  • Display Users In Chat On Forum Index Page
    • Additional Features
    • None
  • Current Condition: Not Completed

5/7 Features Completed - vBChat 1.1.0 71% Completed

- Zero Tolerance

RsX 11-09-2004 06:37 PM

Now the whole style is gone and everything looks like .. ugh... is there any way to remove the bg but still have a style?

BDW i have a few suggestions for the 1.1.0 system
*Background changer color/image in admincp

Blam Forumz 11-09-2004 06:41 PM

Ooooooh the suspense is building up!

Do you think you can be done by tonight? :D

Zero Tolerance 11-09-2004 07:06 PM

Quote:

Originally Posted by Blam Forumz
Ooooooh the suspense is building up!

Do you think you can be done by tonight? :D

Possibly, no garentee.

vBChat 1.1.0 Under Construction - Expected Feature List:
  • Smilie Box - Smilies Are displayed above the chat input
    • Additional Features
    • ACP - Select if the smilies are displayed
    • ACP - Select amount of smilies shown
    • Query Reduction - No extra queries are required for the smilies to be loaded
  • Current Condition: Completed!
  • User Status - User status is displayed in the vBChat Page (in replace of time/date)
    • Additonal Features
    • User can edit there user status in the vBChat User Preferences page
  • Current Condition: Completed!
  • User Auto Responder - User can choose to have an auto message auto sent to anyone that Private MSG's them on vBChat
    • Additional Features
    • User can input a message that will be displayed with the auto responder
    • User can select if the auto responder is on or off
  • Current Condition: Completed!
  • Private MSG Link Updated (When you press people's names at the side on vBChat, the command to private msg them pop's into the input box)
    • Additional Features
    • If using internet explorer, the text "<Your Private MSG Here>" will automatically be highlighted
  • Current Condition: Completed!
  • Admin/SMod Ban/Unban Abilities - Type in /ban [Username] or /unban [Username] to ban/unban members
    • Additonal Features
    • ACP - Choose if unban/ban tags are operational
  • Current Condition: Completed
  • Display Users In Chat On Forum Index Page
    • Additional Features
    • None
  • Current Condition: Completed
  • Chat Rooms
    • Additonal Features
    • ACP - Create/Edit/Remove Chat Rooms
    • ACP - Delete "All" Inactive Rooms
    • ACP - Set max number of rooms that can be open at the same time
    • Optional Password Protection
  • Current Condition: Not Completed

6/7 Features Completed - vBChat 1.1.0 85% Completed

Only 1 more feature to complete

- Zero Tolerance

Zero Tolerance 11-09-2004 07:22 PM

The css overrides any settings in the body tag, the problem is that your style has a picture as a background, try putting this "under" $headinclude to override the css:

Code:

<style type="css/text">
<!--
BODY {
background-color: #ffffff;
background-image:;
}
-->
</style>


Blam Forumz 11-09-2004 07:24 PM

Wow, 15% for 1 more feature 0_0 That must be some pretty big feature

G/l with it

Zero Tolerance 11-09-2004 07:49 PM

Quote:

Originally Posted by Blam Forumz
Wow, 15% for 1 more feature 0_0 That must be some pretty big feature

G/l with it

(100 / 7) * 6 = 85.xxxxx = 85%

Simple maths :p

- Zero Tolerance

Mijae 11-09-2004 08:08 PM

Quote:

Originally Posted by Zero Tolerance
(100 / 7) * 6 = 85.xxxxx = 85%

Simple maths :p

- Zero Tolerance

Pfft, stop giving explanations and get working :P

Zero Tolerance 11-09-2004 09:27 PM

Hehe okay.

Status on the last feature:
Create Rooms/Join Rooms completed

Pending:
ACP Control For Rooms

Expected ETA:
2 Hours

- Zero Tolerance

wattieuk 11-09-2004 09:32 PM

Quote:

Originally Posted by Zero Tolerance
Hehe okay.

Status on the last feature:
Create Rooms/Join Rooms completed

Pending:
ACP Control For Rooms

Expected ETA:
2 Hours

- Zero Tolerance

Nice work - thanks a lot for the mod.

wattieuk 11-09-2004 09:50 PM

Just one question - how can I make the chat messages appear right after the username. At the moment they are all in a separate column (which is quite small).

Zero Tolerance 11-09-2004 10:24 PM

Quote:

Originally Posted by wattieuk
Just one question - how can I make the chat messages appear right after the username. At the moment they are all in a separate column (which is quite small).

Change these 4 templates:
chat_row
chat_row_me
chat_row_special_recieved
chat_row_special_sent

Change the html table structure to how you desire :)

vBChat 1.1.0 Completed!

Pending:
Install / Upgrade Script / ReadMe

ETA:
30 Mins or less

- Zero Tolerance

Mijae 11-09-2004 10:41 PM

Quote:

Originally Posted by Zero Tolerance
Change these 4 templates:
chat_row
chat_row_me
chat_row_special_recieved
chat_row_special_sent

Change the html table structure to how you desire :)

vBChat 1.1.0 Completed!

Pending:
Install / Upgrade Script / ReadMe

ETA:
30 Mins or less

- Zero Tolerance

Nice.

Zero Tolerance 11-09-2004 10:52 PM

v1.1.0 RELEASED

- Zero Tolerance

Deimos 11-09-2004 11:02 PM

Ran the upgrade script to upgrade from 1.0.1 to 1.1.0 and it said

Database error in vBulletin 3.0.3:

Invalid SQL: alter table vb3_vbchat_datastore
add d_smiliedisplay tinyint(2) not null default '1',
add d_smilieamount int(15) not null default '10',
add d_allowbantag tinyint(2) not null default '1',
add d_chatrooms text not null default '',
add d_maxrooms int(15) not null default '5';
mysql error: Table 'kiareese_uof.vb3_vbchat_datastore' doesn't exist

This was when clicking the "Apply database modifications"

hmm, now the chat window comes up with

Quote:

Database error in vBulletin 3.0.3:

Invalid SQL: select m.*,u.* from vbchat_store m
left join user u on (u.userid = m.s_postby) where m.s_forroom = '0' order by m.s_postime desc limit 0,15
mysql error: Unknown column 'm.s_forroom' in 'where clause'

mysql error number: 1054

wattieuk 11-09-2004 11:10 PM

I got exactly the same error.

Zero Tolerance 11-09-2004 11:11 PM

Ack, i tried to get it done so fast and forgot the simplist of things.

Updated the zip guys, redownload, re-upload install_vbchat.php and run it again, sorry about that.

- Zero Toerance

SVTOA 11-09-2004 11:14 PM

this just happened to me too... Will try again!

wattieuk 11-09-2004 11:15 PM

I get this error now:
Database error in vBulletin 3.0.3:

Invalid SQL: alter table chat_store
add s_forroom int(15) not null default '0';
mysql error: Table 'user_pneodb.chat_store' doesn't exist

Deimos 11-09-2004 11:16 PM

Ok I got rid of those errors by modifying the install file, but now it's installed, the random smilies don't show up on the bottom, they show up as red x's


All times are GMT. The time now is 08:05 AM.

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.02625 seconds
  • Memory Usage 1,868KB
  • 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
  • (11)bbcode_code_printable
  • (15)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