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)

captainslater 11-02-2007 10:22 AM

On the left side of a user's shout you/they should see a image with a red x. By clicking on this image the shout will be deleted.

TheBlackPoet 11-02-2007 01:59 PM

/del all will delete the chats

yoyoyoyo 11-02-2007 11:29 PM

Quote:

Originally Posted by captainslater (Post 1374091)
On the left side of a user's shout you/they should see a image with a red x. By clicking on this image the shout will be deleted.

weird- I don't see that - and I set my usergroup to allow deletion of shouts

class101 11-02-2007 11:41 PM

it's on the chatbox archive dude there:

...../mgc_chatbox.php?do=view_archive&page=1

lilwowblow 11-03-2007 12:46 AM

thank you I will click installed.

yoyoyoyo 11-03-2007 02:28 AM

Quote:

Originally Posted by class101 (Post 1374505)
it's on the chatbox archive dude there:


...../mgc_chatbox.php?do=view_archive&page=1

ok thanks - found it - not very intuitive, but it works

ujai 11-03-2007 03:29 AM

thanks.. installing it

VBDev 11-03-2007 08:30 AM

Quote:

Originally Posted by yoyoyoyo (Post 1374590)
ok thanks - found it - not very intuitive, but it works

This red box is displayed also in the chatbox if you activate the corresponding option in your admincp :)

chrisdaman77 11-03-2007 06:26 PM

I was wondering if there is a such thing in the program that allows the amount of shouts a member has to be displayed in their profile.

VBDev 11-04-2007 07:19 AM

Quote:

Originally Posted by chrisdaman77 (Post 1374989)
I was wondering if there is a such thing in the program that allows the amount of shouts a member has to be displayed in their profile.

Nope, there isn't.

However, it wouldn't be that hard to do, just a small query in the shouts database.

Anyway, I don't have time to do that for now so I guess you'll have to remind me after the next version release :)

NeutralizeR 11-05-2007 06:46 AM

When i enter the "/ban username" command it says "The user doesn't exist".

But the user is online and active at the chatbox. Any ideas?

VBDev 11-05-2007 07:37 AM

Are you sure of the syntax you have used for the command ?

Check the help as the syntax of the command had changed when I made the last version because of the introduction of the /ban userid command.

eurofunny 11-05-2007 06:12 PM

One wish for the next Version bb-code images
Automatically reszied

silvermerc 11-05-2007 06:13 PM

Does that mean your suprise will not happen??

NeutralizeR 11-05-2007 06:13 PM

Quote:

Originally Posted by VBDev (Post 1376101)
Are you sure of the syntax you have used for the command ?

Check the help as the syntax of the command had changed when I made the last version because of the introduction of the /ban userid command.

I'm sure. "The user doesn't exist"

Neither of these are working for me:

/ban username
/ban userid

Ranger187 11-06-2007 05:04 PM

I have a request.

Can you add a usergroup option to change DEFAULT text color based on usergroup?

ie: mods by default are dark red
Reg users = white?

Is that possible?

VBDev 11-07-2007 04:11 AM

Quote:

Originally Posted by eurofunny (Post 1376462)
One wish for the next Version bb-code images
Automatically reszied

I can affect only the img bbcode in the chatbox as I use the default bbcode parser function.

If you want to do so you'll have to do it for the whole forum.

I know there are existing mods that do that.

Quote:

Originally Posted by silvermerc (Post 1376463)
Does that mean your suprise will not happen??

It will don't worry but It will take some time due to changes in my life ;)

Quote:

Originally Posted by NeutralizeR (Post 1376464)
I'm sure. "The user doesn't exist"

Neither of these are working for me:

/ban username
/ban userid

Can you give me the syntaxes you used to test please so that I can reproduce them (with the username or userid giving the problem) ?

Quote:

Originally Posted by Ranger187 (Post 1377125)
I have a request.

Can you add a usergroup option to change DEFAULT text color based on usergroup?

ie: mods by default are dark red
Reg users = white?

Is that possible?

This might be possible but I won't do that for the next version as there are already many things to do :)

I put it in the todo list for upper versions.

NeutralizeR 11-07-2007 04:50 AM

/ban Tester
/ban 207833

VBDev 11-07-2007 05:48 AM

Ok so this is what I supposed :)

You have used the cmd with the wrong syntax, the good syntax is:

/ban user Tester
or
/ban uid 207833

As stated in the help window (maybe your help template is not up-to-date if you modified the original one ?)

powerbook 11-07-2007 11:53 AM

Hi,

