hafman
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Grow] Child Theme: Mobile menu does not workthat fixed it
Forum: Themes and Templates
In reply to: [Grow] Child Theme: Mobile menu does not workadd_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );}
Thanks Marcelo! Will give it a try
The folder disappeared after a short while. It seems this search-replace tool (a command line interface) has a ‘delete folder’command so it’s perfect for hackers!
There must be a way in to directly inject code into your database. Change all your passwords, move stuff, make it tough for them. Try shifting to another host if you can as there might be a vulnerability with yours. They can be quite evasive about security.
If you can, download the database and set up the site locally with MAMP or similar. Clean out the code carefully with the ‘Search & Replace’ wordpress plugin. Then move it to a reputable hosting company. Move towards having a clean data set to restore the site.
Or pay Sucuri or Wordfence to do all this. It starts to become pure economics after a while!
…and the answer is?
Please share it with the community.I’ve found that the hacker used an old dev site (under a sub domain) to get at the databases in my case. They used/are using a MySQL search and replace tool placed in wp-content/upgrade folder to inject ad code into the database.
The issue for me is described above, Table rate is not showing as an option in Shipping Zones, so i can’t apply it to any products.
I’ve gone ahead with the default Flat Rate now and fixed it now without using the table rate plugin but i’m going to leave some info here for others:
This is described in the following Woocommerce documentation
https://docs.woocommerce.com/document/flat-rate-shipping/What i did was click on “Flat Rate” and a settings window came up. Then i left the “Cost” field blank and entered values in the Shipping classes. There are some simple functions like [qty] etc that can be added to the amounts so the shipping can be adjusted as the amount of items is increased. These are described in the tooltips (?) too.
That was enough for my purposes. If i wanted to screw things down a lot further then i would use a table rate plugin. The Woocommerce shipping settings are a nightmare to get used to i must say, and i still don’t get the concept altogether.
By the way. I haven’t marked this [resolved] Because as far as my experience with this plugin goes, it isn’t.
Forum: Plugins
In reply to: [Table Rate Shipping for WooCommerce] Table Rate Does Not Appear in Drop downI have the same problem. How is this [Resolved]?
Forum: Plugins
In reply to: [Sharify Social Share Buttons] Twitter window popping up two timesI’ve just noticed the same behaviour on a site that uses sharify buttons
http://www.hastingsartsforum.co.uk/2016/classified/living-landscape/
Forum: Plugins
In reply to: [User Taxonomy & Directory] Errors when updating User in WP 4.4DOh, it’s working now. Forgot to add a taxonomy.
Setting as RESOLVED
Forum: Fixing WordPress
In reply to: bulk edit categories still does not workThe problem is in the interface, which is counter intuitive if it says “Bulk edit” and includes the categories in a list without mentioning any of those caveats. Apart from that i can’t think of an earthly reason why it won’t work programmatically. I have custom taxonomies running, they all come up in the mass edit panel and they all work as expected.
It is strange to see the same stumbling block 5 years down the road with WordPress but i suppose it could get overlooked. Maybe most bloggers or other users don’t want to switch categories for 30 posts or more and it’s not reported. In this instance it’s a large photo archive and it definitely needs that capability.
Anyway i’ve made enough hot air or bytes here, i’ll head off to feature requests…
Forum: Plugins
In reply to: [User Taxonomy & Directory] Some users not showing tagsI should add that the last example includes a few of my own variables for other items. the one that you need is
. $user_tag_content .Forum: Plugins
In reply to: [User Taxonomy & Directory] Some users not showing tagsThanks for fixing this so quickly Umeesh. Will add the review soon.
The code used is here for anyone that will find it useful.
<?php // this can go in functions.php or in the top of the template file /** * Fetch all the terms for the user and return a required HTML for the template * * @param $user_id * @param $taxonomy * * @return string */ function get_user_tag_list( $user_id, $taxonomy ) { //Get all the tags assigned to user for the queried taxonomy $user_tags = wp_get_object_terms( $user_id, $taxonomy->name ); $user_tag_content = ''; if ( ! is_wp_error( $user_tags ) && ! empty( $user_tags ) ) { //Store the url of each term in array $tag_list = array(); foreach ( $user_tags as $tag ) { $term_url = site_url() . '/' . $taxonomy->rewrite['slug'] . '/' . $tag->slug; $tag_list[] = sprintf( '<a href="%s">%s</a>', $term_url, ucfirst( $tag->name ) ); } //If we have tag list for the user if ( ! empty( $tag_list ) ) { $user_tag_content = '<div class="member-tags-list">' . implode( ' / ', $tag_list ) . '</div>'; } } return $user_tag_content; } ?>Thats the function, now call it in the templates
<?php // echo the tags in a list of users $taxonomy = get_taxonomy('work_types'); $user_tag_content = get_user_tag_list( $author_id, $taxonomy ); echo $user_tag_content; ?>This is a different setup for the archive if you are using the code from the plugin: template user-tags/templates/user-taxonomy-template.php
<?php // put the tags in the taxonomy archive loop (adapted from the plugin template) $user_tag_content = get_user_tag_list( $user_id, $taxonomy ); $c = ' <div class="artist-member"> <h4><a href="' . esc_url( get_author_posts_url( $user_id ) ) . '">' . get_the_author_meta( 'display_name', $user_id ) . '</a></h4> <div id="profile-pic" style="float:left; width:100px; height:100px; margin:0 10px 10px 0;"> <a href="' . get_author_posts_url( $user_id ) . '" title=""> <img src="' . $thumb . '" alt="" width="' . $width . '" height="' . $height . '" title="" /> </a> </div>' . $user_tag_content . ' <p>' . $trap . '</p> <hr style="border: 0; height: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.3);"></hr> </div>'; $template_content .= apply_filters( 'ut_tepmplate_content', $c, $user_id ); } echo $template_content; ?>Forum: Plugins
In reply to: [WP2Social Auto Publish] problemI got it working. The wrong Facebook page was selected under “Select facebook pages for auto publish”
Must have over looked it, Sorry!
Forum: Plugins
In reply to: [WP2Social Auto Publish] problemI have the same issue
/feed : Invalid OAuth access token signature.Would be handy to know what the ‘advanced’ settings in Facebook developer page are meant to be.