Social 0.6

e107 CMS » Forums » e107 Code » Code Modification / Plugin / Announcement and Releases << Previous thread | Next thread >>
Go to page  1 2 3
akogo
Jan 20 2011, 05:32AM
Registered Member #48197
Joined: Nov 07 2008, 12:20PM
Location: Polska
Posts: 159
Social is another plugin for sharing news/comments links to the most popular Social Networks.




Placing {SOCIAL} shortcode in the theme.php file (news section) allows you to quickly add your news/comments site to social networking platforms.

The plugin is W3C compliant.

Demo Site: Social plugin
Download: Social 0.6
Used icons come from the: [-link-] (free for personal and commercial use).
[ Edited Apr 03 2013, 02:37AM ]
Go to top
Website
John-Arild
Jan 21 2011, 06:36AM
  • e107 Translation Team
Registered Member #31415
Joined: Oct 14 2006, 07:42AM
Location: Fetsund, Norway
Posts: 102
Works well. Thanks!
Go to top
Website
Revan
Jan 22 2011, 06:29AM
Registered Member #12165
Joined: Nov 16 2004, 01:43PM
Posts: 149
Gonna try this one!
Go to top
Lion
Jan 22 2011, 10:35AM
Registered Member #31981
Joined: Nov 03 2006, 01:01PM
Location: Czech Republic
Posts: 15
Nice, thank you for this plugin

and please, enable uploading language on plugins website, thank you.
Go to top
Website
akogo
Jan 25 2011, 03:16PM
Registered Member #48197
Joined: Nov 07 2008, 12:20PM
Location: Polska
Posts: 159
Uploud has been enabled . Thank You.
[ Edited Jan 26 2011, 12:52AM ]
Go to top
Website
doughall
Feb 07 2011, 07:10AM
Registered Member #17327
Joined: Apr 29 2005, 03:12AM
Posts: 18
Sorry to be a pain, but twitter seems to freak when clicked.. Could you check?
Go to top
akogo
Feb 07 2011, 09:03AM
Registered Member #48197
Joined: Nov 07 2008, 12:20PM
Location: Polska
Posts: 159
Twitter works fine for me. A small twitter bug appears in a e107bookmarking plugin.
Go to top
Website
Draelren
Feb 07 2011, 03:41PM
Registered Member #37729
Joined: Jun 26 2007, 03:44AM
Posts: 6
Tried it out on my site, works wonders so far for what networks I've tried it with. Love it!
Go to top
hobie17
Jun 08 2011, 10:54AM
Registered Member #61782
Joined: Jun 08 2011, 10:51AM
Posts: 3
Hi, your plugin works fine, except the Facebook one. Facebook sends only mainpage url and not the specific article. For example:
facebook: [-link-]
twitter: [-link-]

Do you know how to change that?
Go to top
akogo
Jun 15 2011, 11:31PM
Registered Member #48197
Joined: Nov 07 2008, 12:20PM
Location: Polska
Posts: 159
Hi

Check please this version - [-link-]. Works only with the news .
[ Edited Jan 04 2013, 04:01PM ]
Go to top
Website
rebelion
Jun 18 2011, 01:51AM
Registered Member #60199
Joined: Jan 20 2011, 12:01AM
Location: Spain
Posts: 71
Thank you for this plugin. I have a question about the icons, it´s possible to resize them without resize all images? I´ve found nothing about image size in the code...

Bye!
Go to top
Website
akogo
Jun 18 2011, 02:15AM
Registered Member #48197
Joined: Nov 07 2008, 12:20PM
Location: Polska
Posts: 159
Hi

Add in social.sc to all img:
<img src='".e_PLUGIN."social/images/facebook.png' style=\"border: 0px\" alt=\"Facebook\" title='".SO_LAN_6."' />

size of icons e.g.:
width='16px' height='16px'

