kingofmycastle
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] wc_print_notices() Output different on dev v staging.I have just resolved this myself so I thought I’d explain what I did in case anybody else had this issue. I am using the Classic Editor plugin and this could be a blocks v classic issue at the time I initially installed WooCommerce.
1. I went to WooCommerce / Status / Tools and cleared both transients as well as the template cache.
2. I use ACF fields to add text on a page and remove all the default HTML from the shop, basket, checkout and my account pages. I hadn’t removed the default HTML from the dev site for the checkout and account pages. (* note this is unlikely to have fixed this issue but just in case I have listed it here.)
Thank you for your reponse, it’s much appreciated.
I’ve changed the design so that the quantity area and the button only add items, with a ” X Items in Cart” area below to show any current order quantities.
I have built an AJAX shop page before using the methods you’ve described. I just thought there’d be a handy “remove item” shortcut once I discovered the /?add-to-cart URL method.Hi, I was about to get in touch but I clicked the “Recreate Database” button in the General Settings and this seems to have solved the problem.
Thanks,
John..
Forum: Plugins
In reply to: [Download Monitor] MD5 hashes. Do they obfuscate the URL?I’ve fixed the obfuscation by doing the following:
1. In the content-download.php file created in my theme I use this PHP to create the button and Base64 encode the url:
<?php $url = $dlm_download->get_the_download_link(); ?> <div class="download-button" data-url="<?php echo base64_encode($url); ?>">Download File</div>
2. Use Javascript to change the link on a click. (I added a Base64 js library to my site first which is where the Base64 variable comes from)
$('.download-section .download-button').on('click', function(e) { var encodedString = $(this).data('url'); var decodedString = Base64.decode(encodedString); e.preventDefault(); window.location.href = decodedString; });
Hope that helps somebody looking for a simple, if not actually secure, way of hiding file uploads between groups.
Forum: Plugins
In reply to: [Contact Form Clean and Simple] Disable "Confirm Email Address"Ah, neoh‘s code changes didn’t quite work for me. My new solution is to alter a couple of line in two files. We hide the input box, then tell the form to compare the same email field.
1. In /views/contact-form.view.php hide the confirm email address section using comment tags (<!– … –>) from line 45 to line 66.
2. In line 33 of class.cscf_contact.php change
$this->ConfirmEmail = filter_var($cscf['confirm-email'], FILTER_SANITIZE_EMAIL);
to
$this->ConfirmEmail = filter_var($cscf['email'], FILTER_SANITIZE_EMAIL);
Forum: Plugins
In reply to: [Contact Form Clean and Simple] Disable "Confirm Email Address"Just wanted to say thanks to neoh for the help in turning off the email confirm functionality.
Love the HTML this plugin produces. I’ll take my chances with any upgrades.
Forum: Fixing WordPress
In reply to: Subcategories listed incorrectly on Admin page for custom post typeHa, actually it’s still broken but acting completely differently, with them indented by heirarchy when not selected and appearing unindented when selected.
No idea why. Any thoughts?
Forum: Fixing WordPress
In reply to: Subcategories listed incorrectly on Admin page for custom post typeActually I may have a fix. I changed the register_taxonomy name to ‘publication_type’, changed the dash to an underline. Seems to have fixed this.
register_taxonomy('publication_type', 'publications', array(
Forum: Fixing WordPress
In reply to: Subcategories listed incorrectly on Admin page for custom post typeI’m having exactly the same issue (3.3.1).
On my Category page the categories are all indented correctly. On the actual edit page the Category box isn’t indented at all, until you click the parent and child and hit save. It’s very confusing.
Here’s my code in functions.php Does anything look strange here?
// Add Publication Categories add_action( 'init', 'create_publication_taxonomies'); function create_publication_taxonomies() { register_taxonomy('publication-type', 'publications', array( 'labels' => array( 'name' => _x( 'Publication Types', 'taxonomy general name' ), 'singular_name' => _x( 'Publication Types', 'taxonomy singular name' ), 'search_items' => __( 'Search Publication Types' ), 'all_items' => __( 'All Publication Types' ), 'edit_item' => __( 'Edit Publication Types' ), 'update_item' => __( 'Update Publication Types' ), 'add_new_item' => __( 'Add New Publication Type' ), 'new_item_name' => __( 'New Publication Type' ), 'menu_name' => __( 'Publication Types' ) ), 'public' => true, 'hierarchical' => true, 'show_in_nav_menus' => false, 'query_var' => true, )); }
Hi, thanks a lot for making these changes. My client demanded the ugly ‘share’ button pop-up thingy instead so I had to use another plugin.
But most of my clients should just want what your plugin offers so I’ll be using this in the future very soon I hope.
Good luck, and thanks again!
Just to add I solved this by changing the template in Settings / The Events Calendar / Template to ‘Deafult Events Template’
Just in case anybody has the same idea, don’t bother. It’s impossible to show next month’s calendar by changing the date variable.
Forum: Everything else WordPress
In reply to: Integration with Microsoft Dynamics CRMHa, I wish you could tell my client that ??
I’ve offered him a ton of open source solutions for this simple task. Unfortunately he’s putting his foot down.
Forum: Everything else WordPress
In reply to: Integration with Microsoft Dynamics CRMHi, I’ve had a similar request from a client. I don’t he think he understands ‘open source’. I can’t understand why he wants to use the CRM for a very small charity site either. But he’s requesting it anyway.
I disagree with Gabe Young though, the client just want to capture user data entered into forms and use this information for his own nefarious purposes.
Sminc, did you manage to embed the MS CRM form code directly into your WP site? And after the form was submitted is it easy to redirect the user to a WP-based ‘Thanks for your input’ page? I’d love to hear how it panned out.
Thanks.
Hi, you should be able to use all the tags that are listed in the codex under ‘Return Values’ here: https://codex.www.ads-software.com/Function_Reference/get_bookmarks
And here’s an example using table rows to display the links:
foreach ( $bookmarks as $bm ) { ?> <tr> <td><?php echo $bm->link_name; ?></td> <td><a href="<?php echo $bm->link_url; ?>" target="_blank"><?php echo $bm->link_url; ?></a></td> <td><?php echo $bm->link_description; ?></td> </tr> <?php } ?>