Admin Bar CSS Settings not working in bp social them options with integrated color selector

I just installed BP Social Theme with 3.0 WP Multisite and BuddyPress. Appears to be working in every way tested so far. But in the Dashboard under Appearance > Themes Options > BuddyPress Social Theme Options > Admin Bar CSS Settings > Choose your adminbar background color (or admin bar subpage hover color)--- It doesn't appear to work on the frontend with a logged in test admin or superadmin user.

In the dashboard under theme options, I can doubleclick and the color picker comes up and lets me change colors nicely, but they don't seem to change anything on the frontend. How do I trouble shoot this?

Where is the documentation for BP Social Theme at wpmudev? Is the forum here the only place to find info on this theme's operation?

  • b4evr1
    • Flash Drive

    my bp-global-adminbar-css.php is in the mu-plugins folder under wp-content

    on my pc that file is 996 bytes, transferred to the web host server through WinSCP SFTP it is 971 bytes, is that normal? I compared the code and it is the same.

    my bp-social install path is:
    wp-content > themes > bp-social
    wp-content > themes > bp-social-child

    do you work for wpmudev?

  • Tammie
    • WordPress Wizard

    @b4evr1: I am a theme designer here yes hence trying to help you. You'll notice those of us that work for WPMU DEV have no just member by our names. I am going to ask Richie to take a look at this though if you can give us a little time to get this question updated.

  • b4evr1
    • Flash Drive

    Tammie and or Richie,

    I went and installed the BP Social theme again through the SuperAdmin dashboard. In "Install Themes" I browsed on my pc and uploaded the file. The dashboard says that the theme installed correctly but gave the following error message:

    "Installing Theme from uploaded file:
    Unpacking the package…

    Installing the theme…

    Theme installed successfully.

    Warning: fopen(/home/sophia31/public_html/wp-content/themes/wpmu-bp-social-1.1.8/style.css) [function.fopen]: failed to open stream: No such file or directory in /home/sophia31/public_html/wp-includes/functions.php on line 4165

    Warning: fread(): supplied argument is not a valid stream resource in /home/sophia31/public_html/wp-includes/functions.php on line 4168

    Warning: fclose(): supplied argument is not a valid stream resource in /home/sophia31/public_html/wp-includes/functions.php on line 4171"

    1. Can BP Social theme be installed through the dashboard?

    2. Is this a typical error message?

    3. I thought maybe this error message might help troubleshoot the reason that my admin bar css settings are not working. What do you think?

    4. I also went to my php-error log in the public folder and I find the following error repeating several times each day:

    [19-Jul-2010 14:43:45] PHP Warning: Division by zero in /home/sophia31/public_html/wp-content/plugins/buddypress/bp-groups/bp-groups-templatetags.php on line 69

    Hope this helps. Please let me know. Thanks!

  • b4evr1
    • Flash Drive

    When returning to the Themes page, additionally I get the following error after trying to install through the dashboard:

    "Broken Themes (Site admin only)
    The following themes are installed but incomplete. Themes must have a stylesheet and a template.

    Name Description
    wpmu-bp-social-1.1.8 Stylesheet is missing. "

  • b4evr1
    • Flash Drive

    OK, after I ftp (bp-social and bp-social-child) to the wp-content/themes directory then the only other thing to ftp are these two files to the mu-plugins folder:

    update-notifications.php - goes in /wp-content/mu-plugins

    bp-global-adminbar-css.php - goes in /wp-content/mu-plugins

    Then I am done, except activating the theme? Is that right

  • Richie_KS
    • HummingBird

    hi b4evr1

    you should not upload the download wpmudev zip directly to themes 'add new' page.
    just unzip and ftp it to proper path...recheck if the theme in correct path


    @theme option not working..
    maybe be the new add_theme_page issue we encounter in wp 3.0

    open wp-content\themes\bp-social\_inc\functions\options-functions.php - line 1205+ you'll find

    add_theme_page(_g ($themename . __(' Options')), _g (__('Theme Options')), 'edit_themes', 'functions.php', 'buddysocial_admin');

    changed it to

    add_theme_page(_g ($themename . __(' Options')), _g (__('Theme Options')), 'edit_theme_options', 'functions.php', 'buddysocial_admin');

    yeap...the notification and the bp-global-adminbar should be inside /mu-plugins
    no need to upload the bp-global-adminbar if in single wp installation...
    not sure about the notification plugin tho...does this work inside plugins/...?
    any thought guys?

  • b4evr1
    • Flash Drive

    1. I went and deleted all the folders completely in wp-content/themes/bp-social and bp-social-child and I deleted the two files in mu-plugins.

    I re-downloaded BP Social and unzipped and unzipped again and only FTP'd the two folders (bp-social and bp-social-child) to wp-content/themes/ and two php files to mu-plugins.

    I activated BP Social and everything seemed to be working again except for the changing of the color picker in the adminbar css settings.

    I then went and edited the options-functions.php on line 1205 exactly as Richie directed. I have logged in and out, cleared the browser cache, reset and resaved the BP Social Options in the Dashboard, but still the admin bar css settings in the color picker are not working. I still can not change the background color or hover color from the default. All of the other color picker elements can be changed freely, but not the admin bar at the top. What else can I do?

    2. One funny thing happened after I deleted all of the old Social theme folders and mu-plugins. After I re-installed everything, BP Social still remembered widget settings and color changes I had made on the previous installation. Are there some other files I should have deleted to wipe out all of the previous setting, widget, and menu updates?

    My WordPress 3.0 and BuddyPress are brand new installs with only a few lines of security script added to some .htaccess files recommended by my host and the wp security codex.

  • b4evr1
    • Flash Drive

    Tada! After so many hours frustration, I finally figured it, thanks to Jesus.

    I reinstalled WordPress 3.0, set up Multisite Networks again, and activated BuddyPress, and then re-installed BP Social theme, carefully examing every step.

    The problem with why my admin bar css would not work correctly had to do with the permissions on my mu-plugins folder. They don't tell newbies this on the theme install. Should be written in bold on one of those install-readme.txt files. They just say create a mu-plugins folder, like all folders are created equal in the sight of God.

    I finally found out that the recommended setting is 777 for the mu-plugins folder. See:

    My question now is,

    "Does the mu-plugins folder have to be set this high for the plugins to work? Can I back it down to 755? Should I have any security concerns at this point?"

  • b4evr1
    • Flash Drive

    I contacted my help desk support at SiteGround. Here is there reply:

    Hello Bill,

    Thank you for contacting our Help Desk!

    Yes, you should not set the permissions of your files or folders to 777 because this will cause an Internal Server Error. The highest level of permissions you should set is 755. They will be sufficient for the functioning of the theme.

    If you need further help, do not hesitate to contact us again.

    Best Regards,

    Technical Support Team

  • b4evr1
    • Flash Drive

    Here is something else that keeps the admin bar css from working, a bit of security code that SiteGround recommended I add to .htaccess under wp-content

    Here's the code:

    Order Allow,Deny
    Deny from all
    <Files ~ ".(css|jpe?g|png|gif|js)$">
    Allow from all

  • b4evr1
    • Flash Drive

    Here is something else that breaks the color picker in the admin bar css. According to the Codex wp-config.php can be moved up one directory to tighten security. But when I move it, the color picker in BP Social theme stops working.

    Securing wp-config.php
    You can move the wp-config.php file to the directory above your WordPress install. This means for a site installed in the root of your webspace, you can store wp-config.php outside the web-root folder. Note that wp-config.php can be stored ONE directory level above the WordPress (where wp-includes resides) installation. Also, make sure that only you (and the web server) can read this file (it generally means a 750 permission).

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.