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 - MGC Chatbox (with AJAX) (https://vborg.vbsupport.ru/showthread.php?t=148472)

VBDev 06-01-2007 04:56 AM

Yep you can also totally disable the chatbox announcement.

This can be done by removing the code bits I told you to copy in the 3 plugins.

I'll make it deactivable for the next version or at least give the possibility to allow or not the use of bbcodes so that it could be used without the unuseful query but with no bbcode or with the query (if peoples don't want to do the file modification) and the bbcode.

For the smiley, you mean that when you click on a smiley you are scrolled to the top of the page ? If this is the case, then look at the previous posts I already gave the solution to solve this bug :)

VBDev 06-01-2007 07:10 AM

Hey guyz, my chatbox is nominated for the MOTM so plz vote for me ;)

NeutralizeR 06-01-2007 07:16 AM

Quote:

Originally Posted by VBDev (Post 1258834)
Hey guyz, my chatbox is nominated for the MOTM so plz vote for me ;)

Thanks again, trying your recommendations :)

I also voted for you.

cooldude714 06-01-2007 08:44 AM

How do I edit it so it doesn't say MGC Chatbox at the top, and it just says Chatbox?

Sofia 06-01-2007 08:59 AM

Quote:

Originally Posted by cooldude714 (Post 1258867)
How do I edit it so it doesn't say MGC Chatbox at the top, and it just says Chatbox?

In the product_mgc_chatbox, find

HTML Code:

<phrase name="mgc_chatbox" date="1176242966" username="mtor" version="1.0"><![CDATA[MGC Chatbox]]></phrase>
And replace by :

HTML Code:

<phrase name="mgc_chatbox" date="1176242966" username="mtor" version="1.0"><![CDATA[Chatbox]]></phrase>
For the next version, users can choose their title

ragtek 06-01-2007 09:11 AM

just search MGC Chatbox in the phrase system and replace it ;)
that would be easier as edit the product file & reinstall the product

Sofia 06-01-2007 09:16 AM

Quote:

Originally Posted by ragtek (Post 1258877)
just search MGC Chatbox in the phrase system and replace it ;)
that would be easier as edit the product file & reinstall the product

Yes, of course, if you have already install the hack, use Languages & Phrases >> Search in Phrases >> Search MGC Chatbox. The varname is "mgc_chatbox" :)

NeutralizeR 06-01-2007 09:24 AM

Everything is ok for me now apart from the clicked smiley issue at IE.

This fix works for Firefox:
Quote:

Replace # by #top


My ChatBox:
http://img507.imageshack.us/img507/306/snap1ml7.th.png
http://img507.imageshack.us/my.php?image=snap1ml7.png

cooldude714 06-01-2007 09:29 AM

Quote:

Originally Posted by Sofia (Post 1258879)
Yes, of course, if you have already install the hack, use Languages & Phrases >> Search in Phrases >> Search MGC Chatbox. The varname is "mgc_chatbox" :)

Thanks :)

Vizionz 06-01-2007 09:50 AM

nice hack i wont be installing since i have a shoutbox and two chatrooms already but this is very nice hack. good job :)

Eagle Creek 06-01-2007 10:04 AM

It's confusing me, also the screenshots.. What is it? A SHOUTbox or a CHATbox?

Vizionz 06-01-2007 10:06 AM

looks like a pop up shoutbox . instead of being on the forum page it pops up to do the same thing as a shoutbox from my guess

Mastar 06-01-2007 11:21 AM

It stays on the forum like any chat or shoutbox actually the best I've installed and used so far.

redlabour 06-01-2007 11:30 AM

What i miss is a Function to use a special "Style, Colour" or anything else marking the Teamchat-Messages at global Chatview.

Know what i mean? Maybe a small Star or anything else at every beginning of Teamshout.

Sofia 06-01-2007 11:38 AM

Quote:

Originally Posted by redlabour (Post 1258983)
What i miss is a Function to use a special "Style, Colour" or anything else marking the Teamchat-Messages at global Chatview.

Know what i mean? Maybe a small Star or anything else at every beginning of Teamshout.

Yes but the teamshouts are posted on the team channel, not on the global channel. Only team can use team channel. And when you use the command /team, the shout appear on the team channel.

redlabour 06-01-2007 11:49 AM

Quote:

Originally Posted by Sofia (Post 1258989)
Yes but the teamshouts are posted on the team channel, not on the global channel. Only team can use team channel. And when you use the command /team, the shout appear on the team channel.

Yeah i know - but my Teamers like to have the Option to see anything on Global. It was nice if you add this as a Choice in a further Version.

ragtek 06-01-2007 11:56 AM

i'm getting this error on install:
Quote:

Catchable fatal error: Object of class vB_Database_MySQLi could not be converted to string in /var/www/forum/admincp1234/plugin.php(1942) : eval()'d code on line 10

