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 01-14-2008 05:42 AM

MGC Chatbox Evolution (v2.0) Development status

As I promised, here is the new development status update.

I have been pretty busy since the beginning of the year at work and haven't been able to do a lot of work on the chatbox but it's going on its way and there is now very few things to finish before it's ready for beta release.

I know this is quite long for all of you but I want to bring you a very very good version of the product so it takes the time ;)

So far, all commands have been ported back to the new command system and the list of remaining tasks has drastically diminished, most of them are already existing features that need to be rewritten for the new code structure.

I have also changed the way ajax is handled in order to enhance compatibility with non-english languages with specific characters. It's now handled in the way the Jelsoft team handles it in vBulletin.

Many tweaks have been added too but you will discover them upon release.

Following is the list of remaining tasks :
  • Re-adding the possibility to show the chatbox on forumhome, forumdisplay, showthread and all pages features (for the moment it works only on full page mode but this is not a big deal, just few plugins to get back to the new version) [OK]
  • Archives w. download archive feature (The archive page will be remodeled as actually it's a bit too big with all messages split alone in their boxes [OK]
  • Inactive mode [OK]
  • Creating a session tracking for the chatbox or tweaking the vBulletin one in order to be able to get a working version of the who's in the chatbox [OK]
  • Maximum number of posts per day to access the chatbox (dynamic 24H)
  • Separate timestamp for archives and chatbox [OK]
  • Forumids where to show the chatbox in case of display on the forumdisplay or showthread pages [OK]
  • Default text color for usergroups [OK]
  • Shouts search system (Perhaps not sure it will be in the upcoming version)
  • Work with stangger5 on the little tweak that could help for the vbadvanced mod
And the most important thing will be to make an importer from the old version to new one as I have renamed all chatbox tables to new names due to the major changes in the code structure. The importer will only get back old chats to the new version leaving you the configuration of the chatbox to achieve :)

I think I'll release a beta before developping an importer, which I hope will be in 2 weeks (I will not be able to code during the weekend this week so won't be able to work a lot on it).

theoz1 01-15-2008 03:52 AM

Dont know if this is possible, but I am making a home page for my forums that is not part of vbulletin. Just using microsoft frontpage. Is there a way to put this on it even though it does not involve vbulletin?

thx.

VBDev 01-15-2008 05:06 PM

No sorry this is not possible.

gunitman247 01-16-2008 12:22 AM

Quote:

Originally Posted by VBDev (Post 1414649)
About the stats, where have you put the $cb_stats code ?

Is chatbox meant to be shown on forumhome on your forum ?

About the pm command which syntax have you used ?

PHP 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" />
    <!-- 
end no cache headers -->
    
$headinclude
    
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
</
head>
<
body>
$header
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <
tr valign="top">
    <
td class="content">
$navbar
<if condition="$show['guest']">
<!-- 
guest welcome message -->
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
    <
td class="tcat"><phrase 1="$vboptions[bbtitle]">$vbphrase[welcome_to_the_x]</phrase></td>
</
tr>
<
tr>
    <
td class="alt1">
        <
phrase 1="faq.php$session[sessionurl_q]2="register.php$session[sessionurl_q]">$vbphrase[first_visit_message]</phrase>
    </
td>
</
tr>
</
table>
<!-- / 
guest welcome message -->
<
br />
</if>

<!-- 
main -->

$forumbits
$forumhome_markread_script
<!-- /main -->
<
center>
<
ad what="zone:4" />
<
br>
<
div class="advertisementtext"><a href="http://globalsigalliance.com/index.php?pageid=advertising">Advertise your site with GSA</a></div>
</
div>
</
center>
<
br />
<!-- 
what's going on box -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
    <tr>
        <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
    </tr>
</thead>
<if condition="$show['
loggedinusers']">
<!-- logged-in users -->
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
            <a href="online.php$session[sessionurl_q]" rel="nofollow">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
        </td>
    </tr>
</tbody>

<tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
    <tr>
        <td class="alt2" align="center"><a href="online.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
        <td class="alt1" width="100%">
            <div class="smallfont">
                <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
                <div>$activeusers</div>
            </div>
        </td>
    </tr>
