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)

spence2 02-08-2005 01:13 PM

sv1cec

thanks for all the help you are giving us for this orphaned hack!

sv1cec 02-08-2005 02:24 PM

Quote:

Originally Posted by spence2
sv1cec

thanks for all the help you are giving us for this orphaned hack!

It looks as if it is my destiny to take over, wherever ZT's leaves. The same thing happen with his Warning Hack. That's where I got started to make my Advanced Warning System.

One more thing, if there are any of you here, who use AWS as well, be advised that you can integrate the two hacks together, so when a chat user uses a censored word, he gets a warning. Also, your moderators have the ability to warn a user from within the chat.

Kind rgds

oldengine 02-08-2005 08:00 PM

Quote:

Originally Posted by cnczone
What do you change there?

Code:

<tr>
<td class="smallfont" nowrap="nowrap">[<span class='time'>{$mychat['time']}</span>] <b>{$ThisMSG['username']}:</b>
</td>
<td><font face='{$ThisMSG['vbchat_pref_font_face']}' style='color:{$ThisMSG['vbchat_pref_font_color']};'>{$ThisMSG['s_message']}</font></td>

This was written up before on post #511.

MaXxed 02-09-2005 12:58 AM

sorry to trouble you but do you think you could give some more detail on this? I have no problem reverting all my templates to the standard, but I would like to get rid of the tables and have no clue how to even start....


Quote:

Originally Posted by Craigr
For uninstalling i just followed the install steps in reverse and deleted the relevant database tables.


Craigr 02-09-2005 12:19 PM

Quote:

Originally Posted by MaXxed
sorry to trouble you but do you think you could give some more detail on this? I have no problem reverting all my templates to the standard, but I would like to get rid of the tables and have no clue how to even start....

Okay, delete these files:
vBChat.php --> ROOT FORUM DIRECTORY
vbchat.gif --> ROOT FORUM DIRECTORY/images
admin_vbchat.php --> ROOT FORUM DIRECTORY/admincp
install_vbchat.php --> ROOT FORUM DIRECTORY/admincp
vbchat.xml --> ROOT FORUM DIRECTORY/admincp
vbchat.php --> ROOT FORUM DIRECTORY/includes/cron

Go to admin-cp, scheduled tasks, delete vBChat Auto Prune.

Delete the following tables from your database using phpmyadmin or equivalent:
vbchat_store
vbchat_datastore

Then delete these columns in the user table:
vbchat_pref_font_face
vbchat_pref_font_color
vbchat_pref_user_ignore
vbchat_pref_status
vbchat_pref_auto_on
vbchat_pref_auto_msg
vbchat_pref_in_room

Remember to back up before doing the above. ;)

Revert the templates you've edited, remove the vbchat templates too.

Do the opposite for the php files that you did to install.

MaXxed 02-11-2005 07:51 AM

craigr, thanks so much for the info, that really helped. Was finally able to remove this :)

Raven_FCF 02-11-2005 02:23 PM

Quote:

Originally Posted by sv1cec
Most of the changes requested have been dealt by either ZT (before he lost interest in this hack), or by me, at the last few pages.


cool. all i need to know is how i get "Users Currently Inside vbChat" showing on my VBAdvanced portal/front page.

this variable is all that needs changing.
Code:

{$invBChat}
below is what i've got so far in my template.


Code:


<table cellpadding="4" cellspacing="$stylevar[cellspacing]" border="0" class="tborder" width="100%">

<!-- Start vBChat Users -->
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatusers')"><img id="collapseimg_forumhome_chatusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatusers].gif" alt="" border="0" /></a>
                        <a href='$vboptions[bburl]/vBChat.php?$session[sessionurl]'>Users Currently Inside vBChat</a>
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_chatusers" style="$vbcollapse[collapseobj_forumhome_chatusers]">
        <tr>
                <td class="alt2"><a href="$vboptions[bburl]/vBChat.php?$session[sessionurl]"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="vBChat" border="0" /></a></td>
                <td class="alt1" width="100%">
                        <div class="smallfont">
                        {$invBChat}
                        </div>
                </td>
        </tr>
</tbody>
<!-- End vBChat Users -->
</table>
<br>

who can help?

Daniel.C 02-11-2005 05:16 PM

I can't see the chat program, i uploaded the files and modified the old ones succsefully and now everytime i click on the link to it i just get a blank white page. Any Suggestions ?

sv1cec 02-11-2005 06:07 PM

Quote:

Originally Posted by Daniel.C
I can't see the chat program, i uploaded the files and modified the old ones succsefully and now everytime i click on the link to it i just get a blank white page. Any Suggestions ?

Check your templates.

sv1cec 02-11-2005 06:10 PM

Quote:

Originally Posted by Raven_FCF
cool. all i need to know is how i get "Users Currently Inside vbChat" showing on my VBAdvanced portal/front page.

this variable is all that needs changing.
Code:

{$invBChat}
below is what i've got so far in my template.


Code:


<table cellpadding="4" cellspacing="$stylevar[cellspacing]" border="0" class="tborder" width="100%">

<!-- Start vBChat Users -->
<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_chatusers')"><img id="collapseimg_forumhome_chatusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_chatusers].gif" alt="" border="0" /></a>
                        <a href='$vboptions[bburl]/vBChat.php?$session[sessionurl]'>Users Currently Inside vBChat</a>
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_chatusers" style="$vbcollapse[collapseobj_forumhome_chatusers]">
        <tr>
                <td class="alt2"><a href="$vboptions[bburl]/vBChat.php?$session[sessionurl]"><img src="$stylevar[imgdir_statusicon]/forum_link.gif" alt="vBChat" border="0" /></a></td>
                <td class="alt1" width="100%">
                        <div class="smallfont">
                        {$invBChat}
                        </div>
                </td>
        </tr>
</tbody>
<!-- End vBChat Users -->
</table>
<br>

who can help?

I am not sure what exactly you want. You want the user names, for the users who are in the chat? The code for that, is found in index.php, I think this is it:

PHP Code:

// Get the users in vBChat
    
$vbchat_users = array();
    
$chatusers=0;
    while (
$loggedin $DB_site->fetch_array($forumusers))
    {
        
$userid $loggedin['userid'];
        if (!
$userid)
        {    
// Guest
            
$numberguest++;
            
$inforum["$loggedin[inforum]"]++;
        }
        else if (empty(
$userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
        {
            
$userinfos["$userid"] = $loggedin;
        }

        if(
preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
        
$vbchat_users[$loggedin['userid']] = $loggedin;
        }
    }


    
// Configure Peeps In vBChat
    
$invBChat "";

    if(
is_array($vbchat_users)){
        foreach(
$vbchat_users as $invbc){
            if(
$invBChat == ""){
            
$extra "";
            } else {
            
$extra ", ";
            }

        
// Get Username Style
        
$invbc['musername'] = fetch_musername($invbc);

        
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
        
$chatusers $chatusers+1;
        }
    }

    if(
$invBChat == ""){
    
$invBChat "<i>No one is currently inside vBChat</i>";
    } 



All times are GMT. The time now is 02:45 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.02345 seconds
  • Memory Usage 1,783KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (7)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