Exponential
Forum Replies Created
-
Forum: Plugins
In reply to: [BuddyPress for LearnDash] Enable Free RegistrationI have resolved this. The issue was due to the fact I am running a network of WordPress sites and the standard “Allow anyone to signup” is moved to the global settings.
Forum: Plugins
In reply to: [Contact Form 7 Analytics by Found] support for universal analytics?I understand the quick fix is to run the Universal Code and Classic Code side-by-side and does not, to my knowledge, cause any conflicts.
I use a Plugin for my Universal code so I decided to add the following classic code to the lowest part of my <head> just under the </head> tag.
I will keep an eye on this for the time being but looks to have worked.
<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXXXX-X']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>Forum: Plugins
In reply to: [Contact Form 7 Analytics by Found] support for universal analytics?Me too!
This was a great plugin and just upgraded to Universal Analytics and missing it already.
Please continue to support this plugin! If not and anyone knows of an alternative please let me know.
Thanks
Forum: Plugins
In reply to: [WP Video Lightbox] Redirect Once Video Has PlayedThank you for your reply. I would appreciate you keeping me in the loop with progress.
For anyone wondering how to do this I think I have resolved the issue. Thanks to the help from http://www.sean-barton.co.uk/2014/04/contact-form-7-place-post-server-cookie-session-variables-fields/#.VkstpXbhCes
function sb_cf7_cookie($atts){ extract(shortcode_atts(array( 'key' => -1, ), $atts)); if($key == -1) return ''; $val = ''; if( isset( $_COOKIE[$key] ) ){ $val = $_COOKIE[$key]; } return $val; } add_shortcode('SB_CF7_COOKIE', 'sb_cf7_cookie');Once this has been added to functions.php you can call it using dyanmic text extension, as followed:
[dynamichidden gclid_field "SB_CF7_COOKIE key='__utmz'"]I hope this helps others!
I think the issue I am facing is being able to run this script within the form to get the GCLID cookie and then pass it to CF7 via a dynamic hidden field:
<script> window.onload = function getGclid() { document.getElementById("xxxx").value = (name = new RegExp('(?:^|;\\s*)gclid=([^;]*)').exec(document.cookie)) ? name.split(",")[1] : ""; } </script>xxxx = form field ID (for example “gclid_field”)
Sorry, I meant I have been forced to unistall the plugin. I tried using the filters but I could not achieve what I needed to do on my own. I have had to remove the twitter api completely from my site design.
I used tried using the filter a number of times but it did not work for me so I have been forced to install this plugin.
I have looked through the other notes in detail but this has not resolved the issue. I do not understand how to use a filter to completely remove the date.
Please advise.
Thanks in advance,
James
I have resolved this as I pressed enter on the support post.
The problem was that the code was being pulled in on a page rather than post and therefore within settings I had not chosen “pages” within the “Show buttons on” option.
Once I changed this is worked however it then appears on all other pages.
Forum: Plugins
In reply to: [Scroll Back To Top] Mobile Hiding ProblemA Fix!
It just occured to me rather than using the “Minimum Browser Resolution” I would set this to 0 and then using a piece of custom CSS to target the class directly.
@media only screen and (max-width: 768px) { .scroll-back-to-top-wrapper { display:none!important; } }This seems to have done the trick!
Forum: Plugins
In reply to: [Scroll Back To Top] Mobile Hiding ProblemI am also getting the exact same thing.
It seems to happen whenever you set the “Minimum Browser Resolution*”. It doesn’t matter if this is in a mobile or desktop. Whenever you are viewing less than the min browser resolution the button goes but leaves the icon at the footer of the website.
I have tried targeting this with CSS but this does not work.
Anyone manage to resolve this one?
Thanks in advance.
I also get this error! Please help.
SOLVED!! For anyone else who is trying to achieve the same thing the code I used to get this to work was the following:
function cat_title_shortcode() { global $post; $current_category = single_cat_title("", false); return $current_category; } add_shortcode('cat_title', 'cat_title_shortcode');The way in which I have tackled this is through writing custom shortcodes. I have managed to solve point 1 by writing the following shortcode (in the functions.php file):
function my_category_shortcode(){ global $post; $category = get_the_category( $post->ID ); return $category[0]->cat_name; } add_shortcode( 'my_category' , 'my_category_shortcode' );I then call the shortcode in dynamic text extention like the following:
[dynamichidden my-cat "my_category"]This works perfectly.
However, for point two the code I have used to write the shortcode in does not display in the form field but outside of the form itself.
function cat_title_shortcode() { global $post; $category = single_cat_title(); return $category[0]->cat_name; } add_shortcode('cat_title', 'cat_title_shortcode');If someone can solve this final piece of code for me that would be much appreciated.