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)

fortnox 11-24-2004 11:00 AM

Hi!

First thanks for this great Hack.

I have a small Problem.

My smileys are animated Smileys and if i klick on a Smiley to insert them, all Animation will stop. :ermm:
If i klick in my Browser on refresh the Animation beginns.

kevin_r1 11-24-2004 01:33 PM

Quote:

Originally Posted by Koopa
I get a blank screen after installation :S

http://www.footballmanager2005.com/forums/vBChat.php

I had the same problem. I uploaded vBChat.php to the forums directory (again) and it worked.

Tru Smiles 11-24-2004 05:17 PM

Quote:

Originally Posted by Harley D
This is what I used for my "chat_iframe" template, as you can see all the different colors can be changed just like HTML. I found this in this thread. hope this is what your needing.

Thank you SOOOOOOOO much, I could kiss you :D :D

I was wondering, cos you such a lovely person, if you would know how to adapt that code for the BV Shoutbox here? > https://vborg.vbsupport.ru/showthrea...d=1#post574510


Please?

:D

akiy 11-24-2004 09:23 PM

Since I didn't see any code to insert the time when each message was sent, I went ahead and coded it myself.

After:
Code:

                                if($thisIgnore == 0){
I inserted:
Code:

                                        $time = date("g:ia",
                                                    mktime(date("H",
                                                                $ThisMSG['s_postime'])-$timediff+$ThisMSG['timezoneoffset'],
                                                            date("i, s, m, d, Y", $ThisMSG['s_postime'])));

I can now use $time in the chat_row and chat_row_special_recieved (sic) templates. $time takes into consideration the current chatter's timezoneoffset setting and the server's timezone setting so that each person should see their own local time when the messages were posted.

Hope that helps!

akiy 11-24-2004 09:28 PM

I now have alternating backgrounds for each message.

Somewhere near the top of chat_iframe, I inserted:
Code:

<if condition="$messagenum = 1"></if>
Then, in chat_row, I replaced:
Code:

<tr>
with
Code:

<tr <if condition="$messagenum%2 == 1">BGCOLOR="#F5F5F5"</if>>
I also inserted into the end of chat_row:
Code:

<if condition="$messagenum++"></if>
Of course you can change #F5F5F5 to whatever color you wish.

Hope that helps!

Harley D 11-25-2004 04:37 AM

Quote:

Originally Posted by akiy
Since I didn't see any code to insert the time when each message was sent, I went ahead and coded it myself.

After:
Code:

                                if($thisIgnore == 0){
I inserted:
Code:

                                        $time = date("g:ia",
                                                    mktime(date("H",
                                                                $ThisMSG['s_postime'])-$timediff+$ThisMSG['timezoneoffset'],
                                                            date("i, s, m, d, Y", $ThisMSG['s_postime'])));

I can now use $time in the chat_row and chat_row_special_recieved (sic) templates. $time takes into consideration the current chatter's timezoneoffset setting and the server's timezone setting so that each person should see their own local time when the messages were posted.

Hope that helps!

Where is this portion of code at? I'm unable to find it.

akiy 11-25-2004 02:30 PM

Quote:

Originally Posted by Harley D
Where is this portion of code at? I'm unable to find it.

You should be able to find the "if($thisIgnore == 0){" on line 331 of vBChat.php.

bidouilleur 11-25-2004 06:15 PM

I added vbchat to my board, it worked except the smileys, they didn't show in the chat window. I have some other hacks installed but anyway, Resis Is Futile, one of my support members and good scripter had a look at it and tweaked it to make it work. Since it can help some others, I take the freedom to copy his changes here.

"
To make the smilies work I just changed to things. I removed the code in the smilie-bar generating section to make them appear in random order, and added a smilie-parser for the display of messages. I changed these two parts:
PHP Code:

if($Chat_Options['d_smilequery'] != 1){               // Total Amount Of Smilies               $total = sizeof($smiliecache);               $smilie_select = array();                     for($x=0;$x<$Chat_Options['d_smilieamount'];$x++){                   $smilie_select[] = $smiliecache[rand(1,$total)];                   }               } else {               // Your getting red x's, so instead of using cached data lets query the database               $smilies = $DB_site->query("                   SELECT smilieid, smilietext, smiliepath, smilie.title,                   imagecategory.title AS category                   FROM " . TABLE_PREFIX . "smilie AS smilie                   LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)                   ORDER BY imagecategory.displayorder, smilie.displayorder               ");                   $stotal = 0;                   while($gSmile = $DB->fetch_array($smilies)){                   $allsmilies[] = $gSmile;                   $stotal++;                   }                     for($x=0;$x<$Chat_Options['d_smilieamount'];$x++){                   $smilie_select[] = $allsmilies[rand(1,$stotal)];                   } 

to

PHP Code:

if($Chat_Options['d_smilequery'] != 1){               // Total Amount Of Smilies               $total = sizeof($smiliecache);               $smilie_select = array();                     for($x=0;$x<$Chat_Options['d_smilieamount'];$x++){                   $smilie_select[] = $smiliecache[$x];                   }               } else {               // Your getting red x's, so instead of using cached data lets query the database               $smilies = $DB_site->query("                   SELECT smilieid, smilietext, smiliepath, smilie.title,                   imagecategory.title AS category                   FROM " . TABLE_PREFIX . "smilie AS smilie                   LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)                   ORDER BY imagecategory.displayorder, smilie.displayorder               ");                   $stotal = 0;                   while($gSmile = $DB->fetch_array($smilies)){                   $allsmilies[] = $gSmile;                   $stotal++;                   }                     for($x=0;$x<$Chat_Options['d_smilieamount'];$x++){                   $smilie_select[] = $allsmilies[$x];                   } 

and

PHP Code:

if($Chat_Options['d_allowbbcode'] == "yes"){                   // URL Parse Then BBCode Parse?                   $ThisMSG['s_message'] = convert_url_to_bbcode($ThisMSG['s_message']);                   $ThisMSG['s_message'] = parse_bbcode($ThisMSG['s_message'], 'nonforum');                   } else {                   $ThisMSG['s_message'] = htmlspecialchars_uni($ThisMSG['s_message']);                   }                              // Check Status                          if($ThisMSG['vbchat_pref_status'] == ""){                   $ThisMSG['vbchat_pref_status'] = "<i>None</i>";                   } 

to

PHP Code:

if($Chat_Options['d_allowbbcode'] == "yes"){                   // URL Parse Then BBCode Parse?                   $ThisMSG['s_message'] = convert_url_to_bbcode($ThisMSG['s_message']);                   $ThisMSG['s_message'] = parse_bbcode($ThisMSG['s_message'], 'nonforum');                   } else {                   $ThisMSG['s_message'] = htmlspecialchars_uni($ThisMSG['s_message']);                   }                                      if($Chat_Options['d_smiliedisplay'] == 1){                       // Your getting red x's, so instead of using cached data lets query the database                       $smilies = $DB_site->query("                           SELECT smilieid, smilietext, smiliepath, smilie.title,                           imagecategory.title AS category                           FROM " . TABLE_PREFIX . "smilie AS smilie                           LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)                           ORDER BY imagecategory.displayorder, smilie.displayorder                       ");                       while($smiliegot = $DB->fetch_array($smilies)){                           $ThisMSG['s_message'] = str_replace($smiliegot['smilietext'], "<img src='{$smiliegot['smiliepath']}' alt='{$smiliegot['title']}' />", $ThisMSG['s_message']);                       }                   }                              // Check Status                          if($ThisMSG['vbchat_pref_status'] == ""){                   $ThisMSG['vbchat_pref_status'] = "<i>None</i>";                   } 

Once again thanks Resis and I hope this can help others that have the same problem

Cyn 11-25-2004 08:33 PM

I want to use the chat only for my moderators. So I don't want vBChat to display in the navbar or at the bottom where it displays: Users Currently Inside vBChat

How can I hide these from other usergroups?

Tipi 11-25-2004 09:55 PM

Ehm, I put all the files where the readmefile told to. Now i have this error:

Quote:

Fatal error: Call to undefined function: xml_parser_create() in /usr/home/*********/www/********/admincp/install_vbchat.php on line 31

Line 31 says
PHP Code:

 $parser xml_parser_create(); 



Help??


All times are GMT. The time now is 09:21 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.02006 seconds
  • Memory Usage 1,794KB
  • 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
  • (8)bbcode_code_printable
  • (5)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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