Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author dfa3272008

    (@dfa3272008)

    That’s not a good route to go. I’d use the css in the theme to make changes. Anything you do in the plugin itself will get overwritten in new releases.

    Buried deep in the readme.txt is the way to go šŸ˜‰

    Optional:

    1. Add your own theme configuration.
    A. Default comes with a facebookish color scheme.
    i. Just copy the themes/facebookish/buddypress-ajax-chat directory to your child theme

    Example:
    wp-content/theme/bp_anygig/buddypress-ajax-chat/_inc/buddypress-ajax-chat.css
    B. Or make your own css file called buddypress-ajax-chat/_inc/buddypress-ajax-chat.css

    Example:
    wp-content/theme/bp_anygig/buddypress-ajax-chat/_inc/buddypress-ajax-chat.css

    Thread Starter justbishop

    (@justbishop)

    Thanks, I’ll work on that. But, how do I make the chat default to the style of my choice when a user opens it? As it is, it defaults to the “MyBB” style, and I can’t figure out how to change that to one of the other included styles.

    Plugin Author dfa3272008

    (@dfa3272008)

    That’s the best way.

    Hack way…

    inside bp-chat\chat\lib\config.php

    // Available styles:
    $config[‘styleAvailable’] = array(‘beige’,’black’,’grey’,’Oxygen’,’Lithium’,’Sulfur’,’Cobalt’,’Mercury’,’Radium’,’prosilver’,’subsilver2′,’subblack2′,’subSilver’,’Core’,’MyBB’,’vBulletin’);
    // Default style:
    $config[‘styleDefault’] = ‘MyBB’;

    Change the styleDefault AND then clear you cookies.

    It’s a hack, the best way is above:)

    Thread Starter justbishop

    (@justbishop)

    So, creating my own style and sticking it in my child theme folder (inside the themes/facebookish/buddypress-ajax-chat folder structure) will cause my new theme to become the default, no matter what bp-chat\chat\lib\config.php says?

    Plugin Author dfa3272008

    (@dfa3272008)

    Yes:) That’s how I do more advanced techniques and not worry about updates.

    Thread Starter justbishop

    (@justbishop)

    OK, I just copied grey.css (the style I want to be the default) into the themes/bp_anygig/buddypress-ajax-chat/_inc/ folder, then uploaded that folder into my child theme. Cleared cookies and reopened the chat window, and it’s still opening with the MyBB theme.

    I just want “grey” to be the style that the chat window opens with.

    Plugin Author dfa3272008

    (@dfa3272008)

    Grab firefox. Get the firebug plugin and see what’s what. My guess is caching is thwarting you. You’ll see based on what the page source reports. If you don’t see your changes then it’s most likely cache.

    If you use supercache or hypercache you’ll see the comment at the bottom of the page.

    Thread Starter justbishop

    (@justbishop)

    I use Opera, and am deleting the entire cache before opening the chat.

    Plugin Author dfa3272008

    (@dfa3272008)

    What do you see with firefox’s plugin? Do you see the source include your new css file and it’s contents?

    Thread Starter justbishop

    (@justbishop)

    I prefer not to use Firefox and have to download the Firebug plugin, but looked at the chat window’s source code, and am not seeing it call any CSS file from within my site’s child theme.

    All I’m wanting to do is have the default style be the included “grey” theme, rather than the “MyBB” one. Is it really necessary to go through all of this to make that small change? I’m not even talking about messing with any CSS code, really :/

    Plugin Author dfa3272008

    (@dfa3272008)

    Something is causing your changes to not show up. You’ve changed several files and none of them have made an effect. This scream of cache someplace, where I don’t know. Sounds like something specific to your setup.

    Sometimes the easiest answer comes when you don’t expect it. Grab some coffee and come back at it later:)

    Thread Starter justbishop

    (@justbishop)

    It seems odd, though, because I’ve made other changes that have required a cache deletion, and they showed up just fine after I did so. I have even closed my browser (Ctrl+Alt+Del to make sure the process was killed, even) and reopened, but can’t get this change to work. Was I correct to put the grey.css file that I want to be the default upon chat open into the following directory (“bp-child” is my site theme)?

    wp-content/themes/bp-child/themes/bp_anygig/buddypress-ajax-chat/_inc/grey.css

    Also, I do not have any caching related plugins installed on my site.

    Plugin Author dfa3272008

    (@dfa3272008)

    wp-content/themes/bp-child/themes/bp_anygig/buddypress-ajax-chat/_inc/buddypress-ajax-chat.css

    Thread Starter justbishop

    (@justbishop)

    OK, I renamed a copy of grey.css to buddypress-ajax-chat.css and uploaded it to wp-content/themes/bp-child/themes/bp_anygig/buddypress-ajax-chat/_inc/buddypress-ajax-chat.css

    Cleared cache, reopened chat window. Still opened with MyBB as the style >.<;;

    While the chat was loading, I also noticed this error (went away as soon as the styles were loaded up):

    Notice: Only variable references should be returned by reference in /home/*******/public_html/wp-content/plugins/buddypress-ajax-chat/bp-chat/chat/lib/class/CustomAJAXChat.php on line 193

    Plugin Author dfa3272008

    (@dfa3272008)

    The error is nothing. php 5 thing, no big.

    You may have to put in override in the css for each variable you want to change….maybe. Firefox would help there.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘[Plugin: Buddypress-Ajax-Chat] Changing the Default Style’ is closed to new replies.