Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter Antonio144

    (@antonio144)

    Here is the link so you can see https://testingarea.comoj.com/184/

    Plugin Author Dan Kirshner

    (@dan-kirshner)

    (FYI, no response from comoj.com just now.)

    Could be because the shortcode examples include <code></code> tag pairs (so that the examples won’t get interpreted as real shortcodes).

    Take a look at your code in “Text” mode, and delete any <code></code> tags that are there.

    Thread Starter Antonio144

    (@antonio144)

    I have already deleted those tags.

    Here are some screenshots that might clarify a bit.

    IMG1

    IMG2

    Plugin Author Dan Kirshner

    (@dan-kirshner)

    Looks fine.

    Could you try again to create a test page/URL that I could take a look at?

    Still no response from comoj.com for me.

    Thread Starter Antonio144

    (@antonio144)

    https://testingarea.comoj.com/202/

    If you can’t access it try using a proxy (some ISP have 000webhost blocked for some reason)

    Plugin Author Dan Kirshner

    (@dan-kirshner)

    OK, thanks, I was able to take a look. For some reason your WordPress is different: the content of the post is in div with class “post-entry” — in the few other WordPress installations I’ve looked at, both post and page content is in a div with class “entry-content”. So the plugin script couldn’t find the quiz!

    (I don’t know the reason for the difference. Your WordPress appears to be version 4.0, and I tried installing the “Responsive” theme — still different than yours!)

    Could you do me a favor and create a page (in addition to the post) with the quiz on it? Whatever fix I implement, I’d like it to work for both! If you can tell me the class of the div, or give me a new URL to look at, that would be great.

    In the meantime, here’s a manual fix. (By the way, update to version 2.06 first. Version 2.05 has a bug.)

    1. Dashboard > Plugins > Qwiz > edit
    2. On the right, click qwiz-online-quizzes-and-flashcards/qwiz.js
    3. Find this text in the editing window:

    var content = ‘div.entry-content’;

    4. Edit it to:

    var content = ‘div.entry-content, div.post-entry’;

    5. Click “Update File”

    That should do it.

    Thanks!

    –Dan

    Thread Starter Antonio144

    (@antonio144)

    Page
    post

    You can login with User:demo Pass:demo

    Thank you.

    Plugin Author Dan Kirshner

    (@dan-kirshner)

    Thanks much. ‘div.post-entry’ it is. I tested the change on your demo site, so that’s working.

    Let me know if you need an update to the WordPress plugin (to install elsewhere) and I’ll make a new version. Otherwise, I’ll save this change for the next version.

    –Dan

    Thread Starter Antonio144

    (@antonio144)

    I have ran in to an issue.

    I’m using wp user front end to make and edit quizzes on the front end.
    When I edit the page the quiz is displayed instead of the code.

    Is it possible to make an exception to certain page or div class that the code will not render?

    Thanks.

    Plugin Author Dan Kirshner

    (@dan-kirshner)

    Hello. I’ve looked again at the demo site, and it seems to have “changed its mind” about the class name of the div that holds page and post content. Previously, the class was “post-entry”, now it’s just “entry”. The Qwiz plugin is looking for shortcodes to turn into quizzes under ‘<div class=”post-entry” …>’. Since there now is no div with class “post-entry” on viewed pages and posts, the Qwiz plugin doesn’t find them and convert them into quizzes, so the shortcodes are displayed instead of a quiz.

    On the demo pages I was unable to edit any of the posts or pages (some kind of javascript error in jQuery code), but it seems that the page content there must be displayed in a div with either class=”entry-content” or “post-entry”, so the plugin finds the shortcodes and turns them into quizzes.

    All this is different than what I’ve seen in other WordPress instances. I don’t know why yours is different. If we could figure out how it’s coming up with those class names, or why they change, then we could try to adjust.

    Any thoughts?

    Thanks,

    –Dan

    Thread Starter Antonio144

    (@antonio144)

    Somebody changed the theme. I have publicly gave username and password a few post up (It’s free hosting so I don’t mind that much)
    I’ve fixed it, you can logon now.

    Content div depends on the developer of the theme. The way you can bulletproof it its to put a field in the wordpress admin so that we can input our div class for our theme.

    Thread Starter Antonio144

    (@antonio144)

    I’ve just find that the content with specified class loads twice whether there’s a [qwiz] shortcode or not. The only solution I see for this is to create my own page template that I will use only with your plugin.

    Plugin Author Dan Kirshner

    (@dan-kirshner)

    Are you saying the SAME content loads twice? Hopefully not.

    What does happen is that pages with multiple posts or excerpts have multiple content divs (for example, with class=”entry-content”). This the plugin should be able to handle.

    By the way, the plugin does not create these divs — so yes, they should be there whether there’s a [qwiz] shortcode or not.

    The problems I was having with the demo site appear to have been related to the proxy server I was using. When I used a different access method everything was working fine — including seeing the shortcodes rather than the quiz itself while editing.

    So if it is indeed the case that the class names change with the theme, then your suggestion for an option in the plugin admin should be a solution. (I still find it puzzling, however. As I mentioned, when I loaded the “Responsive” theme in my WordPress, I got the standard class names, not the class names your demo site uses.)

    How would you like to proceed? Do the fix yourself? Or should I implement an option?

    –Dan

    Dan,

    Perhaps you can help me with this, I haven’t been able to get your plugin to work. I’m using the “WPLMS” theme seen here:
    https://themeforest.net/item/wplms-learning-management-system/6780226

    -Matt

    Plugin Author Dan Kirshner

    (@dan-kirshner)

    Hi Matt:

    Sorry, didn’t see your post before now.

    Best as I can tell from the WPLMS demo, do the editing steps listed above, but with this line:

    var content=’div.container’;

    Let me know…

    –Dan

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Shortcodes not doing anything.’ is closed to new replies.