Is there a way that you can disable the shoutbox for members who haven't made a specific amount of posts on the site within a 24hour period.
The same idea as is the case with ibProArcade where you can't play arcade games if you haven't made the number of posts within 24hrs as set by admin?

Members keeps on using the shoutbox as a replacement for posting and for me the only way is to either annoy them or to force them to make X amount of posts per 24hrs period before the shoutbox is either visible or enabled for them to use..

Many Thanks

yoyoyoyo 11-07-2007 12:41 PM

Quote:

Originally Posted by VBDev (Post 1374721)
This red box is displayed also in the chatbox if you activate the corresponding option in your admincp :)

cool - thanks - found the setting and enabled it :)

VBDev 11-07-2007 01:28 PM

Quote:

Originally Posted by powerbook (Post 1377678)
Hi,

Is there a way that you can disable the shoutbox for members who haven't made a specific amount of posts on the site within a 24hour period.
The same idea as is the case with ibProArcade where you can't play arcade games if you haven't made the number of posts within 24hrs as set by admin?

Members keeps on using the shoutbox as a replacement for posting and for me the only way is to either annoy them or to force them to make X amount of posts per 24hrs period before the shoutbox is either visible or enabled for them to use..

Many Thanks

As Is it's not possible. It would require a bit of coding but that's not very complicated.

I don't have the time to do it now but I could guide you through the steps if you have a bit of knowledge in php ?

powerbook 11-07-2007 01:44 PM

Hi,

Guiding me would be brilliant!! :up:

Thanks again

Quote:

Originally Posted by VBDev (Post 1377726)
As Is it's not possible. It would require a bit of coding but that's not very complicated.

I don't have the time to do it now but I could guide you through the steps if you have a bit of knowledge in php ?


nebu 11-07-2007 04:46 PM

i have a question.
tell me plz how to set the writing settings?
i want that my messages in the chatbox are allways blue and size4,
but i have do set it again and again :(

VBDev 11-07-2007 05:57 PM

Quote:

Originally Posted by powerbook (Post 1377742)
Hi,

Guiding me would be brilliant!! :up:

Thanks again

Basically what you have to do is edit the chatbox plugin attached to the global hook.

In this hook, you'll find a global condition to check if the chatbox is active ($vboptions[mgc_chatbox] or kinda, I don't have the code beyond the eyes so don't remember the exact one).

Before the content in the condition, you have to add an sql query to count the messages since the last 24 hours (dynamic count):

Code:

$getcount = $vbulletin->db->query_first("SELECT COUNT(postid) AS nb_posts FROM " . TABLE_PREFIX . "post WHERE userid='" . $vbulletin->userinfo['userid'] . "' AND dateline > '" . ( TIMENOW - 86400 ) . "'");
The query is not tested so you should verify before that the postid and dateline fields are the good one in the post table (for the postid I am pretty sure but not for the dateline).

Then you have to put all the actual part of the condition in a second condition :
Code:

if ($getcount['nb_posts'] > 10) {
/* Put the actual content of the condition here */
}

Where 10 is the number of posts per day you require before using the chatbox.

Of course this a homemade and hardcoded modification so you could also replace the 10 value by the one you want or even better, create a new option in the chatbox group (possible by activating the debug mode) to do just the same thing but giving easier access to modify it ;)

Feel free to ask for any help if you encounter problems ! And give me back the final code so that I could use it in the versions following the v2.0.

Quote:

Originally Posted by nebu (Post 1377857)
i have a question.
tell me plz how to set the writing settings?
i want that my messages in the chatbox are allways blue and size4,
but i have do set it again and again :(

I suppose you have done the mandatory modification to the modifyoptions template so you just have to go in your usercp and then you'll see chatbox options for that purpose :)

powerbook 11-07-2007 10:03 PM

Thanks for the guidelines. I will get cracking on it.

I really hope this is something other members would also be able to use. Since I installed the chatbox I could physically see posts dropping. Hopefully this will encourage my members to post once again. Guess the mods will now just have to be wary of 1 liners but that is the least of the problems... :D:D

Thanks again and if I have any questions I'll let you know. :up:

VBDev 11-08-2007 04:11 AM

Yeah, users always use the easiest ways to communicate which is not always the good one.

vBulletin software is used to build forum so the chatbox is only an addition which should not be used as much as the posting but users tends to do the contrary lol

NeutralizeR 11-08-2007 04:15 AM

Quote:

Originally Posted by VBDev (Post 1377543)
Ok so this is what I supposed :)

