• Resolved Kamalpreet Singh

    (@kamalpreet11)


    Hi MyCred Team,

    I need your help: I have added the shortcode [mycred_affiliate_link] to my site’s page and it is not working.
    I have activated the hook from the backend, see the screenshot: https://prnt.sc/nu2eHyvQmWlm

    So I tried to debug the issue. This is what I found:
    When I edit the page with Elementor then the shortcode shows the affiliate link correctly. But when I view that page with the same user as the normal page link then it shows nothing. I tried to clear the cache but still not working.

    Then I tried to find the file that contain the shortcode coding. The file is: ‘/wp-content/plugins/mycred/includes/hooks/mycred-hook-referrals.php’

    So I added ‘init’ hook in the ‘__construct’ function with a callback in the class to check if this file is actually executing in the front end. But I saw that this file is not executing in the front end. But as you can see the hook for this is active.


    Can you please let me know what can cause this issue?

    Thank You!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Kamalpreet Singh

    (@kamalpreet11)

    Adding some more clarity:

    While editing the page with elementor it showed me this link: https://prnt.sc/u-aUdqc2bFxn

    While checking the page without editing with elementor it shows empty: https://prnt.sc/sJCSrO3XC2hK

    Another thing: i tried to add the shortcode to the Classic/Gutenberg editor as well and the shortcode shows nothing on those pages as well.

    A.Tariq

    (@arsalantariq)

    Hi @kamalpreet11,

    Thank you for contacting us, Pleas use the updated plugin shared below. Also, The issue occuring on your site could be due to myCRed level cred plugin. Try deactivating myCred Level Cred plugin and then check. Which version of myCred Level Cred are you using? We have completely revamped myCred Level Cred plugin and fixed all issues in it. Try using the latest version of myCred Level Cred plugin.




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

    Thread Starter Kamalpreet Singh

    (@kamalpreet11)

    Thanks for the information.
    I deactivated the plugin “myCRed level cred” and then the issue is resolved.

    I am using version 1.2 of myCRed level cred plugin.

    A.Tariq

    (@arsalantariq)

    @kamalpreet11,

    Try using the current version of myCred Level Cred. There were some issues in the previous version of myCred Level Cred plugin. We have completely revamped the plugin and fixed the issues. We recommend you to use the current version of myCred Level Cred plugin.

    Thread Starter Kamalpreet Singh

    (@kamalpreet11)

    @arsalantariq , thanks for the update.
    I just upgraded the level addon to the latest version(1.2.1) but it does not help.

    Then I checked the General Settings of my cred. There is an area where we need to drag and drop the Roles so that we can set the Priority of the role. But I can see the drag and drop in not working on that area: See screenshot: https://prnt.sc/MmYEWOxKabv9

    After that, I checked the Level plugin code and I found that you guys included the JS/CSS in a condition. File: /wp-content/plugins/mycred-level-cred/mycred-level-cred.php
    Line Number: 122
    if( get_admin_page_title() == ‘Settings’ || get_admin_page_title() == ‘Hooks’ ) {
    }
    And you guys are including the files if the conditions matched.

    But the get_admin_page_title() is wrong here. It should compare with “General Settings” not with “Settings” as the title is “General Settings” in mycred settings.

    So the condition should be this:
    if( get_admin_page_title() == ‘General Settings’ || get_admin_page_title() == ‘Hooks’ ) {
    }

    Please have a look on it.

    Thank You
    Kamal

    A.Tariq

    (@arsalantariq)

    @kamalpreet11,

    Please use the updated plugin shared below also the shared screenshot has expired can you please share it again?

    Download Link: https://we.tl/t-3VBTvZTroI

    Thread Starter Kamalpreet Singh

    (@kamalpreet11)

    Here is the link: https://prnt.sc/zLprwfNKZEak

    A.Tariq

    (@arsalantariq)

    @kamalpreet11,

    Is it working now with the plugin that we have shared with you?

    Thread Starter Kamalpreet Singh

    (@kamalpreet11)

    @arsalantariq
    Thanks for the plugin. Yes, everything is working perfectly now. Thanks for great support.

    A.Tariq

    (@arsalantariq)

    @kamalpreet11,

    We would appreciate a kind and honest review.

    workout4cash

    (@workout4cash)

    Can I also get this upgraded levelcred link as I am experiencing the same issue.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘mycred_affiliate_link shortcode not working’ is closed to new replies.