test
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • jedileong Friend
    #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?


    1. social1
    pavit Moderator
    #410403

    Hi 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

    jedileong Friend
    #410481

    Hi 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 Friend
    #410484

    Hi
    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 Vu

    jedileong Friend
    #410493

    Hi 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. =)

    jedileong Friend
    #410789

    hi, anyone can point me to the exact file location to edit this?

    jooservices Friend
    #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 Vu

    jooservices Friend
    #410793

    Sorry 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 Vu

    jedileong Friend
    #411252

    Dear 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.
    Leong

    jooservices Friend
    #416382

    Hi
    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 Vu

    luke66 Friend
    #417779

    Please can someone provide an answer to jedileong’s problem? I have the same problem of not being able to use my AddThis account.

    luke66 Friend
    #417782

    I have pasted my ShareThis code like in the figure, but it still does not work.

    Can someone help, please?


    1. social_sharing
Viewing 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