• Resolved lking57

    (@lking57)


    Just downloaded Custom Facebook Feed 2.2.1.

    What is the easiest way to add this feed as a widget? I didn’t see if there was a widget created when I activated the plugin.

    Also I want the name but not avatar of post author, if that’s possible, to save space on page.

    thanks

    ## SITE/SERVER INFO: ##
    Site URL:                 http://steeplechasers.org/steepsv2
    Home URL:                 http://steeplechasers.org/steepsv2
    WordPress Version:        4.0.1
    PHP Version:              5.3.24
    Web Server Info:          Apache
    PHP allow_url_fopen:      Yes
    PHP cURL:                 Yes
    JSON:                     Yes
    
    ## ACTIVE PLUGINS: ##
    Custom Facebook Feed: 2.2.1
    Go Daddy Quick Setup: 1.04
    Rewrite Rules Inspector: 1.2.1
    The Events Calendar: 3.8.1
    Welcome to WordPress: 1.0
    
    ## PLUGIN SETTINGS: ##
    Use own Access Token:
    Access Token:
    Page ID:                200416424666
    Page Type:              group
    Number of Posts:        5
    Post Limit:             30
    Show Posts by:          me
    Cache Time:             1
    Cache Unit:             hours
    Locale:                 en_US
    Timezone:               <br />
    <b>Notice</b>:  Undefined index: cff_timezone in <b>/home/content/89/11476389/html/steepsv2/wp-content/plugins/custom-facebook-feed/custom-facebook-feed-admin.php</b> on line <b>438</b><br />
    
    ## EXTENSIONS: ##
    Extensions Plugin:
    Date Range From:
    Date Range Until:
    Featured Post:
    Lightbox:               
    
    ## CUSTOMIZE: ##
    cff_show_links_type => 1
    cff_show_event_type => 1
    cff_show_video_type => 1
    cff_show_photos_type => 1
    cff_show_status_type => 1
    cff_show_author => 1
    cff_show_text => 1
    cff_show_desc => 1
    cff_show_shared_links => 1
    cff_show_date => 1
    cff_show_media => 1
    cff_show_event_title => 1
    cff_show_event_details => 1
    cff_show_meta => 1
    cff_show_link => 1
    cff_show_like_box => 1
    
    ## FACEBOOK API RESPONSE: ##
    {"data":[{"id":"200416424666_10152661951314667","from":{"id":"1682023982","name":"Kevin Cuozzo"},"to":{"data":[{"name":"Frederick Steeplechaser's Running Club","id":"200416424666"}]},"message":"Are there any 5ks on 12\/20?\nVisiting my home town","actions":[{"name":"Like","link":"https:\/\/www.facebook.com\/200416424666\/posts\/10152661951314667"}],"privacy":{"value":""},"type":"status","application":{"name":"Facebook for iPhone","namespace":"fbiphone","id":"6628568379"},"created_time":"2014-11-28T02:25:50+0000","updated_time":"2014-11-28T12:00:00+0000","likes":{"data":[{"id":"1102802202","name":"Jolene Haile-Miller"}],"paging":{"cursors":{"after":"MTEwMjgwMjIwMg==","before":"MTEwMjgwMjIwMg=="}}},"comments":{"data":[{"id":"10152662037119667","from":{"id":"1102802202","name":"Jolene Haile-Miller"},"message":"They do a reindeer run with the Frederick rescue mission starting in baker park.  Donation of can good to participate....it's a fun run around downtown.","can_remove":false,"created_time":"2014-11-28T03:32:41+0000","like_count":0,"user_likes":false},{"id":"10152662577959667","from":{"id":"1418271631","name":"Michelle Mitchell"},"message":"That is on 12\/13 is year I think","can_remove":false,"created_time":"2014-11-28T12:00:00+0000","like_count":0,"user_likes":false}],"paging":{"cursors":{"after":"WTI5dGJXVnVkRjlqZFhKemIzSTZNVEF4TlRJMk5qSTFOemM1TlRrMk5qYzZNVFF4TnpFM05qQXdNRG90TVE9PQ==","before":"WTI5dGJXVnVkRjlqZFhKemIzSTZNVEF4TlRJMk5qSXdNemN4TVRrMk5qYzZNVFF4TnpFME5UVTJNVG90TVE9PQ=="}}}}],"paging":{"previous":"https:\/\/graph.facebook.com\/v1.0\/200416424666\/feed?limit=1&since=1417176000&access_token=611606915581035|RdRHbHtrHseQw4C7SDUBFWIrJLA&__paging_token=enc_AezUSGGebfi7-TzDhsXyOrBLw-Rx3GVed-ucBpHLRcURfAP8NDZ-FukHWKLcH9106aaLuRyHZ_DiKUw0QeRKKbC-rD4wjnBZo5jeSIC9g3xb8Q&__previous=1","next":"https:\/\/graph.facebook.com\/v1.0\/200416424666\/feed?limit=1&access_token=611606915581035|RdRHbHtrHseQw4C7SDUBFWIrJLA&until=1417176000&__paging_token=enc_AewAiJlNxY8DnMnr6h_3hjvxelgGbAu-Ux0oVzOrRJTdK7do2yodPVV0iLB1-uAJmul4Ayco7sZrWKRXhJTMQjqg759AQrQTapJ3GqUz5SAmJg"}}

    https://ww.wp.xz.cn/plugins/custom-facebook-feed/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author smashballoon

    (@smashballoon)

    Hey lking57,

    You can just copy and paste the shortcode into the default WordPress ‘Text’ widget. There’s an example of this here.

    You can hide just the author avatar by adding the following to the plugin’s Custom CSS section, which is under the Misc tab on the plugin’s Customize page:

    #cff .cff-author-img{ display: none; }
    #cff .cff-author .cff-author-text *{ margin: 0; }

    Let me know whether that answers your questions,

    John

    Thread Starter lking57

    (@lking57)

    This looks good, pretty close to what I’m looking for. Do I have control over the template used for each post? It’d be nice if there were templates like IK Facebook plugin (which only does pages 🙁 )

    Plugin Author smashballoon

    (@smashballoon)

    Hey lking57,

    I’m afraid the plugin doesn’t include the ability to control the HTML used in the post templates. Due to the large number of customization options in the plugin it hasn’t really been feasible for us to include that option, although I’ll revisit this and see whether it’s something that could be added in the future.

    Most of the time, custom layouts can be achieved by using either CSS or JavaScript to manipulate the posts after they’re output. Is there a particular layout you’re trying to achieve? If so, I’d be happy to see whether I can point you in the right direction in regards to making the necessary customizations to achieve it.

    John

    Thread Starter lking57

    (@lking57)

    I think I got almost what I was looking for by messing around with the css. I was trying to get the post to look like:

    Author. Text text text. (on Facebook)

    or similar, but couldn’t figure out how to get rid of the display: block on the p and div tags after trying a lot of different css attempts.

    I ended up with

    Author
    Text text text.
    View on Facebook

    which is acceptable. Having said that, if you have hints how to get rid of the line breaks, that would be helpful.

    Also, let me correct a mistake in my post. I saw the templates in the-events-calendar, not ik-facebook. I got confused because I’d been looking at a lot of plugins.

    Plugin Author smashballoon

    (@smashballoon)

    You’d likely have to set a max-width on the author and the text, float them both left, and set clear to be none. If you’re able to send me a link to what you have so far then I’d be happy to take a crack at it for you.

    John

    Thread Starter lking57

    (@lking57)

    Thanks. Appreciate this if you have time. Note I’d also like to remove newlines from the facebook posts, similar to the_excerpt()

    http://steeplechasers.org/steepsv2/

    This is a work in progress, so may change from now or while you’re looking at it. Hopefully I don’t break anything too drastically before you get a chance to view it.

    Thread Starter lking57

    (@lking57)

    Actually thanks anyway. I talked with some people, and they like the current format.

    Plugin Author smashballoon

    (@smashballoon)

    No problem. Just in case you want to try it, you can achieve the format you originally described by just adding the following to the plugin’s Custom CSS section, which is under the Misc tab on the plugin’s Customize page:

    #cff .cff-author{ width: 20%; }
    #cff .cff-post-text{ width: 80%; clear: none; }

    John

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘no widget?’ is closed to new replies.