Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • Honzazi Friend
    #186343

    Hi,

    I have few questions…

    1, Is there any way I can have Icon for Instagram and Youtube – like it is in Facebook and Twitter feeds?

    2, Also, I wish to use Facebook comment instead of “Leave a comment” (Again in K2) Is it possible?

    3, The images in Video Section Images have the play button overlay… How can I have it in K2 Please?

    4, the last thing is, is there any way I can upload very old feeds? I have in Facebook, Twitter, Youtube etc more than 100 updates and I wish to have there all of them… What is the best way to do it please?

    Thanks a lot
    Regards

    Honzazi Friend
    #488461

    Anyone, please? 🙂

    Honzazi Friend
    #488476

    Please, I really need help here 🙁

    Wall Crasher Developer
    #488569

    Hi Honzazi,

    I will try to answer you questions as below:

    <blockquote>1, Is there any way I can have Icon for Instagram and Youtube – like it is in Facebook and Twitter feeds?</blockquote>
    Yes, just copy this block css to templatesja_wallcsstemplate.css

    .item.instagram .item-header {
    background: url(../images/icon-instagram.png) no-repeat left center;
    margin-bottom: 10px;
    padding: 0 0 0 40px;
    }

    .item.instagram:hover .item-header {
    background: url(../images/icon-instagram-hover.png) no-repeat left center;
    }

    You should placed all instagram feed to “instagram” folder and find two image to put to templatesja_wallimagesicon-instagram.png

    For youtube, I think they already have a “play” icon. If you does not like that icon, you can move all your youtube feeds to a new ‘youtube’ (should be correct name) category, then clone the css code above, replace “instagram” to “youtube”.
    You also need 2 image for youtube icon.

    2, Also, I wish to use Facebook comment instead of “Leave a comment” (Again in K2) Is it possible?
    Yes

    <script type="text/javascript">
    (function(d){
    var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
    if (d.getElementById(id)) {return;}
    js = d.createElement('script'); js.id = id; js.async = true;
    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
    ref.parentNode.insertBefore(js, ref);
    }(document));
    </script>

    <div class="fb-comments" data-href="<?php echo JURI::getInstance()->toString(array('scheme', 'host', 'port')) . $this->item->readmore_link; ?>" data-num-posts="2" data-width="576"></div>

    Just turn K2 Comment off and add the block code above to templatesja_wallhtmlcom_k2ja_wallitem.php
    You may need to add to other file if you are using other style.

    3, The images in Video Section Images have the play button overlay… How can I have it in K2 Please?
    Just put all articles to a “video” category.

    4, the last thing is, is there any way I can upload very old feeds? I have in Facebook, Twitter, Youtube etc more than 100 updates and I wish to have there all of them… What is the best way to do it please?
    Sorry, JA Social feed does not support to get those old feeds.

    Hope it helps.

    Regards

    Honzazi Friend
    #488605

    Hi,
    thanks a lot for your reply!

    1. Excuse me, you are saying “You should placed all instagram feed to “instagram” folder” – by folder, you mean Category? Or what folder?
    + and for youtube the code would be?
    .item.youtube .item-header {
    background: url(../images/icon-youtube.png) no-repeat left center;

    2. Perfect

    3. Could you tell me how I can change the image overlay?

    4. Is there anyway/hack around it?

    Thanks a lot

    Wall Crasher Developer
    #488647

    Hi Honzazi,

    1. Yes, instagram category. You also need to add the the block css and image as I said above.

    3. You mean the ‘play’ icon or the ‘cover image’. For ‘play’ icon, you can replace the image here
    /templates/ja_wall/images/icon-play.png

    Or change css at: /templates/ja_wall/css/template.css

    .item.video .item-image span {
    background: url(../images/icon-play.png) no-repeat left top;
    content: "";
    display: block;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    position: absolute;
    left: 50%;
    top: 50%;
    }

    For the ‘cover image’. Those images are automatic get from youtube server.
    You can edit image by edit that article and upload a new image.

    4. Please open file pluginssystemjasocial_feedjasocial_feed.php in order you want to customize.
    You should also set the import Limit in social feeds profile to 100.

    – For facebook, it seem there no hack for current approach in our implement, you can copy the post and import like normal article.
    – For youtube, you can set the limit and start index
    $fetchUrl = “https://gdata.youtube.com/feeds/api/users/”.$ytName.”/uploads?start-index=1&max-results=100&v=2″;

    – For twitter, just set Import Limit to 100.
    If you need to get older feeds, just set the page or start-index.

    – Youtube: start-index=101&max-results=100
    – Twitter: $page = 1; (pluginssystemjasocial_feedjasocial_feed.php around at line 334 ), change this value to 2 of you want to get page 2.

    Hope it helps.

    Regards

    Honzazi Friend
    #488685

    Thanks a lot 🙂
    Will try it all and let you know.
    Regards

    Honzazi Friend
    #489022

    Hi,

    sorry, I tried the 4 topic, changing the limits and it dodn’t work 🙁 Can you tell me exactly, how to change it please? Here is the orig code:

    //IMPORT PROCESS
    $ytKey = $ytName.'_';

    $last_insert_id = isset($this->aInfo[$ytKey.'fb_last_id']) ? $this->aInfo[$ytKey.'fb_last_id'] : '';

    $fetchUrl = "http://gdata.youtube.com/feeds/base/users/".$ytName."/uploads?orderby=updated&alt=json";
    $content = $this->getContent($fetchUrl);

    $data = json_decode($content);

    $numResult = 0;
    //$aResult = array();

    Also, how can I change the Instagram please?
    Thanks a lot!

    Wall Crasher Developer
    #489090

    Hi Honzazi,

    It seem youtube has just limit the max-results value.
    Please set it to 50.

    For example:

    if you want to get video from 1 – 50:
    $fetchUrl = “http://gdata.youtube.com/feeds/base/users/”.$ytName.”/uploads?orderby=updated&alt=json&start-index=1&max-results=50&v=2″;

    if you want to get video from 51 – 100:
    $fetchUrl = “http://gdata.youtube.com/feeds/base/users/”.$ytName.”/uploads?orderby=updated&alt=json&start-index=51&max-results=50&v=2″;

    Just make change to the file, saved, then press button Run now.

    Regards

    rgroy Friend
    #554626

    Hi,

    It didn’t worked for me in 1.7.1 version, till I got changed the propossed:

    $fetchUrl = “http://gdata.youtube.com/feeds/base/users/”.$ytName.”/uploads?orderby=updated&alt=json&start-index=1&max-results=50&v=2″;

    to

    $fetchUrl = “http://gdata.youtube.com/feeds/base/users/”.$ytName.”/uploads?start-index=1&max-results=50&orderby=updated&alt=json”;

    I made that lines for importing 171 videos, uncomenting step by step.

    //$fetchUrl = “http://gdata.youtube.com/feeds/base/users/”.$ytName.”/uploads?start-index=1&max-results=50&orderby=updated&alt=json”;
    //$fetchUrl = “http://gdata.youtube.com/feeds/base/users/”.$ytName.”/uploads?start-index=51&max-results=50&orderby=updated&alt=json”;
    //$fetchUrl = “http://gdata.youtube.com/feeds/base/users/”.$ytName.”/uploads?start-index=101&max-results=50&orderby=updated&alt=json”;
    //$fetchUrl = “http://gdata.youtube.com/feeds/base/users/”.$ytName.”/uploads?start-index=151&max-results=50&orderby=updated&alt=json”;

    So after imported 100 videos I had to applied intro text for the last 71 and switch the “url converter services”.

    My question now it’s: Why the text of the youtube video it’s trimmed (other plugins as autotube it does not trimming it!) and why not getting responsive videos?

    Regards and thanks a lot for your solutions
    Ric

    Saguaros Moderator
    #554722

    Hi Ric,

    It will take the description of video, I just tried to import but it displays full description.

    You can post your site URL here and tell me the page where problem can be seen + Youtube username, I will take a look.

Viewing 11 posts - 1 through 11 (of 11 total)

This topic contains 11 replies, has 4 voices, and was last updated by  Saguaros 9 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum