• Resolved vah330

    (@vah330)


    I am using MyCred with Paid Membership Pro and the myCred Paid Membership Pro Addon.

    I recently upgraded to MyCred Version 2.4.5.4 with Addon Version 1.0.2 and PMP Version 2.8.3

    Ever since the upgrade the [mycred_show_if… shortcodes stopped working. The tags disappear from my WP pages but are not executed. For example I had:

    [mycred_show_if balance=”0″ types=”warnings”][mycred_total_balance types=”warning”] Warnings issued[/mycred_show_if]

    and on the resulting page I get BOLDED:

    [mycred_total_balance types=”warning”] Warnings issued

    The enclosed shortcode ‘mycred_total_balance’ isn’t executed either. If I have the [mycred_total_balance types=”warning”] shortcode on a separate line, it displays “1” (a correct result – without the quotes)

    It worked as expected previously. I don’t know what is responsible so I can look into it further.

    Help?

Viewing 10 replies - 31 through 40 (of 40 total)
  • Thread Starter vah330

    (@vah330)

    Thanks for the effort but it is still not working for me. I don’t know what’s going on!

    I seen your shortcodes added an “user_id” so I also tried that in an additional 7 lines at the end. Here is the code I’m using now:

    
    Credits = [mycred_total_balance types="mycred_default"]
    Warnings = [mycred_total_balance types="warning"]
    Tests = [mycred_total_balance types="test"]
    
    [mycred_show_if balance=-1 ctype=”mycred_default”]0 Credits remaining[/mycred_show_if]
    [mycred_show_if balance=5 ctype=”mycred_default”]5 Credits remaining[/mycred_show_if]
    [mycred_show_if balance=10 ctype=”mycred_default”]10 Credits remaining[/mycred_show_if]
    
    [mycred_show_if balance=1 ctype="mycred_default"]Display this: [mycred_total_balance types="mycred_default"] unused search credits.[/mycred_show_if]
    
    [mycred_show_if balance=-1 ctype=”warning”]-0 Warnings issued[/mycred_show_if]
    [mycred_show_if balance=0 ctype=”warning”]0 Warnings issued[/mycred_show_if]
    [mycred_show_if balance=1 ctype=”warning”]1 Warnings issued[/mycred_show_if]
    [mycred_show_if balance=2 ctype=”warning”]2 Warnings issued[/mycred_show_if]
    
    [mycred_show_if balance=0 ctype=”test”]0 tests[/mycred_show_if]
    [mycred_show_if balance=1 ctype=”test”]1 test[/mycred_show_if]
    [mycred_show_if balance=2 ctype=”test”]2 tests[/mycred_show_if]
    
    only for user_ID 7 below:
    
    [mycred_show_if balance=-1 ctype=”warning” user_id="7"]-0 Warnings issued[/mycred_show_if]
    [mycred_show_if balance=0 ctype=”warning” user_id="7"]0 Warnings issued[/mycred_show_if]
    [mycred_show_if balance=1 ctype=”warning” user_id="7"]1 Warnings issued[/mycred_show_if]
    [mycred_show_if balance=2 ctype=”warning” user_id="7"]2 Warnings issued[/mycred_show_if]
    
    [mycred_show_if balance=0 ctype=”test” user_id="7"]0 tests[/mycred_show_if]
    [mycred_show_if balance=1 ctype=”test” user_id="7"]1 test[/mycred_show_if]
    [mycred_show_if balance=2 ctype=”test” user_id="7"]2 tests[/mycred_show_if]
    
    

    When logged in as user 7 the results I get:


    Credits = 10
    Warnings = 1
    Tests = 2

    Display this: 10 unused search credits.

    only for user_ID 7 below:

    then nothing.

    When signed in as the administrator, that same code displays:

    Credits = 0
    Warnings = 1
    Tests = 2

    only for user_ID 7 below:

    I’m grasping at straws here. Is there any chance the latest zip files you supplied didn’t contain all the current files? I’m sorry to be a pain but I can’t think of any reason we would get different results.

    A.Tariq

    (@arsalantariq)

    @vah330,

    Are you using the latest version of myCred? Also, Can you please create a support ticket on our official website and share with us a screencast video regarding the Whole process you are doing as we are unable to replicate the mentioned issue, and it’s working for all point types for us.

    Thread Starter vah330

    (@vah330)

    I don’t know what a screencast video is so I can not supply that. I also don’t know what ‘whole process’ you’re interested in. I put myCred shortcodes on a page, publish it and then look at the page to see the results.

    I did not have the most current version of myCred installed. I thought that is what the zip files you were supplying were. I have just updated it to Version 2.4.7.

    Should I upload the last zip file you supplied *on top of* Version 2.4.7 ?

    Dan

    • This reply was modified 2 years, 8 months ago by vah330.
    A.Tariq

    (@arsalantariq)

    @vah330,

    Yes, you should upload the last zip file which was provided to you because the changes done in the mycred_show_if shortcode are not present in the myCred 2.4.7 version. Also, by the screencast video, we meant to record your screen showing all the backend settings / front end results so we can replicate the exact issues on our end and share that screencast video with us on our official website with the ticketing system.

    Thread Starter vah330

    (@vah330)

    Thanks, I’ll do that again and let you know the outcome. Sorry for all the trouble.

    Dan

    Thread Starter vah330

    (@vah330)

    It did not work. Here’s what I did:

    I updated myCred to the latest version Version 2.4.7. I then uploaded only the newer files from the last .zip file you supplied. (If I uploaded the whole zip file regardless of file age it downgrades the version to Version: 2.4.6.1). You said to have the current version loaded.

    In the .zip file are screen shots of the the shortcodes used on the page, the Administrator and User ID 7 page results, and also the user table showing each accounts’ credit balances. I hope that is equivalent to your screencast video request.

    https://much2.com/news/myCred%20shortcode%20error.zip

    • This reply was modified 2 years, 8 months ago by vah330.
    A.Tariq

    (@arsalantariq)

    @vah330,

    This issue has been fixed. Please find the attached plugin. It will be released in our next update.

    Download Link: https://we.tl/t-i7TLWtzAIT

    Thread Starter vah330

    (@vah330)

    I really don’t know what is going on. It still does not work for me like it should.

    I took more screen shots of the output I am getting now, pointing out the problems (2 administrator pages with slightly different myCred amounts, 1 ‘user ID 7′ page).

    I’ve included a screen shot of the administration page showing the shortcodes in use on the page and also a text file with the actual shortcodes in use.

    I also have a screen shot of the plugins’ page showing the myCreds version installed.

    https://much2.com/news/myCred%20display%20errors.zip

    Thread Starter vah330

    (@vah330)

    Ok, here are some additional screen shots with different credit values. They show the problem. Please look at these results in addition to the previous screen shots. No shortcodes were changed from the previous message, just the credit values.

    https://much2.com/news/myCred-display-credit-warnings.zip

    Thx

    A.Tariq

    (@arsalantariq)

    @vah330,

    Our support agent is already assisting you on your ticket kindly follow up there as the shortcodes you are using are not correct and you are using wrong inverted commas. Our support agent will brief you on your support ticket regarding this.

Viewing 10 replies - 31 through 40 (of 40 total)
  • The topic ‘mycred_show_if stopped working’ is closed to new replies.