Forum Replies Created

Viewing 15 replies - 1 through 15 (of 763 total)
  • hi there – sorry for the continued updaates…

    see this option: https://elfsight.com/amazon-reviews-widget/iframe/

    Features
    To get a clear knowledge of Amazon Reviews, look at the list of the most outstanding functions. They make the widget really efficient for you:

    Three available filters: by type, exclude by, and quantity of reviews;
    Four predefined layouts: List, Grid, Masonry, and Slider;
    An opportunity to control displaying the header of the widget;
    Review request button gets visitors to the Amazon page;
    Six flexible elements of the widget: author name and photo, recommendation text, date, Amazon icon, and star rating;
    Two options of scenarios after review request denial: reveal a text message or remove the button;

    hi there Timo _

    just one idea left: whoat about a so called I_frame Solution?! Guess that i-frame would probably be a solution (that on the one handside looks sometimes damned awful ) but on the other handside probably would prevent us to infringe the Amazon-TOS!?

    any idea – any thought – how do you like this idea?

    hello dear Timo hello dear all,

    do not bear with me – ih have some additional infos – that i want to share with you here. just in case anybody is interested in this topic

    the only wp-plugin which was capable to do this job was Scrapeazon – but this will sot
    https://de.wordpress.org/plugins/scrapeazon/

    we can read on the page:
    On March 9, 2020, Amazon will remove access to the Amazon Production Advertising API versions 4.0 and earlier. The new version of the API, 5.0, does NOT support the retrieval of customer reviews for products. Therefore, ScrapeAZon can no longer pull and display reviews from Amazon’s site. These changes make the ScrapeAZon plugin obsolete, since it will no longer display reviews. You should seek an alterate reviews solution.
    https://de.wordpress.org/plugins/scrapeazon/

    Sad sad thing…

    btw: I found some articles how to get products data:
    Querying Amazon’s product details with the Amazon Product Advertising API
    https://grantwinney.com/querying-amazon-product-details-with-the-amazon-product-advertising-api/

    Amazon Product API Exploration: Let’s Build a Product Searcher
    https://www.sitepoint.com/amazon-product-api-exploration-lets-build-a-product-search/

    and the last one: how to get Amazon product information through API
    https://stackoverflow.com/questions/57223163/how-to-get-amazon-product-information-through-api?rq=1

    thanks to you Timo for your great plugins – – i love your work!! Thanks for the continued and sustainable work … keep up your great project it rocks

    Hi there – good day – dear Timo – i am happy to hear from you

    guess that you are right and that the wanted features are not any features that are supported by the Amazon-TOS..

    see – cf:

    Using API to fetch Product Reviews and Star Rating.
    https://forums.aws.amazon.com/thread.jspa?threadID=27882

    Pulling Amazon Rating Stars and Rating Count with Product Advertising API
    https://stackoverflow.com/questions/38733978/pulling-amazon-rating-stars-and-rating-count-with-product-advertising-api

    hmm – unfortunatly i think that Amazon does not support this any more. So you are right..

    For the rest of the users here i will try to explain in short what is aimed: what i am after is the following:bPulling Amazon Rating Stars, Rating Count and Product reviews with Product Advertising API

    What I am after is being able to pull just the stars, and the amount of reviews for a given product WITHOUT breaking the TOS of Amazon. I do not want to display all of the reviews – but a part of them would be nice….

    the following text is a short version of one of the above mentioned links.

    and such that are inside of the iframe that they let you use. I am able to display the iframe, but I don’t need to display that much information. So to be clear, I just want the Stars and the # of reviews (the average customer review, and # of reviews).
    If you want to go the extra mile and tell me how, I’d really appreciate knowing how via PHP! If this is against the TOS, that’s all Id really need to know. If it is, I’d love it if you could provide me a link to where it says that it IS against the TOS.
    Thanks for any and all help! It’s always appreciated.

    I don’t know about the TOS, but to do that in php, if there is no official api, you can use simple_html_dom: http://simplehtmldom.sourceforge.net/.

    
    <?php
    define('MAX_FILE_SIZE', 6000000); 
    include './simple_html_dom.php';
    
    //Your product amazon's url
    $url = 'https://www.amazon.com/SOL-REPUBLIC-1112-31-Headphones-1-Button/dp/B00COOVLMQ/ref=sr_1_1?s=fiona-hardware&ie=UTF8&qid=1470197678&sr=8-1&keywords=sol+republic';
    
    $html = file_get_html($url);
    $review_section = $html->find('#averageCustomerReviews',0);
    $stars = $review_section->find('#reviewStarsLinkedCustomerReviews',0)->plaintext;
    preg_match('/\d+\.{0,1}\d*/',$stars,$match);
    echo "Stars: ".$match[0]; //Shoud be stars
    echo "<br />";
    $reviews = $review_section->find('#acrCustomerReviewText',0)->plaintext;
    preg_match('/\d+/',$reviews,$match);
    echo "Reviews: ".$match[0] //Shoud be reviews number

    dear Tima – i am happy to hear from you.
    i love to hear from you – and i am happy about and and all ideas and sharing of insights and knowledge

    to sume it up: timo – you regard all the ways and methods to fetch reviews as against the TOS – so i guess that there is no appropiate way to do just a little fetch of that kind of information – with a So called “quick and dirty – solution”? ?!

    you think that all these trials are nasty and not appropiate!?

    love to hear form you.

    many many thanks for your great plugin and the continued and sustainable development…

    regards

    • This reply was modified 2 days, 16 hours ago by say_hello.
    • This reply was modified 2 days, 16 hours ago by say_hello.
    • This reply was modified 2 days, 16 hours ago by say_hello.

    hello again,

    update: this topic is a great topic for any and all learning-tasks: I reviewed the CSS-Code (see above): What we have to say additionally, is that if we want to target a specific post with a given number, we have already identified it. We can target .post-256 with our CSS and it will style only that post.

    Things to keep in mind with this however is that…:

    1) The styles should come after any other styles that have been defined by the theme or wordpress itself: This means, we have to make sure that the CSS-changes come last in the chain.

    2) Media Queries CSS are always written in the end, not among other CSS rules. Otherwise, it may make the media-specific rule ineffective.

    3) In our lengthy CSS code, the “.postid-256 .single-featured-image-header img” selector has no rule defined.

    4) If there are any more powerful styles using something like !important or using an actual ID style aka. #post-256 { then we will have to get more specific or use !important too (again being further down in the styles list means we will override) we might also want to look at hooks that activate prior to template being chosen. At that point, in PHP, we can look at the ID and if it matches a given number, we can introduce some additional tagging into the template for which we can then target the styles. One such hook that comes to mind can be found here https://codex.wordpress.org/Plugin_API/Action_Reference/template_redirect
    which should have the post Id available and can be evaluated. If it is “256” then we need to add some additional markup to the template and have our CSS style that tag we add.

    cf: https://codex.wordpress.org/Plugin_API/Action_Reference/template_redirect

    Examples: Performing a redirect

    Following example will redirect all non-authenticated users to a custom ‘signup’ page when trying to visit the ‘goodies’ page.

    
    function my_page_template_redirect() {
        if ( is_page( 'goodies' ) && ! is_user_logged_in() ) {
            wp_redirect( home_url( '/signup/' ) );
            die;
        }
    }
    add_action( 'template_redirect', 'my_page_template_redirect' );

    Don’t forget to exit (or die) after a wp_redirect().

    Loading a different template

    Loading a different template is not a good use of this action hook. If you include another template and then use exit() (or die()), no subsequent template_redirect hooks will be run, which could break the site’s functionality. Instead, use the template_include filter hook to return the path to the new template you want to use. This will allow an alternative template to be used without interfering with the WordPress loading process.

    above all: this topic is a great topic for any and all learning-tasks: after having reviewed the CSS-Code (see above) i think that
    we can gather more and more insights. i think that we can rewrite the whole additional CSS – to hit the above mentioned needs & aims.

    some links and ressources regarding the customization:

    – see the investigation – here a image: https://prnt.sc/r50bhr

    – Here we have a great example of what is the wanted (opposite) behaviour: https://www.karavadra.net/reduce-height-single-post-page-featured-images-twenty-seventeen-theme/ Bharat have created a great example!! It is exacly what is wanted.

    – The hints for doing individual CSS for each post, here a great ressource: https://www.wpbeginner.com/wp-themes/how-to-style-each-wordpress-post-differently/

    if you have any hint or tipp i look forward to hear from you.

    regards say

    hello dear all

    just want to inform you about what has happened so far. The errors that were reportet in the above messages are gone – due to some more setups on the server. Now we do not have any errors related to openbase_dir configuration-issues.

    Again: what is aimed – what i am going to achieve: i am currently working on a page – ( which is beta-beta ) see http://www.job-starter.com For front-end images, we have to add them in WordPress Admin > Appearance > Edit CSS.

    i have three postings on the site: eg. post-ids:
    .post-256 …
    .post-258 …
    .post-260 …

    Let us have a closer look at the Posting 256 – it has the post-id (see more here .post-256 …)we have the following – in the code we can see this: http://prntscr.com/r50bhr – cf

    Note: the image was added not as image but as background. The height of this element is determined by .panel-image-prop – padding value.
    By the way: However possible is, that the image will not have valid quality when we change this in CSS. We could / should do this in php file using thumbnail image size. However if we want to do individual CSS for each post, there an advice here could be like been seen here: https://www.wpbeginner.com/wp-themes/how-to-style-each-wordpress-post-differently/

    What is aimed: i need a CSS-rule that can be applied only to only post number eg to the postid-256 only.

    regarding the customization: Here we have the wanted opposite behaviour: https://www.karavadra.net/reduce-height-single-post-page-featured-images-twenty-seventeen-theme/
    See that the images on this page and at this example all have differnt heights: the great and very well written tutorial – here at Bharat Kardavara has managed it to apply different heights to the different images. Thats just great.

    again, what is aimed: i need a CSS-rule that can be applied only to only post number eg to the postid 256 only.

    But this is not the case – my problem is that i cannot achieve the change of the height of only one featured image in other words – every time i do some changes _ then all the images are changing Here we have the opposite behaviour: https://www.karavadra.net/reduce-height-single-post-page-featured-images-twenty-seventeen-theme/

    But to be frank – we have to inspect the regarding elements in the browser and subsequently we have to find the correct applicable class-name for those images in question. In the tutorial it is .”single-featured-image-header img”. In my theme (it is the twentyseventeen) it might be different.

    question: can we even use CSS :first-of-type or :last-of-type pseudo-classes, Do we even be able to use greater than ( > ) CSS selector. Well i need to check the uses and apply then.

    WordPress by default adds an unique class to each single post in the body tag. So we can take advantage of it. I guess that we have to Inspect the classes in the body tag
    and there we will find postid-NUMBER. So for given posts, the classes there will be postid-256, postid-258, postid-260 respectively.

    Example: Now i think that we can adjust CSS rule something similar to:

    
    .postid-256 .single-featured-image-header img {
    /* display: block; */
    /* margin: auto; */
    height: 33vh;
    object-fit: cover;
    }

    Assumtion: Then the rule will apply only to postid-number 256 only.
    But wait:it looks like that if we change with postid -256 then we apply the changes for all and every image.

    Then the rule will apply only to post number 256 only.
    But this is not the case – my problem is: i cannot achieve the change of the height of only one featured image – every time i do some changes, then all the images are changing. Here we have the opposite behaviour: https://www.karavadra.net/reduce-height-single-post-page-featured-images-twenty-seventeen-theme/

    see below the full css code – i guess that i have mixed it up with some mess…

    can we even use CSS :first-of-type or :last-of-type pseudo-classes: Do we even be able to use greater than ( > ) CSS selector.

    Well i need to check the uses and apply then.

    
    Now you can adjust CSS rule something similar to:
    
    .postid-256 .single-featured-image-header img {
    
    /* display: block; */
    
    /* margin: auto; */
    
    height: 33vh;
    
    object-fit: cover;
    
    }

    Then the rule will apply only to post number 256 only. But this is not the case – my problem is, that i cannot achieve the change of the height of only one featured image – every time i do some changes _ then all the images are changing

    However possible is, that image will not have valid quality when we change this in css. We should do this in php file using thumbnail image size.

    more links and ressources:

    If we want to do individual CSS for each post, there is advice here: https://www.wpbeginner.com/wp-themes/how-to-style-each-wordpress-post-differently/
    Here we have the opposite behaviour: https://www.karavadra.net/reduce-height-single-post-page-featured-images-twenty-seventeen-theme/
    we have the following – in the code we can see this: http://prntscr.com/r50bhr – cf

    see the full CSS-Code:

    .wrap { max-width: 1366px; }
    .wrap { max-width: 1366px; }
    /*For Content*/
    .has-sidebar:not(.error404) #primary {
    width: 60%
    }
    
    /*For Sidebar*/
    .has-sidebar #secondary {
    width: 30%
    }
    
    /*Responsive*/
    @media(max-width:768px) {
    /*For Content*/
    .has-sidebar:not(.error404) #primary {
    width: 100%
    }
    
    /*For Sidebar*/
    .has-sidebar #secondary {
    width: 100%
    }
    }
    
    /* STRUCTURE */
    
    .wrap {
    max-width: 80% !important;
    }
    
    .page.page-one-column:not(.twentyseventeen-front-page) #primary {
    max-width: 100% !important;
    }
    
    @media screen and (min-width: 48em) {
    .wrap {
    max-width: 80% !important;
    }
    }
    
    @media screen and (min-width: 30em) {
    
    .page-one-column .panel-content .wrap {
    max-width: 80% !important;
    }
    }
    @media screen and (max-width: 650px) {
    .wrap {
    max-width: 95% !important;
    }
    }
    @media screen and (min-width: 48em) {
    .background-fixed .panel-image {
    background-attachment: initial;
    }
    }
    .custom-header-media {
        height: 6vh;
    }
    @media screen and (min-width: 48em) {
    .panel-image {
    height: 200px;
    }}
    
    .postid-256 .single-featured-image-header img {
    /* display: block; */
    /* margin: auto; */
    height: 42vh;
    object-fit: cover;
    }
    
    .postid-258 .single-featured-image-header img {
    }
    @media screen and (min-width: 48em) {
    .postid-258 .panel-image-prop {
    padding: 12px; height:33px;
    object-fit: cover;
    }}

    love to hear from you

    hi there at all

    just want to share this with you all: after doing som minor configurations with the setting of the upgrade php (note: we pulled from version 5xy to 7xy) and run into some errors with open_base_dir in restriction an the vanished featured image – now all came back

    in other words – after setting the configuration right – the
    – openbase_dir-restrictions dissapeared and
    – the featured image button came back in the post-page.

    glad to see it back

    thread solve -can i mark this somewhere!?

    have a great day

    say_hello

    (@say_hello)

    hello again,

    see the image here;

    and here a description that fits most: https://wordpress.org/support/topic/post-page-not-showing-featured-image/

    question: I have installed the theme but on post page, none of the post showing the featured images, just showing on the home page…
    Can anyone help to resolve this problem so post page can also show the related featured image?

    answer: I managed to bodge it by adding this to (my child theme’s) single.php

    
    <?php
    if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
    the_post_thumbnail( 'full' );
    }
    ?>
    (Insert after <?php while ( have_posts() ) : the_post(); ?>)
    <img src="wherever" />

    and a link: https://www.wpbeginner.com/beginners-guide/how-to-add-featured-image-or-post-thumbnails-in-wordpress/

    note: i did not have applied the code to a child-theme yet.

    but i deactivated all the plugins – step by step. – without any success.
    note: i have upgreaded the server from PHP-Version 5.6 to Version 7.2xy

    at the moment i struggle with some issues on the page:

    Warning: ini_set(): open_basedir restriction in effect. File(/tmp/wp-errors.log) is not within the allowed path(s): (/sites) in /sites/www.my-site.com/wp-includes/load.php on line 345

    condluding question: is it possible that this can cause the issues?!? with the featured image!?

    look forward to hear from you

    regards

    hello dear Roland – many thanks for the quick reply.

    for the quick and dirty check – can i erase the plugin from the folder – and testrun the whole installation again!!?

    is this a way and a method to do a quick test!?

    update: i did it like so – and found out that if i set the folder of the participants_database – with permission to 000 – and test the whole site – then all goes well.

    no issues left with the site!?

    dear Roland – i am a big big fan of the great participants-database. and i love your plugin.it is one oft he best plugins i ever saw.

    My serveradmin who takes care for the backend – did the upgrade of php to version 7.4 – i hope you test the participants-database within the next few months so that i am able to run your superb plugin in the next time again +#

    Have agreat day and keep up the great project
    it rocks!!!

    • This reply was modified 2 weeks, 6 days ago by say_hello.

    hello and good day Roland, dear developer,

    first of all: i am a big big fan of the participants database. At the moment i struggle with some behaviour of the website. Well – after the upgrade of the php-version from .5.6 to 7.4.2 i get errors.

    There has been a critical error on the website.

    and according the error in the message shown above i can conclude:

    Ummm… for the first part, the answer is right there in the error message. In the plugin “participants-database”
    there is a file called “PDb_Base.php” in the directory “classes”.
    On line 1844 you will probably see a line that is doing an operation on a string variable and using array syntax for it. This is deprecated in PHP 7.4. 11

    For instance we can no longer do something like…

    
    $string = "foo";
    
    echo $string[0];  // This use to echo out "f" but not anymore
    
    $string = "bar";
    
    echo $string{1}; // This use to echo out "a" but not anymore

    furthermore we can say: Going from PHP 5 straight to 7.4 is a huge jump… so i have to test thoroughly!

    should i do some extra-thoings with the participants-database?

    love to hear from you

    • This reply was modified 2 weeks, 6 days ago by say_hello.
    say_hello

    (@say_hello)

    hello dear Kelemvor,

    i did some search and investigation.

    i have found some interesting ressources that cover the topic which is interesting for you – and for me too:

    Where and how to change the height of single post and page featured images

    cf: https://medium.com/@bharatkaravadra/how-to-reduce-the-height-of-single-post-and-page-featured-images-in-the-twenty-seventeen-theme-b0ce1b3cb668

    Where and how to change the height of single post and page featured images.
    In WordPress Admin > Appearance > Edit CSS.

    Enter the CSS code below.

    The 33vh height sets the height of the images to 33 percent of the height of the screen.
    The object-fit line ensures that the image retains it’s original proportions and is cropped to fit the shape of the featured image bounding rectangle.

    The CSS code:

    
    .single-featured-image-header img {
    	/* display: block; */
    	/* margin: auto; */
    	height: 33vh;
    	object-fit: cover;
    }
    
    

    see more – here: https://medium.com/@bharatkaravadra/how-to-reduce-the-height-of-single-post-and-page-featured-images-in-the-twenty-seventeen-theme-b0ce1b3cb668

    and besides – at the hp of the author: https://www.karavadra.net/
    and here with other tipps regarding themes 2017 and 2020 https://medium.com/@bharatkaravadra

    hope this helps you and all the other ones that like to run the theme 2017 …

    regards say 😉

    hello dear kelemvor,

    first of all – many thanks for stepping up the plate with this question. I am also fairly new to this theme – and i have to confess. i love it.

    I have visited your page _ and i guess that the images are tooo big. I am no expert at the moment – but i am willing to learn too. So i share all my insights with you.

    See here some demos – where the dimensions are a bit smaller:

    https://2017.wordpress.net/
    https://www.walkervillevet.com.au/

    see some articles:
    How to Customize the Free Twenty Seventeen WordPress Theme
    https://premium.wpmudev.org/blog/twenty-seventeen-wordpress-theme/
    with various tipps on customizing and tweaking.

    -…And 126 comments on the tutorial

    And besides this – we have many many forum threads that cover this topic.

    https://wordpress.org/support/topic/twenty-seventeen-featured-image-behaviour/
    in the “Additional CSS” section of the dashboard add this:

    .panel-image {
       height: 300px;
    }
    

    cf https://codex.wordpress.org/CSS#Custom_CSS_in_WordPress

    but – i confess: I am fairly new to the WordPress_Theme 2017: and i do the first steps in this area.

    this Theme looks amazing. Going to the customizing details: I need some guidance with figuring out the dimensions of my images. Kelemvor I am also beginning to use Twenty Seventeen theme, and I manually cut my photos in Photoshop or GIMP. Which size of Featured Images do you recommend!?

    besides that: Should i upload them to the Gallery Images. What dimensions do I need to cut pictures too to properly use WordPress_Theme twentyseventeen?

    Any insight would be appreciated,

    At kelemvor: I am no expert at the moment – but i am willing to learn too. So i share all my insights with you.

    hello dear All,

    just want to share this with you – in case some of you work on the same issues:

    …in the past few days i had two articles that were guiding me:

    this one: https://wordpress.org/support/topic/set-featured-image-is-huge-on-home-page/

    and this one: https://wordpress.org/support/topic/how-to-resize-featured-image-in-seventeen-theme/

    and i have gained alot frome this thread. slav1977 mentioned: you have to paste this text at the end of your css:

    
    @media screen and (min-width: 48em) {
    .panel-image {
    height: 175px;
    }}

    I set this for my page to this following – note px is pretty important

    
    .post-258 .panel-image {
        background-size: auto;
    }
    
    @media screen and (min-width: 48em) {
    .panel-image {
    height: 255px;
    }}
    

    note: – it is pretty important to mention

    
    height: 255px;

    to note it in px. seems to do the trick…

    this helped alot; thanks to Slav1977 in this thread: https://wordpress.org/support/topic/how-to-resize-featured-image-in-seventeen-theme/

    i am glad – and i have learned alot.
    wordpress it rocks

    greetings
    say hello 😉

    • This reply was modified 3 weeks, 2 days ago by say_hello.

    hi there good day dear Jan,

    many many thanks for the moderation and the help.

    guess that it is because of a CSS rule setting the height to a fixed value.
    In other words – i guess that it’s more than just only the size of the featured image height,

    We can say that this is because of the scaling of the image up to such and such a value.

    well i need to fix this.

    say_hello

    (@say_hello)

    hello dear hastibe,

    many many thanks for the long list – i am overwhelmed and impressed by this very long list. You did a great job and your list supports the sustainable development of this great Plugin – the wp-job-manager.

    Thanks in behalf of the worldwide group of users of this great plugin.

    We are very very glad for such engaged postings and people like you are.
    keep up your great engagement and support.

    best regards
    say 😉

Viewing 15 replies - 1 through 15 (of 763 total)