Forum Replies Created

Viewing 15 replies - 31 through 45 (of 51 total)
  • Thread Starter tangobango

    (@tangobango)

    Thanks for pointing out the “jumping” issue. (I hadn’t clicked the button to test it, since I was not getting it displayed.)

    I fixed the css that was causing the jumping and now I’m seeing the button in all the browsers.

    I still don’t get why the html wasn’t showing up in the Chrome console, even if the css was wrong.

    Thanks for your help.

    Thread Starter tangobango

    (@tangobango)

    I found the problem.

    I have a front page image that links to “Schedule”. It has a transparent area that was covering the menu buttons, making the link location be wrong.

    I’m not sure why this problem only appeared after I eliminated the menu item, but I’m just glad it’s fixed.

    Thread Starter tangobango

    (@tangobango)

    Yes. It took a few steps.

    1. Create a form using the “Contact 7″ plug in. it will give you a code like [contact-form-7 id=”857″ title=”Contact form 1”]

    2. Create a dummy page in WP. In the editor, next to the “Add media” button, there is a small logo that is for the Lightbox. Click it. It will ask you to enter the code you got from above. Delete the “link text” and set whatever options you want.

    3. Click “Insert lightbox form”. It will put a code like this on the page in the editor: [formlightbox_call title=”lightbox form” class=”1361580215070″][/formlightbox_call] [formlightbox_obj id=”1361580215070″ style=”” onload=”false”][contact-form-7 id=”857″ title=”Contact form 1″][/formlightbox_obj]. Copy this code

    4. Open the custom page where you want the lightbox to appear in an editor and add a new php tag <?php echo do_shortcode(”);?> near the bottom. Paste the code from step 3 between the quote marks, so you have something like <?php echo do_shortcode(‘[formlightbox_call title=”lightbox form” class=”1361580215070″][/formlightbox_call] [formlightbox_obj id=”1361580215070″ style=”” onload=”false”][contact-form-7 id=”857″ title=”Contact form 1″][/formlightbox_obj]’);?>

    5. This will have the form popup only when the custom page is loaded. (You can now delete your dummy page. We only used it to get the code we needed in step 3.)

    I hope this helps.

    Cheers.

    Ed

    You can do this right now by manually editing the database. If you can, log into your host account, go to phpmyadmin, go to database for your wordpress site, look for the donate extra table. There you can manually add records and then they will show up on the donor wall.

    I did this for my client and it worked fine. I’d like to see an automated way to do it, too, in a future version.

    Thread Starter tangobango

    (@tangobango)

    To be more clear, I want it to load only when a certain custom page is loaded. It seems like an “add_action” hook would work if I wanted it on all pages, (Yes?) but I only want it on a specific page.

    Thread Starter tangobango

    (@tangobango)

    Figured it out. I was using WinFF wrong. I needed to select “HTML5” in the “convert to” box and “H264sd” in the “preset” box. I had been using “MPEG4” in the “convert to” box — which did puzzle me since I had an mp4 to start — so after a few more tries I have it working in the FF and Chrome versions I listed above and IE9.

    Great plugin. Thanks.

    Thread Starter tangobango

    (@tangobango)

    Works. Thanks. I’ll need to read up on overflow to understand why this works. overflow:visible seems to make more intuitive sense to me.

    Thread Starter tangobango

    (@tangobango)

    Ok, I may not be doing this right via Pastebin, but here goes:

    Paste 1 is header that works.
    Paste 2 is enqueue that doesn’t work but shows correct source.
    Paste 3 is sample of external js that won’t run.(menu.js)

    https://pastebin.com/Mqy6ALdW
    Thanks.

    Thread Starter tangobango

    (@tangobango)

    Sorry for the mess of code. I must have made backtick errors. Should I repost?

    Thread Starter tangobango

    (@tangobango)

    Sorry for the mess of code. I must have missed a backtick. Here are the three blocks:

    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory');?>/js/jquery-1.8.3.js"></script>
    <script type='text/javascript' src='<?php bloginfo('stylesheet_directory');?>/js/menu.js' ></script>
    <script type="text/javascript" src="<?php bloginfo('stylesheet_directory');?>/js/jquery.kwicks.js"></script>
    function load_my_scripts() {
            //wp_deregister_script( 'jquery' );
            //wp_register_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js');
            wp_enqueue_script('jquery');
            wp_register_script('menu', get_stylesheet_directory_uri().'/js/menu.js', array('jquery') );
            wp_enqueue_script('menu');
            wp_register_script('kwicks', get_stylesheet_directory_uri().'/js/jquery.kwicks.js', array('jquery') );
            wp_enqueue_script('kwicks');
            wp_register_script('equalheights', get_stylesheet_directory_uri().'/js/jquery.equalheights.js', array('jquery') );
            wp_enqueue_script('equalheights');
    
        }  
    
    add_action('wp_enqueue_scripts', 'load_my_scripts');
    <script type='text/javascript' src='https://localhost/themebuilder/wp-includes/js/jquery/jquery.js?ver=1.7.2'></script>
    <script type='text/javascript' src='https://localhost/themebuilder/wp-content/themes/conside/js/menu.js?ver=3.4.2'></script>
    <script type='text/javascript' src='https://localhost/themebuilder/wp-content/themes/conside/js/jquery.kwicks.js?ver=3.4.2'></script>
    <script type='text/javascript' src='https://localhost/themebuilder/wp-content/themes/conside/js/jquery.equalheights.js?ver=3.4.2'></script>
    <script type='text/javascript' src='https://localhost/themebuilder/wp-includes/js/comment-reply.js?ver=3.4.2'></script>

    Thread Starter tangobango

    (@tangobango)

    Oops. I was wrong. It still is loading the js files but not executing them if I put get_stylesheet_directory_uri(). (I forgot to take the lines out of header.php so I thought it was working.)

    so, my scripts load and run with`<script type=”text/javascript” src=”<?php bloginfo(‘stylesheet_directory’);?>/js/jquery-1.8.3.js”></script>
    <script type=’text/javascript’ src='<?php bloginfo(‘stylesheet_directory’);?>/js/menu.js’ ></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘stylesheet_directory’);?>/js/jquery.kwicks.js”></script>in the header but don't withfunction load_my_scripts() {
    //wp_deregister_script( ‘jquery’ );
    //wp_register_script(‘jquery’, ‘//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js’);
    wp_enqueue_script(‘jquery’);
    wp_register_script(‘menu’, get_stylesheet_directory_uri().’/js/menu.js’, array(‘jquery’) );
    wp_enqueue_script(‘menu’);
    wp_register_script(‘kwicks’, get_stylesheet_directory_uri().’/js/jquery.kwicks.js’, array(‘jquery’) );
    wp_enqueue_script(‘kwicks’);
    wp_register_script(‘equalheights’, get_stylesheet_directory_uri().’/js/jquery.equalheights.js’, array(‘jquery’) );
    wp_enqueue_script(‘equalheights’);

    }

    add_action(‘wp_enqueue_scripts’, ‘load_my_scripts’);in functions.php .(Source of page shows files loaded:<script type=’text/javascript’ src=’https://localhost/themebuilder/wp-includes/js/jquery/jquery.js?ver=1.7.2′></script&gt;
    <script type=’text/javascript’ src=’https://localhost/themebuilder/wp-content/themes/conside/js/menu.js?ver=3.4.2′></script&gt;
    <script type=’text/javascript’ src=’https://localhost/themebuilder/wp-content/themes/conside/js/jquery.kwicks.js?ver=3.4.2′></script&gt;
    <script type=’text/javascript’ src=’https://localhost/themebuilder/wp-content/themes/conside/js/jquery.equalheights.js?ver=3.4.2′></script&gt;
    <script type=’text/javascript’ src=’https://localhost/themebuilder/wp-includes/js/comment-reply.js?ver=3.4.2′></script&gt;`

    Any ideas?

    Thread Starter tangobango

    (@tangobango)

    Thanks. Changing to get_stylesheet_directory_uri() fixed the problem.

    Followup: When should I load a script in footer and when in header?

    Thanks again.

    Thread Starter tangobango

    (@tangobango)

    Thanks.

    Thanks a lot for taking this one on. It will benefit many people.

    As ideas for enhancements, here ‘s a couple of things I put in the version I did for my recent non-profit:

    Option on admin page to ask for url or not. Most of our donors are individuals and the web page box confuses them.

    Record both gross and net amounts in database and add to the reporting page.

    I know I don’t have to show you guys how I did these, as they are obviously small code changes.

    Hey. Thanks for taking this on. I have been working on fixes but I’m a bit of a newbie and didn’t get them all together.

    Just a couple of easy things you might want to fix:
    – Amount field is set to text rather than decimal, so amounts get rounded.
    – If widget is one sidebar and main part of page also has a [donateform], the jquery to that shows/hides the name info doesn’t work on both forms, I think because it’s selected by id and you end up with multiple ids with the same name on the page.

    I was working on a few small enhancements, but I’m glad to have someone with more experience take this over. It a valuable plugin for the non-profit I just did a site for.

Viewing 15 replies - 31 through 45 (of 51 total)