• Resolved udelledo

    (@udelledo)


    Hi,

    I’m trying to use the access level shortcodes to limit to paying users the possibility to register to events, but when I access the page using the shortcodes they are not evaluated and are written in the html allowing the user to view the protected content within the actual shortcodes delimiters.

    However static shortcodes like [renewform] are rendered correctly in the same page.

    I also tested successfully the shortcodes on a different test page and they show the proper message assigned to the access level, so I don’t think the issue is in the plugin configuration.

    I’m not sure what I’m missing. Unfortunately I’m developing on a local box so I can’t provide a working url to have a first hand feel of the issue, but I hope I was clear and I didn’t forgot any critical information.

    Any help in investigating/fixing the issue will be much appreciated.

    Kind regards

    http://ww.wp.xz.cn/plugins/membership/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Mike

    (@michael-copestake)

    Hi @udello

    So are you saying that the shortcode worked on a different page but not on the one that you want it to?

    what is the exact shortcode you are using? Can you post it here?

    Thread Starter udelledo

    (@udelledo)

    Hi Mike,

    thanks for your quick response!!!

    I’m using the shortcodes copied from the admin interface the current values are:
    [level-socio-standard] Protected content [/level-socio-standard]
    [level-amico-di-radical] Contente for everyone else [/level-amico-di-radical]

    I’ve uploaded some pictures on dropbox for examples the working one is showing correctly only the text “Devi essere tesserato per poter acquistare l’evento” since I’m browsing as an anonymous user

    The not working one on the other hand shows the plain shortcodes I used.

    From what I’m reading I’m starting to think it might depend on the order in which the filters are applied but I’m not sure yet where I should look

    Mike

    (@michael-copestake)

    Have you tried on a different page? Is it just this page that the shortcodes aren’t working? The first screenshot looks like a popup so if you could try on another page using the editor the same as you have that will rule this out.

    It could be another plugin interfering, this is strange behaviour that I haven’t seen, could you disable all other plugins and quickly test again?

    Thread Starter udelledo

    (@udelledo)

    The working screenshot is actually a tooltip and the content is rendered on the page load in the same way as the page where the short codes are showing up.

    Those pages are two different rendering of the same content managed by another plugin that I can’t disable since it’s the core plugin for the content I’m planning to manage.

    I understand that you are not meant to support interferences from other plugin but I’m just looking for some direction on how to identify the problem, also considering that others shortcode like [renewform] work correctly in both pages

    Mike

    (@michael-copestake)

    Are you getting any javascript errors when you use the chrome inspector? Or any errors for that matter!

    Did you try disabling plugins? I’m not suggesting you leave them disabled, just that you disable them to identify the conflict which we can then work on.

    Have you also tried with TwentyTwelve rather than TwentyThirteen?

    Thread Starter udelledo

    (@udelledo)

    I’m not seeing any error.

    About disabling other plugins, the main plugin that I’m using and need to keep active is EventEspresso and the error is occurring on one of the page rendered by the event plugin (the event detail page). I don’t think in my case is useful to disable the plugin because the shortcodes works correctly on standard wordpress pages as well as other views rendered by the same event plugin (event list and calendar tooltip).

    I understand that the rendering of different views have different implementation so the plugin might still be root cause of the issue however I asked for help here first because analyzing the problem I made some tests and noticed that “static” shortcodes like [renewform] work correctly on all pages even the one where the access level are not working.

    Hence I thought that there should be some difference in how the renew form and access level shortcodes are processed and you could help me find it.

    Mike

    (@michael-copestake)

    So do the [level][/level] shortcodes work on all pages but not the event page?

    Are you entering them using the WordPress editor or are they in a widget or something?

    Have you tried on a live site? Sometimes live sites behave differently than a local installation.

    Thread Starter udelledo

    (@udelledo)

    yes that’s exactly the issue

    The codes are included in the event description that has the same editing option as a wp post and I edited them using the text option to avoid nasty hidden elements. In addition to that the images I posted before are actually the same content and not two different elements.

    Unfortunately I can’t try it on a live site yet however my local installation is a fully enabled mamp installation I usually find more errors on live sites than my local installation, do you have any specific configuration in mind?

    Mike

    (@michael-copestake)

    Ok this is strange.

    Any chance you could send me a list of the plugins used and an export file of the pages and posts so I can quickly set up what you have and test it. I can’t reproduce but maybe with the same plugins activated, same theme and the exact pages I can play around and figure this out.

    If you don’t want to post them on this public forum then please send to [email protected] with the subject “Attn: Mike” and a link to this thread.

    I’ll have a look and get back to you πŸ™‚

    Mike

    (@michael-copestake)

    Thanks for sending the details!

    Right now I get it, this is in the actual event description.

    Ok what that means is that the EventsEspresso is just outputting this as text rather than rendering it.

    This would need modifications to the EventsEspresso plugin in order to change this I’m afraid.

    Sorry this isn’t better news!

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

The topic ‘Access Level shortcode not processed’ is closed to new replies.