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)

Zero Tolerance 11-09-2004 11:41 PM

Quote:

Originally Posted by Deimos
Yea it's odd, it randomly shows one smiley, but the rest are red x's
Hrm, the smileys are all working on posts etc, but not showing up in the chat.
Is it because I have two groups of smilies? Standard set and a secondary set perhaps?

Give me an example url of one of the smilies that have a red-x please :)

- Zero Tolerance

Deimos 11-09-2004 11:43 PM

I wish I could!
I can get the URL's for the ones that WORK, but the others just have my forum addess.
This is the forum chat URL

http://www.uoforums.com/forums/vBChat.php?

If I right click on a faulty one and choose "Show picture", it just refreshes ALL the red x's

Zero Tolerance 11-09-2004 11:47 PM

Quote:

Originally Posted by Deimos
I wish I could!
I can get the URL's for the ones that WORK, but the others just have my forum addess.
This is the forum chat URL

http://www.uoforums.com/forums/vBChat.php?

If I right click on a faulty one and choose "Show picture", it just refreshes ALL the red x's

Ok, we'll talk in your vbchat :)

- Zero Tolerance

SVTOA 11-09-2004 11:48 PM

ZT, I'm afraid I'm going to screw up my index.php file- I am not sure where to stop as far as what to replace-

My file does not look like the instructions do-

Zero Tolerance 11-09-2004 11:51 PM

Yeah re-download the zip and reopen the install, it had some code which wasn't supposed to be found. I updated it about 5 mins ago

- Zero Tolerance

SVTOA 11-09-2004 11:53 PM

ok, will do.

wattieuk 11-09-2004 11:55 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 :)

It doesn't make any sense to me! Any idea how I can make the chat appear straight after the username?

Zero Tolerance 11-09-2004 11:57 PM

Quote:

Originally Posted by wattieuk
It doesn't make any sense to me! Any idea how I can make the chat appear straight after the username?

Change the html structure, make it just 1 <td> instead of 2 <td>'s

- Zero Tolerance

SVTOA 11-09-2004 11:57 PM

This is how it looks in my index.php file:



Code:

        while ($loggedin = $DB_site->fetch_array($forumusers))
        {
                $userid = $loggedin['userid'];
                if (!$userid)
                {        // Guest
                        $numberguest++;
                        $inforum["$loggedin[inforum]"]++;
                }
                else if (empty($userinfos["$userid"]['lastactivity']) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
                {
                        $userinfos["$userid"] = $loggedin;
                        $numberregistered++;
                        if ($userid != $bbuserinfo['userid'])
                        {
                                $inforum["$loggedin[inforum]"]++;
                        }
                        $loggedin['musername'] = fetch_musername($loggedin);

                        if (fetch_online_status($loggedin))
                        {
                                $numbervisible++;
                                eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
                        }
                }
        }


So where do I put this?

Code:

        // Get the users in vBChat
        $vbchat_users = array();

        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;
                }
        }

        // 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>";
                }
        }

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


Zero Tolerance 11-10-2004 12:17 AM

Change
Code:

while ($loggedin = $DB_site->fetch_array($forumusers))
        {
                $userid = $loggedin['userid'];
                if (!$userid)
                {        // Guest
                        $numberguest++;
                        $inforum["$loggedin[inforum]"]++;
                }
                else if (empty($userinfos["$userid"]['lastactivity']) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
                {
                        $userinfos["$userid"] = $loggedin;
                        $numberregistered++;
                        if ($userid != $bbuserinfo['userid'])
                        {
                                $inforum["$loggedin[inforum]"]++;
                        }
                        $loggedin['musername'] = fetch_musername($loggedin);

                        if (fetch_online_status($loggedin))
                        {
                                $numbervisible++;
                                eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
                        }
                }
        }

TO:
Code:

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

                        if (fetch_online_status($loggedin))
                        {
                                $numbervisible++;
                                eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
                        }
                }
        }
        // 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>";
                }
        }

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

- Zero Tolerance


All times are GMT. The time now is 08:07 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.02005 seconds
  • Memory Usage 1,768KB
  • 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_code_printable
  • (4)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