<tr><td class="alt2" align="center" colspan="2" >$vbphrase[group_legend]</td></tr>
</tbody>
<!-- end logged-in users -->
</if>
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
            <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
    <tr>
        <td class="alt2" align="center"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
        <td class="alt1" width="100%">
        <div class="smallfont">
            <div>
                $vbphrase[threads]: $totalthreads,
                $vbphrase[posts]: $totalposts,
                $vbphrase[members]: $numbermembers<if condition="$show['
activemembers']">,
                    <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
                </if>
            </div>
            <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
        </div>

        </td>
    </tr>
</tbody>
$cb_stats
<if condition="$show['
birthdays']">
<!-- today'
s birthdays -->
<
tbody>
    <
tr>
        <
td class="thead" colspan="2">
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
            
$vbphrase[todays_birthdays]
        </
td>
    </
tr>
</
tbody>
<
tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
    <
tr>
        <
td class="alt2" align="center"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]border="0" /></a></td>
        <
td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
    </
tr>
</
tbody>
<!-- 
end today's birthdays -->
</if>
<if condition="$show['
upcomingevents']">
<tbody>
    <tr>
        <td class="thead" colspan="2">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('
forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
            <if condition="$show['
todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
        </td>
    </tr>
</tbody>
<tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
    <tr>
        <td class="alt2" align="center"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
        <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
    </tr>
</tbody>
</if>
<tbody>
    <tr>
        <td class="tfoot" align="center" colspan="<if condition="$vboptions['
showmoderatorcolumn']">6<else />5</if>">
            <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
            <if condition="$vboptions['
forumleaders']">&nbsp; &nbsp;
            <a href="showgroups.php$session[sessionurl_q]" rel="nofollow">$vbphrase[view_forum_leaders]</a></if>
        </td>
    </tr>
</tbody>
</table>
<br />
<!-- end what'
s going on box -->

<!-- 
icons and login code -->
<
table cellpadding="0" cellspacing="2" border="0" width="100%">
<
tr valign="bottom">
    <
td align="center">
        <
table cellpadding="6" cellspacing="0" border="0">
        <
tr>
            <
td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]border="0" /></td>
            <
td class="alt1">$vbphrase[forum_contains_new_posts]</td>
            <
td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]border="0" /></td>
            <
td class="alt1">$vbphrase[forum_contains_no_new_posts]</td>
<if 
condition="$vboptions['showlocks']">
            <
td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]border="0" /></td>
            <
td class="alt1">$vbphrase[forum_is_closed_for_posting]</td></if>
        </
tr>
        </
table>
    </
td>
</
tr>
</
table>
<!-- / 
icons and login code -->
</
td>
    <
td class="divider"></td>
    <
td class="sidebar">
            <
h2>Latest Threads</h2>
            <
ul>$latest</ul>
            <
div id="links">
                <
h2>Text Advertisments</h2>
                <
ul>
                    <
li><ad what="zone:3" /></li>
                                        <
li><ad what="zone:3" /></li>
                    <
li><ad what="zone:3" /></li>
                                        <
li><ad what="zone:3" /></li>
                    <
li><ad what="zone:3" /></li>
                                        <
li><ad what="zone:3" /></li>
                    
                </
ul>
            </
div>

    </
td>
  </
tr>
</
table>
$footer
</body>
</
html

Thats my FORUMHOME Template.

I do not have the CB running on the forumhome but on a separate page. http://www.globalsigalliance.com

VBDev 01-16-2008 04:50 AM

The only thing that could avoid chatbox stats from being displayed (by looking back into my code) is the options that activates or not the stats on forumhome.

gunitman247 01-16-2008 11:38 AM

Quote:

Originally Posted by VBDev (Post 1422344)
The only thing that could avoid chatbox stats from being displayed (by looking back into my code) is the options that activates or not the stats on forumhome.

Thanks. I think this is vitally important to the success of the chatbox.

GoNz00 01-16-2008 12:06 PM

jsut wondering if there is anything i can do to the UK language file to work with UTF-8

if i edit UTF 8 into the language file i cant use inline editing for one :(

edit, fixed it.

use the uk MCG language file to overwrite the custom UK one, then go into the options for the uk file and change it back to UTF-8 as the upload defaults it, working great again :)

