• Resolved Manni79

    (@manni79)


    It is possible to…
    – place meta data under excerpt (and not above)?
    – not only showing author, but also Domain of source?
    – making thumbnails not square but rectangular?
    – placing a “Read more >>”-Link at the right bottom?
    – add rel=nofollow if want to?

    As example on following site at the bottom:
    https://www.testing-board.com

    – If a image in rss feed is available, but it can’t be load because the link to an image is present but not working, what are you doing?

    – What are you doing if images load very slowly? Did it affect time for first page rendering when your plugin is active? Or did the image simply load after first page rendering?

    And I checked …
    http://b-website.com/feedzy-rss-feeds-wordpress-plugin-using-simplepie
    … would be nice when you add an extra CSS Class Tag around meta_data, like class=rss_meta_data. So someone can easily assign different designs to rss_content exerpt and rss_meta_data with CSS.

    Best regards
    Manni

    https://wporg.ibadboy.net/plugins/feedzy-rss-feeds/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Manni,
    Here is the answers to your questions :

    – place meta data under excerpt (and not above)?
    Unfortunately not (for the moment)

    – not only showing author, but also Domain of source?
    Unfortunately not, but you may probably do something with the feedzy_meta_output hook and a bit of regex.

    – making thumbnails not square but rectangular?

    function bweb_feedzy_thumb_aspect_ratio( $sizes, $feedURL ) {
        $sizes = array(
            'width' => $sizes['width'] * (16/9),
            'height' => $sizes['height']
        );
        return $sizes;
    }
    add_filter( 'feedzy_thumb_sizes', 'bweb_feedzy_thumb_aspect_ratio', 10, 2 );

    – placing a “Read more >>”-Link at the right bottom?

    function bweb_feedzy_readmore( $content, $link, $feedURL ) {
        $content = str_replace( '[…]', '<a href="' . $link . '" target="_blank">' . __('Read more', 'yourTextDomain') . ' →</a>', $content );
        return $content;
    }
    add_filter( 'feedzy_summary_output', 'bweb_feedzy_readmore', 9, 3 );

    – add rel=nofollow if want to?

    function bweb_feedzy_add_link_param_matches( $matches ) {
        return '<a href="' . $matches[1] . '?tid=FS,IT" target="_blank" rel="nofollow">' . $matches[2] . '</a>';
    }
    function bweb_feedzy_add_link_param( $content, $feedURL ) {
        $pattern= '/<a.*href=\"(https?:\/\/.*)\".*>(.*)<\/a>/iU';
        $content= preg_replace_callback( $pattern, 'bweb_feedzy_add_link_param_matches', $content );
        return $content;
    }
    add_filter( 'feedzy_global_output', 'bweb_feedzy_add_link_param', 9, 2 );

    – If a image in rss feed is available, but it can’t be load because the link to an image is present but not working, what are you doing?
    Image are displaying as background to prevent this case of failure and the default feedzy thumb is displayed as a background fallback. By this way, you won’t see any broken image.

    – What are you doing if images load very slowly? Did it affect time for first page rendering when your plugin is active? Or did the image simply load after first page rendering?
    Unfortunately it affect the page loading time since it is present within it’s DOM.

    – would be nice when you add an extra CSS Class Tag around meta_data, like class=rss_meta_data
    You can tweak the meta design with the following selector : .rss_content small

    Here is the full hooks documentation page.

    Thread Starter Manni79

    (@manni79)

    Big thanks for your fast and complete answer!!!

    All the functions I have to put in my functions.php I guess. Correctly?
    I give it a try soon. But would be nice for support out of the box per shortcode parameters in the future.

    At the moment I use an other plugin in my domain, but it has some performance problems. I think I will change soon. Your plugin and it’s sample and instruction page is really nice. Some of the missing feature above in the future would be wonderful, to be able to set meta_tags also to bottom and to have also see the source-domain in meta_tags.

    Can I use the hooks also to edit your date and time format which you use in meta_tags? Something like changing complete meta tag line from “Posted by Brice on 16 April 2015 at 18 h 25 min” to “post by Brice, 16. April 2015 18:25”

    And you wrote:

    Unfortunately not, but you may probably do something with the feedzy_meta_output hook and a bit of regex.

    Perhaps I am able to use RegEx to find and change things by myself, but I don’t understand how I get the Domain Name when it is not already in the defined “metaArgs”.

    Big thanks and best regards

    Hi again,
    Yes, you have to put the above functions in your functions.php file.
    You can change the timestamp with this hook :

    function bweb_feedzy_meta_args($metaArgs, $feedURL){
        if( 'http://b-website.com/feed' == $feedURL ) {
            $metaArgs = array(
                        'date_format' => 'j F Y',
                        'time_format' => 'G \h i'
                    );
        }
        return $metaArgs;
    }
    add_filter('feedzy_meta_args', 'bweb_feedzy_meta_args', 9, 2);

    By default, it uses the WordPress timestamps you choose in the admin general settings section.

    “how I get the Domain Name when it is not already in the defined “metaArgs”
    The domaine name is included within the author URL 🙂

    Thread Starter Manni79

    (@manni79)

    Ok. thanks I give it a try soon. Thanks for fast answers!!

    But I think with the Readmore hook tipp, it will not be the same as in “https://www.testing-board.com&#8221; at page bottom at the moment, because it s in the content and not an single element which i can align right. And also formatting the “read more >>” separately I think will not work. So perhaps also a “read more >>” integration per shortcode would be nice, like in the example page. But I will try it by myself later.

    Thread Starter Manni79

    (@manni79)

    All worked fine, expect the “on <domain name>” part in meta tag line. I had to make some more changes, because of read more style and problems for filtering and edit for insert readmore and doing reg ex to insert all “nofollows”, but managed it. Your plugin is really nice and fits well in on the web site!!! Big thanks!

    If you implement an “on <domain name>” option in your plugin or make an example in your instructions page in the future, would be very nice.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Questions about features’ is closed to new replies.