Viewing 15 replies - 1 through 15 (of 16 total)
  • Having same problem as above.

    Plugin Author flaviodj

    (@flaviodj)

    Sorry for the delayed response,
    I somehow didn’t receive a notification about your post.
    I actually don’t know what the problem might be with the amount of reviews showing. If it shows one it should show all.
    The number of reviews to display actually only relates to how many should show at once.
    Think like this:
    1 review = 1 block
    display # of reviews at once = display # of blocks at once.
    meaning, if you want the widget to to look shorter for display/look reasons you can show all 3 blocks at once or 2 or only one.
    So that your widget doesn’t look extremely long compared to others.

    Yelp will allow only up to 3 reviews to be fed to the plugin, no matter if you have 1 or 1000..
    The # to be displayed will only affect the number of them that will show at one given time.
    I just tried your yelp id on my site and it worked perfectly.
    One thing I’d like for you to try is on the root folder of the plugin on the file yrt.php
    between line 124 and line 129

    if (($response->review_count == 2) && ($showitems > 2)){
    	$showitems = "2";
    	}
    if (($response->review_count == 1) && ($showitems > 1)){
    	$showitems = "1";
    	}

    comment it to see if does anything like this:

    //if (($response->review_count == 2) && ($showitems > 2)){
    //	$showitems = "2";
    //	}
    //if (($response->review_count == 1) && ($showitems > 1)){
    //	$showitems = "1";
    //	}

    let me know so I can make a fix, please.

    Plugin Author flaviodj

    (@flaviodj)

    Also if that doesn’t do anything
    try this on line 90 (between this):

    curl_close($ch);
    
    // Handle Yelp response data

    just add “echo $data;

    curl_close($ch);
    echo $data;
    // Handle Yelp response data

    please post the text response, it should look like this:

    {
    	"is_claimed": true,
    	"rating": 4.5,
    	"mobile_url": "https://m.yelp.com/biz/ushuaia-argentinean-steakhouse-santa-monica",
    	"rating_img_url": "https://s3-media2.ak.yelpcdn.com/assets/2/www/img/99493c12711e/ico/stars/v1/stars_4_half.png",
    	"review_count": 183,
    	"name": "Ushuaia Argentinean Steakhouse",
    	"snippet_image_url": "https://s3-media1.ak.yelpcdn.com/photo/qoJegrayXiuGTIYMUlCzwA/ms.jpg",
    	"rating_img_url_small": "https://s3-media2.ak.yelpcdn.com/assets/2/www/img/a5221e66bc70/ico/stars/v1/stars_small_4_half.png",
    	"url": "https://www.yelp.com/biz/ushuaia-argentinean-steakhouse-santa-monica",
    	"menu_date_updated": 1387750747,
    	"reviews": [{
    		"rating": 4,
    		"excerpt": "Good
    food served up in a clean and modern restaurant with a strong staff and sexy
    lighting. Somewhat on the pricey side, but worth it for a special...",
    		"time_created": 1390008675,
    		"rating_image_url": "https://s3-media4.ak.yelpcdn.com/assets/2/www/img/c2f3dd9799a5/ico/stars/v1/stars_4.png",
    		"rating_image_small_url": "https://s3-media4.ak.yelpcdn.com/assets/2/www/img/f62a5be2f902/ico/stars/v1/stars_small_4.png",
    		"user": {
    			"image_url": "https://s3-media4.ak.yelpcdn.com/photo/KpfxsgLUGQ0uwa0buQYLVw/ms.jpg",
    			"id": "FFTX63pqjbhbBhdw-ZTXow",
    			"name": "Joan H."
    		},
    		"rating_image_large_url": "https://s3-media2.ak.yelpcdn.com/assets/2/www/img/ccf2b76faa2c/ico/stars/v1/stars_large_4.png",
    		"id": "y3knTiP6R6S1qt4L_dM0AA"
    	}, {
    		"rating": 5,
    		"excerpt": "After living right
    around the corner from this place for almost a year, my boyfriend and I finally
    tried Ushuaia last night. Honestly, we're both quite...",
    		"time_created": 1389483159,
    		"rating_image_url": "https://s3-media1.ak.yelpcdn.com/assets/2/www/img/f1def11e4e79/ico/stars/v1/stars_5.png",
    		"rating_image_small_url": "https://s3-media1.ak.yelpcdn.com/assets/2/www/img/c7623205d5cd/ico/stars/v1/stars_small_5.png",
    		"user": {
    			"image_url": "https://s3-media1.ak.yelpcdn.com/photo/qoJegrayXiuGTIYMUlCzwA/ms.jpg",
    			"id": "nht6dXc_4IciYQqOUW9Unw",
    			"name": "Jessica C."
    		},
    		"rating_image_large_url": "https://s3-media3.ak.yelpcdn.com/assets/2/www/img/22affc4e6c38/ico/stars/v1/stars_large_5.png",
    		"id": "oj6rktPM-dc5Y22Twe40Og"
    	}, {
    		"rating": 5,
    		"excerpt": "Attentive service.
    Great food. Happy Hour alcohol. Plus, TV's to watch your favorite team. \n\nI
    had the ribeye steak and it came with three different dipping...",
    		"time_created": 1389452609,
    		"rating_image_url": "https://s3-media1.ak.yelpcdn.com/assets/2/www/img/f1def11e4e79/ico/stars/v1/stars_5.png",
    		"rating_image_small_url": "https://s3-media1.ak.yelpcdn.com/assets/2/www/img/c7623205d5cd/ico/stars/v1/stars_small_5.png",
    		"user": {
    			"image_url": "https://s3-media3.ak.yelpcdn.com/photo/8i80fvwPB0yljCM4kauzOg/ms.jpg",
    			"id": "nyBu9khTM69iDvgZx20W_w",
    			"name": "Kat K."
    		},
    		"rating_image_large_url": "https://s3-media3.ak.yelpcdn.com/assets/2/www/img/22affc4e6c38/ico/stars/v1/stars_large_5.png",
    		"id": "Bb8C9_Acq8kFZJ8S8Yxs8Q"
    	}],
    	"phone": "3103155457",
    	"snippet_text": "After
    living right around the corner from this place for almost a year, my boyfriend
    and I finally tried Ushuaia last night. Honestly, we're both quite...",
    	"image_url": "https://s3-media3.ak.yelpcdn.com/bphoto/jmz8U7RwUYoo81l-vOjXfQ/ms.jpg",
    	"categories": [
    		["Steakhouses", "steak"],
    		["Argentine", "argentine"]
    	],
    	"display_phone": "+1-310-315-5457",
    	"rating_img_url_large": "https://s3-media4.ak.yelpcdn.com/assets/2/www/img/9f83790ff7f6/ico/stars/v1/stars_large_4_half.png",
    	"menu_provider": "single_platform",
    	"id": "ushuaia-argentinean-steakhouse-santa-monica",
    	"is_closed": false,
    	"location": {
    		"city": "Santa Monica",
    		"display_address": ["2628 Wilshire Blvd", "Santa
    Monica", "Santa Monica, CA 90403"],
    		"geo_accuracy": 8,
    		"neighborhoods": ["Santa
    Monica"],
    		"postal_code": "90403",
    		"country_code": "US",
    		"address": ["2628
    Wilshire Blvd"],
    		"coordinate": {
    			"latitude": 34.036365199999999,
    			"longitude": -118.4765252
    		},
    		"state_code": "CA"
    	}
    }

    thanks!

    I am having the same issue. Commenting out the lines from 124 to 129 does nothing.

    Here is the json data i get, when i echo it. Thank you.

    {
       "is_claimed":true,
       "rating":4.5,
       "mobile_url":"https://m.yelp.com/biz/latimex-market-chino",
       "rating_img_url":"https://s3-media2.ak.yelpcdn.com/assets/2/www/img/99493c12711e/ico/stars/v1/stars_4_half.png",
       "review_count":11,
       "name":"Latimex Market",
       "snippet_image_url":"https://s3-media4.ak.yelpcdn.com/photo/KgeE9v8likUaTCqo19CVYw/ms.jpg",
       "rating_img_url_small":"https://s3-media2.ak.yelpcdn.com/assets/2/www/img/a5221e66bc70/ico/stars/v1/stars_small_4_half.png",
       "url":"https://www.yelp.com/biz/latimex-market-chino",
       "reviews":[
          {
             "rating":5,
             "excerpt":"This is my go to spot for meats and fresh salsas. The staff is friendly and helpful and I always leave here feeling like I got a great value. Their...",
             "time_created":1391934731,
             "rating_image_url":"https://s3-media1.ak.yelpcdn.com/assets/2/www/img/f1def11e4e79/ico/stars/v1/stars_5.png",
             "rating_image_small_url":"https://s3-media1.ak.yelpcdn.com/assets/2/www/img/c7623205d5cd/ico/stars/v1/stars_small_5.png",
             "user":{
                "image_url":"https://s3-media4.ak.yelpcdn.com/photo/KgeE9v8likUaTCqo19CVYw/ms.jpg",
                "id":"yZ6pvOr4cZnrFhOKosd5qQ",
                "name":"Chris O."
             },
             "rating_image_large_url":"https://s3-media3.ak.yelpcdn.com/assets/2/www/img/22affc4e6c38/ico/stars/v1/stars_large_5.png",
             "id":"2zl-6yWr5mmKX2MzULIq9Q"
          }
       ],
       "phone":"9096288215",
       "snippet_text":"This is my go to spot for meats and fresh salsas. The staff is friendly and helpful and I always leave here feeling like I got a great value. Their...",
       "image_url":"https://s3-media4.ak.yelpcdn.com/bphoto/wwRAVteuDTMuXJp0uds_4g/ms.jpg",
       "categories":[
          [
             "Grocery",
             "grocery"
          ]
       ],
       "display_phone":"+1-909-628-8215",
       "rating_img_url_large":"https://s3-media4.ak.yelpcdn.com/assets/2/www/img/9f83790ff7f6/ico/stars/v1/stars_large_4_half.png",
       "id":"latimex-market-chino",
       "is_closed":false,
       "location":{
          "city":"Chino",
          "display_address":[
             "11742 Central Ave",
             "Chino, CA 91710"
          ],
          "postal_code":"91710",
          "country_code":"US",
          "address":[
             "11742 Central Ave"
          ],
          "state_code":"CA"
       }
    }
    Plugin Author flaviodj

    (@flaviodj)

    Thanks for the help Bage,
    I did a bit of research, what I came up with is that Yelp has recently changed the API response. Instead of giving us 3 reviews snippets they are only giving us 1 now.

    If you look at a 3rd party archived page and compare to the official page you will see:
    cached: (the way they used to give results)List of up to 3 review snippets for the business

    new and official: (new rules that were implemented without any sort of notice to anyone)List of up to 1 review snippet for the business

    Now, what I also figured out (I assume is the case) if you have an old (prior to changes, maybe 2013?) API Key you can still get the 3 reviews snippet, but if you just signed up (2014?) you will only get 1 review snippet.

    Now for a solution… I can’t control the API nor the rules, nor can I scrape and get those reviews, but I saw a bit of conflicting information on Yelp’s page.

    According to the API v1.0 – Deprecated page, it says ( and hasn’t been updated in any way yet )

    reviews> list> Contains a list of 3 reviews associated with business> 1 per business

    .

    Maybe I’ll have to rewrite the plugin to work with the API v1.0 in order to get the 3 reviews ( I still have to test if that theory will work).

    If anyone is willing to help, and could share their “new” API Keys with me for the purpose of testing and maybe giving me some time to test, I’ll do my best to get a new version out that will work the way it used to. my email is contactflavio*at*gmail.com

    I just emailed you the API I created today as well as the page I have the widget on. Hopefully we can find a solution to display 3 ??

    Great plugin BTW!

    Plugin Author flaviodj

    (@flaviodj)

    OK everyone I’ve coded almost the entire widget again to get it working with the API v1 I believe I’ve fixed most bugs too. I’ll close this topic.
    If you have a new bug, please open a new support ticket.
    Also you will need to enter the phone number of the business and the APIv1 Key (don’t forget to change those settings) I’ve done away with the Keys, tokens and business page because API v1 works a bit differently.

    Sorry for the delay.

    I am experiencing the same problem. Is there a fix for this yet? Stellar plugin when more than one are scrolling or fading. ?? Thanks

    Plugin Author flaviodj

    (@flaviodj)

    Hi briandalgarn,

    If you signed up for the API recently (I believe after march 2014) yelp changed their API data access and you will only be getting 1 review instead of the 3 (like in the past). I can’t do much for you, sorry.

    It’s yelps fault… they first made the change on the APIv2 and now they changed it on the APIv1 aswell.

    (such a greedy company… they are awful (I know) and I hate the fact that they didn’t bother to even notify us developers…)

    Plugin Author flaviodj

    (@flaviodj)

    Forgot to add, I did a bit of a write up on it here if you’d like to find out more

    That totally stinks, man! I appreciate the quick response and quality information. That practically makes it useless :\ You had a great thing going, I am really sorry they ruined it for you.

    Hi @flaviodj,

    First off thanks for your hard work on creating and supporting this plugin as it works excellent for a few of our clients.

    Quick request, how can I go about stopping the “looping” within the plugin code? Since we are able to only show 1 review due to Yelp’s API restrictions this may be the best course of action for us.

    Cheers and thanks again!

    Hi I am also wondering how we can turn off the loop since it only will show one review?

    thx

    Hello – I was wondering if there was any update on this. I noticed that the original poster’s website is displaying all there reviews but i am still stuck with it cycling through the same one over and over. I have tried the code updates suggested above and still nothing.

    Thanks,
    T

    Is there atleast a way to get the plugin to stop scrolling and have it just stick on one review instead of scrolling to the same review.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Only 1 Review Showing on Loop’ is closed to new replies.