WordPress.org

Ready to get started?Download WordPress

Forums

Background Manager
buddypress compatibility (4 posts)

  1. wpte
    Member
    Posted 1 year ago #

    I think I've mentioned this before.
    This plugin is great but it's not completely buddypress compatible.

    When things are loaded dynamically on the activity page (for example) with ajax like things the entire page reloads with this plugin activated.

    Example: You want to reply to an activity feed item (status update or whatever it's called). When you click on reply the reply form will be dynamically loaded into the page without a full reload. When the plugin is enabled it will load the form but afterwards instantly reload the entire page. There's no chance to write a reply that way because after the page is reloaded the form is gone as well.

    Is this possible to change in a future update?

    http://wordpress.org/extend/plugins/background-manager/

  2. KTC_88
    Member
    Posted 9 months ago #

    I'm having the same problem.
    Anyone have any idea how to fix this?
    I do know that if you click on that same comment the second time (after the page reloads) it will work, but obviously that is not a working solution.

  3. wpte
    Member
    Posted 9 months ago #

    Right now I'm using http://wordpress.org/plugins/better-backgrounds/
    It does cause a problem which doesn't show the "settings" of each seperate plugin in the installed plugins view. You can work around this with the tickbox and the dropdown menu to do certain actions. Apart from that it works great with my site.
    Just create a directory on your host, drop some images in them and done :)

  4. KTC_88
    Member
    Posted 9 months ago #

    I just found a solution... at least one that works on my site.
    I copied the CSS created by the plugin and then created some classes for each background. Once I created the new classes, I used Jquery to randomly load one of the classes to the body.

    CSS:

    .bg1 {
        background-image: url('http://startrekrpgdecipher.kccomputing.net/wp-content/uploads/2013/09/bg11.jpg') !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        background-color: #000000 !important;
    }
    
    .bg2 {
        background-image: url('http://startrekrpgdecipher.kccomputing.net/wp-content/uploads/2013/09/bg2.jpg') !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        background-color: #000000 !important;
    }

    Jquery:

    function randOrd() {
        return (Math.round(Math.random())-0.5);
    }
    
    $(document).ready(function() {
        var klasses = [ 'bg1', 'bg2' ];
        klasses.sort( randOrd );
        $('body').each(function(i, val) {
            $(this).addClass(klasses[i]);
        });
    });

    Then all I have to do is deactivate the plugin and problem solved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags