Forum Replies Created

Viewing 15 replies - 31 through 45 (of 62 total)
  • Plugin Author flaviodj

    (@flaviodj)

    Sorry for the trouble.
    I can see that the code gets posted but the browser isn’t displaying (as you said).
    I have to do some more research on the problem, but I’ll get back to you.

    Would you remember what version (plugin) you had before the problem happened?

    That would help me a lot on narrowing down the problem
    I’d say you can update wordpress, it would not interfere with the plugin, and it should work on 3.6.1 as well as it (should) now.

    Thanks!

    Plugin Author flaviodj

    (@flaviodj)

    What?
    LOL had the widget installed properly but used a “competing” widget, no wonder mine wasn’t showing.
    Never gave his time to try and give me the input necessary in order for me to fix the widget.
    I proved him what was wrong with his complaint here
    Self-entitled **** I shared my work, I don’t work for you

    Plugin Author flaviodj

    (@flaviodj)

    found one problem

    I believe it has to do with your template. it throws this code when starting the header of the widget
    <aside id="yrtwidget-3" class="widget-container widget_yrtwidget"><h3 class="widget-title">Recommended on Yelp</h3><div>

    if I remove the id="yrtwidget-3" it shows the reviews.

    <aside class="widget-container widget_yrtwidget"><h3 class="widget-title">Recommended on Yelp</h3><div>

    makes it work,… now I don’t know what is making it to show the “id” in the header, and it seems to be isolated, might be interesting to ask the theme makers how to get rid of that

    Here it is without the extra id

    Plugin Author flaviodj

    (@flaviodj)

    actually 1.0.1
    sorry that is when I changed the div values

    Plugin Author flaviodj

    (@flaviodj)

    I am baffled,
    In your case Arktikmourning, your html code is displaying but the browser is not showing, very wierd.

    I think your case might be something to do with the divs and the css.

    would you please go back to version 1.0.2 see if it works thanks!
    (it might be better for you to open your own thread, since your problem is different)

    Plugin Author flaviodj

    (@flaviodj)

    do me a favor, go into the plugin folder (/wp-content/plugins/yelp-reviews-ticker/) edit the file “yrt.php”
    after line 94:
    $arr = (array) $response;

    add this:

    $arr = (array) $response;
    var_dump($response);

    let me know what the result is

    Plugin Author flaviodj

    (@flaviodj)

    Where it says “API Business URL” (just before the keys) your link should look like this:

    https://api.yelp.com/v2/business/kirwan-computer-redmond

    I believe you added the one above (this is incorrect):
    https://www.yelp.com/biz/kirwan-computer-redmond

    Let me know if that solves the problem please

    Plugin Author flaviodj

    (@flaviodj)

    I just updated the plugin,

    I’ve fixed all I could on the stars, please update and let me know how it feels.

    Thanks!

    It is because the same class has already been instated.
    An easy fix would (for future proofing against other widgets/plugins using the yelp oauth api), (for the dev)
    go into the “lib/” folder
    Find the file
    oauth.php
    find the code

    Line 7: class OAuthException extends Exception {
    Line 13: class OAuthConsumer {
    Line 29: class OAuthToken {
    Line 49: OAuthUtil::urlencode_rfc3986($this->key) .
    Line 51: OAuthUtil::urlencode_rfc3986($this->secret);
    Line 63: abstract class OAuthSignatureMethod {
    Line 104: class OAuthSignatureMethod_HMAC_SHA1 extends OAuthSignatureMethod {
    Line 118: $key_parts = OAuthUtil::urlencode_rfc3986($key_parts);
    Line 131: class OAuthSignatureMethod_PLAINTEXT extends OAuthSignatureMethod {
    Line 151: $key_parts = OAuthUtil::urlencode_rfc3986($key_parts);
    Line 167: abstract class OAuthSignatureMethod_RSA_SHA1 extends OAuthSignatureMethod {
    Line 227: class OAuthRequest {
    Line 238: $parameters = array_merge( OAuthUtil::parse_parameters(parse_url($http_url, PHP_URL_QUERY)), $parameters);
    Line 265: $request_headers = OAuthUtil::get_headers();
    Line 268: $parameters = OAuthUtil::parse_parameters($_SERVER[‘QUERY_STRING’]);
    Line 286: $header_parameters = OAuthUtil::split_header(
    Line 294: return new OAuthRequest($http_method, $http_url, $parameters);
    Line 302: $defaults = array(“oauth_version” => OAuthRequest::$version,
    Line 303: “oauth_nonce” => OAuthRequest::generate_nonce(),
    Line 304: “oauth_timestamp” => OAuthRequest::generate_timestamp(),
    Line 311: return new OAuthRequest($http_method, $http_url, $parameters);
    Line 355: return OAuthUtil::build_http_query($params);
    Line 372: $parts = OAuthUtil::urlencode_rfc3986($parts);
    Line 419: return OAuthUtil::build_http_query($this->parameters);
    Line 428: $out = ‘Authorization: OAuth realm=”‘ . OAuthUtil::urlencode_rfc3986($realm) . ‘”‘;
    Line 431: $out = ‘Authorization: OAuth’;
    Line 437: throw new OAuthException(‘Arrays not supported in headers’);
    Line 440: $out .= OAuthUtil::urlencode_rfc3986($k) .
    Line 442: OAuthUtil::urlencode_rfc3986($v) .
    Line 488: class OAuthServer {
    Line 571: throw new OAuthException(“OAuth version ‘$version’ not supported”);
    Line 580: $signature_method = $request instanceof OAuthRequest
    Line 587: throw new OAuthException(‘No signature method parameter. This parameter is required’);
    Line 593: throw new OAuthException(
    Line 606: $consumer_key = $request instanceof OAuthRequest
    Line 611: throw new OAuthException(“Invalid consumer key”);
    Line 616: throw new OAuthException(“Invalid consumer”);
    Line 626: $token_field = $request instanceof OAuthRequest
    Line 634: throw new OAuthException(“Invalid $token_type token: $token_field”);
    Line 645: $timestamp = $request instanceof OAuthRequest
    Line 648: $nonce = $request instanceof OAuthRequest
    Line 666: throw new OAuthException(“Invalid signature”);
    Line 676: throw new OAuthException(
    Line 684: throw new OAuthException(
    Line 696: throw new OAuthException(
    Line 708: throw new OAuthException(“Nonce already used: $nonce”);
    Line 715: class OAuthDataStore {
    Line 742: class OAuthUtil {
    Line 774: $params[$h] = OAuthUtil::urldecode_rfc3986(empty($matches[3][$i]) ? $matches[4][$i] : $matches[3][$i]);
    Line 840: $parameter = OAuthUtil::urldecode_rfc3986($split[0]);
    Line 841: $value = isset($split[1]) ? OAuthUtil::urldecode_rfc3986($split[1]) : ”;
    Line 865: $keys = OAuthUtil::urlencode_rfc3986(array_keys($params));
    Line 866: $values = OAuthUtil::urlencode_rfc3986(array_values($params));

    Replacce the “OAuth…” with say “YWPOAuth…” like this:

    Line 7: class YWPYWPOAuthException extends Exception {
    Line 13: class YWPYWPOAuthConsumer {
    Line 29: class YWPYWPOAuthToken {
    Line 49: YWPOAuthUtil::urlencode_rfc3986($this->key) .
    Line 51: YWPOAuthUtil::urlencode_rfc3986($this->secret);
    Line 63: abstract class YWPOAuthSignatureMethod {
    Line 104: class YWPOAuthSignatureMethod_HMAC_SHA1 extends YWPOAuthSignatureMethod {
    Line 118: $key_parts = YWPOAuthUtil::urlencode_rfc3986($key_parts);
    Line 131: class YWPOAuthSignatureMethod_PLAINTEXT extends YWPOAuthSignatureMethod {
    Line 151: $key_parts = YWPOAuthUtil::urlencode_rfc3986($key_parts);
    Line 167: abstract class YWPOAuthSignatureMethod_RSA_SHA1 extends YWPOAuthSignatureMethod {
    Line 227: class YWPOAuthRequest {
    Line 238: $parameters = array_merge( YWPOAuthUtil::parse_parameters(parse_url($http_url, PHP_URL_QUERY)), $parameters);
    Line 265: $request_headers = YWPOAuthUtil::get_headers();
    Line 268: $parameters = YWPOAuthUtil::parse_parameters($_SERVER[‘QUERY_STRING’]);
    Line 286: $header_parameters = YWPOAuthUtil::split_header(
    Line 294: return new YWPOAuthRequest($http_method, $http_url, $parameters);
    Line 302: $defaults = array(“YWPOAuth_version” => YWPOAuthRequest::$version,
    Line 303: “YWPOAuth_nonce” => YWPOAuthRequest::generate_nonce(),
    Line 304: “YWPOAuth_timestamp” => YWPOAuthRequest::generate_timestamp(),
    Line 311: return new YWPOAuthRequest($http_method, $http_url, $parameters);
    Line 355: return YWPOAuthUtil::build_http_query($params);
    Line 372: $parts = YWPOAuthUtil::urlencode_rfc3986($parts);
    Line 419: return YWPOAuthUtil::build_http_query($this->parameters);
    Line 428: $out = ‘Authorization: YWPOAuth realm=”‘ . YWPOAuthUtil::urlencode_rfc3986($realm) . ‘”‘;
    Line 431: $out = ‘Authorization: YWPOAuth’;
    Line 437: throw new YWPOAuthException(‘Arrays not supported in headers’);
    Line 440: $out .= YWPOAuthUtil::urlencode_rfc3986($k) .
    Line 442: YWPOAuthUtil::urlencode_rfc3986($v) .
    Line 488: class YWPOAuthServer {
    Line 571: throw new YWPOAuthException(“YWPOAuth version ‘$version’ not supported”);
    Line 580: $signature_method = $request instanceof YWPOAuthRequest
    Line 587: throw new YWPOAuthException(‘No signature method parameter. This parameter is required’);
    Line 593: throw new YWPOAuthException(
    Line 606: $consumer_key = $request instanceof YWPOAuthRequest
    Line 611: throw new YWPOAuthException(“Invalid consumer key”);
    Line 616: throw new YWPOAuthException(“Invalid consumer”);
    Line 626: $token_field = $request instanceof YWPOAuthRequest
    Line 634: throw new YWPOAuthException(“Invalid $token_type token: $token_field”);
    Line 645: $timestamp = $request instanceof YWPOAuthRequest
    Line 648: $nonce = $request instanceof YWPOAuthRequest
    Line 666: throw new YWPOAuthException(“Invalid signature”);
    Line 676: throw new YWPOAuthException(
    Line 684: throw new YWPOAuthException(
    Line 696: throw new YWPOAuthException(
    Line 708: throw new YWPOAuthException(“Nonce already used: $nonce”);
    Line 715: class YWPOAuthDataStore {
    Line 742: class YWPOAuthUtil {
    Line 774: $params[$h] = YWPOAuthUtil::urldecode_rfc3986(empty($matches[3][$i]) ? $matches[4][$i] : $matches[3][$i]);
    Line 840: $parameter = YWPOAuthUtil::urldecode_rfc3986($split[0]);
    Line 841: $value = isset($split[1]) ? YWPOAuthUtil::urldecode_rfc3986($split[1]) : ”;
    Line 865: $keys = YWPOAuthUtil::urlencode_rfc3986(array_keys($params));
    Line 866: $values = YWPOAuthUtil::urlencode_rfc3986(array_values($params));

    now go into the file in the root of the plugin widget.php

    find this:

    Line 45: $token = new OAuthToken($yelp_widget_token, $yelp_widget_token_secret);
    Line 51: $consumer = new OAuthConsumer($yelp_widget_consumer_key, $yelp_widget_consumer_secret);
    Line 54: $signature_method = new OAuthSignatureMethod_HMAC_SHA1();
    Line 98: $oauthrequest = OAuthRequest::from_consumer_and_token($consumer, $token, ‘GET’, $unsigned_url, $urlparams);
    Line 98: $oauthrequest = OAuthRequest::from_consumer_and_token($consumer, $token, ‘GET’, $unsigned_url, $urlparams);

    replace it by:

    Line 45: $token = new YWPOAuthToken($yelp_widget_token, $yelp_widget_token_secret);
    Line 51: $consumer = new YWPOAuthConsumer($yelp_widget_consumer_key, $yelp_widget_consumer_secret);
    Line 54: $signature_method = new YWPOAuthSignatureMethod_HMAC_SHA1();
    Line 98: $oauthrequest = YWPOAuthRequest::from_consumer_and_token($consumer, $token, ‘GET’, $unsigned_url, $urlparams);
    Line 98: $oauthrequest = YWPOAuthRequest::from_consumer_and_token($consumer, $token, ‘GET’, $unsigned_url, $urlparams);

    That should take care of any other class conflicts, even if someone alters the oauth.php in another plugin

    Plugin Author flaviodj

    (@flaviodj)

    I just posted the 1.0.3, would you mind confirming that if you set it to 0 (zero) it will stop the “ticker”

    and would you be kind and rate (stars on the plugin page) the plugin please?

    Thanks!

    Plugin Author flaviodj

    (@flaviodj)

    Thanks for the input it’s great to hear from users and fix bugs

    1) I could make that option, leaving it blank will make it work incorrectly sorry, I’ll try and fix that. but having a stopped “ticker” kind of defeats the name of the plugin. I’ll give it a thought
    If you set the speed at 0 it will remain still (won’t scroll)
    If you have the latest version (1.0.2 as of right now) defaults will appear when you add a new widgget, there is a bug within it, if you set the value at 0, it will save in the database but I don’t know why (yet) the value will show the default (2500) on the screen, but be assured 0 is what the db will have and show on your page. I’ll fix that in a few days, it’s just a display problem. if you change any other settings and save it again make sure to change the 2500 value to 0 again (until the bug is fixed)

    2) Sorry Yelp API will allow up to 3 reviews to be shown and no you cannot choose wich ones to show either. There is nothing I can do to change these values, unless I go out of the API and break their rules.
    And believe me, they’ve contacted me already made me make changes to my code a couple of times. I also wish they let you show all your reviews. But what they want is people to go thru their page to see the reviews (in it’s entirety and the rest of them). It all comes down to money and traffic (for them) and also prevent content to be stolen and/or altered.

    Plugin Author flaviodj

    (@flaviodj)

    Hello sunrisetk,

    Thanks for using the widget,
    I was looking at your page, the dots you see are there because jQuery seems like isn’t being loaded properly.

    Basically jQuery will convert the static HTML page into a moving/interactive page.
    WHat it does for the plugin is convert the
    <li> tags (the dots you see) into tables that move.

    Since your jQuery isn’t loading properly you end up seeing the “dots”.

    Your code display looks very messed up, maybe you’ve got a few too many plugins or a plugin that is interfering with a bunch others.

    Might be the minification or the w3-total-cache plugin.

    I’d suggest disabling a few plugins and trying out see if that resolves the problem.

    Also it is the same reason why your picture slide isn’t working properly, that also relays on jQuery.

    Please if you find what plugin is interfering with my plugin let me know, I’d like to fix my end if that is my part of the code (but I think it really isn’t)

    I’ll consider this as resolved since the problem is within your page not the plugin, but you may still continue the thread and I’ll do my best to help.

    Thanks again

    Plugin Author flaviodj

    (@flaviodj)

    Sorry maybe I missused my wording, I am not angry at all, I am happy someone is using my widget ?? just thought you had modded it and broke it.

    The display on your page includes the picture of the company just before the company name.
    Nowhere in my code I added that.

    My code:

    <div>
    
    	<h2><a href="<? echo $response->url; ?>" title="<? echo $response->url; ?>" ><? echo $response->name; ?></a></h2>
    	<i title="<? echo $response->rating; ?> star rating">
    		<img style="vertical-align:middle" alt="<? echo $response->rating; ?> star rating" src="<? echo $response->rating_img_url; ?>">
    	</i>
    	<? echo $response->review_count; ?> reviews
    </div>

    I just looked at the source of your page and noticed this image source
    "https://wordpress.petelower.com/wp-content/plugins/yelp-widget-pro/includes/images/yelp.png"

    Wich indicates (if you haven’t modded it) you are complaining about the wrong widget. what shows in your page is yelp-widget-pro

    Try revising your page and make sure you activated this plugin because you haven’t

    Here is the piece of code from “yelp widget pro” that produces what you have on the page

    <div class="biz-img-wrap"><img class="picture" src="<?php if (!empty($businesses[$x]->image_url)) {
                                echo esc_attr($businesses[$x]->image_url);
                            } else {
                                echo YELP_WIDGET_PRO_URL . '/includes/images/blank-biz.png';
                            }; ?>"
                                <?php
                                //Set profile image size
                                switch ($profileImgSize) {
    
                                    case '40x40':
                                        echo "width='40' height='40'";
                                        break;
                                    case '60x60':
                                        echo "width='60' height='60'";
                                        break;
                                    case '80x80':
                                        echo "width='80' height='80'";
                                        break;
                                    case '100x100':
                                        echo "width='100' height='100'";
                                        break;
                                    default:
                                        echo "width='60' height='60'";
                                } ?> /></div>

    Sorry you have the wrong widget

    Plugin Author flaviodj

    (@flaviodj)

    Sorry for the delay,
    But I can clearly see you’ve altered the original code ( for instance you’ve added the business picture )

    It seems like you’ve commented out or broken the code.
    Re install using the original files and that should fix it.

    You can also add some code on the file yrt.php

    print_r($response);

    you should add that right after

    $response = json_decode($data);

    and you should have the api response appear, maybe that will get you on track

    If you’d like help modding the original widget please let me know, but please don’t act as if my code is broken.

    Thanks (marking as resolved since original code is not being used)

    Plugin Author flaviodj

    (@flaviodj)

    Just updated (v1.0.1) please update, I got it to work on my end ( firefox, IE and Chrome tested), Please let me know if it doesn’t

    Thanks for the support on reporting bugs!

Viewing 15 replies - 31 through 45 (of 62 total)