Facebook Like Button for news articles

e107 CMS » Forums » e107 Code » Plugin Requests << Previous thread | Next thread >>
Whitewidow
Jan 10 2011, 01:58PM
Registered Member #37297
Joined: Jun 11 2007, 12:13PM
Location: UK
Posts: 26
Hello all, does anyone know if there is a plugin to add a facebook mini 'LIKE' icon to news articles? Ideally so that it shows where the email & print icons are?
Thanks
Go to top
Duce
Jan 10 2011, 04:23PM
Registered Member #38832
Joined: Aug 03 2007, 07:10AM
Location: Centurion, South Africa
Posts: 225
Just edit your theme where you see:
 <tr class='news_info'> 
and add your AddThis or Share scripts in there. Just be sure to use single quotes (') and not (")

Something like this:
         <tr>
             <td class='news_body' colspan='2'>
                 {NEWSBODY}<br />{EXTENDED}<br />
                         </td>
                 </tr>
                 <tr class='news_info'>
                     <td style='float:left;padding:8px;width:80%;'>
                              {NEWSCOMMENTS}
                         </td>
                         <td style='padding:5px;width:21%;text-align:right;'>
                            <div class='addthis_toolbox addthis_default_style'>
                            <a href='http://www.addthis.com/bookmark.php?v=250&amp;pub=duce' class='addthis_button_compact'>Share</a>
                            <span class='addthis_separator'>|</span>
                            <a class='addthis_button_facebook'></a>
                            <a class='addthis_button_email'></a>
                            <a class='addthis_button_favorites'></a>
                            <a class='addthis_button_print'></a>&nbsp;{ADMINOPTIONS}
                            </div>
                            <script type='text/javascript' src='http://s7.addthis.com/js/250/addthis_widget.js?pub=duce'>
                            var addthis_config = {
                                data_track_clickback: true
                            }</script>
                         </td>
         </tr>

Go to top
Cryingstar
Jun 19 2011, 07:58AM
Registered Member #46924
Joined: Aug 22 2008, 03:44AM
Location: Danmark
Posts: 54
What file will i find this in ??
Go to top
MLC
Jul 08 2011, 11:39PM
Registered Member #18930
Joined: Jun 28 2005, 01:18PM
Posts: 150
guess theme.php?
Go to top
Website
Whitewidow
Mar 27 2012, 05:03AM
Registered Member #37297
Joined: Jun 11 2007, 12:13PM
Location: UK
Posts: 26
Hello Duce and thanks for your reply, I know it's a few months late but I have only just found some time to try and implement this and already hit a wall so-to-speak. I have checked my Theme.php for the code you mentioned above but it doesn't contain 'news_info' anywhere. I have checked a couple of other Theme.php files and found nothing.

Can anyone shed some light on this please as I would like to get this setup and working properly

Thanks all
Go to top
kingwilly
Mar 27 2012, 06:10AM
Registered Member #46570
Joined: Jul 31 2008, 01:35PM
Posts: 85
Whitewidow wrote ...

Hello all, does anyone know if there is a plugin to add a facebook mini 'LIKE' icon to news articles? Ideally so that it shows where the email & print icons are?
Thanks

this is a plugin made by akogo,something like that ?
A new small plugin based on shortcode {SOCIAL}.
Placing the shortcode in the theme.php file (news section) allows you to quickly add your news and comments to social networking platforms.

With a single click the plugin lets your website users quickly share your news/comments to facebook, twitter, digg

[-link-]
[ Edited Mar 27 2012, 06:11AM ]
Go to top
Website
Whitewidow
Mar 27 2012, 07:28AM
Registered Member #37297
Joined: Jun 11 2007, 12:13PM
Location: UK
Posts: 26
Thanks Kingwilly,that did the trick nicely. Highlight of my day so far! )
Go to top
kingwilly
Mar 27 2012, 09:34AM
Registered Member #46570
Joined: Jul 31 2008, 01:35PM
Posts: 85
no problem whitewidow,thank akogo for making the plugin he did the work !
Go to top
Website
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System