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-16-2004 09:47 PM

Well you can't set specific once's to be shown, if im correct on newthread it picks random ones, and thats exactly what it does here.

As for changing the background, edit the template "chat_iframe"

Find:
Code:

$headinclude
Underneath Place:
Code:

<style type="text/css">
<!--
body {background-color:#ffffff;background:url();}
-->
</style>

Find:
Code:

<body class='alt2'>
Replace With:
Code:

<body>
Save the template, change the color #ffffff (thats white) to whatever you want.

- Zero Tolerance

RsX 11-16-2004 10:22 PM

IT WORKS!! thanks man!!
i dont wanna be a jerkbut i have 2 ask 2 more things: when i change the color it stays white - heres the template (including color changes)

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" />
$headinclude
<style type="text/css">
<!--
body {background-color:#c2c2c2;background:url();}
-->
</style>
</head>
<body>
$chat_page
</body>
<if condition="$do_scroll_auto == '1'">
<script type="text/javascript">
<!--
scroll(0,999999999)
-->
</script>
</if>
</html>

And also , yu see, i have about 1025 smilies, and i organized them into 2 groups:

1)Generic smilies (Viewed in the reply 'smilie' box) (25 smilies)
2)All Smilies (Viewed when u click 'More' under smilie box) (1000 smilies)

My problemm is that the smilie box in the vbchat pulls random smilies from the All Smilies category... Is there a way to set it to take smilies only from the Generic Smilies?


EDIT: I found where i can change it, but i dont wanna mess with it.. :/ I am even willing to set 25 permanent smilies to show...(via. setting smilie image addresses)

Code:

        $Smile_Display = "";

                if($Chat_Options['d_smiliedisplay'] == 1){
                        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)];
                                }

                        }

                                if(is_array($smilie_select)){
                                        foreach($smilie_select as $smiliegot){
                                        $Smile_Display .= "
                                                  <td width='1%' height='1%'>
                                                  <a href='javascript:AddSmilie(\"{$smiliegot['smilietext']}\");'><img src='{$smiliegot['smiliepath']}' alt='{$smiliegot['title']}' border='0' /></a>
                                                  </td>
                                                  ";
                                }
                        }

                }

        unset($smiliecache);
        unset($smilie_select);


Zero Tolerance 11-16-2004 10:57 PM

I dunno what the hex color #c2c2c2 is, but it may be that that hex colour is a lightish one, maybe.

As for choosing which category the smilies get pulled out of, i suppose that could be a feature in future versions.

- Zero Tolerance

Harley D 11-17-2004 03:09 AM

Quote:

Originally Posted by Harley D
Can a time stamp replace the status text? I think it would be more usefull.

What do ya think Zero? If you've ever seen shoutbox, The time stamp is to the left of the text. Where you have put [STATUS]. I have remove the WORD Status and left the names people have add there. but it would be nice to see when they posted, because most the chatters stay in the room wall the time.

Also #c2c2c2 is a light grey. :squareeyed:

Zero Tolerance 11-17-2004 03:32 AM

Quote:

Originally Posted by Harley D
What do ya think Zero? If you've ever seen shoutbox, The time stamp is to the left of the text. Where you have put [STATUS]. I have remove the WORD Status and left the names people have add there. but it would be nice to see when they posted, because most the chatters stay in the room wall the time.

Also #c2c2c2 is a light grey. :squareeyed:

Yeah there was a time stamp before the status addon, i guess in the next version i can do a little renovating of the templates :)

- Zero Tolerance

Skyline_GT 11-17-2004 04:28 AM

when I am trying to save my setting in the admincp
I got his
Quote:

Database error in vBulletin 3.0.3:

Invalid SQL: update vbchat_datastore set d_online='yes',d_allowbbcode='yes',d_bannedgroups= '1|3|4|8',d_bannedusers='',d_chat_order='bottom',d _smiliedisplay='0',d_smilieamount='0',d_allowbanta g='0',d_maxrooms='0',d_smilequery='0',d_autoprune= '1',d_autoprunedays='1' where did='1'
mysql error: Unknown column 'd_smiliedisplay' in 'field list'

mysql error number: 1054

Date: Tuesday 16th of November 2004 10:27:04 PM
Script: http://www.gamerzplanet.net/forums/a...min_vbchat.php
Referer: http://www.gamerzplanet.net/forums/a...min_vbchat.php
Username: Skyline_GTR
IP Address:
then when I go to vbchat, I got this error
Quote:

Database error in vBulletin 3.0.3:

Invalid SQL: select m.*,u.* from vbchat_store m
left join user u on (u.userid = m.s_postby) where m.s_forroom = '' order by m.s_postime desc limit 0,15
mysql error: Unknown column 'm.s_forroom' in 'where clause'

mysql error number: 1054

Date: Tuesday 16th of November 2004 10:28:08 PM
Script: http://www.gamerzplanet.net/forums/v...?&do=chatFrame
Referer: http://www.gamerzplanet.net/forums/vBChat.php?
Username: Skyline_GTR
IP Address:

