Forum Replies Created

Viewing 15 replies - 16 through 30 (of 47 total)
  • Thread Starter coreymj78

    (@coreymj78)

    Has nothing to do with being patient. How was I supposed to know that? All I saw was a screen that said “Topic closed” I took it’s word for it.

    Never mind, delete this post, i got it.

    Deleted plugin files using FTP.

    Thread Starter coreymj78

    (@coreymj78)

    Never mind, delete this post, i got it.

    Deleted plugin files using FTP.

    Yes im going to test this but im pretty sure I can use backupbuddy to export a sub-site (from a sub-network) and then re-import that site into a newly created sub-network for the purpose of building a new client site, thus using an entire sub-network as a client site template complete with a set of commonly used plugins and features.

    Has anyone else used this process of production?

    @david, Dude, my intention was not to criticize or anything, and whether networks+ began as your original code or not, my only intention was to state my experience which has simply been that the plugin developers who charge something (so they can earn at least the amount of income needed to continue updates and support of their product) also usually have more freedom and time to continue development of their plugins, making them better and better. Even the plugins I use which are free, I have also taken the time to donate to the authors of those plugins for this very reason.

    No reason to get snippy. lol

    It’s not that a plugin is only functional, it’s whether or not it is supported as well, with some kind of commitment and dedication by the developer to continue updating it to be compatible with WordPress and other widely used plugins. If not, one day it will simply break and you’ll have to either switch to another plugin, or commit suicide if there is nothing else similar to it available.

    Either way, bad business. Most of the time the paid plugins are a better choice, simply based on the fact that they can offer more support and are future proof, some with guarantees even. Well worth the money in my view.

    Based on this, I went with Networks+ and have no regretted it. Very easy to setup and their support is phenomenal. Real nice folks too. πŸ™‚

    I just got the same thing. Tried the various “fixes” but didn’t work at all. I believe this has something to do with the new version of either WP or BP.

    Thanks.

    Thread Starter coreymj78

    (@coreymj78)

    It wasn’t a theme issue or a multisite issue. I simply needed to go to the WordPress “Screen Options” tab at the top and check off “theme locations” option. It was WordPress related.

    Thread Starter coreymj78

    (@coreymj78)

    I tried everything. Tried disabling all plugins, resetting plugins folder, switching to twenty eleven theme and checking to see if it was there again, but nothing worked. I can’t get the box back.
    Anyone?

    Thread Starter coreymj78

    (@coreymj78)

    I don’t think its a theme related issue. Same thing happens with twenty ten theme. I’m on a MU install btw.

    Thread Starter coreymj78

    (@coreymj78)

    Figured out everything except for how to make these scripts load conditionally (only on certain pages). Hmph.

    Thread Starter coreymj78

    (@coreymj78)

    Ok I finally got this alert to work on my front page:

    <script type="text/javascript">
    jQuery(document).ready(function(){
      alert('test');
    });
    </script>

    .. by placing the above code in the the header. So jQuery is loading and functional on my site. So why then do none of the below scripts work in place of the alert?

    <script type="text/javascript">
    jQuery("div.content:has(div.page)").css("border","3px solid red");
    </script>
    
    <script type="text/javascript">
    jQuery("div.content").css("border","3px solid red");
    </script>
    
    <script type="text/javascript">
    jQuery("a").css("border","3px solid red");
    </script>

    I must be missing something basic here.

    Thread Starter coreymj78

    (@coreymj78)

    Ok, over at Headway I was just told everything could go into the header.php. Is this what it would look like:

    function my_scripts_method() {
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js');
        wp_enqueue_script( 'jquery' );
    }
    add_action('wp_enqueue_scripts', 'my_scripts_method');
    
    jQuery(document).ready(function(){
    jQuery("div.headway-leaf-inside:has(div.page)").addClass("cj-pagepad");
    });

    Don’t I need the <script> tags somewhere? And if I don’t use this method and put the google enqueue code in my custom_functions.php file (which is what I was told to use for the theme), along with my enqueue for my custom script and my custom script into a separate .js file, how could I make it conditional to only run my custom scripts on certain pages?

    THanks.

    Thanks.

    Thread Starter coreymj78

    (@coreymj78)

    Ok, so since register_script doesn’t enqueue it, then I should be enqueuing it from funtions.php, along with conditional php tags to tell it what page to enqueue it for? Also, does that mean I don’t need that enqueue code in my themes header? cuz i was told to put it there if i wanted to use google’s version of jquery to be sure its always up do date.

    I read the tutorial and im still lost. I really just need someone to literally just give me sample code and tell me where it goes. I’m really sorry for my ignorance, but I’m getting so many different types of code, etc. that im just plain confused now.

    That tutorial didn’t even tell me where that code goes. And what goes into the area where it said ” // Actual short code handling here ” What is shortcode? Why do I need that? See? Now there is a new thing I don’t know about again, shortcode. Now I’m even more confused.

    First off, could someone first tell me if the code I have in my header and functions.php (above) is correct? If not, how do I correct it? How should it look? How do I call for my .js file in functions.php? Then, how would a sample script look in my actual .js file… and I need the whole thing, the complete text, how to start it, how to end it.

    Also, since I now know that I need to refer to my .js file from my functions.php, does that mean every time I want to add another custom jquery feature that I need to call for it again in my functions.php as well as create yet another .js file for it?

    Also, I only want certain scripts on certain pages, so what is a crystal clear, no-nonsense method of using conditional tags to add only certain scripts to certain pages?

    Thanks for any help, you guys rock.

    Thread Starter coreymj78

    (@coreymj78)

    Why is it so difficult for me to find the answers I need? This is ridiculous. I have this in my header:

    <?php wp_enqueue_script( 'jquery' ); ?>
    <?php wp_head(); ?>

    I have this in my functions:

    function load_jquery_google() {
    wp_deregister_script( 'jquery' );
    wp_register_script(' jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js');
    }
    add_action('init', 'load_jquery_google');

    And I guess I know I should use this somewhere as well (but dont know where):

    jQuery(document).ready(function({
    // you code here
    });

    And I have no idea what goes into ” // you code here “

    This is what I need to know. Please someone, for all that is good and right, help a brother out. Please?

    Thread Starter coreymj78

    (@coreymj78)

    After a bit of research, I know for sure that because my theme adds jQuery automatically by activating it through the configuration, this is not needed in custom functions:

    <?php
    function insert_jquery(){
       wp_enqueue_script('jquery');
    }
    add_filter('wp_head','insert_jquery');
    ?>

    And although I looked at that tutorial and it helped me understand better, but I still don’t know how to write up the function for my situation. I have written up a hypothetical script. Could someone look at it and see if everything is ok? Also, the parts I’m unsure about for my situation are shown in a “whatgoeshere”:

    <?php if( is_page(5) ) function whatgoeshere (){
    wp_enqueue_script('jquery');
    ?>
    <script type="text/javascript">
    
    jQuery(document).ready(function(){
    
    jQuery("div.headway-leaf-inside:has(div.page)").addClass("cj-pagepad");
    })
    });
    
    </script>
    <?php
    }
    add_filter(' whatgoeshere ');

    Or is this the right way:

    <?php if( is_page(5) ) { ?>
    
    <script type="text/javascript">
    
    jQuery(document).ready(function(){
    
    jQuery("div.headway-leaf-inside:has(div.page)").addClass("cj-pagepad");
    })
    });
    
    </script>
    <?php
    }
    add_filter(' whatgoeshere ');

    If I can just get corrections on this code, I think I’ll have it. I’m almost there. Thanks so much for any help you can give me. I really appreciate it.

Viewing 15 replies - 16 through 30 (of 47 total)