vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Chat Modifications - VSa - ChatBox (AJAX) (https://vborg.vbsupport.ru/showthread.php?t=235271)

princeedward 03-04-2010 08:39 AM

Quote:

Originally Posted by buddyheiko (Post 1996724)
where and how ?
where and how ?
where and how ?
Heiko

(Guten Tag Mein Freund!)Hi hope this help you to solve your problem....

Edit your language / (Make 'Locale' field blank):
Go > ACP > Language & Phrases > Language Manager > Edit Settings > Date / Time Formatting > (Must All Blank)

Remove all '%' from time/date format settings: Go > ACP > vB Options VSa - ChatBox > Check all settings below

Date format (blank to disable): d-m

Time format: H:i


goodluck and best regards...

Gruss von Schleswig Holstein

:p:up:

buddyheiko 03-04-2010 09:11 AM

Hi princeedward,

I made your first tip, then everything worked fine.

Thanks

Heiko
Gruss aus Baden-Wuerttemberg an alle "Fischkoepfe" ( Spass )

Quote:

Originally Posted by princeedward (Post 1996742)
(Guten Tag Mein Freund!)Hi hope this help you to solve your problem....

Edit your language / (Make 'Locale' field blank):
Go > ACP > Language & Phrases > Language Manager > Edit Settings > Date / Time Formatting > (Must All Blank)

Remove all '%' from time/date format settings: Go > ACP > vB Options VSa - ChatBox > Check all settings below

Date format (blank to disable): d-m

Time format: H:i


goodluck and best regards...

Gruss von Schleswig Holstein

:p:up:


princeedward 03-04-2010 09:22 AM

Quote:

Originally Posted by buddyheiko (Post 1996749)
Hi princeedward,

I made your first tip, then everything worked fine.

Thanks

Heiko
Gru? aus Baden-Wuerttemberg an alle "Fischkoepfe" ( Spass )

Gott sei Dank (Thank God!)

dann bin ich beruhigt! (that's put my mind at rest! )

:p

aouni_tahech 03-04-2010 09:36 AM

Same question has been repeated several times but not answer for it yet.

How can I get this to appear on another page such as a vbAdvanced CMPS index page?

Thanx!

princeedward 03-04-2010 09:49 AM

Quote:

Originally Posted by aouni_tahech (Post 1996764)
Same question has been repeated several times but not answer for it yet.

How can I get this to appear on another page such as a vbAdvanced CMPS index page?

Thanx!

Hi....did you try this TRICK? if you never....and you want to try it...first close your eyes, pray hope before you open your CMPS Portal... :p
and hope it works also for you...

best regards

;)

aouni_tahech 03-04-2010 10:02 AM

Quote:

Originally Posted by princeedward (Post 1996769)
Hi....did you try this TRICK? if you never....and you want to try it...first close your eyes, pray hope before you open your CMPS Portal... :p
and hope it works also for you...

best regards

;)

Thank you man, you're the king -not the prince!
It worked :)

princeedward 03-04-2010 10:25 AM

Quote:

Originally Posted by aouni_tahech (Post 1996775)
Thank you man, you're the king -not the prince!
It worked :)

Glad it helped to solve your problem....King? no dont want to be...it's a lot of work...and one woman...LOL

best regards

:p

baghdad4ever 03-04-2010 10:54 AM

thanks

how to set time between posts inorder to prevent flood??

cory_booth 03-04-2010 11:06 AM

Quote:

Originally Posted by Inflikted (Post 1994272)
just made a two small plugin for New Topic and Reply Notification in your chatbox, im still new to vbulletin scripting so i apologize if there is any mistakes :) But I have been using it for a couple days fine

you must make a couple changes to it though once you install it, in BOTH plugins

alter line 2 or 3

that reads...

PHP Code:

if (!in_array($this->info['forum']['forumid'], array(105,83,121,110,82,112,109,101,102,72))) { 

this will filter out private forums you don't want the public to see when a post is made, so add/remove the forumid's you wish to hide.

one last edit is the SQL insert in BOTH plugins, change the '2' to whatever userid you would like to show the posts as. I would setup a postbot and link it to that userid.

PHP Code:

$vbulletin->db->query_write("INSERT INTO `" TABLE_PREFIX "vsa_chatbox` (`userid`, `userip`, `message`, `dateline`, `textprop`) VALUES ('2', '".$_SERVER['REMOTE_ADDR']."', '" $vbulletin->db->escape_string($message) ."', ".TIMENOW.", '');"); 

Thats all :)


Awesome work - 'cept... It generates an SQL error if the forum post contains a single quote in the title.

elenh 03-04-2010 11:59 AM

what do you thing about to add notification options?

i.e. when new thread posted by x user then auto message in the chat. The same for other actions like new reply by x,welcome to the new member x,The x user just logged in,you got pm etc..

That will be very nice if you add this extras.

princeedward 03-04-2010 01:19 PM

Quote:

Originally Posted by Inflikted (Post 1994272)
just made a two small plugin for New Topic and Reply Notification in your chatbox, im still new to vbulletin scripting so i apologize if there is any mistakes :) But I have been using it for a couple days fine

you must make a couple changes to it though once you install it, in BOTH plugins

alter line 2 or 3

that reads...

PHP Code:

if (!in_array($this->info['forum']['forumid'], array(105,83,121,110,82,112,109,101,102,72))) { 

this will filter out private forums you don't want the public to see when a post is made, so add/remove the forumid's you wish to hide.

one last edit is the SQL insert in BOTH plugins, change the '2' to whatever userid you would like to show the posts as. I would setup a postbot and link it to that userid.

PHP Code:

$vbulletin->db->query_write("INSERT INTO `" TABLE_PREFIX "vsa_chatbox` (`userid`, `userip`, `message`, `dateline`, `textprop`) VALUES ('2', '".$_SERVER['REMOTE_ADDR']."', '" $vbulletin->db->escape_string($message) ."', ".TIMENOW.", '');"); 

Thats all :)

nice...and i tried this one also but it much better if it can fetch the user's HTML markup

thanks for sharing mate

:p:up:

Iron Star 03-04-2010 03:42 PM

Quote:

Originally Posted by Valter (Post 1996250)
Edit your language, make 'Locale' field blank, then remove all '%' from time/date format settings.

Thank you!

It works for me.

:)

SoltanWorld 03-04-2010 04:14 PM

Nice One!
I have installed this Mod, Just I wanna knw how can i have this Chatbox as Wideget on CMS main page?

Inflikted 03-04-2010 06:11 PM

i would add in html markups but i dont no how :D

tecnozul 03-04-2010 09:06 PM

Since I can do for those that they moderate do not see the IPs of the users, it seems to me that it is very delicate up to(even) for the moderators.

Sorry my bad inglish

zapiy 03-05-2010 06:54 AM

Ok there does not seem to be any clear instructions of how to display this on the vbcms (the suite version)

Please help?

Cheers

archet1337 03-05-2010 07:37 AM

I'm having some real difficulty setting the default text color

- I've checked that the first color in chat options is set to black
- I've tried to swap {vb:raw vsacb_colorfirst} in chatbox_input to black
- I've checked that stylevar > body_color is set to black

And still it looks like this:

https://vborg.vbsupport.ru/

Any advice on how to alter the default text other than the methods I've already tried?

Edit: When I remove the option to change color, the text color goes back to black. This is really confusing.

elwachiman 03-05-2010 11:51 AM

Option Will Be Moving The Private Message Between Users
Cmps Cms And I Use And Not Seen The Chat In The Same, That Way You Can See That Put Global Form

Baf_Jams 03-05-2010 12:09 PM

Quote:

Originally Posted by archet1337 (Post 1997587)
I'm having some real difficulty setting the default text color

- I've checked that the first color in chat options is set to black
- I've tried to swap {vb:raw vsacb_colorfirst} in chatbox_input to black
- I've checked that stylevar > body_color is set to black

And still it looks like this:

http://www.digi-tech.org/images/dive...bg_problem.png

Any advice on how to alter the default text other than the methods I've already tried?

Edit: When I remove the option to change color, the text color goes back to black. This is really confusing.



when you say chat options 1st color set to black
looking at your pic it must be set to DarkGray?

try this

goto
admin cp
setting
vsa chatbox
Colors available in drop-down menu

make sure 1st color there is set to black
then save

hopefully this helps as thats what i did mine is set to light blue

https://vborg.vbsupport.ru/external/2010/03/81.jpg


https://vborg.vbsupport.ru/external/2010/03/82.jpg

Andres Kello 03-05-2010 04:41 PM

I've just installed this and it's working great.

However, with the default setting of "Below NavBar", I strongly recommend making the Chatbox appear BELOW the Notices as important new Notices might be missed otherwise.

Consider changing that for the next version.

Thanks.

gamershell 03-05-2010 05:13 PM

