Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author ka2

    (@ka2)

    Thank you for your inquiry.

    Please try to disable it uncheck the “sanitization” option of that table from “modify table”. Then, please try to register data to that table.

    Thank you,

    Thread Starter lumie

    (@lumie)

    i have unchecked the flag and i have inserted a new record, now i don’t see any record.

    Why ?

    Thank you for reply.

    see here: https://www.studiolegaledm.it/sentenze/

    Plugin Author ka2

    (@ka2)

    Thank you very much for your prompt reply.

    When I saw your site, I had found an error that had occurred in the JavaScript.
    That error is below;

    Uncaught ReferenceError: checkCookie is not defined

    Variable of “checkCookie” does not define in JavaScript on this page.
    Since Custom DataBase Tables plugin does not use a variable named “checkCookie”, it seems to be a theme or other plugins error that you are using.

    Because I could verify to have been getting the data of table by a shortcode retrieving, I think that will display if you can eliminat an error of JavaScript.

    Thank you,

    Thread Starter lumie

    (@lumie)

    Hello,

    I have removed “Italian law Cookie plugin”, now the there is not wodpress_test_cookie with value WP+COOKIE+CHECK.

    But i dont’ see the record in my table.

    thank you for reply

    Plugin Author ka2

    (@ka2)

    Hi there,

    I had checked the your page again, but it was the same error occurs yet.
    I think like that is occurring error by the below script appended in the html body on your page.

    <script type="text/javascript">
      var dropCookie = true;
      var cookieDuration = 28;
      var cookieName = 'complianceCookie';
      var cookieValue = 'on';
      var privacyMessage = "";
    
      jQuery(document).ready(function($) {
        privacyMessage = jQuery('#hidden-cookie-message').html();
          	if(checkCookie(window.cookieName) != window.cookieValue){
      		createDiv(true);
      		window.setTimeout(function() {
          		$('#cookie-law').fadeOut();
      		}, 999999999);
      	}
      });
    </script>

    That above “checkCookie()” function is undefined.
    How about trying follows?

    <script type="text/javascript">
      var dropCookie = true;
      var cookieDuration = 28;
      var cookieName = 'complianceCookie';
      var cookieValue = 'on';
      var privacyMessage = "";
    
      jQuery(document).ready(function($) {
        privacyMessage = jQuery('#hidden-cookie-message').html();
        if (typeof checkCookie == 'function') {
          if(checkCookie(window.cookieName) != window.cookieValue){
            createDiv(true);
            window.setTimeout(function() {
              $('#cookie-law').fadeOut();
            }, 999999999);
          }
        }
      });
    </script>

    It should work if there are no errors in JavaScript.

    Thank you,

    Thread Starter lumie

    (@lumie)

    Ok, but no i have removed the ITALIAN LAW COOKIE plugin and have removed all files, but i dont’ see difference.

    The table is empty!

    Thank you

    Thread Starter lumie

    (@lumie)

    Hello I have solved. I have deleted another plugin.

    I thank you and excuse me

    Thread Starter lumie

    (@lumie)

    Hello,

    Your plugin work corretly, but how i made to wiew corretly the link ?

    Now i see the HTML CODE :

    https://www.studiolegaledm.it/wp-content/uploads/2016/03/PDF.png

    Thank you

    Thread Starter lumie

    (@lumie)

    Plugin Author ka2

    (@ka2)

    Currently sanitization option is valid only in the column of the varchar and char. And the column of text type is invalid. Does not your “link” column probably define text type column?

    Such case, please add filter of following;

    function my_shortcode_custom_columns( $columns, $shortcode_name, $table ){
      if ( 'your_table_name' === $table ) {
        foreach ( $columns as $_i => $_column ) {
          if ( 'link' === $_column['property'] ) {
            $columns[$_i]['customColumnRenderer'] = '$("<div/>").html(_.unescape(rowData.link)).text()';
          }
        }
      }
      return $columns;
    }
    add_filter( 'cdbt_shortcode_custom_columns', 'my_shortcode_custom_columns', 10, 3 );

    The place where you add is a good in such “functions.php” of your theme.

    Please try it.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘PDF Hyperlink’ is closed to new replies.