Link generator breaks HTML

Hi there,

So we’re using visual composer to build our affiliate dashboard and the shortcode to output the affiliate link generator breaks HTML. The shortcode is inside a tab and all tabs work until the link generator shortcode is added.

I found and fixed the error in the file “\affiliates-enterprise\lib\ext\wordpress\class-affiliates-url-renderer-wordpress.php”

There’s a missing closing tag, you have to change :

$IXAP62 .= sprintf( ‘<input type=”submit” name=”generate” value=”%s”‘, __( ‘Generate’, AFFILIATES_PRO_PLUGIN_DOMAIN ) );”

To :

$IXAP62 .= sprintf( ”, __( ‘Generate’, AFFILIATES_PRO_PLUGIN_DOMAIN ) );

I have also two question…

1) Would it be possible to generate the URL via AJAX to prevent the page from reloading?
2) I still have issues with the performance graph shortcode when used inside a tab/accordeon/tour (Uncaught Invalid dimensions for plot, width = 0, height = 320, in file “/affiliates-enterprise/js/graph/flot/jquery.flot.min.js” line 6). Can we do something about that? I haven’t been able to fix the problem. It’s loading fine outside of the tabs but I would like to separate the different sections into tabs.

Thank you!


4 Responses to Link generator breaks HTML

  1. Bastien December 11, 2015 at 5:34 pm #

    I have created an admin for you to check out our site :

    (edited login info etc)

    Note that I have fixed the issue so everything is now working fine with the link generator. I still have issue with the [affiliates_affiliate_graph] shortcode that still doesn’t like to be put inside tabs though.

    Waiting for your feedback!


  2. George December 11, 2015 at 5:23 pm #

    Probably yes, because it makes more sense with that


  3. Bastien December 11, 2015 at 5:15 pm #

    I think a part of the message was stripped but you just have to add “/>” before the closing quote of the sprintf

  4. George December 11, 2015 at 5:13 pm #

    Hi Bastien,

    Since Visual Composer is a Premium plugin, can we have access to your site to have a look on both issues? You can send your credentials to support at itthinx dot com and please don’t forget to mention this topic in the mail body.

    As for the new feature, i will have a look if it can be added in a future version of the plugin.

    Kind regards,

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account