teracomp
Forum Replies Created
-
Forum: Plugins
In reply to: [Code Snippets] Button Shortcode with Post VarsDisregard. Problem solved by creating a shortcode that produces a form with hidden variables.
Forum: Plugins
In reply to: [WP Post Expires] Intereferes with other plugin(s)Apparently there are issues with Download Monitor as well.
Forum: Plugins
In reply to: [WP Job Manager] Duplicate Job — Frontend — Job DashboardAs of version 1.25.0, Feature – Ability to duplicate listings from job dashboard.
I missed this announcement, so I’ll have to look at it in detail, but I suspect it does everything needed to duplicate the job listing. Look there first.
I will look at my code with the updated plugin soon, but not immediately.
Definitely would like to see your solution. We’re using the persistence add-on and are experiencing the same issue. Looking at the database, the repeated values are stored in a nice JSON string, but not retrieved when the user returns to the form. I suspect “persistence” doesn’t have a mechanism to parse the JSON and re-populate the fields.
Forum: Plugins
In reply to: [WP Job Manager] Duplicate Job — Frontend — Job DashboardNo idea what you mean by “break your galleries as well”
I haven’t had an issue with the code.Forum: Plugins
In reply to: [Download Monitor] Ninja Form Extension (premium $$) not working@truongvu,
I’m not the right person to contact…just a user. Suggest you post your issue here and the most excellent Plugin author will likely help you solve your problem.
-dpForum: Plugins
In reply to: [Download Monitor] Ninja Form Extension (premium $$) not workingTruongvu,
It’s all working now. Thanks anyway!
DavePerfect! That was the secret setting.
Thanks!Update: I’m using an Extension to Download Monitor called Page. This provides the a search capability, so it’s required given the number of downloads I will have.
Anyway, the add_filter method works when I call the download monitor shortcode on a page ([download id=NNN]), but it does not work on the results page.
Bottom line, I don’t think this is your issue, but I’ll leave this here while I wait on DLM’s response just in case you’ve seen this before.
Thanks for your time.
Forum: Plugins
In reply to: Add shortcode to custom post type excerptThis works:
function add_visitor_vote( $content ) { global $post; if ( $post->post_type == 'dlm_download' ) { $content .= do_shortcode('[valid_shortcode]'); } return $content; } add_filter( 'the_content', 'add_visitor_vote' );
But it doesn’t work with the shortcode I’m currently trying to use. Posted comment on that site.
Forum: Plugins
In reply to: [Download Monitor] Ninja Form Extension (premium $$) not workingI deactivated and reset everything and it suddenly appears to be working.
I’m not convinced, but if it works, that’s fine.
Forum: Plugins
In reply to: [WP Job Manager] Duplicate Job — Frontend — Job DashboardIt does indeed work. You’ll need to override the job-dashboard.php file to get the duplicate link. I put this code just after the switch() statement:
$actions['duplicate'] = array( 'label' => __( 'Duplicate', 'wp-job-manager' ), 'nonce' => true );
That should do it for you, thought it’s been a while since I looked at the code!
btw — here’s my cleaned up code for functions.php:
/** * add method to duplicate a job posting */ function duplicate_job() { $job_id = absint( $_REQUEST['job_id'] ); $dup = get_post( $job_id ); unset( $dup->ID ); unset( $dup->post_name ); $dup->post_title = $dup->post_title.' copy'; $dup->post_date = current_time( 'mysql' ); $dup->post_date_gmt = current_time( 'mysql', 1 ); // create the new post along with the post_meta $new_post_id = wp_insert_post( $dup ); // get the post_meta and update the dup post $dup_meta = get_post_meta( $job_id ); $dup_meta['_job_expires'] = array( calculate_job_expiry( $job_id ) ); foreach( $dup_meta as $key=>$val ) { add_post_meta( $new_post_id, $key, $val[0] ); } // taxonomies require their own handling $mytype = wp_get_post_terms( $job_id, 'job_listing_type' ); $mytypeid = array( $mytype[0]->term_id ); $myrole = wp_get_post_terms( $job_id, 'job_listing_category' ); $myroleid = array( $myrole[0]->term_id ); $mystates = wp_get_post_terms( $job_id, 'state' ); $arstates = array(); foreach( $mystates as $s ) { array_push( $arstates, $s->term_id ); } $myapply = wp_get_post_terms( $job_id, 'appoption' ); $arapply = array(); foreach( $myapply as $a ) { array_push( $arapply, $a->term_id ); } wp_set_post_terms( $new_post_id, $mytypeid, 'job_listing_type' ); wp_set_post_terms( $new_post_id, $myroleid, 'job_listing_category' ); wp_set_post_terms( $new_post_id, $arstates, 'state' ); wp_set_post_terms( $new_post_id, $arapply, 'appoption' ); } add_action( 'job_manager_job_dashboard_do_action_duplicate', 'duplicate_job' );
I’m pretty confident that disabling Seamless Donations will address the problem. I haven’t processed any donations, but as you suggested, the details should not work with both plugins active. What I’m saying in my review is simply not to install them side-by-side. For those looking at my site for advice, this is not likely to be an issue.
This looks like a solid plugin otherwise. Keep up the great work!Forum: Plugins
In reply to: [File Away] Enable StatisticsFair enough. Like I said, I’m new to this site. Just thought I missed a setting.
Thx
Forum: Plugins
In reply to: [File Away] Enable Statisticssorry…that didn’t work.
last lines in wp-config.php
require_once(ABSPATH . ‘wp-settings.php’);
error_reporting(0);no dice.
definitely works when Download Statistics is Disabled
definitely fails otherwise.