Hello good peoples of vB. I could use your help if you would be so kind. I am new to installing mods and such to the forums even though I have been an admin for years. Sad, I know but, usually someone else did it.

Is there a way someone could guide me through the installation or point to a thread that shows how to install it? :D

Videx 03-05-2010 06:46 PM

Quote:

Originally Posted by gamershell (Post 1997907)
Is there a way someone could guide me through the installation or point to a thread that shows how to install it? :D

Start with the manual: http://www.vbulletin.com/docs/html/import_product , then look in the package or the first post for specific instructions.

gamershell 03-05-2010 06:57 PM

Thanks for the help Videx. I did upload the XML file as shown and it didn't work. I know it has got to be something simple I am not doing. I am just not sure what it is. Any other help would be appreciated. :D

Videx 03-05-2010 10:26 PM

Quote:

Originally Posted by gamershell (Post 1997984)
I did upload the XML file as shown and it didn't work.

That's pretty vague. Did you have any trouble setting the options? Does it appear in Installed Products? Link to a page where it should appear? Have you read back through all 17 pages to see if someone else had the same trouble and fixed it?

gamershell 03-05-2010 11:15 PM

Yes, it is a tad vague. I'll give you that. :D
Here is the deal: I uploaded the XML file inside the admin cp as directed. It does show up in the installed products, just not the forums. I did not read through seventeen pages as I really didn't think that was necessary. I may have been wrong! :D

I am not trying to be a pain in the ass here! I am just trying to learn and as it is Friday, our coder is off doing coder things. I just wanted to see what I did wrong. Nothing more, nothing less.

Thanks for the help though. :D

Videx 03-05-2010 11:40 PM

Yes, one of the least fun parts about installing mods is slogging through all the pages. But it's necessary. For one, many mods simply don't work, and you won't know unless you read all the pages (posts telling you it doesn't work quickly get buried by noobs asking why it doesn't work!).

Anyway, check your settings in AdminCP. You didn't mention that above, so it could be something simple like you have it turned off.

gamershell 03-05-2010 11:43 PM

Oh how I wish it was a simple thing like I had it turned off! Tis not. I'm not retarded, just new to the whole thing. I'll figure it out :D

Jonluci 03-06-2010 12:12 AM

Great Mod....installed it last night and loving it so far :)
I have some suggestions...to add to the chatbox :D

1. Easy access to EDIT, DELETE and other moderating commands.
2. A PM option will be great
3. Notification on new messages and new threads
4. Also a minimum number of characters needed to send a message

I dont know if these have been mentioned before. There is a whopping 55 pages O.o to go through :D
Hope to see the above implemented

michiganbaja 03-06-2010 12:27 AM

One problem, can anyone help? Everything works fine except when a member first logs in it will keep saying loading and never actually load the chat. If you click to another area in the forum all is well but if you try to enter something into chat while it is stuck loading, it says this..

Quote:

Your submission could not be processed because a security token was missing.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.

archet1337 03-07-2010 06:55 AM

http://www.digi-tech.org/images/dive...g_problem2.png

shows up as

http://www.digi-tech.org/images/dive...g_problem3.png


19 colors listed, 20 show up in the box and at completely random order. The default color isn't even specified in the list.


This really doesn't make any sense. Where am I going wrong?


Also, is there a way to have the smilies listed in order and not randomly when clicking the smily button?

Universal 03-07-2010 07:27 AM

Quote:

Originally Posted by michiganbaja (Post 1998140)
One problem, can anyone help? Everything works fine except when a member first logs in it will keep saying loading and never actually load the chat. If you click to another area in the forum all is well but if you try to enter something into chat while it is stuck loading, it says this..

Try reverting all the VSA chat templates.

FASEOFMARS 03-07-2010 09:46 AM

is their a way in which i can have it just display above the forums and can remove the link to the full chatbox in the navbar?

also how do i edit the name of chatbox to something of my liking?

thanks..

madotds 03-07-2010 10:01 AM

Quote:

Originally Posted by cory_booth (Post 1992214)
Add an alert sound to new chats....

OK folks, this is not for the faint of heart and I know there must be a much easier way to do this, but until something better comes along....

BEFORE YOU BEGIN.

You'll need a wav file and access to your database.

STEP 1: UPDATE USER TABLE
Add new column of type "INT"
Name Column = "countvsachats"

STEP 2: MODIFY PLUGINS - (VSa - ChatBox - MN)

Find the following function "ccbmessages"
Add above: $vbulletin->db->show_errors();
PHP Code:

