Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • It was the lazy load right?

    I am currently having the same problem.

    I checked your link and it looks good.

    What did you do to fix it?

    Thread Starter nolimit76

    (@nolimit76)

    Still been looking but no luck yet..

    Thread Starter nolimit76

    (@nolimit76)

    Hardeep,

    So sorry for the delay. I liked the idea of a WP plugin so I tried to go down that road as time permitted but having some issues… I was hoping you might see the flaw…

    I had two variants of my calc. one was the html, css and js files. The other, which I tried to use has the following:

    A main calculator.php file. In that same directory is a subfolder that has the main css and js files.

    I created an includes folder and place the structure above in it. In the same level as the includes folder I made a Horse racing calculator.php file to act as the main file..

    I tried this…

    <?php
    /*
    Plugin Name: HorseRacingCalculator
    Description: A horse wagering calculator to take all the guesswork out of making a bet-amount
    Version: 1.0
    Author: Adam Solowiei
    */

    define( ‘Horse_Calc_Files_Path’, plugin_dir_path( __FILE__ ) );

    include( Horse_Calc_Files_Path . ‘Includes/calculator.php’ );
    ?>

    //My plugin shortcode

    <?
    function HorseCalculator(){
    return ‘calculator.php’;

    }
    add_shortcode(‘HorseCalc’, ‘HorseCalculator’);

    ?>

    But…no joy and the raw calc just takes over the dashboard page. I know I am doing something wrong but missing it. My calculator.pp file is the brain of the item so I want the shortcode to call it and have things run from there.. Is there something obvious I am missing???

    Thread Starter nolimit76

    (@nolimit76)

    I will give it a shot and report back. Thanks a lot.

Viewing 5 replies - 1 through 5 (of 5 total)