-
AuthorPosts
-
mehmet_alp Friend
mehmet_alp
- Join date:
- April 2009
- Posts:
- 97
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 14
- Thanked:
- 2 times in 1 posts
January 1, 2013 at 9:07 pm #183557Hello 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 DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
January 2, 2013 at 6:36 am #478050Hi 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.
Regardsmehmet_alp Friendmehmet_alp
- Join date:
- April 2009
- Posts:
- 97
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 14
- Thanked:
- 2 times in 1 posts
January 2, 2013 at 10:40 am #478099Thank 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 DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
January 3, 2013 at 9:20 am #478242Hi 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 Friendmehmet_alp
- Join date:
- April 2009
- Posts:
- 97
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 14
- Thanked:
- 2 times in 1 posts
January 4, 2013 at 9:26 pm #478471Hi 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 DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
January 5, 2013 at 1:53 am #478477Hi 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 Friendmehmet_alp
- Join date:
- April 2009
- Posts:
- 97
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 14
- Thanked:
- 2 times in 1 posts
January 8, 2013 at 10:07 pm #478975Well 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 DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
January 9, 2013 at 3:34 am #479012Hi 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 Friendmehmet_alp
- Join date:
- April 2009
- Posts:
- 97
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 14
- Thanked:
- 2 times in 1 posts
January 16, 2013 at 7:47 pm #480069Hi 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 Friendmehmet_alp
- Join date:
- April 2009
- Posts:
- 97
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 14
- Thanked:
- 2 times in 1 posts
January 16, 2013 at 10:01 pm #480078And 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 DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
January 17, 2013 at 2:20 am #480083Hi 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
1 user says Thank You to Wall Crasher for this useful post
mehmet_alp Friendmehmet_alp
- Join date:
- April 2009
- Posts:
- 97
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 14
- Thanked:
- 2 times in 1 posts
January 18, 2013 at 8:25 pm #480361Thanks now it works
-
AuthorPosts
This topic contains 12 replies, has 2 voices, and was last updated by mehmet_alp 11 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum