Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Just a quick note here. In the course builder, you can “detach lesson” by clicking the broken link icon. That orphans the lesson which you can then use in another course.
    I recycle redundant content from one course to the next that way.
    I think the using one lesson for all thing was a thing of the past.
    It was convenient because, as you say, you could edit that one lesson, and have it show the new info in multiple courses.

    Thread Starter ampedandy

    (@ampedandy)

    If I were designing it, I would simply show the results the way they display on the submission page in the back end. The user entered responses still get grouped with “other” in the statistics, but their typed in answers show under the results.

    It’s a good way to encourage engagement.

    Thread Starter ampedandy

    (@ampedandy)

    That looks like a great way to handle it from what I can tell from the tutorial on access plans.
    However, I suspect I’m running into another limitation when using WooCommerce with Lifter, since I don’t see access plans as an option in my courses. Under product options I can only select the Woo product the course is associated with, and define the sort order.

    Thread Starter ampedandy

    (@ampedandy)

    In the interim, I have included a “View Class” link in the note of the WooComm product note under ‘Advanced Settings.’ It’s a fall-back position, but better than nothing.

    Thread Starter ampedandy

    (@ampedandy)

    Funny, I just finished an e-mail to you about this very subject.
    Please keep me updated on any developments or work-arounds you can think of.

    Thread Starter ampedandy

    (@ampedandy)

    Sluthed it out to another unrelated piece of code. Sorry to bother you. Will try again now that the site is in better shape.

    Thread Starter ampedandy

    (@ampedandy)

    Thanks!

    Thread Starter ampedandy

    (@ampedandy)

    Is that a second function, or something I put into the first function, or the page that I’m adding the shortcode to?

    Thread Starter ampedandy

    (@ampedandy)

    OK, I’ve sorted it out on the functions plugin. Thanks for that tip.

    Two more questions:

    Do the “my function” names have to match the “my shortcode” name?
    I’m assuming that I replace: function my_function with: function time_check

    Second;
    I added the shortcode on the second line of text in the content, but it shows up in the first line of text.

    Thread Starter ampedandy

    (@ampedandy)

    I’ll double check the smart quotes.
    I’m entering it to Genisis –> Dynamik – Custom Options–> Custom Functions

    Ok can’t get it past the code checker or the Custom Functions plugin

    Thread Starter ampedandy

    (@ampedandy)

    Ya, tried that. Didn’t make a difference.

    I suspect I’m in the wrong place, since the syntax error comes up site-wide.

    Thread Starter ampedandy

    (@ampedandy)

    Thanks. This looks like it might help me, but I am getting a syntax error.

    Here’s what I pasted, yes, leaving ‘my_shortcode’ and so on, which I figured I’d update with real names once I have it working.

    <?php
    add_shortcode( ‘my_shortcode_name’, ‘my_function’ );
    function my_function() {
    ?>
    <p>
    <html>
    <body>
    Classes are held at 9pm Eastern Time. To see what time the class will be where you are, select your location below.

    <form>
    Select Your Location:
    <select id=”mySelect”>
    <optgroup label=”United States & Canada”>
    <option value=”10:30pm”>Newfoundland Time</option>
    <option value=”10pm”>Atlantic Time</option>
    <option value=”9pm”>Eastern Time</option>
    <option value=”8pm”>Central Time</option>
    <option value=”7pm”>Mountain Time</option>
    <option value=”6pm”>Pacific Time</option>
    </optgroup>
    <optgroup label=”Australia”>
    <option value=”12pm + 1 day”>Australian Eastern Standard Time</option>
    <option value=”1pm + 1 day”>Australian Eastern Daylight Time</option>
    <option value=”11:30am + 1 day”>Australian Central Standard Time</option>
    <option value=”12:30pm + 1 day”>Australian Central Daylight Time</option>
    <option value=”10am + 1 day”>Australian Western Standard Time</option>
    </optgroup>
    <optgroup label=”New Zealand”>
    <option value=”3pm”>New Zealand Daylight Time</option>
    <option value=”3:45pm”>Chatham Daylight Time</option>
    </optgroup>
    <optgroup label=”Europe”>
    <option value=”2am + 1 day”>Western European Time</option>
    <option value=”3am + 1 day”>Central European Time</option>
    <option value=”4am + 1 day”>Eastern European Time</option>
    </optgroup>
    </select> <button type=”button” onclick=”myFunction()”>Show Time</button> <b id=”demo”></b>
    </form>

    <script>
    function myFunction() {
    var x = document.getElementById(“mySelect”).value;
    document.getElementById(“demo”).innerHTML = x;
    }
    </script>

    </body>
    </html>

    </p>
    <?php
    } // end function

    Forum: Fixing WordPress
    In reply to: HTML Stripping
    Thread Starter ampedandy

    (@ampedandy)

    Great idea

    • This reply was modified 6 years, 9 months ago by ampedandy.
    Thread Starter ampedandy

    (@ampedandy)

    …and while I’m asking, I assume that this will sort the posts in the order in which they were written, the way the blog posts are sorted.
    Since this is more along the line of an upcoming events page, it would be better that they sort in the order the event is scheduled for.

    Thread Starter ampedandy

    (@ampedandy)

    Ha! I knew it was something simple. You should see all of the coding gymnastics people are suggesting to do just to accomplish this one simple task!

    One small followup question:
    Blog pages force the featured photo down to a reasonable size for the blog list. This page however does not. Suggestions?

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