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!

Regards,
B


Comments

4 responses to “Link generator breaks HTML”

  1. 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!

    Regards,
    B

  2. Probably yes, because it makes more sense with that

    Cheers

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

  4. 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,
    George

Share