ainsworthstudio
Forum Replies Created
-
Forum: Localhost Installs
In reply to: http errorHi DionDesigns, just to clarify – my comment wasn’t spam, it was in according to the WordPress/Automattic creed, specifically: “I will communicate as much as possible”
Forum: Localhost Installs
In reply to: http errorHello.
These types of issues can be very frustrating. I’m sorry for the inconvenience.
Using MAMP is a great tool, and I recently upgraded to the PRO version which I would highly recommend when you can afford it. I also ran into a new program at WordPress Wordcamp called Local by Flywheel (https://local.getflywheel.com – more info here: https://deliciousbrains.com/xampp-mamp-local-dev/)
My gut reaction is maybe there is something restricting memory, try this:
Step One: Turn all plugins off
Does it work? Then turn each plugin on one at a time, otherwise…Step Two: Past this code in your wp-config.php file:
define( 'WP_MEMORY_LIMIT', '256M' );
Forum: Plugins
In reply to: [LoginWP (Formerly Peter's Login Redirect)] HI Peter! Great pluginPeter, is there a way to hook a function from a plugin into the logout link?
My goal: I’m using a plugin that creates a wishlist in the database. The wishlist plugin has a function of remove the list (or clearing the records from the database). I’m wanting it so that, if the user clicks logout, it will utilize that “remove from list” function and then clear their wishlist.Forum: Reviews
In reply to: [WP Content Copy Protection & No Right Click] good pluginI’m just wondering if this was resolved? Can a subscriber now right click when logged in?
Forum: Plugins
In reply to: [NextGEN Download Gallery] Adding a Download All Button on an Archive PageHey Ross, hope you’re well. I’m so very close on this.
I have figured out how to get most of the page working at this point, I really am just needing to somehow get this information to display:
<?php echo esc_attr($ngg_dlgallery_all_id); ?>
If I go into a post and grab the information straight from the html source, I get something like this:
<input type="hidden" name="nggDownloadAll" value="https://onlocation.com/wp-admin/admin-ajax.php?action=ngg-download-gallery-zip&all-id=eyJJRCI6ImNkODg2ZjU2M2M5MDA2MTYyOTkyOGQzMDIyOTE5ZTM2IiwiY29udGFpbmVyX2lkcyI6WyI0NDYyIl0sInJldHVybnMiOiJpbmNsdWRlZCIsInNvdXJjZSI6ImdhbGxlcmllcyJ9&download-all=1">
When I paste that into the “wish-list” or archives page I’m developing, the zip file works. In my code for the wish-list / archives page, the code looks like this:
<input type="hidden" name="nggDownloadAll" value="https://onlocation.com/wp-admin/admin-ajax.php?action=ngg-download-gallery-zip&all-id=<?php echo $nggDownloadAllUrl ?>&download-all=1">
Which gives me an error when I try to download all that states:
Warning: implode(): Invalid arguments passed in /home/onlocat1/public_html/wp-content/plugins/nextgen-download-gallery/includes/class.NextGENDownloadGallery.php on line 462
No images selected for downloadThe wish-list is made by using the GD-MyList plugin: https://www.ads-software.com/plugins/gd-mylist/
To get the post id in that plugin, I’ve gone into the plugins template and added:
foreach ($posts as $post) { $postId = $post->posts_id; }); $html = ''; $html = str_replace("##poster_ID##", $postId, $html); echo($html);
This allows me to echo out the posts_id by using the ##poster_ID## anywhere in the template of the plugin.
I tried then adding:
$ngg_dlgallery_all_id = NextGENDownloadGallery::getDownloadAllId($gallery);
and:
$html = str_replace("##dlgallery_all_ID##", $ngg_dlgallery_all_id, $html);
But then I receive an error on loading the wish-list / archives page that states:
Fatal error: Call to a member function get_entity() on a non-object in /home/onlocat1/public_html/wp-content/plugins/nextgen-download-gallery/includes/class.NextGENDownloadGallery.php on line 341Any help is greatly appreciated.
Forum: Plugins
In reply to: [NextGEN Download Gallery] Adding a Download All Button on an Archive PagePosting to your support forum. Thanks. Enjoy your dinner and cider. I’ll buy you a nice steak dinner and a case of cider when I solve this problem.
Forum: Plugins
In reply to: [NextGEN Download Gallery] Adding a Download All Button on an Archive Page@webaware – I’m so grateful for all your help. I’ve updated the plugin (as well as the NGG plugin) and have been working on this for a few hours now, but I can’t seem to get it to work.
I’m very new to php so I’ve even been trying to echo “hello world” in certain areas but it just won’t print it out on the page.
I’ll keep working on it but if there’s something you think I may be missing, I’m grateful for the help.
Cheers,
JoshI am having the same issue. I’m wanting to display breadcrumbs of a search but when I use get_the_terms() it will just duplicate or triplicate one of my taxonomies.
According to the facetious information, there is a ‘get_the_facetious_term_list()’ that will replace get_the_terms but I cannot seem to get it to work on my archives.php page.
Since it’s been 11 months since you posted, I’m wondering if you were able to figure this out?
Forum: Plugins
In reply to: [Facetious] How Do I Include "Tags" as a drop down menuI figured it out. I replaced ‘pt’ with ‘post_tag’ and it works.
Forum: Plugins
In reply to: [Facetious] Category organisationIt was!
According to this:
https://codex.www.ads-software.com/Template_Tags/wp_list_categoriesWe can now write this:
$terms = get_terms( $key, array(
‘hide_empty’ => false,
‘orderby’ => ‘ID’
) );And your code will display the category list by ID instead of alphabetical.
Forum: Plugins
In reply to: [Facetious] Category organisationIt seems like the code fix would be in the plugin file template.php line 179:
$terms = get_terms( $key, array(
‘hide_empty’ => true,
‘hierarchical’ => true
) );Forum: Plugins
In reply to: [Facetious] Category organisationI’ve been trying to figure something similar out. My categories for the faceted search are displaying in alphabetical order vs. heirarchal. I can’t figure out how to change that according to the plugin.
Here is the code:
<?php
do_action( ‘facetious’, array(
‘submit’ => ‘Go’,
‘fields’ => array(
‘s’,
‘category’,
‘city’,
‘feature’
)
) );
?>