Mastar 06-01-2007 11:59 AM

Quote:

Originally Posted by redlabour (Post 1259001)
Yeah i know - but my Teamers like to have the Option to see anything on Global. It was nice if you add this as a Choice in a further Version.

I will have to agree with this one.

VBDev 06-01-2007 12:47 PM

Quote:

Originally Posted by redlabour (Post 1259001)
Yeah i know - but my Teamers like to have the Option to see anything on Global. It was nice if you add this as a Choice in a further Version.

Quote:

Originally Posted by Mastar (Post 1259006)
I will have to agree with this one.


Don't worry guys ! On the v1.0 version which is not posted here, It was like that (a global channel only).

Due to people requests, I decided that for the v1.2, I'll make it possible for the admin to select through an option in the acp wether there is two channels or only a global one !


Quote:

Originally Posted by ragtek (Post 1259004)
i'm getting this error on install:

Your database type is mysqli ?

NeutralizeR 06-01-2007 01:24 PM

VBDev,

I need help with the IE & smilies problem:
https://vborg.vbsupport.ru/showpost....6&postcount=88

ragtek 06-01-2007 01:58 PM

yes mysqli

NeutralizeR 06-01-2007 02:45 PM

How to call a custom user profile field in the chatbox template?

HTML Code:

<img src="$stylevar[imgdir_misc]/$post[field8].gif" alt="$post[field8]" />
<img src="$stylevar[imgdir_misc]/$userinfo[field8].gif" alt="$userinfo[field8]" />

These didn't work.

VBDev 06-01-2007 03:24 PM

Quote:

Originally Posted by NeutralizeR (Post 1259052)
VBDev,

I need help with the IE & smilies problem:
https://vborg.vbsupport.ru/showpost....6&postcount=88

Hum, I'll check that out for the next version buddy. But I don't have this problem at home on IE7 or IE6. With which version of IE did you encountered that ?

Quote:

Originally Posted by ragtek (Post 1259088)
yes mysqli

Hum I don't really know mysqli unfortunately. You encountered that problem with the installation of the bitfield product or the chatbox product ?

To try to solve this problem, could you remove the $db->hide_errors(); and $db->show_errors(); from the product files and do the import.

Then tell me if it shows any new error ?

Quote:

Originally Posted by NeutralizeR (Post 1259132)
How to call a custom user profile field in the chatbox template?

HTML Code:

<img src="$stylevar[imgdir_misc]/$post[field8].gif" alt="$post[field8]" />
<img src="$stylevar[imgdir_misc]/$userinfo[field8].gif" alt="$userinfo[field8]" />

These didn't work.


The userinfo is not an available variable in the templates ;) You must use the $bbuserinfo variable instead, so it would be for you: $bbuserinfo[field8].

NeutralizeR 06-01-2007 03:43 PM

IE6.

I already have the fix and it works with firefox:
PHP Code:

if ($vbulletin->db->num_rows($smileys)) {
            while ((
$smilie $vbulletin->db->fetch_array($smileys)) && $count_smileys $vbulletin->options['mgc_cb_editor_nbsmileys']) {
                
$textsmilie str_replace("'","\'",$smilie['smilietext']);
                
$chatbox_smileys .= '<a href="#top" onclick="return ajout_smilie(\'' $textsmilie '\');" alt="' $smilie['title'] . '"><img src="' $smilie['smiliepath'] . '" border="0" /></a> ';
                
$count_smileys++;
            } 

$bbuserinfo[field8] shows my own info to me, i need to use it for the message posters.

VBDev 06-01-2007 03:54 PM

Oh I see ... this is quite more complicated !

For this you would need to edit the mgc_chatbox.php file to retrieved in the $_POST['do'] == 'ajax_refresh_chat' part :)

You must modify the sql request :
PHP Code:

        $chat_messages $vbulletin->db->query_read("
            SELECT id,username,usergroupid,date,chat,user.userid AS userid
            FROM " 
TABLE_PREFIX "mgc_chatbox AS mgc_cb
            LEFT JOIN " 
TABLE_PREFIX "user AS user ON(user.userid = mgc_cb.userid)
            
$where
            ORDER BY date DESC
            LIMIT " 
. ($cb_status == "open" $vbulletin->options['mgc_cb_nbchats']:$vbulletin->
            
options['mgc_cb_nbchats_fermee'])); 

Here you should add after:
PHP Code:

LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid mgc_cb.userid

This:
PHP Code:

LEFT JOIN " . TABLE_PREFIX . "userfield AS uf ON(u.userid uf.userid

And at the end of:
PHP Code:

SELECT id,username,usergroupid,date,chat,user.userid AS userid 

You should add field8.

Then you can use $val[field8] in the mgc_chatbox_bit template.

NeutralizeR 06-01-2007 04:20 PM

Thanks :)

