Moogie17
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] Plugin randomly deactivates itselfThanks for your response, it’s much appreciated. I’ve been through the logs again as the plugin was found to be deactivated again yesterday and still can’t find any errors which could be a sign of a conflict or even a log stating the plugin has been deactivated. Very strange indeed!
I’ve checked the PHP version and it’s high enough so I guess it can’t be that.
I’m absolutely stumped at this point, so will unfortunately likely have to set up an alternative to PDB – but I very much appreciate all your work on the plugin and its addons which have served me well for many years.
Many thanks 🙂 I know it’s an unusual case really and I’ve said to them for years they should have secure certs for all their domains. I’m now being asked to downgrade the plugin version to save having to get secure domains, will have to see if I have a previous one downloaded somewhere!
Thanks for letting me know, Matt. I’ll have to let my client know. I’m not sure if their host allows the free SSL certs but if they have to pay they’ll just have to do so I guess 😉 Really appreciate the quick response!
Hi Matt, thanks for the reply.
The point I’m trying to make is that both
http://www.thecraftshows.co.uk/CHISummerStonor
and
http://www.thecraftshows.co.uk/CHISummerStonor/should map to the same page –
http://www.ichfevents.co.uk/events/craft-shows/CHISummerStonor
(which in this case then uses the Page Links To plugin to forward users to https://ticketsales.ichf.co.uk/products/henley-country-craft-show-autumn-2018 )And that
http://www.thecraftshows.co.uk/henley-on-thames
and
http://www.thecraftshows.co.uk/henley-on-thames/
should also both map to the same page, in this case
http://www.ichfevents.co.uk/events/craft-shows/henley-on-thames/
as per the mappings you’ll see in the screenshot below.The point is that if the trailing slash is omitted, WordPress doesn’t find the page that the link should be mapped to. This seems like strange behaviour. With the trailing slash included, it maps as one would expect. Surely with or without the trailing slash it should map as intended?
At first I wondered if it was a problem about using it in conjuntion with Page Links To, but as you can see it happens even without that as the 2nd set of URLs above should map to the same page. You can see the mappings below:
http://www.shiningforcecentral.com/problem-multi-domain-mapping.jpgI hope that makes more sense! Sorry if I’m not explaining clearly enough.
Thanks for your time 🙂Forum: Plugins
In reply to: [Multiple Domain Mapping on Single Site] Previewpage loads with new URL@tenserd Sorry it didn’t work for you. As it turns out my poor tired brain totally failed with that code, as obviously it doesn’t add the preview nonce or preview ID so the link isn’t actually the page preview. I don’t know why you were having the URL discrepancies but I’m going to have to go back to the drawing board on this haha.
Forum: Plugins
In reply to: [Multiple Domain Mapping on Single Site] Previewpage loads with new URLI haven’t tested it extensively yet but after a lot of reading around and trial and error this morning I’ve come up with a fix which seems to work, at least for my case.
The following placed in the functions.php file of your theme (or added as a plugin I guess) may help you:
// Fix post preview button link to work with Multiple Domain Mapping on Single Site Plugin function moogiet_fix_preview_link() { $moogiet_path = get_page_uri(); $moogiet_baseurl = home_url(); $moogiet_newurl = "$moogiet_baseurl/$moogiet_path/?preview=true"; return $moogiet_newurl; } add_filter( 'preview_post_link', 'moogiet_fix_preview_link',30 );This replaces the preview link with a re-generated link comprising the site’s home url, the path of the current post/page and appending the ?preview=true query string. So far it seems to be working OK for me, but will let you know if I find any issues with it!
- This reply was modified 8 years, 3 months ago by Moogie17.
Forum: Plugins
In reply to: [Multiple Domain Mapping on Single Site] Previewpage loads with new URLThanks very much Dennis, that’s really kind. Meanwhile should I manage to solve it myself I will of course let you know 🙂
Forum: Plugins
In reply to: [Multiple Domain Mapping on Single Site] Previewpage loads with new URL@tenserd I don’t suppose you worked out the fix for the preview button at all did you? I’m having the same problem. It would be great if you’d be willing to share the fix if you have it! 🙂 Thanks for your time.
Forum: Plugins
In reply to: [Multiple Domain Mapping on Single Site] Problem with NextGen gallery?Thanks for taking the time to respond 🙂 I guess I’ll have to find some other solution for the galleries until the pagination is fixed.
Hopefully I’ll at least be able to find the part of the plugin to adjust for the preview button to work on mapped pages too. Maybe the user in the other post found a way.
Thanks again 🙂
Forum: Plugins
In reply to: [Participants Database] pdb-form_element_build_ setting options *and* values?Many thanks Roland, that’s perfect!
Same issue here.
Forum: Plugins
In reply to: [Woo Variations Table] WooCommerce Product Add-ons don’t show up anymoreThanks Alaa,
I mean add-on fields on the frontend, created with: https://woocommerce.com/products/product-add-ons/
The add-ons are usually placed above the add to cart button, which I’m guessing is why they are clashing 🙁Unfortunately I can’t send you a link as it’s currently only on my local dev environment.
Forum: Plugins
In reply to: [Participants Database] Automatic exportstefania_it, I thought you might be interested to hear what I’ve been working on to automate imports of CSV data. I know you want to automate exports but that may also be possible (and is the next thing I need to work on, so I do hope it is!).
I’ve been putting together a PHP cURL script which logs in to the wordpress admin panel and POSTs the necessary data & file to the PdB CSV import page, allowing PdB to take care of the import itself. The script could then be run on a cron and stored in a protected directory or possibly above the web root, to keep the login details safe.
I haven’t started to play with the export automation yet, so will need to figure out how/if it is possible to get the file to save to the server (from where it can then be emailed or whatever) rather than the download prompt. Hopefully the file will be returned to the cURL script and can simply be handled from there, but I’m not very familiar with cURL yet so this is a wild guess!
Forum: Plugins
In reply to: [Participants Database] Participant login/password resetSorry, I only posted a snippet of it, I do have the declaration there, but surely if the update query is inside an if clause that runs if record_id is false, then there isn’t a record_id to use in the update query. Maybe my brain is just overtired!
Thanks for the update 🙂
- This reply was modified 9 years, 2 months ago by Moogie17.
Forum: Plugins
In reply to: [Participants Database] Participant login/password resetThanks for the update, I’ve only just had time to try it out.
Sadly, it didn’t seem to work, but I think I can see why:
if ( ! is_admin() && ! $record_id ) { global $wpdb; $wpdb->update( Participants_Db::$participants_table, array('private_id' => Participants_Db::generate_pid() ), array('id' => $record_id) );For it to run, $record_id must be false, but then it’s trying to update the record with effectively no record ID. I changed the $record_id in the update to $post[‘id’] and now it works a treat, thank you 🙂
My company has now changed the goalposts on the project (argh, this always happens!!) and want certain pages of the site to only be available to certain participants (based on a field value). Is there a way I can check the session’s record ID in other theme templates? I’ve tried using
$record_id = Participants_Db::$session->get('record_id');which didn’t work. The below works, but if possible I’d prefer to pull it from the session as cookies are more easily tampered with.
$pid = PDb_Login_Session::get_cookie_value( 'pid', false ); $record_id = Participants_Db::get_participant_id( $pid );It would make a really nice addition to the Login addon (or as a new addon) to be able to specify on posts/pages that it should check against a PDB admin field for a certain value before displaying the page – it would take the plugin to a whole new level – but perhaps that’s not something you want to do, which is fair enough!
- This reply was modified 9 years, 2 months ago by Moogie17.