$tvsacurrent $vbulletin->db->query_read("SELECT COUNT(ID) AS VSACURRENT FROM ".TABLE_PREFIX."vsa_chatbox AS vsa_chatbox");
                while (
$tvsacurrent $vbulletin->db->fetch_array($tvsacurrent))
                {
                
$vsacurrent $tvsacurrent[VSACURRENT];
                }
                
$tvsauser $vbulletin->db->query_read("SELECT countvsachats AS VSAUSER FROM ".TABLE_PREFIX."user WHERE userid = " $vbulletin->userinfo['userid'] ."");
                while (
$tvsauser $vbulletin->db->fetch_array($tvsauser))
                {
                
$vsauser $tvsauser[VSAUSER];
                }
                if (
$vsacurrent $vsauser)
                {
                
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET countvsachats = ".$vsacurrent." WHERE userid = " $vbulletin->userinfo['userid'] . "");
                }
                if (
$vsacurrent $vsauser)
                {
                
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET countvsachats = ".$vsacurrent." WHERE userid = " $vbulletin->userinfo['userid'] . "");
                }
                
$vsacb_box_totalmessages $vbulletin->db->num_rows($vsacb_get_msg_box); 


STEP 3: Scroll down and find .... if ($vsacb_box_totalmessages>0)
Add above (notice here I am loading a chat.wav from images\misc - you'll need to upload a wav and change accordingly):

PHP Code:

              if ($vsacurrent $vsauser)
                {
                echo (
'<div><table><tr><td><EMBED SRC="images\misc\chat.wav" HIDDEN="TRUE" AUTOSTART="TRUE"></EMBED></td></tr></div>');
                } 


I have yet to try with FireFox but the idea is simple. Have a coulm in the user tabe keep track of the current amount of chats. When the chatbox refreshes, run a quick query to count the number of chats. If the chats in the query are larger than the entry in the user table - update the user table to match and fire off a sound.



I hope that there will be a good response to this and Valter might provide a similar solution?

Cheers for this! we were missing the BOING! and now it is back :) the whole process is not as daunting as it may seem at first :)

MaDavis

Videx 03-07-2010 12:02 PM

Quote:

Originally Posted by FASEOFMARS (Post 1998984)
is their a way in which i can have it just display above the forums and can remove the link to the full chatbox in the navbar?

also how do i edit the name of chatbox to something of my liking?

thanks..

Setting the locations is in the options. There's also an option to disable the navbar link - the last one. Changing the name has already been covered: https://vborg.vbsupport.ru/showpost....&postcount=399 .

Believe it or not, a very important part of installing any mod is taking the time to read through the entire thread for information. Yes, I know this becomes painful for popular mods, especially when people keep padding the thread with the same questions.

FASEOFMARS 03-07-2010 02:58 PM

sorry i figured someone asked the question but their is 56 pages and i thought i would chance my arm and hopefully a gent like yourself would stop by and make my troubles a whole lot easier.. thanks a million!

Skreech94 03-07-2010 04:32 PM

I'm sure this has been asked a lot and most of us would enjoy, can you add more command functions?
Examples:
/notice
/prune
/ban
and more things along those lines. It would be really nice for this chatbox and would make it perfect.

madotds 03-07-2010 05:29 PM

Quote:

Originally Posted by cory_booth (Post 1992214)
Add an alert sound to new chats....

OK folks, this is not for the faint of heart and I know there must be a much easier way to do this, but until something better comes along....

BEFORE YOU BEGIN.

You'll need a wav file and access to your database.

STEP 1: UPDATE USER TABLE
Add new column of type "INT"
Name Column = "countvsachats"



I hope that there will be a good response to this and Valter might provide a similar solution?

Hi someone asked me how to add the column for this to there database so I have created a quick picturial HERE for anyone who would like to know. It is not as hard as it sounds :)

Hope it helps

MaDavis

princeedward 03-07-2010 06:26 PM

Quote:

Originally Posted by madotds (Post 1999257)
Hi someone asked me how to add the column for this to there database so I have created a quick picturial HERE for anyone who would like to know. It is not as hard as it sounds :)

Hope it helps

MaDavis

what a nice step by step add-ons tutorial out there mate...thanks a lot for the time you've spent...

but still confused about this thing here


STEP 2: MODIFY PLUGINS - (VSa - ChatBox - MN)
FIND THE FOLLOWING FUNCTIONS "ccbmessages"

ADD ABOVE: THIS ONE? >>> $vbulletin->db->show_errors(); OR WHAT?

