Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • mehmet_alp Friend
    #183557

    Hello everyone,

    first of all, I wish u all a health and wealthy and happy new year 🙂

    I am using JA Wall with minimalist theme I fave a tweet, a g+ and a faceboook like button but no facebook share.

    How to can I have a share function for Facebook?

    Tnx in advance and all the best

    Alp

    Wall Crasher Developer
    #478050

    Hi mehmet_alp,

    You can add facebook share button to your site with the help of this post http://diythemes.com/thesis/rtfm/facebook-share-button/

    <div class="fb_share">
    <a name="fb_share" type="box_count" share_url="<?php echo JURI::getInstance()->toString(array('scheme', 'host', 'port')) . $this->item->readmore_link; ?>"
    href="http://www.facebook.com/sharer.php">Share</a>
    <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
    </div>

    For example, you can add this block code at the end of file templatesja_wallhtmlcom_contentarticledefault.php
    This will make the full article of Joomla Standard content show a facebook share button at the bottom.

    Just place this block code to where you want it displays.

    Hope it helps.
    Regards

    mehmet_alp Friend
    #478099

    Thank you very much for your replyç

    Can you tell me what I have to edit if the article are K2 items?

    Tnx

    Alp

    Wall Crasher Developer
    #478242

    Hi mehmet_alp,

    It is based on what K2 template you are using (ja_wall, ja_wall_blog, ja_wall_showcase, …)

    For example, if you are using ja_wall template, you can add the block code above to file templatesja_wallhtmlcom_k2ja_wallitem.php at line 182.

    Regards

    mehmet_alp Friend
    #478471

    Hi Wall Crasher,

    first of all thanks but unfortunatly it is not running.
    The share button appears but it is only sharing the main url (Url of the homepage). Not the url of the article.

    Wall Crasher Developer
    #478477

    Hi mehmet_alp,

    Please try again with new url.

    share_url="<?php echo JURI::getInstance()->toString(array('scheme', 'host', 'port')) . $this->item->link; ?>"

    Regards

    mehmet_alp Friend
    #478975

    Well now it’s getting the right url, but unfortunatly it is not sharing!
    Everything works fine unless I press the ‘share’!

    After this I’m going to facebook t see if it was successfully shared, and unfortunatly nthng!

    Wall Crasher Developer
    #479012

    Hi mehmet_alp,

    Can you please provide url of your site for me to check?
    And make sure your site is public so that facebook can connect to your site.

    Regards

    mehmet_alp Friend
    #480069

    Hi Wall Crasher,

    thanks for your answer.

    Here is my URL: http://www.ozan-arif.net

    Anytime I try this in my own chronic in facebook nothing appears.
    When I try this in any group or page I am subscribed to in facebook following message appears at the posting even to me:

    Attachment Unavailable
    This attachment may have been removed or the person who shared it may not have permission to share it with you.

    Tnx for your kind help

    mehmet_alp Friend
    #480078

    And one more thing:

    This is the code I added:

    <div class=”fb_share”>
    <a name=”fb_share” type=”box_count” share_url=”<?php echo JURI::getInstance()->toString(array(‘scheme’, ‘host’, ‘port’)) . $this->item->link; ?>”
    href=”http://www.facebook.com/sharer.php”>Share</a>
    <script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share” type=”text/javascript”></script>
    </div>

    Wall Crasher Developer
    #480083

    Hi mehmet_alp,

    You can try this ( pm me FTP account if it doesn’t work)

    1. Open templates/ja_wall/index.php and remove AppId from
    js.src = “//connect.facebook.net/en_US/all.js#xfbml=1&appId=332885830182”;
    => js.src = “//connect.facebook.net/en_US/all.js#xfbml=1″;

    2. Replace the code above to
    <div class=”fb-share”>
    <fb:share-button type=”button” href=”<?php echo JURI::getInstance()->toString(array(‘scheme’, ‘host’, ‘port’)) . $this->item->link; ?>” width=”70″ height=”20″></fb:share-button>
    </div>

    Hope it helps.

    Regards

    mehmet_alp Friend
    #480361

    Thanks now it works

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

This topic contains 12 replies, has 2 voices, and was last updated by  mehmet_alp 11 years, 10 months ago.

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