Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter tbeerejo

    (@tbeerejo)

    I’ve tried that, and still the revisions option does not show for pages. Only for posts?

    Thread Starter tbeerejo

    (@tbeerejo)

    But this makes no sense? It only happened after I installed the 4.7 update? It is happening on all of my sites now that use your plug in?

    Ok I figured something out. If you do not have minify turned on in w3 Total Cache, it seems to work with the 4.7 upgrade.

    I am having this same problem with the 4.7 upgrade

    oddly not all of them that have W3 Total Cache are affected.

    I am having the same problem. I just get a blank page when I go to log in on several of my sites. I guess I have to roll all of them back?

    • This reply was modified 8 years, 3 months ago by tbeerejo.
    Thread Starter tbeerejo

    (@tbeerejo)

    Unfortunately this is not my site, its one I’d been asked to work on. The site is custom, and the project posts are using a custom page template that loads the attachments from Attachments pro. (per the code above) below the content. I can use your plugin fine on the page template if I put it in the content, but the problem is the attachments are loading below the <?php the_content(); ?> Basically the shortcode has to go around this entire block of code

    <section class="resources">
    
    	<h3>Project files</h3>
    
    <?php if (empty($files)) { ?>
    <p>No files found</p>
    <?php } else {
    	$byCat = array();
    
    	foreach($files as $file) {
    		$f = (object) $file;
    		$category = $f->fields[2];
    		if (empty($category)) $category = 'Uncategorized';
    
    		$byCat[$category][] = $f;
    	} 	
    
    	foreach($byCat as $c => $files) { ?>
    	<h4><?= $c ?></h4>
    	<ul>
    <?php		foreach ($files as $f) { ?>
    		<li><a class="<?= $f->mime ?>" href="<?= $f->url ?>" title="<?= $f->name ?>"><?= $f->name ?></a></li>
    <?php 		} ?>
    	</ul>
    <?php }
    }
    
    ?>
    <?php } ?>
    </section>

    I really appreciate you taking the time to respond to me. I hope this explains it better. Thank you so much.

    Thread Starter tbeerejo

    (@tbeerejo)

    That is part of my problem. My client wants the password to be unique on each page, so I don’t want to to add it into the page code. Thanks for your help I’m not sure this is going to work. Ill see if the client is ok with just one password I guess.

    Thread Starter tbeerejo

    (@tbeerejo)

    when I replace

    <ul>
    <?php		foreach ($files as $f) { ?>
    		<li><a class="<?= $f->mime ?>" href="<?= $f->url ?>" title="<?= $f->name ?>"><?= $f->name ?></a></li>
    <?php 		} ?>
    	</ul>

    with

    <?php
    	$protected_content = "<ul>";
    	foreach ($files as $f) {
    		$protected_content .= "<li><a class='" . $f->mime . "' href='" . $f->url . "' title='" . $f->name . '">" . $f->name . "</a></li>";
    	}
    	$protected_content .= "</ul>";
     	echo do_shortcode('[content_protector]' . $protected_content .'[/content_protector]');
    ?>

    it gives me a syntax error on this line
    echo do_shortcode('[content_protector]' . $protected_content .'[/content_protector]');

    Thread Starter tbeerejo

    (@tbeerejo)

    Thanks – I will try it. However how will I add the password into it? By putting the shortcode with the password in the content area of the post?

    Thread Starter tbeerejo

    (@tbeerejo)

    Hi – sorry I’m not much of a coder. Here is an excerpt from the template. I am putting the opening code with the password in the content – eg [content_protector password=”testing”] and then wanted to add the closing tag at the end of the <section class=”resources”> but the plugin is automatically closing the [content_protector password=”testing”] right before the section even though I’ve tried to add it to the below page code? I’m not sure how to use the reference that you are showing me…..

    <section>
    	<article>
    
    <?php if ( have_posts() ) while ( have_posts() ) { the_post(); 
    
    	$ap = new AttachmentsPro();
    
    	// arguments for our first instance of Attachments
    	$args   = array(
    		'post_id' 	=> $post->ID,
    	    'instance'  => 'projectfiles',
    	    'details'   => true
    	);
    
    	$files = $ap->get_attachments($args);
    ?>
    
    	<h1><?php the_title(); ?></h1>
    	<dl>
    		<dt>Location:</dt><dd><?= get_post_meta($post->ID, 'project-location', true) ?></dd>
    		<dt>Status:</dt><dd><?= get_post_meta($post->ID, 'project-status', true) ?></dd>
    	</dl>
    	<?php the_content(); ?>
    
    <?php } ?> 
    
    	</article>
    </section>
    
    <section class="resources">
    
    	<h3>Project files</h3>
    
    <?php if (empty($files)) { ?>
    <p>No files found</p>
    <?php } else {
    	$byCat = array();
    
    	foreach($files as $file) {
    		$f = (object) $file;
    		$category = $f->fields[2];
    		if (empty($category)) $category = 'Uncategorized';
    
    		$byCat[$category][] = $f;
    	} 	
    
    	foreach($byCat as $c => $files) { ?>
    	<h4><?= $c ?></h4>
    	<ul>
    <?php		foreach ($files as $f) { ?>
    		<li><a class="<?= $f->mime ?>" href="<?= $f->url ?>" title="<?= $f->name ?>"><?= $f->name ?></a></li>
    <?php 		} ?>
    	</ul>
    <?php }
    }
    
    ?>
    <?php echo do_shortcode('[/content_protector]'); ?>
    
    </section>
    
    <?php get_footer(); ?>
    Thread Starter tbeerejo

    (@tbeerejo)

    Hi – sorry I’m not much of a coder. Here is an excerpt from the template. I am putting the opening code with the password in the content – eg [content_protector password=”testing”] and then wanted to add the closing tag at the end of the <section class=”resources”> but the plugin is automatically closing the [content_protector password=”testing”] right before the section even though I’ve tried to add it to the below page code? I’m not sure how to use the reference that you are showing me…..

    <section>
    	<article>
    
    <?php if ( have_posts() ) while ( have_posts() ) { the_post(); 
    
    	$ap = new AttachmentsPro();
    
    	// arguments for our first instance of Attachments
    	$args   = array(
    		'post_id' 	=> $post->ID,
    	    'instance'  => 'projectfiles',
    	    'details'   => true
    	);
    
    	$files = $ap->get_attachments($args);
    ?>
    
    // In case there is opening and closing shortcode.
    
    	<h1><?php the_title(); ?></h1>
    	<dl>
    		<dt>Location:</dt><dd><?= get_post_meta($post->ID, 'project-location', true) ?></dd>
    		<dt>Status:</dt><dd><?= get_post_meta($post->ID, 'project-status', true) ?></dd>
    	</dl>
    	<?php the_content(); ?>
    
    <?php } ?> 
    
    	</article>
    </section>
    
    <section class="resources">
    
    	<h3>Project files</h3>
    
    <?php if (empty($files)) { ?>
    <p>No files found</p>
    <?php } else {
    	$byCat = array();
    
    	foreach($files as $file) {
    		$f = (object) $file;
    		$category = $f->fields[2];
    		if (empty($category)) $category = 'Uncategorized';
    
    		$byCat[$category][] = $f;
    	} 	
    
    	foreach($byCat as $c => $files) { ?>
    	<h4><?= $c ?></h4>
    	<ul>
    <?php		foreach ($files as $f) { ?>
    		<li><a class="<?= $f->mime ?>" href="<?= $f->url ?>" title="<?= $f->name ?>"><?= $f->name ?></a></li>
    <?php 		} ?>
    	</ul>
    <?php }
    }
    
    ?>
    <?php echo do_shortcode('[/content_protector]'); ?>
    
    </section>
    
    <?php get_footer(); ?>

    Hello – none of my contact form 7 forms work on this site anymore. I have tried installing wp mail stmp plugin and can send emails through it. I have followed the instructions on this post to try and resolve.
    https://angstrey.com/index.php/2009/07/20/contact-form-7s-failed-to-send-your-message-error/

    When I try to use one of the forms, nothing happens. No grey spinning ball, nothing the form just sits. I am using WordPress 3.6 and the plugin is at version 3.5.1

    The form is here

    https://www.destinationsnow.com/company/references/submit-your-testimonial/

    HELP!!

Viewing 13 replies - 1 through 13 (of 13 total)