Title: chidoti's Replies | WordPress.org

---

# chidoti

  [  ](https://wordpress.org/support/users/chidoti/)

 *   [Profile](https://wordpress.org/support/users/chidoti/)
 *   [Topics Started](https://wordpress.org/support/users/chidoti/topics/)
 *   [Replies Created](https://wordpress.org/support/users/chidoti/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/chidoti/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/chidoti/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/chidoti/engagements/)
 *   [Favorites](https://wordpress.org/support/users/chidoti/favorites/)

 Search replies:

## Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[DearFlip - PDF Flipbook, 3D Flipbook, PDF embed, PDF viewer] Select text](https://wordpress.org/support/topic/select-text-3/)
 *  Thread Starter [chidoti](https://wordpress.org/support/users/chidoti/)
 * (@chidoti)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/select-text-3/#post-18619198)
 * Thank you a lot for the clarification!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Table of Contents] No password protection](https://wordpress.org/support/topic/no-password-protection-2/)
 *  Thread Starter [chidoti](https://wordpress.org/support/users/chidoti/)
 * (@chidoti)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/no-password-protection-2/#post-17274449)
 * It works fine! Thank you a lot!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Table of Contents] No password protection](https://wordpress.org/support/topic/no-password-protection-2/)
 *  Thread Starter [chidoti](https://wordpress.org/support/users/chidoti/)
 * (@chidoti)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/no-password-protection-2/#post-17271222)
 * Thank you a lot! Have a nice day!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[wpDataTables - WordPress Data Table, Dynamic Tables & Table Charts Plugin] Merge cells](https://wordpress.org/support/topic/merge-cells-6/)
 *  Thread Starter [chidoti](https://wordpress.org/support/users/chidoti/)
 * (@chidoti)
 * [6 years ago](https://wordpress.org/support/topic/merge-cells-6/#post-13163004)
 * Thanks a lot for the update.
 * It’s ok to pay for that, but it’s an important feature indeed.
    Also a couple
   of suggestions: 1. An option to set bold borders for some of the cells. Really
   helps to navigate complex tables. 2. A cross hover which would show not only 
   horizontal raw cell position but also a vertical column. That’s handy for tables
   with data (as opposed to “compare products” tables).
    -  This reply was modified 6 years ago by [chidoti](https://wordpress.org/support/users/chidoti/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HT Mega Addons for Elementor - Elementor Widgets & Template Builder] Kadence Virtue Theme & HT](https://wordpress.org/support/topic/kadence-virtue-theme-ht/)
 *  Thread Starter [chidoti](https://wordpress.org/support/users/chidoti/)
 * (@chidoti)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/kadence-virtue-theme-ht/#post-11116987)
 * Thank you a lot for the support!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Virtue] Added options for Page Builder integration](https://wordpress.org/support/topic/added-options-for-page-builder-integration/)
 *  Thread Starter [chidoti](https://wordpress.org/support/users/chidoti/)
 * (@chidoti)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/added-options-for-page-builder-integration/#post-10961916)
 * Now it’s clear for me. Thanks a lot!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SSL Mixed Content Fix] External links](https://wordpress.org/support/topic/external-links-26/)
 *  [chidoti](https://wordpress.org/support/users/chidoti/)
 * (@chidoti)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/external-links-26/#post-10622215)
 * I have the same issue. It’s unclear why it happens, didn’t received such an issue
   previously. That’s make the plugin unusable 🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Canonical Attachments] Canonical vs Yoast: clarification?](https://wordpress.org/support/topic/canonical-vs-yoast-clarification/)
 *  Thread Starter [chidoti](https://wordpress.org/support/users/chidoti/)
 * (@chidoti)
 * [8 years ago](https://wordpress.org/support/topic/canonical-vs-yoast-clarification/#post-10573011)
 * Thanks a lot Jake! You’ve explained it perfectly clear.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Yoast SEO - Advanced SEO with real-time guidance and built-in AI] Russian translation feedback](https://wordpress.org/support/topic/russian-translation-feedback/)
 *  Thread Starter [chidoti](https://wordpress.org/support/users/chidoti/)
 * (@chidoti)
 * [8 years ago](https://wordpress.org/support/topic/russian-translation-feedback/#post-10548058)
 * Thanks, Yui! I’ll keep that it mind, I didn’t know there. The feedback, surely
   meant only “it maybe useful to add an option read the English original”. Don’t
   consider my message as a complaint, as I am happy to use such a great product
   for free and really gratefull for it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PDF Viewer] Relative path / Unexpected server response](https://wordpress.org/support/topic/relative-path-unexpected-server-response/)
 *  [chidoti](https://wordpress.org/support/users/chidoti/)
 * (@chidoti)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/relative-path-unexpected-server-response/#post-9648126)
 * I love this plugin as it shows everything crisp unlike google docs embed. I was
   looking how to fix it and found that the problem is in pdf-viewer.php.
    FILTER_VALIDATE_URL
   doesn’t work with protocol relative url. So I used following idea from someone
   on the internet: public function validate($input) { $valid = filter_var($input,
   FILTER_VALIDATE_URL);
 * + // Simple workaround for protocol relative urls.
    + // If sticking a protocol
   on the front makes it valid, assume it’s valid + if(!$valid) + $valid = filter_var(‘
   http:’.$input, FILTER_VALIDATE_URL);
 *  return !!$valid;
    }
 * Change the function add_shortcode() with following code (it’s works the same 
   as the example above actually)
 *     ```
       public function add_shortcode( $atts, $content = "" ) {
   
   
   
       		if ( !empty($content) && filter_var($content, FILTER_VALIDATE_URL) ) {
   
       			//TODO: filter URL to check if PDF only
   
   
       			if ( $this->older_ie($this->options['olderIE']) ) {
   
       				$notice = str_replace('%%PDF_URL%%', $content, $this->options['ta_notice']);
       				echo html_entity_decode($notice);
   
       			} else {
   
       				$atts = shortcode_atts(
       					array(
       						'width' => $this->options['tx_width'],
       						'height' => $this->options['tx_height'],
       						'beta' => empty($this->options['beta']) ? 0 : "true",
       					), 
       					$atts,
       					'pdfviewer' 
       				);
   
       				$pdfjs_mode = ( $atts['beta'] === "true" ) ? 'beta' : 'stable';
       				$pdfjs_url = plugin_dir_url( __FILE__ ).$pdfjs_mode.'/web/viewer.html?file='.$content;
   
       				$pdfjs_iframe = '<iframe class="pdfjs-viewer" width="'.$atts['width'].'" height="'.$atts['height'].'" src="'.$pdfjs_url.'"></iframe> ';
   
       				return $pdfjs_iframe;
       			}
       		} else {
   
       			if ( !empty($content) && filter_var('https:'.$content, FILTER_VALIDATE_URL) ) {
   
       			//TODO: filter URL to check if PDF only
   
   
       				if ( $this->older_ie($this->options['olderIE']) ) {
   
       					$notice = str_replace('%%PDF_URL%%', $content, $this->options['ta_notice']);
       					echo html_entity_decode($notice);
   
       				} else {
   
       					$atts = shortcode_atts(
       						array(
       							'width' => $this->options['tx_width'],
       							'height' => $this->options['tx_height'],
       							'beta' => empty($this->options['beta']) ? 0 : "true",
       						), 
       						$atts,
       						'pdfviewer' 
       					);
   
       					$pdfjs_mode = ( $atts['beta'] === "true" ) ? 'beta' : 'stable';
       					$pdfjs_url = plugin_dir_url( __FILE__ ).$pdfjs_mode.'/web/viewer.html?file='.$content;
   
       					$pdfjs_iframe = '<iframe class="pdfjs-viewer" width="'.$atts['width'].'" height="'.$atts['height'].'" src="'.$pdfjs_url.'"></iframe> ';
   
       					return $pdfjs_iframe;
       				}			
       			} else {
   
       				if ( !empty($content) && filter_var('http:'.$content, FILTER_VALIDATE_URL) ) {
   
       			//TODO: filter URL to check if PDF only
   
   
       				if ( $this->older_ie($this->options['olderIE']) ) {
   
       					$notice = str_replace('%%PDF_URL%%', $content, $this->options['ta_notice']);
       					echo html_entity_decode($notice);
   
       				} else {
   
       					$atts = shortcode_atts(
       						array(
       							'width' => $this->options['tx_width'],
       							'height' => $this->options['tx_height'],
       							'beta' => empty($this->options['beta']) ? 0 : "true",
       						), 
       						$atts,
       						'pdfviewer' 
       					);
   
       					$pdfjs_mode = ( $atts['beta'] === "true" ) ? 'beta' : 'stable';
       					$pdfjs_url = plugin_dir_url( __FILE__ ).$pdfjs_mode.'/web/viewer.html?file='.$content;
   
       					$pdfjs_iframe = '<iframe class="pdfjs-viewer" width="'.$atts['width'].'" height="'.$atts['height'].'" src="'.$pdfjs_url.'"></iframe> ';
   
       					return $pdfjs_iframe;
       				}			
       			} else {
   
       				return 'Invalid URL for PDF Viewer';
       			}
   
       			}
       		}
       	}
       ```
   
    -  This reply was modified 8 years, 9 months ago by [chidoti](https://wordpress.org/support/users/chidoti/).

Viewing 10 replies - 1 through 10 (of 10 total)