contemplate
Forum Replies Created
-
Forum: Plugins
In reply to: [iCal Feeds] Set End time with Custom Field?This could be implemented. @maximevalette what do you think?
Around line 254 add:
if (isset($_GET['enddatefield'])) { $post_end_date_field = $_GET['enddatefield']; }and later if this value is set use maybe ad this above the $modified_time declaration:
if( isset($post_end_date_field) ){ $end_time = date( 'Ymd\THis', strtotime( get_post_meta( $post->ID, $post_end_date_field, true ) )); }I haven’t tested this but it should work.
Then all you would do is specific the custom field in the post which is the end date like so:
http://somedomain.com/?ical&datefield=event_date&enddatefield=end_event_dateForum: Plugins
In reply to: [Front End PM] fep_shortcode_new_message_form TO input glitchI had tried that as well and it wasn’t working. Doesn’t the fep_get_userdata call need some variables defined like it does in the declarations below it?
- This reply was modified 8 years, 8 months ago by contemplate.
@dimaniko here is one other slight addition for adding the Custom CSS styles that Visual Composer creates. They should already be printed in the wp_head if that is enabled in the settings but in case it is disabled or if you want to add this to the DK PDF Generator since the wp_head is not called for every loaded page/post try adding this in the loop:
$shortcodes_custom_css = get_post_meta( $post->ID, '_wpb_shortcodes_custom_css', true ); $vc_enabled = get_post_meta($post->ID, '_wpb_vc_js_status', true); if ( ! empty( $shortcodes_custom_css ) && $vc_enabled ) { echo '<style type="text/css" data-type="vc_shortcodes-custom-css-'.$id.'">'; echo $shortcodes_custom_css; echo '</style>'; }Hi everyone. I’m returning to this because I found a simpler way of accomplishing this without having to paste in a ton of CSS code. I’ve included the fix from @anshuln90 above.
File path : plugins/dk-pdf/templates/dkpdf-index.php
replace this:
<link type="text/css" rel="stylesheet" href="<?php echo get_bloginfo( 'stylesheet_url' ); ?>" media="all" />with this:
‘
<?php
global $post;
$vc_enabled = get_post_meta($post->ID, ‘_wpb_vc_js_status’, true);
if($vc_enabled){
echo ‘<link type=”text/css” rel=”stylesheet” id=”js_composer_front-css” href=”‘. vc_asset_url( ‘css/js_composer.min.css’ ) .'” media=”all” />’;
}
?>
<link type=”text/css” rel=”stylesheet” href=”<?php echo get_bloginfo( ‘stylesheet_url’ ); ?>” media=”all” />
‘
this adds the the VC stylesheet if the page has it enabled.then replace this:
<div class="dkpdf-content"> <?php the_content(); ?> </div>with this:
<div class="dkpdf-content vc_non_responsive"> <?php WPBMap::addAllMappedShortcodes(); echo apply_filters('the_content', $post->post_content); ?> </div>the vc_non_responsive class tells VC to ignore the responsive commands so that columns aren’t stacked in the print view.
Then add this custom CSS in the Custom CSS settings or if you have a @media print query in your child theme CSS. You may not have to do this but for me it fixes some width rendering issues on columns with mPDF.
/*------ Visual Composer Styles ------------------------------*/ .vc_non_responsive .vc_row .vc_col-sm-1, .vc_non_responsive .vc_row .vc_col-sm-10, .vc_non_responsive .vc_row .vc_col-sm-11, .vc_non_responsive .vc_row .vc_col-sm-12, .vc_non_responsive .vc_row .vc_col-sm-2, .vc_non_responsive .vc_row .vc_col-sm-3, .vc_non_responsive .vc_row .vc_col-sm-4, .vc_non_responsive .vc_row .vc_col-sm-5, .vc_non_responsive .vc_row .vc_col-sm-6, .vc_non_responsive .vc_row .vc_col-sm-7, .vc_non_responsive .vc_row .vc_col-sm-8, .vc_non_responsive .vc_row .vc_col-sm-9 { padding-right: -0.000001px !important; padding-left: -0.000001px !important; } .vc_non_responsive .vc_row .vc_column-inner { padding-right: 15px !important; padding-left: 15px !important; }Hope this helps.
Forum: Plugins
In reply to: [Content Expiration & Redirect] Redirect not workingNot working for me either. After looking at the code I suspect the issue is the reliance on the $_SESSION variable which isn’t supported by all servers. If the plugin could be rewritten to implement a WP_SESSION approach like the link below it would be great. I don’t have the time for this unfortunately and it doesn’t appear the developer has been here in a while … but posting this just in case.
https://pippinsplugins.com/storing-session-data-in-wordpress-without-_session/
Thanks for the fix @anshuln90
All my VC layouts however were collapsed into a single column like viewing on mobile b/c mPDF doesn’t render styles in @media it seems. So after hours of testing I added the following styles to the PDF CSS which seem to be working so far:
/* Visual Composer Styles */ .container-full { width: 100%; } .container,.container-full { margin: 0px 0px 0px 0px !important; padding: 0px !important; } .vc_column-inner { padding: 0 15px 0 15px; } .vc_col-lg-1,.vc_col-lg-10,.vc_col-lg-11,.vc_col-lg-12,.vc_col-lg-2,.vc_col-lg-3,.vc_col-lg-4,.vc_col-lg-5,.vc_col-lg-6,.vc_col-lg-7,.vc_col-lg-8,.vc_col-lg-9,.vc_col-md-1,.vc_col-md-10,.vc_col-md-11,.vc_col-md-12,.vc_col-md-2,.vc_col-md-3,.vc_col-md-4,.vc_col-md-5,.vc_col-md-6,.vc_col-md-7,.vc_col-md-8,.vc_col-md-9,.vc_col-sm-1,.vc_col-sm-10,.vc_col-sm-11,.vc_col-sm-12,.vc_col-sm-2,.vc_col-sm-3,.vc_col-sm-4,.vc_col-sm-5,.vc_col-sm-6,.vc_col-sm-7,.vc_col-sm-8,.vc_col-sm-9,.vc_col-xs-1,.vc_col-xs-10,.vc_col-xs-11, .vc_col-xs-12,.vc_col-xs-2,.vc_col-xs-3,.vc_col-xs-4,.vc_col-xs-5,.vc_col-xs-6,.vc_col-xs-7,.vc_col-xs-8,.vc_col-xs-9{position:relative;min-height:1px;padding-left:0px;padding-right:0px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box} .vc_col-xs-1,.vc_col-xs-10,.vc_col-xs-11,.vc_col-xs-12,.vc_col-xs-2,.vc_col-xs-3,.vc_col-xs-4,.vc_col-xs-5,.vc_col-xs-6,.vc_col-xs-7,.vc_col-xs-8,.vc_col-xs-9{float:left} .vc_col-xs-11{width:91.66666667%} .vc_col-xs-10{width:83.33333333%} .vc_col-xs-9{width:75%} .vc_col-xs-8{width:66.66666667%} .vc_col-xs-7{width:58.33333333%} .vc_col-xs-6{width:50%} .vc_col-xs-5{width:41.66666667%} .vc_col-xs-4{width:33.33333333%} .vc_col-xs-3{width:25%} .vc_col-xs-2{width:16.66666667%} .vc_col-xs-1{width:8.33333333%} .vc_col-xs-pull-12{right:100%} .vc_col-xs-pull-11{right:91.66666667%} .vc_col-xs-pull-10{right:83.33333333%} .vc_col-xs-pull-9{right:75%} .vc_col-xs-pull-8{right:66.66666667%} .vc_col-xs-pull-7{right:58.33333333%} .vc_col-xs-pull-6{right:50%} .vc_col-xs-pull-5{right:41.66666667%} .vc_col-xs-pull-4{right:33.33333333%} .vc_col-xs-pull-3{right:25%} .vc_col-xs-pull-2{right:16.66666667%} .vc_col-xs-pull-1{right:8.33333333%} .vc_col-xs-pull-0{right:auto} .vc_col-xs-push-12{left:100%} .vc_col-xs-push-11{left:91.66666667%} .vc_col-xs-push-10{left:83.33333333%} .vc_col-xs-push-9{left:75%} .vc_col-xs-push-8{left:66.66666667%} .vc_col-xs-push-7{left:58.33333333%} .vc_col-xs-push-6{left:50%} .vc_col-xs-push-5{left:41.66666667%} .vc_col-xs-push-4{left:33.33333333%} .vc_col-xs-push-3{left:25%} .vc_col-xs-push-2{left:16.66666667%} .vc_col-xs-push-1{left:8.33333333%} .vc_col-xs-push-0{left:auto} .vc_col-xs-offset-12{margin-left:100%} .vc_col-xs-offset-11{margin-left:91.66666667%} .vc_col-xs-offset-10{margin-left:83.33333333%} .vc_col-xs-offset-9{margin-left:75%} .vc_col-xs-offset-8{margin-left:66.66666667%} .vc_col-xs-offset-7{margin-left:58.33333333%} .vc_col-xs-offset-6{margin-left:50%} .vc_col-xs-offset-5{margin-left:41.66666667%} .vc_col-xs-offset-4{margin-left:33.33333333%} .vc_col-xs-offset-3{margin-left:25%} .vc_col-xs-offset-2{margin-left:16.66666667%} .vc_col-xs-offset-1{margin-left:8.33333333%} .vc_col-xs-offset-0{margin-left:0} .vc_col-sm-1,.vc_col-sm-10,.vc_col-sm-11,.vc_col-sm-12,.vc_col-sm-2,.vc_col-sm-3,.vc_col-sm-4,.vc_col-sm-5,.vc_col-sm-6,.vc_col-sm-7,.vc_col-sm-8,.vc_col-sm-9{float:left} .vc_col-sm-12{width:100%} .vc_col-sm-11{width:91.66666667%} .vc_col-sm-10{width:83.33333333%} .vc_col-sm-9{width:75%} .vc_col-sm-8{width:66.66666667%} .vc_col-sm-7{width:58.33333333%} .vc_col-sm-6{width:50%} .vc_col-sm-5{width:41.66666667%} .vc_col-sm-4{width:33.33333333%} .vc_col-sm-3{width:25%} .vc_col-sm-2{width:16.66666667%} .vc_col-sm-1{width:8.33333333%} .vc_col-sm-pull-12{right:100%} .vc_col-sm-pull-11{right:91.66666667%} .vc_col-sm-pull-10{right:83.33333333%} .vc_col-sm-pull-9{right:75%} .vc_col-sm-pull-8{right:66.66666667%} .vc_col-sm-pull-7{right:58.33333333%} .vc_col-sm-pull-6{right:50%} .vc_col-sm-pull-5{right:41.66666667%} .vc_col-sm-pull-4{right:33.33333333%} .vc_col-sm-pull-3{right:25%} .vc_col-sm-pull-2{right:16.66666667%} .vc_col-sm-pull-1{right:8.33333333%} .vc_col-sm-pull-0{right:auto} .vc_col-sm-push-12{left:100%} .vc_col-sm-push-11{left:91.66666667%} .vc_col-sm-push-10{left:83.33333333%} .vc_col-sm-push-9{left:75%} .vc_col-sm-push-8{left:66.66666667%} .vc_col-sm-push-7{left:58.33333333%} .vc_col-sm-push-6{left:50%} .vc_col-sm-push-5{left:41.66666667%} .vc_col-sm-push-4{left:33.33333333%} .vc_col-sm-push-3{left:25%} .vc_col-sm-push-2{left:16.66666667%} .vc_col-sm-push-1{left:8.33333333%} .vc_col-sm-push-0{left:auto} .vc_col-sm-offset-12{margin-left:100%} .vc_col-sm-offset-11{margin-left:91.66666667%} .vc_col-sm-offset-10{margin-left:83.33333333%} .vc_col-sm-offset-9{margin-left:75%} .vc_col-sm-offset-8{margin-left:66.66666667%} .vc_col-sm-offset-7{margin-left:58.33333333%} .vc_col-sm-offset-6{margin-left:50%} .vc_col-sm-offset-5{margin-left:41.66666667%} .vc_col-sm-offset-4{margin-left:33.33333333%} .vc_col-sm-offset-3{margin-left:25%} .vc_col-sm-offset-2{margin-left:16.66666667%} .vc_col-sm-offset-1{margin-left:8.33333333%} .vc_col-sm-offset-0{margin-left:0} .vc_col-md-1,.vc_col-md-10,.vc_col-md-11,.vc_col-md-12,.vc_col-md-2,.vc_col-md-3,.vc_col-md-4,.vc_col-md-5,.vc_col-md-6,.vc_col-md-7,.vc_col-md-8,.vc_col-md-9{float:left} .vc_col-md-12{width:100%} .vc_col-md-11{width:91.66666667%} .vc_col-md-10{width:83.33333333%} .vc_col-md-9{width:75%} .vc_col-md-8{width:66.66666667%} .vc_col-md-7{width:58.33333333%} .vc_col-md-6{width:50%} .vc_col-md-5{width:41.66666667%} .vc_col-md-4{width:33.33333333%} .vc_col-md-3{width:25%} .vc_col-md-2{width:16.66666667%} .vc_col-md-1{width:8.33333333%} .vc_col-md-pull-12{right:100%} .vc_col-md-pull-11{right:91.66666667%} .vc_col-md-pull-10{right:83.33333333%} .vc_col-md-pull-9{right:75%} .vc_col-md-pull-8{right:66.66666667%} .vc_col-md-pull-7{right:58.33333333%} .vc_col-md-pull-6{right:50%} .vc_col-md-pull-5{right:41.66666667%} .vc_col-md-pull-4{right:33.33333333%} .vc_col-md-pull-3{right:25%} .vc_col-md-pull-2{right:16.66666667%} .vc_col-md-pull-1{right:8.33333333%} .vc_col-md-pull-0{right:auto} .vc_col-md-push-12{left:100%} .vc_col-md-push-11{left:91.66666667%} .vc_col-md-push-10{left:83.33333333%} .vc_col-md-push-9{left:75%} .vc_col-md-push-8{left:66.66666667%} .vc_col-md-push-7{left:58.33333333%} .vc_col-md-push-6{left:50%} .vc_col-md-push-5{left:41.66666667%} .vc_col-md-push-4{left:33.33333333%} .vc_col-md-push-3{left:25%} .vc_col-md-push-2{left:16.66666667%} .vc_col-md-push-1{left:8.33333333%} .vc_col-md-push-0{left:auto} .vc_col-md-offset-12{margin-left:100%} .vc_col-md-offset-11{margin-left:91.66666667%} .vc_col-md-offset-10{margin-left:83.33333333%} .vc_col-md-offset-9{margin-left:75%} .vc_col-md-offset-8{margin-left:66.66666667%} .vc_col-md-offset-7{margin-left:58.33333333%} .vc_col-md-offset-6{margin-left:50%} .vc_col-md-offset-5{margin-left:41.66666667%} .vc_col-md-offset-4{margin-left:33.33333333%} .vc_col-md-offset-3{margin-left:25%} .vc_col-md-offset-2{margin-left:16.66666667%} .vc_col-md-offset-1{margin-left:8.33333333%} .vc_col-md-offset-0{margin-left:0} .vc_hidden-lg{display:none!important} .vc_col-lg-1,.vc_col-lg-10,.vc_col-lg-11,.vc_col-lg-12,.vc_col-lg-2,.vc_col-lg-3,.vc_col-lg-4,.vc_col-lg-5,.vc_col-lg-6,.vc_col-lg-7,.vc_col-lg-8,.vc_col-lg-9{float:left} .vc_col-lg-12{width:100%} .vc_col-lg-11{width:91.66666667%} .vc_col-lg-10{width:83.33333333%} .vc_col-lg-9{width:75%} .vc_col-lg-8{width:66.66666667%} .vc_col-lg-7{width:58.33333333%} .vc_col-lg-6{width:50%} .vc_col-lg-5{width:41.66666667%} .vc_col-lg-4{width:33.33333333%} .vc_col-lg-3{width:25%} .vc_col-lg-2{width:16.66666667%} .vc_col-lg-1{width:8.33333333%} .vc_col-lg-pull-12{right:100%} .vc_col-lg-pull-11{right:91.66666667%} .vc_col-lg-pull-10{right:83.33333333%} .vc_col-lg-pull-9{right:75%} .vc_col-lg-pull-8{right:66.66666667%} .vc_col-lg-pull-7{right:58.33333333%} .vc_col-lg-pull-6{right:50%} .vc_col-lg-pull-5{right:41.66666667%} .vc_col-lg-pull-4{right:33.33333333%} .vc_col-lg-pull-3{right:25%} .vc_col-lg-pull-2{right:16.66666667%} .vc_col-lg-pull-1{right:8.33333333%} .vc_col-lg-pull-0{right:auto} .vc_col-lg-push-12{left:100%} .vc_col-lg-push-11{left:91.66666667%} .vc_col-lg-push-10{left:83.33333333%} .vc_col-lg-push-9{left:75%} .vc_col-lg-push-8{left:66.66666667%} .vc_col-lg-push-7{left:58.33333333%} .vc_col-lg-push-6{left:50%} .vc_col-lg-push-5{left:41.66666667%} .vc_col-lg-push-4{left:33.33333333%} .vc_col-lg-push-3{left:25%} .vc_col-lg-push-2{left:16.66666667%} .vc_col-lg-push-1{left:8.33333333%} .vc_col-lg-push-0{left:auto} .vc_col-lg-offset-12{margin-left:100%} .vc_col-lg-offset-11{margin-left:91.66666667%} .vc_col-lg-offset-10{margin-left:83.33333333%} .vc_col-lg-offset-9{margin-left:75%} .vc_col-lg-offset-8{margin-left:66.66666667%} .vc_col-lg-offset-7{margin-left:58.33333333%} .vc_col-lg-offset-6{margin-left:50%} .vc_col-lg-offset-5{margin-left:41.66666667%} .vc_col-lg-offset-4{margin-left:33.33333333%} .vc_col-lg-offset-3{margin-left:25%} .vc_col-lg-offset-2{margin-left:16.66666667%} .vc_col-lg-offset-1{margin-left:8.33333333%} .vc_col-lg-offset-0{margin-left:0} .vc_el-clearfix-lg{clear:both}I’d be curious if this works for others.
Forum: Plugins
In reply to: [Custom Content Shortcode] getting worriedsame here.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] Checkout – Expiry Date ‘/’ RequirementI have the same issue as well. The actual file needed to edit is on the WooCommerce plugin. This is a temporary hack:
woocommerce/includes/gateways/class-wc-payment-gateway-cc.php
on line 65 remove this from the input field
type="tel"Then the full iphone keyboard will be loaded
Forum: Plugins
In reply to: [Header Footer Code Manager] Feature Request: All Pages / All PostsScratch that the products are listed under the “Specific Posts” dropdown.
Forum: Plugins
In reply to: [Header Footer Code Manager] Feature Request: All Pages / All Posts+1 for needing this as well. We need certain scripts for individual WooCommerce products.
Same here. The rgba CSS function isn’t printing the opacity variable.
Forum: Plugins
In reply to: [WooCommerce] sensei-WC throwing fatal error after updateI had the same issue. Created a patch here:
https://github.com/Automattic/sensei/issues/1789Forum: Plugins
In reply to: [WooCommerce Email Validation] Does not work with WooCommerce 3.0Same here. Adding myself to this thread.
We received the same message from AWeber as well today. It looks like from their paid support forum they are aware of this and making a fix.
Forum: Plugins
In reply to: [Subscribe To Comments Reloaded] 404 On Subscribe Only ActionSame issue. When a reader clicks on Subscribe only and gets 404 error.