You have used the cmd with the wrong syntax, the good syntax is:

/ban user Tester
or
/ban uid 207833

As stated in the help window (maybe your help template is not up-to-date if you modified the original one ?)

Yes, my help template was not up-to-date.... thanks :)

Bicho?? 11-08-2007 11:55 PM

How can i do to delete these "<" ">" in the chat box?


Anybody could tell me please?


Thanks for this great mod first of all, kind regards.

https://vborg.vbsupport.ru/

Serenity 11-09-2007 02:14 AM

i have an issue with this mod. today out of no where the chat box just disappeared. i have searched this thread and saw that others had this issue, but it looked to be fixed. so far i am the only one experiencing this issue. i even tried otehr browsers on my pc and it does not work, but it shows up when i use a different computer.

any ideas?

edit to add:
i logged out of my admin account and used a test account i created and it appears.... it has soething to do with my user account... ???

Henry187 11-09-2007 04:51 AM

Check your User CP > Options to see if you turned it off somehow.

gforce75 11-09-2007 04:55 AM

No, it is not fixed. I had to merge an account to a second one, delete orginal... create orginal, merge back second account to first account. Same exact problem I had with 1.4 and you'll see my post earlier about it. Please QUIT SaYING the user options is the issue. I know what he is refering to. It just randomly disappears and does not come back. When you logon to an account with the same persmissions, you'll see it. Whatever controls the box to be there is flawed somehow.

VBDev 11-09-2007 05:11 AM

Quote:

Originally Posted by Bicho?? (Post 1378758)
How can i do to delete these "<" ">" in the chat box?


Anybody could tell me please?


Thanks for this great mod first of all, kind regards.

https://vborg.vbsupport.ru/

You have to edit the mgc_chatbox_bit template for that purpose and find all the "<" & ">" to remove them.

Quote:

Originally Posted by Serenity (Post 1378814)
i have an issue with this mod. today out of no where the chat box just disappeared. i have searched this thread and saw that others had this issue, but it looked to be fixed. so far i am the only one experiencing this issue. i even tried otehr browsers on my pc and it does not work, but it shows up when i use a different computer.

any ideas?

edit to add:
i logged out of my admin account and used a test account i created and it appears.... it has soething to do with my user account... ???

Does your user account has the good number of posts required for its usergroup ?

Quote:

Originally Posted by Henry187 (Post 1378874)
Check your User CP > Options to see if you turned it off somehow.

Quote:

Originally Posted by gforce75 (Post 1378877)
No, it is not fixed. I had to merge an account to a second one, delete orginal... create orginal, merge back second account to first account. Same exact problem I had with 1.4 and you'll see my post earlier about it. Please QUIT SaYING the user options is the issue. I know what he is refering to. It just randomly disappears and does not come back. When you logon to an account with the same persmissions, you'll see it. Whatever controls the box to be there is flawed somehow.

That's really really strange, I don't see how it would work for a user of a usergroup and "magically" stops working for another user.

If we sum up the problem:
  • The user has the good number of posts
  • The option is not turned off in its acp
  • There is no error shown on the user page when the chatbox disapears
  • The user is member of a single usergroup no additionnal one
Am I right ?

The only way I could dig into that would be to have access to the acp of a forum where that problem appears and also the pass to the user account that encounter that problem.

Maybe I could do live debug to find out what's going on.

katilkuzu 11-09-2007 08:35 AM

when i try to uninstall this hack i got this error in usergroup edit.

tell me how can i uninstall completly

thank you

Eror:

Code:

Database error in vBulletin 3.6.8:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
        `title` = 'Moderator',
        `description` = '',
        `usertitle` = 'Moderator',
        `opentag` = '<font color=\"#009CFF\"><b>',
        `closetag` = '</font></b>',
        `passwordexpires` = '0',
        `passwordhistory` = '0',
        `canpostmedia` = '1',
        `canviewmedia` = '1',
        `nbmsgshowchatbox` = '',
        `mgccustomusergroupperms` = '0',
        `vbarticles` = '2047',
        `ecdownloadpermissions` = '20479',
        `ecexcludecatlist` = '',
        `ecdownloadsmaxuploadtotal` = '-1',
        `ecdownloadsmaxdailydl` = '-1',
        `ecdownloadsmaxdailyfiles` = '-1',
        `ecdownloaddelaygrp` = '-1',
        `vbimghost` = '3',
        `vbimghost_upslots` = '5',
        `vbimghost_files` = '1000',
        `vbjournal` = '7',
        `forumpermissions` = '1048575',
        `genericpermissions` = '205324279',
        `attachlimit` = '0',
        `pmquota` = '500',
        `pmpermissions` = '7',
        `pmsendmax` = '50',
        `calendarpermissions` = '23',
        `wolpermissions` = '5',
        `adminpermissions` = '0',
        `genericoptions` = '15',
        `profilepicmaxwidth` = '150',
        `profilepicmaxheight` = '150',
        `profilepicmaxsize` = '655350',
        `avatarmaxwidth` = '150',
        `avatarmaxheight` = '150',
        `avatarmaxsize` = '200000',
        `signaturepermissions` = '237567',
        `sigpicmaxwidth` = '1000',
        `sigpicmaxheight` = '1000',
        `sigpicmaxsize` = '50000',
        `sigmaxrawchars` = '3000',
        `sigmaxchars` = '3000',
        `sigmaxlines` = '10',
        `sigmaxsizebbcode` = '7',
        `sigmaximages` = '4',
        `vbhotornot` = '3',
        `profileviewpermissions` = '6'
WHERE usergroupid=7;

MySQL Error  : Unknown column 'nbmsgshowchatbox' in 'field list'
Error Number : 1054
Date        : Friday, November 9th 2007 @ 03:30:27 AM
Script      : http://www.------.net/forum/admincp/usergroup.php?do=update
Referrer    : http://www.------.net/forum/admincp/usergroup.php?do=edit&usergroupid=7
IP Address  : ------------
Username    : -----------
Classname    : vb_database


VBDev 11-09-2007 08:46 AM

You haven't followed the uninstall steps correctly as you should have removed the chatbox xml files from the includes directory before removing the product.

To correct your problem, you have to activate the debug mode (search on the forum to find out how to activate this mode, it needs an editing of the config.php file) and then select the rebuild bitfields menu item in the vbulletin options menu.

gforce75 11-09-2007 09:12 PM

Hey appecriate the response.

I know where your coming from. It has stumped me. I know codes are very logical. Guess what, his account lost the box again. He told me he has given up. His name is Squall on the forums linked below. Let me know if you want an account. I'll give ya password of a test account and his account to see first hand.

My msn is gforce8102@hotmail and yahoo is gforce8102. Just drop a message :)

Serenity 11-10-2007 11:31 AM

Quote:

Originally Posted by VBDev (Post 1378884)

Does your user account has the good number of posts required for its usergroup ?

That's really really strange, I don't see how it would work for a user of a usergroup and "magically" stops working for another user.

If we sum up the problem:
  • The user has the good number of posts
  • The option is not turned off in its acp
  • There is no error shown on the user page when the chatbox disapears
  • The user is member of a single usergroup no additionnal one
Am I right ?

The only way I could dig into that would be to have access to the acp of a forum where that problem appears and also the pass to the user account that encounter that problem.

Maybe I could do live debug to find out what's going on.

yes i have everything set appropriately. i was using it for days, even posted in it multiple times myself. i was surfing vb.org and when i came back to my site it was gone.... i log in as another admin and it is there. should name the box houdini...

VBDev 11-10-2007 02:15 PM

Quote:

Originally Posted by gforce75 (Post 1379310)
Hey appecriate the response.

I know where your coming from. It has stumped me. I know codes are very logical. Guess what, his account lost the box again. He told me he has given up. His name is Squall on the forums linked below. Let me know if you want an account. I'll give ya password of a test account and his account to see first hand.

My msn is gforce8102@hotmail and yahoo is gforce8102. Just drop a message :)

I have added you to my msn. Yes what I'll need in first time is his account accesses.

Quote:

Originally Posted by Serenity (Post 1379672)
yes i have everything set appropriately. i was using it for days, even posted in it multiple times myself. i was surfing vb.org and when i came back to my site it was gone.... i log in as another admin and it is there. should name the box houdini...

Maybe the investigation with gforce75 will help finding out what this ******* is :D

Abracadabra as we say in french and the box disapears.

Taragon 11-10-2007 11:05 PM

Quote:

Originally Posted by VBDev (Post 1378884)
You have to edit the mgc_chatbox_bit template for that purpose and find all the "<" & ">" to remove them.

I seem to be overlooking these correct values :o Could you be more exact perhaps?

gforce75 11-11-2007 04:03 AM

i gave him access to my forum. Great support from the author. He'll let me know what's up later :p


All times are GMT. The time now is 06:48 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.03779 seconds
  • Memory Usage 1,862KB
  • 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
  • (3)bbcode_code_printable
  • (23)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