AND WHAT IS THIS CODE BELOW?
PHP Code:

$tvsacurrent $vbulletin->db->query_read("SELECT COUNT(ID) AS VSACURRENT FROM ".TABLE_PREFIX."vsa_chatbox AS vsa_chatbox");
                while (
$tvsacurrent $vbulletin->db->fetch_array($tvsacurrent))
                {
                
$vsacurrent $tvsacurrent[VSACURRENT];
                }
                
$tvsauser $vbulletin->db->query_read("SELECT countvsachats AS VSAUSER FROM ".TABLE_PREFIX."user WHERE userid = " $vbulletin->userinfo['userid'] ."");
                while (
$tvsauser $vbulletin->db->fetch_array($tvsauser))
                {
                
$vsauser $tvsauser[VSAUSER];
                }
                if (
$vsacurrent $vsauser)
                {
                
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET countvsachats = ".$vsacurrent." WHERE userid = " $vbulletin->userinfo['userid'] . "");
                }
                if (
$vsacurrent $vsauser)
                {
                
$vbulletin->db->query_write("UPDATE " TABLE_PREFIX "user SET countvsachats = ".$vsacurrent." WHERE userid = " $vbulletin->userinfo['userid'] . "");
                }
                
$vsacb_box_totalmessages $vbulletin->db->num_rows($vsacb_get_msg_box); 


STEP 3: SCROLL DOWN AND FIND .... if ($vsacb_box_totalmessages>0)

ADD ABOVE: >>> (notice here I am loading a chat.wav from images\misc - you'll need to upload a wav and change accordingly):

PHP Code:

              if ($vsacurrent $vsauser)
                {
                echo (
'<div><table><tr><td><EMBED SRC="images\misc\chat.wav" HIDDEN="TRUE" AUTOSTART="TRUE"></EMBED></td></tr></div>');
                } 


tried to think to make this work still no luck...


:confused: hmmm...

madotds 03-07-2010 07:20 PM

Just shooting some noobs on xbox and then i will make an addon to that post buddy ;)

madotds 03-07-2010 07:48 PM

Ok the easiest way to do this is to go to the plugin we need to edit in this case
?VSa - ChatBox ? MN?
How? Admincp>>> Plugin and products>>>>Plugin manager Scroll down and find the VSa-Chatbox-MN plugin and next to that click edit.

Select everything in the php code box and copy it to a text editor of your choice ( I use notepad++ )

Once there you can use the find function and look for

Code:

$vbulletin->db->show_errors();
And add on the line above it (copy and paste)

Code:

$tvsacurrent = $vbulletin->db->query_read("SELECT COUNT(ID) AS VSACURRENT FROM ".TABLE_PREFIX."vsa_chatbox AS vsa_chatbox");
                while ($tvsacurrent = $vbulletin->db->fetch_array($tvsacurrent))
                {
                $vsacurrent = $tvsacurrent[VSACURRENT];
                }
                $tvsauser = $vbulletin->db->query_read("SELECT countvsachats AS VSAUSER FROM ".TABLE_PREFIX."user WHERE userid = " . $vbulletin->userinfo['userid'] ."");
                while ($tvsauser = $vbulletin->db->fetch_array($tvsauser))
                {
                $vsauser = $tvsauser[VSAUSER];
                }
                if ($vsacurrent > $vsauser)
                {
                $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET countvsachats = ".$vsacurrent." WHERE userid = " . $vbulletin->userinfo['userid'] . "");
                }
                if ($vsacurrent < $vsauser)
                {
                $vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET countvsachats = ".$vsacurrent." WHERE userid = " . $vbulletin->userinfo['userid'] . "");
                }
                $vsacb_box_totalmessages = $vbulletin->db->num_rows($vsacb_get_msg_box);


Then use the search function again to find

Code:

$vsacb_box_totalmessages>0
And on the line above that add (copy and paste) the next bit of code

Code:

            if ($vsacurrent > $vsauser)
                {
                echo ('<div><table><tr><td><EMBED SRC="images\misc\chat.wav" HIDDEN="TRUE" AUTOSTART="TRUE"></EMBED></td></tr></div>');
                }

Once you have done that you can copy the whole lot back from your text editor into the plugin phpcode box replacing the original code and click save.

You then need to find a good wav file. you can TRY HERE and upload it to your images/misc folder ( make sure and name it "chat.wav )

Hope this helps
Mark


All times are GMT. The time now is 06:47 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.03486 seconds
  • Memory Usage 1,919KB
  • 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
  • (8)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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