Jonathan
Forum Replies Created
-
Forum: Plugins
In reply to: [Catch Infinite Scroll] Duplicate Content on scrollI have the same problem, please can you share the solution?
Forum: Plugins
In reply to: [Ninja Forms - The Contact Form Builder That Grows With You] Dynamic Lists?Thanks for all the posts here, very helpful, and made me realise that there’s a lot I don’t know about global variables.
I have Ninja form ‘Donate Box’ with a text input to take ‘amount’ string which posts to a page called ‘monthly-donation’ with a ninja form ‘monthly donation’ this has several fields such as ‘name and address’ and an ‘amount’ which I want to pre populate with ‘Donate Box’ value of amount.
Using crdunst tips I’ve managed to pre populate ‘monthly donation’ (with a string I manually insert into the functions file (to so I half way there)) with this function:
$user_value = 'donate box value amount';//how do I get this value? // filter runs every time a form element is rendered add_filter('ninja_forms_field','apply_prepop'); function apply_prepop($data) { if($data['label']=='Pay the sum of') { $data['default_value'] = $GLOBALS['user_value'];//and pop it in here } return $data; //this returns 'donate box value amount' literally }but I can’t find a way to change $user_value to ‘Donate Box’ value of amount.
Basically, how do I get a value from a posted form and put it into a global variable. Or not even put in in a global variable and inject it straight into the pre pop function.
I had this problem and realised that it was a chrome extension ‘Facebook Disconnect’ that was causing all this beef. So I’ve displayed it and run home to my daddy.
Forum: Themes and Templates
In reply to: Calendar post thumbnail imagenudge nudge 🙂
Forum: Themes and Templates
In reply to: Calendar post thumbnail imageDoes anyone know this one?
If I can find the code in the <?php get_calendar(); ?> function that calls the permalink then I can insert <?php the_field(‘post_thumbnail’); ?> which is a custom field I made. Then I can make a global variable to get the current parent category and use that to only include posts from that page.
I’m a bit out of my depth and I forgot my arm bands so if anyone out there knows how to swim please help!
Forum: Themes and Templates
In reply to: Calendar post thumbnail imagethanks esmi, do you know a way I could make it?
Forum: Themes and Templates
In reply to: Calendar post thumbnail imageHi sorry I should have mentioned I’m not using a plugin. I’m just using the code <?php get_calendar(); ?>. I understand that in general.php there is the function that runs this feature.
Forum: Themes and Templates
In reply to: jQuery in category templateskeesiemeijer you’re too good. I’ve enqueue my script so it’s not inline, I never knew how to do that before but I can do that again moving forward. And now not even a blink of dodgy HTML.
Another cheat I tried (but isn’t necessary if you do it the correct way) is to find an element that get restyled in the jquery function and make it invisible so it only appears once the function has run. But probably bad practice but may have a good use somewhere.
I use dreamweaver to edit my text maybe not the best idea, I’m not sure.
keesiemeijer – thanks again – I’ve learnt loads
Let me know if I need to make this as resolved or something
Best
Jon
Forum: Themes and Templates
In reply to: jQuery in category templatesThanks keesiemeijer for getting back to me so quickly. The jquery I’m using is http://ryrych.github.com/rcarousel/examples/html.html . I’ve enqueued my scripts now and removed the links in the body, it still works in the page template file but doesn’t work in the single-template file. The source code for both looks almost 100% identical… and …
I’ve just looked closer and I can see some little question marks in the function like this: .css(? “backgroun… but the question mark is inside a diamond.
I’ve removed all the white space that has caused these question marks AND IT WORKS!! I’m still not sure why the white space caused issues in the category template and not the page template – would be great to know if anyone does know?
Thanks for making me enqueue – always the way. One other thing… When the page loads all my images are stacked (not floated) for a split second then they ping into a carousel. If you know how to prevent this that would be awesome. Even on the carousel here: http://ryrych.github.com/rcarousel/examples/html.html if you refresh a few times it gets that flicker as well. Maybe its an on page load thing?
Thanks again
Jon