| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 2 years, 8 months |
| seen | Sep 24 '12 at 10:26 | |
| stats | profile views | 147 |
|
Nov 1 |
comment |
Schedule cron event from widget thanks! now it works :) I have one more question: If I remove the widget from the sidebar, will the cron still continue to run? |
|
Nov 1 |
comment |
Do widget options need to be escaped widget()? yes, but I wanted to know if you are required to sanitize them even when you're retrieving these options from the database. It just doesn't seem necessary to do that... |
|
Sep 13 |
comment |
Widget Javascript code (ajax) well i added the javascript inside the widget output. not very elegant but it works... |
|
Sep 1 |
comment |
Using transients to store captchas Thanks Mitcho. I ended up using no captcha at all :) Basically I created a nonce like you said and put it in a transient. Then I used javascript/ajax to pull out that transient and store it in a hidden input field, 10 seconds after the page has loaded. Then, when the form is submitted, I just match the transient with the input field $_POST and decide if the message is spam or not. of course all of this doesn't work if javascript is disabled, but who has js off? :) |
|
Sep 1 |
comment |
Using transients to store captchas well I described it above... I'm trying to find a very simple way to add captchas to custom forms generated by a shortcode, without having to resort to plugins. I already have this working (almost), and just need your opinions if it's good to implement the captcha this way... |