justaguyyo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: & Tags not being called!Figured it out.
Forum: Plugins
In reply to: [Timed Content] Creating an action when hide?AHHH!! Thank you so much for all of your help K. Tough! Your code works, and I finalled realized why it wasn’t working before. It wasn’t working before becuase.. DUH the code is only called when the page with the timed content shortcode! Thank you a bunch. You’ve been amazing, your plugin is amazing and you are incredibly helpful!!
Forum: Plugins
In reply to: [Timed Content] Creating an action when hide?I’ve been using and trying to mess with the code to see how it works right now. For some reason it is completely hit or miss. I am only using the code I linked in the start and the code you gave me. There are no other modifications on my end. I am monitoring the value in phpMyAdmin and double checking by using the counter.
Sometimes it works and resets the counter but most of the time it does not. I have tried using both the hide and show action, tried setting it in advance, then letting the action start and then letting the action end, still no change. I have also tried starting the action immediately and ending it later, which does work sometimes but doesn’t always. I am really confused as to why this is only working sometimes and not always. PHP feels like magic to me at this point.
Forum: Plugins
In reply to: [Timed Content] Creating an action when hide?I am actually using a [timed-content-rule] it is fine if this command is called over and over. I’d just like to add it to update the value when the plugin determines it is time to hide something.
Yes, I’d love to edit the plugin and be a guinea pig. Thank you a lot for your fast replies!
Forum: Plugins
In reply to: [Timed Content] Creating an action when hide?Yep! That’s exactly what I’d like to do!
Forum: Plugins
In reply to: [Timed Content] Creating an action when hide?Yeah. I’d like it so when it hides it updates the value. Is this a really complex thing I’ve asked?
Forum: Plugins
In reply to: [Timed Content] Creating an action when hide?Thanks for the fast reply! I am not trying to use shortcode, I am trying to use PHP to update a variable. Specifically,
update_option(CF7_COUNTER, 0);
Forum: Plugins
In reply to: [Timed Content] Creating an action when hide?Just to clarify, I am asking what part of the plugin’s code is called when a shown shortcode becomes hidden. I’d like to call some PHP code when something becomes hidden.