Forum Replies Created

Viewing 15 replies - 1 through 15 (of 26 total)
  • Thread Starter BramVanroy

    (@bramvanroy)

    I sent you an email. Thanks in advance!

    I am experiencing the same problem:

    2. On the plugin settings page, I have “None” in the pulldown for “Use this website to retrieve pageviews numbers:” I’m pretty sure I followed your set up instructions to the letter, including the Google API Project setup. On my site, I have 0 page views for posts I know are being viewed.

    Thread Starter BramVanroy

    (@bramvanroy)

    The information that’s there isn’t equal to the analytics either…

    Thread Starter BramVanroy

    (@bramvanroy)

    I cleared the cache, but no difference. Also where do I find the count on the edit pages?

    Thread Starter BramVanroy

    (@bramvanroy)

    Also, you don’t really need the “disqus_rcw_clear” div. You can add a css clear class to “disqus_rcw_author_wrapper” and in the css then:

    .disqus_rcw_author_wrapper.clear:after {
      content: "";
      display: table;
      clear: both;
    }

    This will only work for IE8 and up BUT because this is the HTML5 template, it isn’t really something to worry about.

    Also the <br> isn’t necessary, we can force this in css:
    .disqus_rcw_thread_title {display: block;}

    Which isn’t that odd, because “disqus_rcw_thread_title” behaves as a title, and titles are block elements anyway.

    Thread Starter BramVanroy

    (@bramvanroy)

    Cheers, love the new functionalities!

    Some notes, if I may: WordPress automatically puts a widget in an “aside”, so no need to call line 213:
    $recent_comments .= '<aside id="disqus_rcw_title" class="widget">';

    And delete the closing “aside-tag” on line 301.
    if($style_params['markup_style'] == 'html5') $recent_comments .= '</ul></aside>';

    I think I made that call, but apparently I was wrong. I’m sorry for that!

    I don’t really like the classic markup, but I’m not going to use it any way, and also: that’s how other users are used to the plugin. So maybe it’s a good thing that that option is still available. Everything seems to work fine, so great job! Just getting rid of that wrapping “aside” and it’s good to go!

    Thread Starter BramVanroy

    (@bramvanroy)

    After looking at some other plug-ins who fetch list data, it seems better to output the data as a list.

    Line 191:
    $recent_comments = '<aside id="disqus_rcw_title" class="widget disqus_rcw_widget"><h3 class="widget-title">Recente reacties</h3><ul>';

    Line 235

    //create comment html
    $comment_html = '
    <li class="disqus_rcw_single">
        <div class="disqus_rcw_author_wrapper">
            <a href="'.$author_profile.'">
                <img class="disqus_rcw_avatar" src="'.$author_avatar.'" alt="'.$author_name.'">
                <span class="disqus_rcw_author">'.$author_name.'</span>
    		</a>
        </div>
        <div class="disqus_rcw_content_wrapper">
            <a class="disqus_rcw_thread_title" href="'.$thread_link.'">'.$thread_title.'</a>
            <a class="disqus_rcw_message" href="'.$thread_link.$comment_id.'">'.$message.'</a>
        </div>
        <time datetime="'.$pub_date.'" class="disqus_rcw_post_time">'.$post_time.'</time>
    </li>';

    Line 259:
    $recent_comments .= '</ul></aside>';

    CSS

    .disqus_rcw_author_wrapper {margin-bottom: 7px;}
    img.disqus_rcw_avatar {
    	float: left;
    	width: 35px;
    	margin-right: 7px;
    }
    div.disqus_rcw_author {float: left;}
    .disqus_rcw_thread_title {font-weight: bold;display:block;}
    .disqus_rcw_post_time {font-size: 75%;}

    (That’s all the change I’ll make!)

    And I know I should, but I’m working on some projects now.

    Thread Starter BramVanroy

    (@bramvanroy)

    Thanks for the quick reply! Lookng forward to it.

    Thanks! (Don’t forget the “widget” class. :D)

    Thread Starter BramVanroy

    (@bramvanroy)

    I’m afraid I don’t know how GitHub works. I can post the code here if you want.

    Line 216

    $post_time = date(
        $style_params["date_format"] ,
        strtotime($comment_obj["created_at"].'+0000')
    );
    $pub_date = $comment_obj["createdAt"]; // ADDED

    I kinda changed the whole output of a comment ($comment_html) to get some more HTML5 in there (article, rel:author, time) and to get less divs and better names for the divs:

    //create comment html
    $comment_html = '
    <article class="disqus_rcw_single">
        <div class="disqus_rcw_meta_wrapper">
            <img class="disqus_rcw_avatar" src="'.$author_avatar.'" alt="'.$author_name.'">
            <div class="disqus_rcw_meta">
                <a href="'.$author_profile.'" rel="author">'.$author_name.'</a> -
                <time datetime="'.$pub_date.'" class="disqus_rcw_post_time">'.$post_time.'</time>
            </div>
        </div>
        <div class="disqus_rcw_content_wrapper"> <a class="disqus_rcw_thread_title" href="'.$thread_link.'">'.$thread_title.'</a>
    
            <div class="disqus_rcw_content">	<a href="'.$thread_link.$comment_id.'">'.$message.'</a>
    
            </div>
        </div>
    </article>';

    And to get the basic structure of this right, I would provide the following (relatively simple) css:

    /* WordPress clear method */
    .clear:after {
    	content: "";
    	display: table;
    	clear: both;
    }
    .clear:before {
    	display: table;
    	content: "";
    }
    
    /* General */
    .disqus_rcw_meta_wrapper {margin-bottom: 7px;}
    img.disqus_rcw_avatar {
    	float: left;
    	width: 35px;
    	margin-right: 7px;
    }
    div.disqus_rcw_meta {float: left;}
    .disqus_rcw_post_time {font-size: 75%;}
    .disqus_rcw_thread_title {font-weight: bold;}

    + 1 for this. Another nice touch would be to streamline the plugin with the rest of recent WP (3.6) This means using an “aside” with a class “widget” as a wrapper.

    Changing line 191
    $recent_comments = '<div id="disqus_rcw_title"><h4 class="widgettitle">Recent comments</h4>';

    to

    $recent_comments = '<aside id="disqus_rcw_title" class="widget"><h3 class="widget-title">Recente reacties</h3>';

    I was wondering the same thing. Even though photos are uploaded in a HD resolution, the photos are fetched in a lower resolution.

    Useful links for the developer of this plugin:
    https://stackoverflow.com/questions/14006979/getting-a-high-resolution-picture-from-facebook-api

    https://stackoverflow.com/questions/9821586/getting-high-resolution-photos-that-were-posted-on-a-page-wall-feed

    Thread Starter BramVanroy

    (@bramvanroy)

    Found it:
    In facebook-photo-fetcher/_output_gallery.php delete lines 15 to 17. These ones:

    //Don't process anything but POSTS and PAGES (i.e. no revisions)
        if( $data['post_type'] != 'post' && $data['post_type'] != 'page')
            return $data;

    And it should work!

    Thread Starter BramVanroy

    (@bramvanroy)

    This is nót solved! Also, The code worked on Opera and even Opera Mini but not on any other browser.

    Now I just enabled it on feed, but I want the buttons to link to the article, not to the main page.

    Thread Starter BramVanroy

    (@bramvanroy)

    Hello

    Do I include the scripts as well, when the plugin itself is activated? So I have activated the plugin for usage on some pages, so the scripts are loaded (I suppose), even when I’m on the home page?

    What I did know: added code to the head:

    <?php
    if ( is_home() ) {
        $sCounter = '<script type="text/javascript">var islrsharing = false; var islrsocialcounter = true;</script> <script type="text/javascript" src="//share.loginradius.com/Content/js/LoginRadius.js"></script> <script type="text/javascript"> LoginRadius.util.ready(function () { $SC.Providers.Selected = ["Facebook Send","Facebook Like","LinkedIn Share","Google+ +1","Twitter Tweet"]; $S = $SC.Interface.simple; $S.isHorizontal = true; $S.countertype = "vertical"; $S.left = "50px"; $S.top = "50px"; $S.show("lrcounter_simplebox"); }); </script>';
    
    	echo $sCounter;
    }
    ?>

    Added HTML dynamically:
    $j("body.home #content article div.entry-content").prepend("<div class='lrcounter_simplebox'></div>");

    But as you can see here, the buttons don’t show. The HTML is there <div class="lrcounter_simplebox"></div> in every entry-content but it’s empty. Any thoughts?

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