Forum Replies Created

Viewing 12 replies - 16 through 27 (of 27 total)
  • Thread Starter Nugerama

    (@nugerama)

    Awesome. Thanks, @thethemefoundry. I’ll look forward to the next release.

    Thread Starter Nugerama

    (@nugerama)

    Thanks for the swift reply, John. I got to the bottom of the issue which I’m sure will seen obvious. The first redirect which worked:

    Source: /news/
    Target: /communication/

    had the regex button checked so was firing before the second one and directing the user to Target: /communication/post-title/ before the proper one could redirect it to Target: /communication/2017/post-title/

    Actually, I’d bulk uploaded my redirects and mistakenly set regex to true on all ~100 of them. Anyway, I’ve manually unchecked that now (a bulk edit would have been handy in this instance) and all appears to be working correctly.

    Thread Starter Nugerama

    (@nugerama)

    Hi Sven. I’m turning out a list of surveys (forms) for users to fill out but I wanted to omit or in some way differentiate surveys that they’d already submitted. I have Giving access to: All members of site and forbid multiple entries checked so I only needed to check whether the current user’s ID is stored against a submission which I could see from the table that it was.

    Anyway, I dug around in the code and found:

    $participated = ( torro()->forms()->get( $form->ID )->has_participated() ) ? true : false;

    Which when used in my loop does exactly what I need it to. Perhaps it could be added to the documentation at some point as I’m sure other users would find it useful.

    Thanks for getting back to me
    Kevin

    Thread Starter Nugerama

    (@nugerama)

    Of course, done.

    Thread Starter Nugerama

    (@nugerama)

    Thanks for your response, Sven. On further investigation of the working form actions inside the plugin I found that I could get mine working by including a couple of extra functions, namely:

    private static $instance = null;

    and

    public static function instance() {
    	if ( null === self::$instance ) {
    		self::$instance = new self();
    	}
    	return self::$instance;
    }

    With the hooked action in place I’ve managed to add a tab in the admin which let’s the user allocate points to a form and then runs the mycred_add function on submission. I spotted a couple of other typos in the example in your docs too: a missing semi-colon on line 33 and the last line tries to register the main class instead of the new one, torro()->actions()->register( 'Torro_Form_Action' ); should be torro()->actions()->register( 'My_Action' );.

    Great plugin. This has so far proved the perfect solution to my client’s requirement for a survey builder.

    Thanks again

    Thread Starter Nugerama

    (@nugerama)

    Okay, I’m now using the Form Action API code snippet (here: https://torro-forms.com/api/extending/form-actions/) which extends the Torro_Form_Action class. I’m a little out of my depth here, can anyone explain why I get:

    Fatal error: Call to protected Torro_Form_Action::__construct() from context ‘Torro_Manager’ in /Applications/MAMP/htdocs/sandbox/wp-content/plugins/torro-forms/core/managers/class-manager.php on line 66

    Thread Starter Nugerama

    (@nugerama)

    Hey Devin. Thanks for the quick response.

    I’ve put together a ‘one pager’ WordPress theme which pulls a selection of pages (and posts) into a single loop. The content and order of these sections is determined using some Advanced Custom Fields magic in the backend but I’ve separated them each in the template with a review so the section order is something like: hero image; review; welcome; review; about; review; and so on.

    This sort of thing works great with a post-type as I can just order by rand, limit to one and prevent repeat. In this case however the client wants to pull the reviews from Google.

    I’m not quite hard core enough to have delved into the Google Places API but I had hoped/assumed that there would be some method for pulling a random entry – is this not the case? If not then a possible workaround might be for me to pull four or five in and display:none all but the nth li – though this would still only give me most recent in order, not random.

    Any thoughts?

    Here’s a link to my dev site: salt.nugerama.co.uk

    Best
    Kevin

    Thread Starter Nugerama

    (@nugerama)

    Okay, so I spotted on another thread that the shortcode functionality is only included in the pro version so I’ve purchased a license.

    Thread Starter Nugerama

    (@nugerama)

    Thanks for your reply Andrew. That plugin looked promising but sadly is geared up towards appending the image meta with the page/post meta rather than just using the actual image meta.

    I’m thinking that a function for my theme which interferes with the WordPress gallery loop, inserting the extra meta would be a tidy approach but wouldn’t know where to start with that.

    Thanks again.

    +1 for this. An option to select the currency would be useful but I feel as though this should at least inherit the same currency as the account is set up in. Nice work.

    Thread Starter Nugerama

    (@nugerama)

    Your dead right Ipstenu, I think I’ll go back and have another conversation with my client regarding the SEO implications.

    As it happens, I have now got the Network Posts pulling in the custom post type albeit with a bunch of errors coming out first (Warning: Missing argument 2 for wpdb::prepare(), called in /home/globalrt/public_html/wp-content/plugins/network-shared-posts/network-shared-posts.php on line 118 and defined in /home/globalrt/public_html/wp-includes/wp-db.php on line 992). I previously had the testimonials plugin only activated on the one site, not network activated.

    I see now anyway that it only links to that content on the other site which I can quite easily do manually in this case as there’s currently only three to play with. I think that I should be looking for a whole other solution in this case that doesn’t involve simply duplicating content.

    Thanks again for the feedback.

    Thread Starter Nugerama

    (@nugerama)

    Brilliant! So so much for the speedy reply chip – seems so obvious now you’ve pointed it out!

    I’ve opted to exclude rather than include and it’s working a treat. Thanks again.

Viewing 12 replies - 16 through 27 (of 27 total)