Forum Replies Created

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

    (@chillstarr)

    Hi @akojif

    Are these the settings that could be causing it?

    Doesn’t look like image pasting is going to work. Here’s what I have in the Fields section of Strong Testimonials settings:

    Dropdown: [automatic excerpt]
    Dropdown: [custom length] the first [75] words

    Add a Read more link to Dropdown: [expand content in place]

    Dropdown: [with an ellipsis]

    with link text to read more [Read more]

    and link text to read less [enter a phrase]

    Show html content is unchecked

    I probably was trying different settings while I was trying to get this to work originally and not sure what they were on by default.

    Any help would be great!

    • This reply was modified 4 months ago by chillstarr.
    chillstarr

    (@chillstarr)

    Thanks so much @akojif

    I have applied your code and can confirm that it’s working.

    There are still a few testimonials where the text is truncated without a Read more link, others with truncated text where there is a Read more link, but clicking on it doesn’t do anything and others where there is a Read more link that doesn’t need to be there as all of the text is displayed. But they are the exception – looks like the problem testimonials mostly have a similar character count of slightly more than the cutoff.

    However, this could be a caching issue (the site doesn’t have a caching plugin and I’ve put Cloudflare into development mode, so I don’t think so), and that may clear up over time, but as is now it’s working so much better than it was before, so I thank you very much for your time and sharing your code here.

    • This reply was modified 4 months ago by chillstarr.

    Any update on this issue?

    I am also seeing the same problem with 3.1.11, with everything else at latest versions. It’s making the testimonials look very unprofessional.

    Can you at least recommend a workaround until it’s resolved?

    Thanks

    I think there should be some more/ better examples in the GUI’s help.

    At the moment it gives the examples:
    cache/config/master.php
    somedirectory
    Which doesn’t give us too much to go on.

    I’m on a Linux/ Apache server and In the file change detected emails, it gives complete filesystem paths e.g:
    /home/username/domain.com/wp-content/aiowps_backups/index.php

    But if you add:
    /home/username/domain.com/wp-content/aiowps_backups
    it doesn’t ignore that directory.

    I think I’ve finally got this working by using paths in this format:
    wp-content/aiowps_backups
    (without a slash at the start or end)

    HTH

    • This reply was modified 1 year, 9 months ago by chillstarr. Reason: Missed word

    New user here- stripe works fine with Paypal disabled, as soon as I tick/check the “Enable PayPal on this form:” and submit the initial CF7 form, I’m redirected to the PPal checkout page.
    I have [select menu-222 “Pay with PayPal|paypal” “Pay with Stripe|stripe”] in the Gateway Code: field.
    Unlike the test above, I don’t even see the option to choose between stripe/PPal.

    Great plugin. Thanks for all your hard work donncha ??

    It would be great if there was a way to only clear the cache of certain pages. That way if a change has been made to the content of a single page, for example, we don’t have to clear the complete cache.

    I wish someone would update the Template Hierarchy page image.
    I’ve been referring to that for years and only today discovered that home.php no longer works.
    As biralucena kindly mentions above, front-page.php seems to have taken home.php’s place.

    chillstarr

    (@chillstarr)

    I agree, this is really annoying for many layouts. It has been breaking mine all day.
    I found this which is simple & works a treat:
    https://www.web-strategy.jp/wp_plugin/ps_disable_auto_formatting/

    Thanks for explaining- I almost get it ??

    And it works an absolute treat. Many thanks to you Alan.

    Wow- thanks muchly. Really appreciated. Hope this formats OK…

    <?php
    	$folder = '.';
    
        $extList = array();
    	$extList['gif'] = 'image/gif';
    	$extList['jpg'] = 'image/jpeg';
    	$extList['jpeg'] = 'image/jpeg';
    	$extList['png'] = 'image/png';
    
    $img = null;
    
    if (substr($folder,-1) != '/') {
    	$folder = $folder.'/';
    }
    
    if (isset($_GET['img'])) {
    	$imageInfo = pathinfo($_GET['img']);
    	if (
    	    isset( $extList[ strtolower( $imageInfo['extension'] ) ] ) &&
            file_exists( $folder.$imageInfo['basename'] )
        ) {
    		$img = $folder.$imageInfo['basename'];
    	}
    } else {
    	$fileList = array();
    	$handle = opendir($folder);
    	while ( false !== ( $file = readdir($handle) ) ) {
    		$file_info = pathinfo($file);
    		if (
    		    isset( $extList[ strtolower( $file_info['extension'] ) ] )
    		) {
    			$fileList[] = $file;
    		}
    	}
    	closedir($handle);
    
    	if (count($fileList) > 0) {
    		$imageNumber = time() % count($fileList);
    		$img = $folder.$fileList[$imageNumber];
    	}
    }
    
    if ($img!=null) {
    	$imageInfo = pathinfo($img);
    	$contentType = 'Content-type: '.$extList[ $imageInfo['extension'] ];
    	header ($contentType);
    	readfile($img);
    } else {
    	if ( function_exists('imagecreate') ) {
    		header ("Content-type: image/png");
    		$im = @imagecreate (100, 100)
    		    or die ("Cannot initialize new GD image stream");
    		$background_color = imagecolorallocate ($im, 255, 255, 255);
    		$text_color = imagecolorallocate ($im, 0,0,0);
    		imagestring ($im, 2, 5, 5,  "IMAGE ERROR", $text_color);
    		imagepng ($im);
    		imagedestroy($im);
    	}
    }
    
    ?>

    Thanks, I’ll have a play around with that code, but don’t think I’ve got the skills to do what I need.

    The reason the resized files can’t be there is that there’s a PHP script which chooses an image at random from any of the JPEGs that are in that folder for use as a header graphic.

    I do want the normal thumbnail creation elsewhere, just not in that folder. I guess that is a pretty unusual request and can see why you wouldn’t be interested in adding the feature ??

    Looks like I’ll have to manually upload the images into the right folder. Ah well, was worth a try.

    Thanks anyway

    Excellent-

    That worked a treat, thanks a lot!

    The error page didn’t show again once on the dev version & having made the above edits.

    Now I’ve discovered another problem- WP automatically creates and dumps its default set of sized images in the same folder which pretty much screws up what I’m trying to do as I only want the original file to be in the special headers folder I created.

    Be great if you could add an option to stop WP creating its assorted image sizes on upload. Or is there another way around this that I’m missing?

    Firstly, Happy new year to you.

    Secondly, thanks very much for this plugin- I am setting up a blog for a mate which is to have header images selected randomly at pageload. He needs to be able to upload new images into the header image pool folder, ideally through WP’s admin. This is the only way I’ve found to do that.

    I’m running 2.7 and made the change to line 38 OK, but I can’t find the 2nd edit anywhere in the 0.11 file- there’s only one mention of strpos and that’s on line 135 of the plugin. Or are you talking about editing a core file?

    Before and after making the edit, when trying to define a new folder in the Locations control panel page I get a page returned with just “Cannot load relocate-upload/relocate-upload.php.” in a box in the middle.

    Any help getting this going’d be mach appreciated.

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