<img src='".e_PLUGIN."social/images/facebook.png' style=\"border: 0px\" width='16px' height='16px' alt=\"Facebook\" title='".SO_LAN_6."' />
Go to top
Website
rebelion
Jun 18 2011, 03:07AM
Registered Member #60199
Joined: Jan 20 2011, 12:01AM
Location: Spain
Posts: 71
Thank you very much akogo, keep supporting this great plugin! Bye
Go to top
Website
rebelion
Jun 21 2011, 04:10AM
Registered Member #60199
Joined: Jan 20 2011, 12:01AM
Location: Spain
Posts: 71
Hi akogo. I have an issue with the Twitter button. I think that it´s not a problem with the plugin, maybe a Twitter issue.

My native language it´s Spanish, and when in a news item appear the ´ character, for example in a word like "portátil" or "página", the Twitter button doesn´t work.

Any suggestion about this? Thanks!

This is the error code:

Invalid Unicode value in one or more parameters /intent/tweet?source=webclient&text=Silicon+Power+anuncia+el+disco+duro+port%E1til+USB+3.0+Diamond+D10+1TB+http%3A%2F%2Fwww.hardwareanalisis.es%2Fnews.php%3Fextend.836
Go to top
Website
akogo
Jun 21 2011, 03:20PM
Registered Member #48197
Joined: Nov 07 2008, 12:20PM
Location: Polska
Posts: 159
It's possible that the problem lies with the encoding of your site. You have iso-8859-1.
Go to top
Website
rebelion
Jun 27 2011, 12:35AM
Registered Member #60199
Joined: Jan 20 2011, 12:01AM
Location: Spain
Posts: 71
akogo wrote ...

It's possible that the problem lies with the encoding of your site. You have iso-8859-1.


Thank you for the tip akogo! Maybe i should convert my db to utf-8 to solve this...i´ll try to fix this issue asap. Bye!
Go to top
Website
akogo
Jul 01 2011, 01:59AM
Registered Member #48197
Joined: Nov 07 2008, 12:20PM
Location: Polska
Posts: 159
google +1 code for use in a e107 social (w3c compliant):