I follow your step.. but still has errors..

Zero Tolerance 11-17-2004 04:30 AM

Quote:

Originally Posted by Skyline_GT
when I am trying to save my setting in the admincp
I got his


then when I go to vbchat, I got this error

I follow your step.. but still has errors..

Im guessing you upgraded to v1.1.1, but which version did you have "before" you upgraded?

The upgrade in the download is specified for users that were on v1.1.0, not any lower

- Zero Tolerance

Skyline_GT 11-17-2004 05:05 AM

oh.. fixed:)
THanks.

RsX 11-17-2004 06:42 AM

ok so i can wait till 1.1.2 for those features ^^

some suggestions:
  • Background color picker in the vBCat options in admincp
  • Smile category picker in the vBCat options in admincp

wattieuk 11-17-2004 03:25 PM

Deleted - solved my own problem!

cr95gst 11-17-2004 06:29 PM

I don't get what I am supposed to put in my "user status". I like the date and time thing in the example. How do I get that to appear?

spence2 11-18-2004 12:04 AM

Wow! Thank you!!! I just installed perfectly due to your terrific instructions. This is a very professional hack, and a great addition to my forum.

I think I agree that the time stamp is superior to the "status" ... is there any possible way for you to include your "old code" in this thread?

In any case, thanks again for all your hard work and for sharing it with everyone. :)

Vman 11-18-2004 02:52 AM

Im having 1 problem...

#1 the IM to a member is not working

Thanks for the help. Love it and so do my members!!!

Vman 11-18-2004 03:10 AM

Are you able to make it soo it auto prunes if there is no activity for like 30 min?

reach_srinivas 11-18-2004 03:50 AM

how can remove the installation?? thanks

uae 11-18-2004 12:17 PM

Hey Zero, Thanks for the hard work...cool hack.

One thing, invisible members, shouldn't be listed in the who is currently in vBchat! right?

Scerina 11-19-2004 03:22 AM

OOOOO!!!! Could someone PLLLEEEAAASSSeEEE install this hack for me??? Tis totally awesome!!!! If you can help me out, please contact me via email at: Pandora@Sweet-November.Net

Thankies!

Vman 11-19-2004 03:36 AM

If you have access to your server and AdminCP, its really a simple hack...just follow the instruction...The only way to learn is thru trial and error like most of us have done!....

Just give it a try and if it screws up, then ask via a post what to do next to fix it!...

Harley D 11-19-2004 04:59 AM

Is there a way to update from 1.1.0 to 1.1.1 WITHOUT changing my templates?

Yuneek 11-19-2004 11:37 AM

Parse error: parse error, unexpected '}' in /home/yuneek/public_html/forum/index.php on line 422

Here is the code from line 422:

Quote:

$recorddate = vbdate($vboptions['dateformat'], $maxusers['maxonlinedate'], true);
$recordtime = vbdate($vboptions['timeformat'], $maxusers['maxonlinedate']);

$show['loggedinusers'] = true;
} // Line 422
else
{
$show['loggedinusers'] = false;
}

Harley D 11-19-2004 12:45 PM

Quote:

Originally Posted by Yuneek
Parse error: parse error, unexpected '}' in /home/yuneek/public_html/forum/index.php on line 422

Here is the code from line 422:

Try Del the "//"

khaleel 11-19-2004 01:12 PM

is there a way to clear chat history? :squareeyed:

Zero Tolerance 11-19-2004 02:02 PM

Quote:

Originally Posted by BBCVman
Im having 1 problem...

#1 the IM to a member is not working


Thanks for the help. Love it and so do my members!!!

The format is like this:

/msg [Zero Tolerance] your message here....

The brackets are needed around the username, since the username can be anything i had to set some parameters in the regexp search to make it find who you were sending the message to.

- Zero Tolerance

SVTOA 11-19-2004 02:07 PM

Quote:

Originally Posted by khaleel
is there a way to clear chat history? :squareeyed:


This is a trick question, right? I sure hope so!! :rolleyes:

SVTOA 11-19-2004 02:08 PM

vBChat Prune Options
Prune By Days - Prunes messages older than number of days inputted
Prune By Member - Prunes all messages by member inputted
Pune By Private MSG's Sent By User - Prunes All Private MSG's sent by user
Pune By Private MSG's Recieved By User - Prunes All Private MSG's recieved by user
Complete Prune - Removes All Messages

Zero Tolerance 11-19-2004 02:09 PM

Plus theres now an auto prune option

- Zero Tolerance

cr95gst 11-19-2004 04:58 PM

So anyone want to tell me how to get the date and time where "user status" is like in the 1.0.0 version?

khaleel 11-19-2004 08:21 PM

thanks and this chat hack is what ive been looking for it goes well with all my templates its great thanks mate :D

passionboss 11-20-2004 09:20 AM

.....but I've read through all the messages on this topic and I'm still unsure how this works.

Can I just install this and it works off my vb server or do I need a dedicated irc server? If so how do I go about sorting an irc server? And what do I need?

