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)

user25148 12-03-2015 07:42 PM

Hi all,

In the installation instructions, theres this line:

Quote:

3. Open 'FORUMHOME' template and put "{vb:raw vsachatbox}" to desired line (for example after '<!-- /main -->') -> Save
The chatbox seems to work without putting
PHP Code:

{vb:raw vsachatbox

in any template. Is this step not needed? How is it showing up without adding this to the template?

If its not needed, does adding it to the template provide any benefits?

Stratis 12-04-2015 06:43 AM

Quote:

Originally Posted by user25148 (Post 2559665)
Hi all,

In the installation instructions, theres this line:



The chatbox seems to work without putting
PHP Code:

{vb:raw vsachatbox

in any template. Is this step not needed? How is it showing up without adding this to the template?

If its not needed, does adding it to the template provide any benefits?

This is if you want to show Chat and in other places of your forum.
If you don't its not needed... you use "Position on page (Disable if you add ChatBox manually in templates)"

jagtpf 12-04-2015 04:01 PM

Quote:

Originally Posted by Stratis (Post 2559548)
Message background:
Style Variable Editor, find Blocks - blockrow_background Change as you wish.

Don't change usernames or other. that's how its supposed to be.

Thanks but that affects more than the background in the Chatbox.

MarkFL 12-04-2015 04:17 PM

Quote:

Originally Posted by jagtpf (Post 2559754)
Thanks but that affects more than the background in the Chatbox.

I will use "red" as the background color to which we wish to change. You can add CSS selectors to your "additional.css" template(s)...you will need to do so for each style in which you want the change.

If you wish for this new background color to affect the message input area, add:

HTML Code:

#vsacb_entermessage {
        background: red;
}

If you wish for this new background color to affect the message display area, add:

HTML Code:

#vsacb_messagearea {
        background: red !important;
}

If you have a lot of styles, and you want the same change to all of them, and you don't have a master parent style with all other styles as children, then let me know and I can give you a plugin that will make the change to all styles (so you won't have to make the edit a bunch of times). :)

jagtpf 12-05-2015 01:43 PM

Quote:

Originally Posted by MarkFL (Post 2559755)
I will use "red" as the background color to which we wish to change. You can add CSS selectors to your "additional.css" template(s)...you will need to do so for each style in which you want the change.

If you wish for this new background color to affect the message input area, add:

HTML Code:

#vsacb_entermessage {
        background: red;
}

If you wish for this new background color to affect the message display area, add:

HTML Code:

#vsacb_messagearea {
        background: red !important;
}

If you have a lot of styles, and you want the same change to all of them, and you don't have a master parent style with all other styles as children, then let me know and I can give you a plugin that will make the change to all styles (so you won't have to make the edit a bunch of times). :)

Thanks for your help, Mark - very much appreciated. We don't have too many styles that we can't adjust for the background.

The main outstanding issue is with the colour of the date/time and ordinary usernames. Ideally to only affect the Chat and not the rest of the styles (If possible). [Only paying members display their usernames - ordinary members are still in white and thus tend to disappear into the background :D ]

MarkFL 12-05-2015 03:22 PM

Quote:

Originally Posted by jagtpf (Post 2559781)
Thanks for your help, Mark - very much appreciated. We don't have too many styles that we can't adjust for the background.

The main outstanding issue is with the colour of the date/time and ordinary usernames. Ideally to only affect the Chat and not the rest of the styles (If possible). [Only paying members display their usernames - ordinary members are still in white and thus tend to disappear into the background :D ]

Try something like this then (change "black" to the color you want):

HTML Code:

#vsacb_messagearea td span span {
        color: black;
}


jagtpf 12-06-2015 12:38 PM

Quote:

Originally Posted by MarkFL (Post 2559783)
Try something like this then (change "black" to the color you want):

HTML Code:

#vsacb_messagearea td span span {
        color: black;
}


Thank you Sir - that does it a treat ....

jagtpf 12-06-2015 12:48 PM

Ah !

Whoops.

Spoke too soon, that change prevents messages being posted on the Chat ?! Refresh is Ok, though.

MarkFL 12-06-2015 03:09 PM

Quote:

Originally Posted by jagtpf (Post 2559820)
Ah !

Whoops.

Spoke too soon, that change prevents messages being posted on the Chat ?! Refresh is Ok, though.

That's odd...I don't understand how a CSS change prevents messages from being posted, and it has no effect on the ability to post messages on my local dev board.

jagtpf 12-07-2015 08:50 AM

Quote:

Originally Posted by MarkFL (Post 2559824)
That's odd...I don't understand how a CSS change prevents messages from being posted, and it has no effect on the ability to post messages on my local dev board.

I agree, very strange behaviour - something else may be happening that I'm not aware of.

Thanks again....


All times are GMT. The time now is 09:13 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.04908 seconds
  • Memory Usage 1,756KB
  • 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_html_printable
  • (2)bbcode_php_printable
  • (9)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
  • (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