nicolerork 01-17-2008 11:48 AM

Is there a way to display the users in the chat within/below the chatbox instead of clicking on the "Who's Online Channel" button?

VBDev 01-17-2008 12:22 PM

Quote:

Originally Posted by nicolerork (Post 1423081)
Is there a way to display the users in the chat within/below the chatbox instead of clicking on the "Who's Online Channel" button?

If you are confident in php and javascript yes it could be possible to get the whosonline by adding ajax calls to get the whosonline.

This the way it is done when you click on the channel button but you should modify it so that it displays on load under the chatbox.

abe_119 01-18-2008 05:43 AM

Have it *installed*. Loving it !!!
Need help with 2 things though.
1. Click on the "archives" (chatbox) -- says no files found - error, but go to "view archives" on navbar, works fine.
2. Same thing when I click "help" button.

Can you tell me where to fix this ?
Thanks

abe_119 01-18-2008 06:27 AM

Just found out ... it's just the path.
but where do i change the path so it goes to the right folder ??

VBDev 01-18-2008 07:22 AM

By path you mean url ? This is dependant of the url you set in your vbulletin options.

abe_119 01-18-2008 07:46 AM

i'm a newbie ... sorry if i'm asking too many simple questions

in nav bar, when i click on the "view archive" under MGC Chatbox, it takes me to www.domain.com/forum/mgc_chatbox.php which is right.

but when i clicked "archive" on the chatbox, it took me to www.domain.com/mgc_chatbox.php, and of course it could not find the page (error).
and so the 2 other buttons (help,user) in the chat box

again sorry for asking this simple question.
what should i do ?
may i pm you ?

abe_119 01-18-2008 08:07 AM

Quote:

Originally Posted by VBDev (Post 1423624)
By path you mean url ? This is dependant of the url you set in your vbulletin options.

problem solved !!
thanks

physiart 01-18-2008 06:49 PM

BTW, I coudn't get it to work with vbadvanced, although I've followed instructions correctly. And still, cron job won't work in my forums and old shouts are not deleted automatically (vbulletin 3.6.7.PL1). I have to delete them manually by typing /del all every once in a while.

Amaresh 01-19-2008 06:22 AM

i cant see ban user option

VBDev 01-19-2008 08:12 AM

Quote:

Originally Posted by physiart (Post 1423932)
BTW, I coudn't get it to work with vbadvanced, although I've followed instructions correctly. And still, cron job won't work in my forums and old shouts are not deleted automatically (vbulletin 3.6.7.PL1). I have to delete them manually by typing /del all every once in a while.

For vbadvanced, you can look at stangger5 addon :)

About the cron, I'll look at it for the next version.

Quote:

Originally Posted by Amaresh (Post 1424234)
i cant see ban user option

This is a command (check the help in the chatbox).

VBDev 01-19-2008 08:14 AM

MGC Chatbox Evo beta launch certainly next week !

MotMann 01-19-2008 10:14 AM

Is it possibel, that Winner and Higscrores from ibProArcade listet in the Chatbox, as in other Chatboxes works?

VBDev 01-19-2008 12:17 PM

It is certainly possible.

However I am sorry but I don't have the time to build such specific things.

EFLMD 01-19-2008 05:36 PM

thanks for the hack..installed it..worked great..

justino 01-20-2008 07:23 PM

Hi, VBDev!


First of all I want to congratulate you for your excellent work you have done:)

Now comes the part of doubts.

Installed your chatbox in my forum 3.7 and appears to me this link over the chatbox will be someone I could to help solve this problem..

thank?s in advance :D

Sreen:
https://vborg.vbsupport.ru/attachmen...1&d=1200864162

gdavis480 01-21-2008 05:07 AM

Hi the chatbox keeps disappearing on me but everyone else can see it. I have to keep reinstalling the mod inorder to see it.

VBDev 01-21-2008 05:36 AM

Quote:

Originally Posted by justino (Post 1425367)
Hi, VBDev!


First of all I want to congratulate you for your excellent work you have done:)

Now comes the part of doubts.

Installed your chatbox in my forum 3.7 and appears to me this link over the chatbox will be someone I could to help solve this problem..