SVTOA 11-20-2004 12:28 PM

Quote:

Originally Posted by passionboss
.....but I've read through all the messages on this topic and I'm still unsure how this works.

Can I just install this and it works off my vb server or do I need a dedicated irc server? If so how do I go about sorting an irc server? And what do I need?


This is a simple add-on that uses your SQL database. you do not need anything else. Install it and go. :D

madhouse 11-20-2004 01:26 PM

ZT are you going to still include an auto annountment so the chat can post important information in series?

G-khan 11-20-2004 02:11 PM

Very nice hack I installed it and it works great.....

Would like to suggest a scroll type page where it could be set up to just read the old chat from a preset time. That way when you log in you can check what has been happening for the last hour or day or whatever it is set for without the constant refresh...

Great hack and very nice work...

dethfire 11-20-2004 04:11 PM

would it be possible to add an option to disable a usergroup from being able to chat? Say you have a featured guest and you only want them to be able to post in the chat with the questions coming through PM?

Zero Tolerance 11-20-2004 05:49 PM

Quote:

Originally Posted by dethfire
would it be possible to add an option to disable a usergroup from being able to chat? Say you have a featured guest and you only want them to be able to post in the chat with the questions coming through PM?

Look in the ACP Panel for Chat, it allows you to ban usergroups and users ;)

Quote:

ZT are you going to still include an auto annountment so the chat can post important information in series?
All in good time ;)

- Zero Tolerance

dethfire 11-20-2004 06:24 PM

does banning mean they can still login and view the chat and PM, just not post a message? Thats what I need :)

djjeffa 11-20-2004 06:57 PM

Quote:

Originally Posted by cr95gst
So anyone want to tell me how to get the date and time where "user status" is like in the 1.0.0 version?

yea im wondering this aswell is there a file or files that could be eddited?

lancepoint 11-20-2004 11:54 PM

after installation i tried to edit options i got this sql error
HTML Code:

Database error in vBulletin 3.0.3:

Invalid SQL: update vbulletin_vbchat_datastore set d_online='yes',d_allowbbcode='yes',d_bannedgroups='',d_bannedusers='',d_chat_order='bottom',d_smiliedisplay='0',d_smilieamount='0',d_allowbantag='1',d_maxrooms='1',d_smilequery='0',d_autoprune='1',d_autoprunedays='1' where did='1'
mysql error: Unknown column 'd_smiliedisplay' in 'field list'

mysql error number: 1054


then i went to check out the chat from client side by hitting vbchat on the navbar and where the chat goes i got this error

HTML Code:

Database error in vBulletin 3.0.3:

Invalid SQL: select m.*,u.* from vbulletin_vbchat_store m
                left join vbulletin_user u on (u.userid = m.s_postby) where m.s_forroom = '0' order by m.s_postime desc limit 0,15
mysql error: Unknown column 'm.s_forroom' in 'where clause'

mysql error number: 1054


your help is much appreciated!

Rageem 11-21-2004 01:52 AM

Quote:

Originally Posted by lancepoint
after installation i tried to edit options i got this sql error
HTML Code:

Database error in vBulletin 3.0.3:

Invalid SQL: update vbulletin_vbchat_datastore set d_online='yes',d_allowbbcode='yes',d_bannedgroups='',d_bannedusers='',d_chat_order='bottom',d_smiliedisplay='0',d_smilieamount='0',d_allowbantag='1',d_maxrooms='1',d_smilequery='0',d_autoprune='1',d_autoprunedays='1' where did='1'
mysql error: Unknown column 'd_smiliedisplay' in 'field list'

mysql error number: 1054


then i went to check out the chat from client side by hitting vbchat on the navbar and where the chat goes i got this error

HTML Code:

Database error in vBulletin 3.0.3:

Invalid SQL: select m.*,u.* from vbulletin_vbchat_store m
                left join vbulletin_user u on (u.userid = m.s_postby) where m.s_forroom = '0' order by m.s_postime desc limit 0,15
mysql error: Unknown column 'm.s_forroom' in 'where clause'

mysql error number: 1054


your help is much appreciated!

I too this error after installation, show up

Scerina 11-21-2004 02:13 AM

I installed this hack and everything works perfectly good...all but my forum users are all invisible when they are ACTUALLY LOGGED in...err...can someone check out my forum home index file to see if it is configured correctly? I got a feelin something went wrong in that area...

Also, when you click to "Join Room" are you suppose to be automatically redirected to it after clicking "Join Room"? Cuz it just refreshes and does nothing...

Can someone plz help me out here???

Scerina 11-21-2004 02:19 AM

K, I think I know where it went wrong...can someone plz check this bit out to see if it is configured correctly it is from my forum home index file:

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;
$numbervisible++;
}

}

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


Can someone please check it out and tell me where I went wrong and how to fix it?


All times are GMT. The time now is 02:34 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.02220 seconds
  • Memory Usage 1,857KB
  • 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
  • (6)bbcode_code_printable
  • (4)bbcode_html_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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