0
Welcome Guest! Login
0 items Join Now

Help with Share This

    • jsiverio's Avatar
    • jsiverio
    • Jr. Rocketeer
    • Posts: 30
    • Thanks: 0

    Help with Share This

    Posted 16 years 1 month ago
    • I would like to know how to implement Sharethis within the article title....example right next to where the print, email, and pdf buttons.

      How would I go about doing this?
    • Last Edit: 15 years 11 months ago by jsiverio.
  • Re: Help with Share This

    Posted 16 years 1 month ago
    • Hello,

      Not directly answering your question, but how about using one of these extensions:
      :arrow: Click Here
    • jsiverio's Avatar
    • jsiverio
    • Jr. Rocketeer
    • Posts: 30
    • Thanks: 0

    Re: Help with Share This

    Posted 16 years 1 month ago
    • Arifin,

      Thanks for the prompt reply. I tried those extensions and they do not give me exactly what I am asking for. My web developers before I switched to rockettheme has somehow found a way to do it. Now I can't figure it out though.

      Any thoughts?

      Thanks
  • Re: Help with Share This

    Posted 16 years 1 month ago
    • jsiverio's Avatar
    • jsiverio
    • Jr. Rocketeer
    • Posts: 30
    • Thanks: 0

    Re: Help with Share This

    Posted 16 years 1 month ago
    • What I need is to implement the code from www.sharethis.com into the section on each article where the pdf, print, and email buttons are. Some where in that section. Where can I place the code for this to work?
  • Re: Help with Share This

    Posted 16 years 1 month ago
    • Hello,

      You need to hack the core file if you want to implement this.
      Open com_content/article/default.php
      <p class="buttonheading">
           <?php if ($this->print) :
                echo JHTML::_('icon.print_screen', $this->article, $this->params, $this->access);
           elseif ($this->params->get('show_pdf_icon') || $this->params->get('show_print_icon') || $this->params->get('show_email_icon')) : ?>
           <img src="<?php echo $this->baseurl ?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/blank.gif" alt="<?php echo JText::_('attention open in a new window'); ?>" />
           <?php if ($this->params->get('show_pdf_icon')) :
                echo JHTML::_('icon.pdf', $this->article, $this->params, $this->access);
           endif;
           if ($this->params->get('show_print_icon')) :
                echo JHTML::_('icon.print_popup', $this->article, $this->params, $this->access);
           endif;
           if ($this->params->get('show_email_icon')) :
                echo JHTML::_('icon.email', $this->article, $this->params, $this->access);
           endif;
           endif; ?>
               ADD THE SHARETHIS CODE HERE
      </p>
       
    • jsiverio's Avatar
    • jsiverio
    • Jr. Rocketeer
    • Posts: 30
    • Thanks: 0

    Re: Help with Share This

    Posted 16 years 1 month ago
    • Excellent!

      Thank you so much!
  • Re: Help with Share This

    Posted 15 years 6 months ago
    • I am trying to do the same thing with adding Share This. I am using the Nexus template and I do not see the directory, com_content/article/default.php, or the code in this example.

      I do see the directory, /httpdocs/components/com_content/views/article/tmpl/default.php but I am not sure where to add the Share This code as it's completely different then the example provided in this post. I tried both the Share This Joomla Plugin and Module and I do not like the way they display. I only want Share This on the actual artice pages as mentioned in this thread. Thank you - Mark

Time to create page: 0.061 seconds