thank?s in advance :D

Sreen:
https://vborg.vbsupport.ru/attachmen...1&d=1200864162

I think this is the link of the navbar. You have certainly put it in the wrong place.

It's not really useful now as there is a link in the chatbox itself that links to the same pages. You should remove chatbox template edits from the navbar one.

Quote:

Originally Posted by gdavis480 (Post 1425642)
Hi the chatbox keeps disappearing on me but everyone else can see it. I have to keep reinstalling the mod inorder to see it.

I think that you haven't done the modification to the modifyoptions template. So if you modify your options then the chatbox will disappear.

You have to the modification and then go to your usercp to set the show chatbox option to yes.

jalmz 01-21-2008 06:21 AM

how to reduce the font as default in the chatbox??

gdavis480 01-21-2008 07:54 AM

this is strange I remember adding doing the modifyoptions, it must of got deleted when my site when down for 5 minutes

justino 01-21-2008 10:28 AM

Quote:

Originally Posted by VBDev (Post 1425657)
I think this is the link of the navbar. You have certainly put it in the wrong place.

It's not really useful now as there is a link in the chatbox itself that links to the same pages. You should remove chatbox template edits from the navbar one.

Thank?s, work in 100%

:D

VBDev 01-21-2008 10:44 AM

Quote:

Originally Posted by jalmz (Post 1425678)
how to reduce the font as default in the chatbox??

This is not possible "AS IS" unless you do template changes, I'll add the possibility for the release coming this week to choose between smallfont or normalfont.

Quote:

Originally Posted by gdavis480 (Post 1425710)
this is strange I remember adding doing the modifyoptions, it must of got deleted when my site when down for 5 minutes

Ok so no everything is working for ya pal ?

VBDev 01-21-2008 10:45 AM

Quote:

Originally Posted by justino (Post 1425761)
Thank?s, work in 100%

:D

Great ! Don't forget to click install if you want to be kept updated of the new ersion / info releases :)

jalmz 01-21-2008 11:56 AM

thanks vbdev..

nice mod.

jalmz 01-21-2008 02:41 PM

btw, how can i put the mgc chat below the game? (flash game..)
or before the

ibProArcade v2.6.6+
Extended vBulletin-Version by MrZeropage (www.vbulletin.org)
? Chris Kelly 2004

example:

MGC CHAT BOX

ibProArcade v2.6.6+
Extended vBulletin-Version by MrZeropage (www.vbulletin.org)
? Chris Kelly 2004

VBDev 01-21-2008 03:04 PM

By using the show on all page functionnality in a variable.

So you'll be able to put the chatbox at the location you want by a template edit :)

jalmz 01-21-2008 03:17 PM

how?

i already try the ARCADE template...

i want the mgc chat box display below the game..

http://img119.imageshack.us/img119/8...chatboxcp0.jpg

VBDev 01-21-2008 04:02 PM

What have you done exactly ?

VBDev 01-22-2008 04:17 AM

@jamz: then change the location of the variable to under the arcades.

jalmz 01-22-2008 07:08 AM

vbdev.. what do you mean? do i have to open the arcade.php... because this is not possible in the ARCADE template..

VBDev 01-22-2008 10:55 AM

I have never looked at the arcade mod so I can't tell.

As far as my knowledge goes, the only way to do so would be to add the variable somewhere in the templates.

You should consider forwarding your question directly to the author of the arcade mod to ask where to put the variable to display it in the position you want.

jalmz 01-22-2008 01:16 PM

ok vbdev.. thanks...

VBDev 01-23-2008 08:17 AM

<font color="red">MGC Chatbox Evo development is finished</font>

The remaining tasks before release are the readme writing and the translation from french to english. (Plus an importer from the current chatbox for the shouts)

Release will be on Friday or Saturday.

RvG2 01-23-2008 01:27 PM

just upgraded to vb 3.7.0 b4 and I am having a loading issue.

I have noticed this normally when someone is upgrading new vb script, un-install the mods then install the mods again... now with loading issue. :)


All times are GMT. The time now is 07:29 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.03577 seconds
  • Memory Usage 1,943KB
  • 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
  • (1)bbcode_php_printable
  • (12)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