-
AuthorPosts
-
September 3, 2011 at 4:19 pm #168139
hi, i would it to change the k2 items social sharing button URL, but can’t find the place to edit it, would you mind to point me to the right direction?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
September 3, 2011 at 4:43 pm #410403Hi jedileong
The link to the button is in the K2.css at line 165 /templates/ja_travel/css/k2.css
The word Social sharing is in the /language/en-GB/en-GB.com_k2.ini line 87
September 4, 2011 at 1:18 pm #410481Hi Pavit,
thank you for your reply.
sorry if i make you confuse, i’m referring to add the social sharing code to this button, for example how do i add this code for this button :-<!– AddThis Button BEGIN –>
<div class=”addthis_toolbox addthis_default_style “>
<a href=”http://www.addthis.com/bookmark.php?v=250&pubid=” class=”addthis_button_compact”>Share</a>
</div>
<script type=”text/javascript” src=”http://s7.addthis.com/js/250/addthis_widget.js#pubid=”></script>
<!– AddThis Button END –>jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 4, 2011 at 1:52 pm #410484Hi
The block you are showed in k2 item.php file ( block sharing buttons ).
If you don’t mind i can help you , please PM with your site access than i can do it for you
Thank you
Viet VuSeptember 4, 2011 at 2:40 pm #410493Hi Viet Vu,
Thank you for your reply.
I have PM you the details, if you are busy, you can point me the exact location for this file so i could try to modify myself. =)September 5, 2011 at 3:31 pm #410789hi, anyone can point me to the exact file location to edit this?
jooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 5, 2011 at 3:37 pm #410791<em>@jedileong 265389 wrote:</em><blockquote>hi, anyone can point me to the exact file location to edit this?</blockquote>
Hi
Let’s me check your PM and back in few min.
Thank you
Viet Vujooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
September 5, 2011 at 3:42 pm #410793Sorry but i can’t access your FTP so i’ve checked w/ my local:
components/com_k2/templates/default/item.php
Line 349
You can see these code
<ul class="itemSocialLinks">
<li><a class="googlebuzz" title="<?php echo JText::_("Add to Google Buzz"); ?>" href="http://www.google.com/buzz/post?url=<?php echo $this->item->socialLink; ?>&message=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Google Buzz"); ?></span></a></li>
<li><a class="facebook" title="<?php echo JText::_("Add to Facebook"); ?>" href="http://www.facebook.com/sharer.php?u=<?php echo $this->item->socialLink; ?>&t=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Facebook"); ?></span></a></li>
<li><a class="delicious" title="<?php echo JText::_("Add to Delicious"); ?>" href="http://del.icio.us/post?url=<?php echo $this->item->socialLink; ?>&title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Delicious"); ?></span></a></li>
<li><a class="digg" title="<?php echo JText::_("Digg this"); ?>" href="http://digg.com/submit?url=<?php echo $this->item->socialLink; ?>&title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Digg this"); ?></span></a></li>
<li><a class="reddit" title="<?php echo JText::_("Add to Reddit"); ?>" href="http://reddit.com/submit?url=<?php echo $this->item->socialLink; ?>&title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to Reddit"); ?></span></a></li>
<li><a class="stumble" title="<?php echo JText::_("Add to StumbleUpon"); ?>" href="http://www.stumbleupon.com/submit?url=<?php echo $this->item->socialLink; ?>&title=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to StumbleUpon"); ?></span></a></li>
<li><a class="myspace" title="<?php echo JText::_("Add to MySpace"); ?>" href="http://www.myspace.com/Modules/PostTo/Pages/?l=3&u=<?php echo $this->item->socialLink; ?>&t=<?php echo urlencode($this->item->title); ?>" target="_blank"><span><?php echo JText::_("Add to MySpace"); ?></span></a></li>
<li><a class="technorati" title="<?php echo JText::_("Add to Technorati"); ?>" href="http://www.technorati.com/faves?add=<?php echo $this->item->socialLink; ?>" target="_blank"><span><?php echo JText::_("Add to Technorati"); ?></span></a></li>
You can add a another <li> and post your own code here
Please try and let’s me know your result or PM with FTP than i can help you
Thank you
Viet VuSeptember 7, 2011 at 3:34 pm #411252Dear VIet Vu,
Thank you for your reply, i just need to add the social sharing code for the Main Button only ( label with “social sharing” ).
I try to add the code right after the “<div class=”itemSocialLinksBlock”>”, but it doesn’t seems to work.I have PM my FTP a/c to you. Hope you could assist on this. Many thanks.
Leongjooservices Friendjooservices
- Join date:
- October 2014
- Posts:
- 8556
- Downloads:
- 0
- Uploads:
- 130
- Thanked:
- 1245 times in 1121 posts
October 3, 2011 at 7:48 am #416382Hi
Sorry if this reply so late. Because i’ve lost this topic for a while.
Btw, don’t know if you still need work w/ this issue ? Please update me again w/ your FTP for checking.
Thank you
Viet Vuluke66 Friendluke66
- Join date:
- June 2011
- Posts:
- 15
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 2
- Thanked:
- 2 times in 1 posts
October 8, 2011 at 7:13 pm #417779Please can someone provide an answer to jedileong’s problem? I have the same problem of not being able to use my AddThis account.
luke66 Friendluke66
- Join date:
- June 2011
- Posts:
- 15
- Downloads:
- 0
- Uploads:
- 7
- Thanks:
- 2
- Thanked:
- 2 times in 1 posts
October 8, 2011 at 7:50 pm #417782I have pasted my ShareThis code like in the figure, but it still does not work.
Can someone help, please?
AuthorPostsViewing 12 posts - 1 through 12 (of 12 total)This topic contains 12 replies, has 4 voices, and was last updated by luke66 13 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum