I set 4 groups and 4 different content for each group. In my page I set up the code like:
[onclick-show-popup group=”9″]
[onclick-show-popup group=”2″]
[onclick-show-popup group=”3″]
[onclick-show-popup group=”4″]
[onclick-show-popup group=”5″]
[onclick-show-popup group=”6″]
[onclick-show-popup group=”7″]
[onclick-show-popup group=”8″]
But with this set up, I am not getting what I need. All the time in which ever link I click, it is always poping up only the first group.
If anybody have any idea about this, I kindly request you to help.
]]>Hey!
I’m looking for a solution that will show the onclick popup just as a regular link – without
Any help?
Thanks!
Hi,
I propose a patch for “Onclick show popup” 6.7 to have an image support in the shortcode.
This is used as follows:
[onclick-show-popup group=”2″ image=”https://www.actif-coaching.com/XXXXXX/charte_preview_2.jpg” width=”176″ height=”248″]
This can be seen at: https://www.actif-coaching.com/coaching/
Feel free to add it in mainline if you have any interest in it.
####################################################################
— onclick-show-popup/onclick-show-popup.php 2015-11-13 07:28:15.495155340 +0100
+++ onclick-show-popup.old/onclick-show-popup.php 2015-11-13 07:35:24.295210365 +0100
@@ -2,9 +2,9 @@
/*
Plugin Name: Onclick show popup
Plugin URI: https://www.gopiplus.com/work/2011/12/17/wordpress-plugin-onclick-show-popup-for-content/
-Description: Sometimes its useful to add a popup to your website to show your ads, special announcement and offers. Using this plugin you can creates unblockable, dynamic and fully configurable popups for your blog.
+Description: Sometimes its useful to add a pop up to your website to show your ads, special announcement and offers. Using this plug-in you can creates unblockable, dynamic and fully configurable popups for your blog.
Author: Gopi Ramasamy
-Version: 6.7
+Version: 6.5
Author URI: https://www.gopiplus.com/work/2011/12/17/wordpress-plugin-onclick-show-popup-for-content/
Donate link: https://www.gopiplus.com/work/2011/12/17/wordpress-plugin-onclick-show-popup-for-content/
License: GPLv2 or later
@@ -248,6 +248,7 @@
global $wpdb;
$group = “”;
+ $image = “”;
//[onclick-show-popup group=”1″]
if ( ! is_array( $atts ) )
@@ -255,6 +256,9 @@
return ”;
}
$group = OnclickShowPopup_Group($atts[‘group’]);
+ $image = $atts[‘image’];
+ $width = $atts[‘width’];
+ $height = $atts[‘height’];
$OnclickShowPopup_widget = $group;
$OnclickShowPopup_random = get_option(‘OnclickShowPopup_random’);
@@ -284,9 +288,15 @@
$OnclickShowPopup_title = stripslashes($data->OnclickShowPopup_title);
$OnclickShowPopup_text = stripslashes($data->OnclickShowPopup_text);
$OnclickShowPopup_text = str_replace(“\r\n”, “
“, $OnclickShowPopup_text);
–
– $li = $li . ‘
‘;
–
+
+ if ($image == “”)
+ {
+ $li = $li . ‘
‘;
+ }
+ else
+ {
+ $li = $li . ‘<img src=”‘.$image.'” width=”‘.$width.'” height=”‘.$height.'” class=”aligncenter size-full”/>‘;
+ }
$div = $div . ‘<div id=”inline_demo’.$counter.'” style=”display:none;”>’.$OnclickShowPopup_text.'</div>’;
$counter = $counter + 1;
@@ -327,4 +337,4 @@
register_activation_hook(__FILE__, ‘OnclickShowPopup_activation’);
add_action(“plugins_loaded”, “OnclickShowPopup_plugins_loaded”);
register_deactivation_hook( __FILE__, ‘OnclickShowPopup_deactivate’ );
-?>
\ Pas de fin de ligne à la fin du fichier
+?>
####################################################################
Hello!
The plugin is awesome, but when I add the code to the post it becomes a bullet point. I would like the plugin to just become part of the paragraph and not a separate part.
Anyway to fix this?
]]>Hi,
I am using this plugin, and working well for static content, but when i paste ShortCode in it,the data of ShortCode is not showing.
thanks
jiten
I’m using the same shortcode in widgets on two different sidebars [onclick-show-popup group="1"]
but they give totally different results. For one, it’s square, the overlay is white and title is black. The other has a black overlay, border-radius, and white title. What is the difference?
Also, there seems to be some kind of plugin incompatability, because the plugin delays my page load time. From P3 Profiler it takes 23% of my plugin runtime (I have 25 plugins) –
===========================================
Report date: December 12, 2013
Theme name: Bazar
Pages browsed: 9
Avg. load time: 2.6617 sec
Number of plugins: 25
Plugin impact: 44.20% of load time
Avg. plugin time: 1.1764 sec
Avg. core time: 0.1712 sec
Avg. theme time: 1.2003 sec
Avg. mem usage: 62.11 MB
Avg. ticks: 10,232
Avg. db queries : 110.56
Margin of error : 0.1138 sec
Plugin list:
===========================================
P3 (Plugin Performance Profiler) - 0.0063 sec - 0.53%
Akismet - 0.0046 sec - 0.39%
Contact Form 7 - 0.0467 sec - 3.97%
Google Analytics For WordPress - 0.0250 sec - 2.12%
IgniteWoo Updater - 0.0061 sec - 0.52%
MailChimp - 0.0217 sec - 1.85%
Onclick show popup - 0.2723 sec - 23.15%
Pinterest Pin It Button - 0.0054 sec - 0.45%
Post Types Order - 0.1284 sec - 10.91%
Redirection - 0.0507 sec - 4.31%
Widget Logic - 0.0208 sec - 1.77%
WooCommerce Dynamic Pricing - 0.0344 sec - 2.93%
Woocommerce Gateway Stripe - 0.0040 sec - 0.34%
Woocommerce Mailchimp Subscribe - 0.0015 sec - 0.13%
WooCommerce - ShipStation - 0.0014 sec - 0.12%
WooCommerce Trustpilot - 0.0165 sec - 1.41%
WooCommerce - 0.3880 sec - 32.98%
WooThemes Helper - 0.0011 sec - 0.09%
WordPress Debug - 0.0007 sec - 0.06%
Wordpress Seo - 0.0780 sec - 6.63%
Xcloner Backup And Restore - 0.0003 sec - 0.03%
Yith Topbar Countdown - 0.0132 sec - 1.12%
Yith Woocommerce Ajax Navigation - 0.0096 sec - 0.82%
Yith Woocommerce Compare - 0.0182 sec - 1.54%
Empty - 0.0212 sec - 1.81%
]]>
Has anyone noticed how glitchy this plugin is in firefox? Could be prettyphoto that’s causing the problem, but sometimes it shows the content, sometimes it shows the content but only half the box size behind it, and sometimes it shows it all. Very strange!! Can’t have that, will probably need to switch plugins. It’s very unfortunate, because this looks so nice in all other browsers. :/
]]>When I try to click on the setting of the plugin, a 403 error appear on the screen.
The message says :
403 Forbidden
Access is forbidden to the requested page:
snobbish.ma/wp-admin/plugins.php?action=activate&plugin=onclick-show-popup%2Fonclick-show-popup.php&_wpnonce=7e4ceed4ee (port 80)
Please forward this error screen to snobbish.ma’s WebMaster.
How can I fixe that ?
]]>is possible activate the popup by clicking an image? thank you!
https://www.ads-software.com/extend/plugins/onclick-show-popup/
]]>Hi!
I’m looking for a solution that will open Post in a popup?
(when visitor clicks on a post from archives page…)
Any help?
Thanks!
https://www.ads-software.com/extend/plugins/onclick-show-popup/
]]>Many Thanks for plugin.
The WordPress Description notes contain the instruction :
Paste the php code to your php file
To insert the popup into (say) a header.php file I have tried variations of
<?php?echo?do_shortcode(?'[ONCLICK-SHOW-POPUP:GROUP=GROUP5]'?);??>
or
<?php?echo?do_shortcode(?"[ONCLICK-SHOW-POPUP:GROUP='GROUP5']"?);??>
No success ! Not a coder. Would appreciate help to insert this shortcode into a php file.
https://www.ads-software.com/extend/plugins/onclick-show-popup/
]]>