<td><div class=\"g-plusone\"></div>
<script type=\"text/javascript\">
  document.getElementById(\"my_plusone\").setAttribute(\"data-href\", \"$newsurl\");
</script><script type=\"text/javascript\" src=\"http://apis.google.com/js/plusone.js\">{lang: 'en'}</script></td>


or use of this shortcode: [-link-]
[ Edited Jul 03 2011, 12:55AM ]
Go to top
Website
PsYchon
Jul 19 2011, 02:18PM
Registered Member #62135
Joined: Jul 19 2011, 02:16PM
Posts: 2
Where must i paste the {social} text ?


<?php
/*
+---------------------------------------------------------------+
| e107 website system
|
| ©Steve Dunstan 2001-2002
| [-link-]
| jalist@e107.org
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
+---------------------------------------------------------------+
*/
if(!defined("e107_INIT")){ exit; }

// [multilanguage]
@include_once(e_THEME."oceania/languages/".e_LANGUAGE.".php");
@include_once(e_THEME."oceania/languages/English.php");

// [theme information]
$themename = "Oceania";
$themeversion = "1.2";
$themeauthor = "Zombie / Haico";
$themeemail = "hgevers@hgdiensten.nl";
$themewebsite = "http://www.hgdiensten.nl";
$themedate = "07 juni, 2006";
$themeinfo = "Oceania 1.2 compatible gemaakt met 0.7.";

// [layout]
$layout = "_default";

$HEADER =
"<div style='text-align:center'>
<table width='898' height='80' background='".THEME."images/logo.png' cellspacing='0' cellpadding='0'>
<tr>
<td class='sitename'>
{SITENAME}
</td>
</tr>
</table>
<table width='898' cellspacing='0' cellpadding='0' background='".THEME."images/blocks_bg.gif'>
<tr>
<td>&nbsp;&nbsp;&nbsp;</td>
<td width='70%' background='".THEME."images/linkbg.png'>
{SITELINKS=flat}
</td>
<td width='30%' background='".THEME."images/linkbg.png' style='text-align:right'>
{CUSTOM=search}
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
</table>
<table width='898' cellspacing='0' cellpadding='0' background='".THEME."images/blocks_bg.gif'>
<tr>
<td width='1%' style='vertical-align: top;'>
<td width='24%' style='vertical-align: top;'>
{SETSTYLE=leftmenu}
{MENU=1}
</td>
<td width='1%' style='vertical-align: top;'>
<td width='50%' style='vertical-align: top;'>
{SETSTYLE=content}
";
$FOOTER = "
</td>
<td width='1%' style='vertical-align: top;'>
<td width='24%' style='vertical-align: top;'>
{SETSTYLE=rightmenu}
{MENU=2}
{MENU=3}
{MENU=4}
{MENU=5}
</td>
<td width='1%' style='vertical-align: top;'>
</tr>
</table>
<table width='898' cellspacing='0' cellpadding='0' background='".THEME."images/blocks_bg.gif'>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='100%' style='vertical-align: right;' style='text-align:center'>
{SITEDISCLAIMER}
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</div>
";

$CUSTOMHEADER =
"<div style='text-align:center'>

<table width='898' height='80' background='".THEME."images/logo.png' cellspacing='0' cellpadding='0'>
<tr>
<td class='sitename'>
{SITENAME}
</td>
</tr>
</table>
<table width='898' cellspacing='0' cellpadding='0' background='".THEME."images/blocks_bg.gif'>
<tr>
<td>&nbsp;&nbsp;&nbsp;</td>
<td width='70%' background='".THEME."images/linkbg.png'>
{SITELINKS=flat}
</td>
<td width='30%' background='".THEME."images/linkbg.png' style='text-align:right'>
{CUSTOM=search}
</td>
</tr>
<tr>
<td>
&nbsp;
</td>
</tr>
</table>
<table width='898' cellspacing='0' cellpadding='0' background='".THEME."images/blocks_bg.gif'>
<tr>
<td width='1%' style='vertical-align: top;'>
<td width='20%' style='vertical-align: top;'>
{SETSTYLE=leftmenu}
{MENU=1}
</td>
<td width='1%' style='vertical-align: top;'>
<td width='70%' style='vertical-align: top;'>
{SETSTYLE=content}
";
$CUSTOMFOOTER = "
</td>
<td width='1%' style='vertical-align: top;'>
</tr>
</table>
<table width='898' cellspacing='0' cellpadding='0' background='".THEME."images/blocks_bg.gif'>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='100%' style='vertical-align: middle;' style='text-align:center'>
{SITEDISCLAIMER}
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
</div>
";
$CUSTOMPAGES = "submitnews.php forum.php forum_post.php forum_viewforum.php forum_viewtopic.php stats.php download.php user.php usersettings.php search.php content.php user.php e107_plugins/blogcalendar_menu/archive.php";

// [newsstyle]

$NEWSSTYLE = "
<table style='width:100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/topleft.png'></td>
<td width='100%' background='".THEME."images/topbg.png'><img src='".THEME."images/topbg.png'></td>
<td><img src='".THEME."images/topright.png'></td>
</tr>
</table>
<table style='width:100%' cellpadding='0' cellspacing='0'>
<tr>
<td width='6' background='".THEME."images/leftbg.png'><img src='".THEME."images/leftbg.png' width='6'></td>
<td colspan='3' class='captionmenus' bgcolor='#ffffff'>
{STICKY_ICON} {NEWSTITLE}</br>
<img src='".THEME."images/hori.png' width='100%' height='8' alt='' style='display: block;' />
</td>
<td width='10' background='".THEME."images/rightbg.png'><img src='".THEME."images/rightbg.png' width='10'></td>
</tr>
</table>
<table style='width:100%' cellpadding='0' cellspacing='0' bgcolor='#ffffff'>
<tr>
<td width='6' background='".THEME."images/leftbg.png'><img src='".THEME."images/leftbg.png' width='6'></td>
<td width='50%' >
{NEWSCOMMENTS}</td>
<td width='50%' style='text-align:right'>
{PDFICON} {EMAILICON} {PRINTICON} {ADMINOPTIONS}
</td>
<td width='10' background='".THEME."images/rightbg.png'><img src='".THEME."images/rightbg.png' width='10'></td>
</tr>
</table>
<table style='width:100%' cellpadding='0' cellspacing='0' bgcolor='#ffffff'>
<tr>
<td width='6' background='".THEME."images/leftbg.png'><img src='".THEME."images/leftbg.png' width='6'></td>
<td width='100%'>&nbsp;</td>
<td width='10' background='".THEME."images/rightbg.png'><img src='".THEME."images/rightbg.png' width='10'></td>
</tr>
</table>
<table style='width:100%' cellpadding='0' cellspacing='0' bgcolor='#ffffff'>
<td width='6' background='".THEME."images/leftbg.png'><img src='".THEME."images/leftbg.png' width='6'></td>
{NEWSIMAGE}
<td width='100%'>
{NEWSICON} {NEWSBODY}
{EXTENDED}
<br><br>".LAN_THEME_5." {NEWSAUTHOR} ".LAN_THEME_6." {NEWSDATE}
<br><br>
{TRACKBACK}
</td>
<td width='10' background='".THEME."images/rightbg.png'><img src='".THEME."images/rightbg.png' width='10'></td>
</tr>
</table>
<table style='width:100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/bottomleft.gif'></td>
<td width='100%' background='".THEME."images/bottombg.png'><img src='".THEME."images/bottombg.png'></td>
<td><img src='".THEME."images/bottomright.png'></td>
</tr>
</table>
<table style='width:100%' cellpadding='0' cellspacing='0'>
<tr>
<td>&nbsp;</td>
</tr>
</table>
";

define('ICONMAIL', 'email_16.png');
define('ICONPRINT', 'print_16.png');
define('ICONSTYLE', 'border: 0px');
define('COMMENTLINK', LAN_THEME_2);
define('COMMENTOFFSTRING', LAN_THEME_1);
define('PRE_EXTENDEDSTRING', '<br /><br />[ ');
define('EXTENDEDSTRING', LAN_THEME_3);
define('POST_EXTENDEDSTRING', ' ]<br />');
define('TRACKBACKSTRING', LAN_THEME_4);
define('TRACKBACKBEFORESTRING', '&nbsp;|&nbsp;');


//Comment Style

$COMMENTSTYLE = "
<div style='text-align:center'>
<table style='width:100%'>
<tr>
<td colspan='2' class='commentheader'>
<b>
{USERNAME}
</b>
|
{TIMEDATE}
</td>
</tr>
<tr>
<td style='width:30%; vertical-align:top'>
<div class='spacer'>
{AVATAR}
</div>
<span class='smalltext'>
{LEVEL}
{COMMENTS}
<br />
{JOINED}
</span>
</td>
<td style='width:70%; vertical-align:top'>
{COMMENT}
</td>
</tr>
</table>
</div>
<br />";

// [linkstyle]

define('PRELINK', "<div style='vertical-align: middle;' class='linkbox'>");
define('POSTLINK', "</div>");
define('LINKSTART', "<img src='".THEME."images/bullet2.gif'/> ");
//define(LINKEND, " + ");
define('LINKEND', "&nbsp;&nbsp;");
define('LINKALIGN', "left");
define('LINKDISPLAY', 1);

//Poll Style

$POLLSTYLE = <<< EOF
<div class='pollquestion'>{QUESTION}</div>
<br />
{OPTIONS=<div class='spacer'><div class='forumheader3'>OPTION<br />BAR<br /><span class='smalltext'>PERCENTAGE VOTES</span></div></div>\n}
<div style='text-align:center' class='smalltext'>{VOTE_TOTAL} {COMMENTS}
<br />
{OLDPOLLS}
</div>
EOF;

//Chatbox Style

$CHATBOXSTYLE = "
<div class='spacer'>
<div class='forumheader3'>
<img src='".THEME."images/bullet2.gif' alt='bullet' />
<b>{USERNAME}</b><br />
<span class='smalltext'>{TIMEDATE}</span><br />
{MESSAGE}
</div>
</div>";

// [tablestyle]

function tablestyle($caption, $text){
global $style;
if($style == "leftmenu"){
echo"
<table style='width:100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/topleft.png'></td>
<td width='100%' background='".THEME."images/topbg.png'><img src='".THEME."images/topbg.png'></td>
<td><img src='".THEME."images/topright.png'></td>
</tr>
</table>
<table style='width:100%' cellpadding='0' cellspacing='0'>
<tr>
<td width='6' background='".THEME."images/leftbg.png'><img src='".THEME."images/leftbg.png' width='6'></td>
<td colspan='3' class='captionmenus' bgcolor='#ffffff'>
$caption</br>
<img src='".THEME."images/hori.png' width='100%' height='8' alt='' style='display: block;' />
</td>
<td width='10' background='".THEME."images/rightbg.png'><img src='".THEME."images/rightbg.png' width='10'></td>
</tr>
</table>
<table style='width:100%' cellpadding='0' cellspacing='0'>
<td width='6' background='".THEME."images/leftbg.png'><img src='".THEME."images/leftbg.png' width='6'></td>
<td width='100%' bgcolor='#ffffff'>
$text
</td>
<td width='10' background='".THEME."images/rightbg.png'><img src='".THEME."images/rightbg.png' width='10'></td>
</tr>
<table style='width:100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/bottomleft.gif'></td>
<td width='100%' background='".THEME."images/bottombg.png'><img src='".THEME."images/bottombg.png'></td>
<td><img src='".THEME."images/bottomright.png'></td>
</tr>

</table>
<br />";
}else{
echo "

<table style='width:100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/topleft.png'></td>
<td width='100%' background='".THEME."images/topbg.png'><img src='".THEME."images/topbg.png'></td>
<td><img src='".THEME."images/topright.png'></td>
</tr>
</table>
<table style='width:100%' cellpadding='0' cellspacing='0'>
<tr>
<td width='6' background='".THEME."images/leftbg.png'><img src='".THEME."images/leftbg.png' width='6'></td>
<td colspan='3' class='captionmenus' bgcolor='#ffffff'>
$caption</br>
<img src='".THEME."images/hori.png' width='100%' height='8' alt='' style='display: block;' />
</td>
<td width='10' background='".THEME."images/rightbg.png'><img src='".THEME."images/rightbg.png' width='10'></td>
</tr>
</table>
<table style='width:100%' cellpadding='0' cellspacing='0'>
<td width='6' background='".THEME."images/leftbg.png'><img src='".THEME."images/leftbg.png' width='6'></td>
<td width='100%' bgcolor='#ffffff'>
$text
</td>
<td width='10' background='".THEME."images/rightbg.png'><img src='".THEME."images/rightbg.png' width='10'></td>
</tr>
<table style='width:100%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/bottomleft.gif'></td>
<td width='100%' background='".THEME."images/bottombg.png'><img src='".THEME."images/bottombg.png'></td>
<td><img src='".THEME."images/bottomright.png'></td>
</tr>
</table>
<br />";
}
}

?>
Go to top
akogo
Jul 19 2011, 03:36PM
Registered Member #48197
Joined: Nov 07 2008, 12:20PM
Location: Polska
Posts: 159
in $newsstyle section. try here:

<br><br>{SOCIAL}
{TRACKBACK}
Go to top
Website
PsYchon
Jul 21 2011, 10:36AM
Registered Member #62135
Joined: Jul 19 2011, 02:16PM
Posts: 2
It works,
Thanks man!!!
[ Edited Jul 21 2011, 10:46AM ]
Go to top
Go to page  1 2 3  

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