Now i have gender icons near the usernames:
https://vborg.vbsupport.ru/
Screenshot

I also moved the message section to the top. You can make it's location selectable on the next version.

Karabaja 06-01-2007 04:21 PM

Thx VBDev, this looks great. I'll wait for the update to install, since there was some good suggestions. But voted for it in MOTM poll :)

VBDev 06-01-2007 05:16 PM

Quote:

Originally Posted by NeutralizeR (Post 1259192)
Thanks :)

Now i have gender icons near the usernames:
http://img369.imageshack.us/img369/9785/snap1bf5.th.png
Screenshot

I also moved the message section to the top. You can make it's location selectable on the next version.

Nice done :)

Don't worry, I am going to make the position of the editor part selectable for the next version.

Quote:

Originally Posted by Karabaja (Post 1259193)
Thx VBDev, this looks great. I'll wait for the update to install, since there was some good suggestions. But voted for it in MOTM poll :)

Thanks man :) And thanks to all thos who have already voted for me :D Continue to do so if it's not already done plz :rolleyes:

ragtek 06-01-2007 05:31 PM

the 1. error was thet the tables and columns existed:D from the 1. install lol
the 2. was here:
PHP Code:

require_once(DIR '/includes/class_bitfield_builder.php');
vB_Bitfield_Builder::save($vbulletin->$db);
build_forum_permissions(); 


ragtek 06-01-2007 05:34 PM

is it possible to have more rooms or just team and normal?:D


another request: if the sitebackground is black, you cant see the help^^ because the helptext is black to

VBDev 06-01-2007 05:35 PM

Quote:

Originally Posted by ragtek (Post 1259237)
the 1. error was thet the tables and columns existed:D from the 1. install lol
the 2. was here:
PHP Code:

require_once(DIR '/includes/class_bitfield_builder.php');
vB_Bitfield_Builder::save($vbulletin->$db);
build_forum_permissions(); 


Oki, for the bit of code, it's strange !

Coz this bit of code is supposed to rebuild the bitfield for the permissions :)

So now it works ? If the bitfield regeneration makes an error, you can rebuild them manually by setting vbulletin in debug mode to make the rebuild bitfields menu appear :)


For all : I have started today the new version.

VBDev 06-01-2007 05:37 PM

Quote:

Originally Posted by ragtek (Post 1259240)
is it possible to have more rooms or just team and normal?:D


another request: if the sitebackground is black, you cant see the help^^ because the helptext is black to

For the help text, this is strange I think I use the smallfont class of vbulletin.

Anyway, I will check that :)

For the room, unfornately the answer is no because. Remember it's a chatbox not a chat ;)

ragtek 06-01-2007 05:38 PM

yes i made this ;)

but as i know in never versions the cache is automaticaly build new after a productinstall ;)

ragtek 06-01-2007 06:02 PM

second new idee
a whisperfunction
in the wbb3 shoutbox there is something like this built in
just write /w username and just he can see it

VBDev 06-01-2007 06:10 PM

As I said in a previous post, I am not really up to that functionnality as I find it very "fat" for a chatbox.

I'll see what's possible if you click on Install lol ;) It's a joke of course :) I'll have a look at it anyway it's on my tothink list.

ragtek 06-01-2007 06:13 PM

lol 10 postings off me:D

what my members say: the cpu usage jumps on every refresh to 12-50%

VBDev 06-01-2007 06:21 PM

This is maybe due to the ajax feature or the javascript.

I'll try to track the problem ;)

10 posts of you proves you're are interested in my chatbox so for me It is a pleasure :)

DementedMindz 06-01-2007 06:33 PM

VBDev I have a question for you I use yahoo smilies for all my smilies on my site now I use the same commands they do for there smilies now there is a problem for example when I use :"> for Embarrassment smiliey it will give a error on the shoutbox ');" alt="Embarrassment"> take a look at the sceen shot for what I mean.

Attachment 65064

NeutralizeR 06-01-2007 06:48 PM

Quote:

Originally Posted by DementedMindz (Post 1259288)
VBDev I have a question for you I use yahoo smilies for all my smilies on my site now I use the same commands they do for there smilies now there is a problem for example when I use :"> for Embarrassment smiliey it will give a error on the shoutbox ');" alt="Embarrassment"> take a look at the sceen shot for what I mean.

Attachment 65064

You should change the shortcut of that smiley. It shouldn't have ' character.

VBDev 06-01-2007 06:49 PM

I understand your problem.

This is due to the use of " in the replacement.

This is the problem with html as the parameters value of a html tag is put between " or '.

I'll make my possible to find a way to pass that problem but I can't promise I'll find :(


All times are GMT. The time now is 06:13 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.02921 seconds
  • Memory Usage 1,866KB
  • 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
  • (4)bbcode_html_printable
  • (7)bbcode_php_printable
  • (20)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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