[ABD] Share Topic Plus (for Facebook, Twitter & Google Plus)

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
linhuytung
Registered User
Posts: 13
Joined: Sat May 02, 2009 8:13 am

Re: [DEV] Share Topic Plus (for Facebook, Twitter & Google P

Post by linhuytung » Sun Jan 29, 2012 10:04 am

hi
Appears to be an interesting mod. But there is little pity, if I repeat button , google + does not appear .

User avatar
_Vinny_
Style Customisations
Style Customisations
Posts: 8416
Joined: Tue Aug 11, 2009 12:45 am
Location: Brazil
Name: Marcus Vinicius
Contact:

Re: [DEV] Share Topic Plus (for Facebook, Twitter & Google P

Post by _Vinny_ » Sun Jan 29, 2012 5:47 pm

greybox wrote:1. I would strongly prefer POST reference opposed to TOPIC reference. In some forums topic are a few hundred pages long, so just topic reference is not enough if I want to share a particular post on page 152 out of 360.
I'm considering implementing something to share each post in a topic. Wait for news. ;)
greybox wrote:2. Most forums would also like to be able to also share just the web site address and comments on the social sites (for example, the social icon links on the top of phpbb.com).
I'm also considering implementing it.
greybox wrote:But even more, many web sites use the extended parameters of facebook and other social plugins showing the number of likes, send button and the like box with faces which looks very cool! So if you could add the option to show the web site (not a particular post or topic), that would be great!!
These options are already included in the MOD, please set the options in ACP > .MODs > Share Topic Plus > Settings
greybox wrote:3. I would prefer to see the web site passing the social icons debugging tools without any errors or warnings, for example http://developers.facebook.com/tools/debug. I installed the latest version of Share On plugin and it resulted in a few warnings.
The HTML tags are invalid for these functions when tested with W3C Markup Validator, then this MOD would be denied on MODDB, but I'll add instructions how to add these features.

linhuytung wrote:hi
Appears to be an interesting mod. But there is little pity, if I repeat button , google + does not appear .
What is the link of your board please?

User avatar
greybox
Registered User
Posts: 79
Joined: Thu Jul 07, 2011 6:20 am

Re: [DEV] Share Topic Plus (for Facebook, Twitter & Google P

Post by greybox » Mon Jan 30, 2012 5:18 am

greybox wrote:2. Most forums would also like to be able to also share just the web site address and comments on the social sites (for example, the social icon links on the top of phpbb.com).
Actually, the last statement is not quite correct: PHPBB shows direct links to their pages on twitter and facebook, but I was talking about twitter and facebook "recommend" buttons with facepile.

linhuytung
Registered User
Posts: 13
Joined: Sat May 02, 2009 8:13 am

Re: [DEV] Share Topic Plus (for Facebook, Twitter & Google P

Post by linhuytung » Tue Jan 31, 2012 4:15 pm

hi vinny
I tested this mod on my localhost, in every topic I put a google + button,
but google + appear only once

Image

User avatar
_Vinny_
Style Customisations
Style Customisations
Posts: 8416
Joined: Tue Aug 11, 2009 12:45 am
Location: Brazil
Name: Marcus Vinicius
Contact:

Re: [DEV] Share Topic Plus (for Facebook, Twitter & Google P

Post by _Vinny_ » Tue Jan 31, 2012 6:00 pm

linhuytung wrote:hi vinny
I tested this mod on my localhost, in every topic I put a google + button,
but google + appear only once
I had already tested this feature and the current Gplus code doesn't support the repeat button. Try this:
Open sharetopic_body.html, find and remove:

Code: Select all

<!-- IF S_SHARE_PLUS_GOOGLE  -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
//<![CDATA[
	{lang: '{SHARE_PLUS_GOOGLE_LANG}'}
//]]>
</script>
<!-- ENDIF -->
Open overall_header.html, find:

Code: Select all

</head>
Add before:

Code: Select all

<!-- IF S_SHARE_PLUS_GOOGLE and SCRIPT_NAME eq 'viewtopic'  -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
//<![CDATA[
	{lang: '{SHARE_PLUS_GOOGLE_LANG}'}
//]]>
</script>
<!-- ENDIF -->
Refresh the template.

User avatar
kmakoto
Registered User
Posts: 234
Joined: Mon Mar 01, 2010 11:35 pm

Re: [DEV] Share Topic Plus (for Facebook, Twitter & Google P

Post by kmakoto » Tue Jan 31, 2012 6:40 pm

if dev mod error in language

Code: Select all

<script type="text/javascript">
//<![CDATA[
(function(d, s, id) {
  document.write('<fb:like href="{U_SHARE_TOPIC}" send="{SHARE_PLUS_FACEBOOK_SEND}" layout="{SHARE_PLUS_FACEBOOK_LAYOUT}" width="{SHARE_PLUS_FACEBOOK_WIDTH}" show_faces="{SHARE_PLUS_FACEBOOK_FACE}" action="{SHARE_PLUS_FACEBOOK_ACTION}" colorscheme="{SHARE_PLUS_FACEBOOK_COLOR}" font="{SHARE_PLUS_FACEBOOK_FONT}"><\/fb:like>');
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/pt_BR/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
//]]>
</script>
correct

Code: Select all

<script type="text/javascript">
//<![CDATA[
(function(d, s, id) {
  document.write('<fb:like href="{U_SHARE_TOPIC}" send="{SHARE_PLUS_FACEBOOK_SEND}" layout="{SHARE_PLUS_FACEBOOK_LAYOUT}" width="{SHARE_PLUS_FACEBOOK_WIDTH}" show_faces="{SHARE_PLUS_FACEBOOK_FACE}" action="{SHARE_PLUS_FACEBOOK_ACTION}" colorscheme="{SHARE_PLUS_FACEBOOK_COLOR}" font="{SHARE_PLUS_FACEBOOK_FONT}"><\/fb:like>');
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/{SHARE_PLUS_FACEBOOK_LANG}/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
//]]>
</script>
{SHARE_PLUS_FACEBOOK_LANG}

User avatar
_Vinny_
Style Customisations
Style Customisations
Posts: 8416
Joined: Tue Aug 11, 2009 12:45 am
Location: Brazil
Name: Marcus Vinicius
Contact:

Re: [DEV] Share Topic Plus (for Facebook, Twitter & Google P

Post by _Vinny_ » Tue Jan 31, 2012 7:01 pm

Thanks kmakoto. Fixed in the repository. ;)

Bash
Registered User
Posts: 337
Joined: Wed Mar 11, 2009 3:36 pm
Location: London, England
Name: Glenn

Re: [DEV] Share Topic Plus (for Facebook, Twitter & Google P

Post by Bash » Fri Feb 10, 2012 2:21 am

greybox wrote:1. I would strongly prefer POST reference opposed to TOPIC reference. In some forums topic are a few hundred pages long, so just topic reference is not enough if I want to share a particular post on page 152 out of 360.
I second that. ;)

Keefy
Registered User
Posts: 395
Joined: Fri Jan 28, 2005 4:30 am

Re: [RC] Share Topic Plus (for Facebook, Twitter & Google Pl

Post by Keefy » Sat Feb 11, 2012 10:12 am

_Vinny_ wrote:
Keefy wrote:OH its a shame cause it works great with the facebook bot enabled for the mebers only forums, however it screws things up in my phpbb arcade, when the facebook bot is disabled the send to facebook in the arcade shows the game image and description etc, when the facebook bot is enabled it only shows the image what I set for the forum. BTW the phpbb arcade had its own send to facebook, ive removed the code and replaced it with <!-- INCLUDE sharetopic_body.html --> from this mod cause it works better, and like ive said it does work if the facebook mod is disabled. Anyone know a way to get this to work with the facebook bot enabled.

Code: Select all

<!-- IF S_SHARE_PLUS_FACEBOOK -->
<meta name="og:image" content="http://www.removedmysitecom/image_fb.png" />
<!-- ENDIF -->

<!-- IF S_ARCADE_FB -->
<meta property="og:site_name" content="{SITENAME}" />
<meta property="og:description"   content="{GAME_DESC}"/>
<meta property="og:title"	  content="{ARCADE_FB_GN}" />
<meta property="og:image"	  content="{ARCADE_FB_GI}" />
<!-- ENDIF -->
Try this:

Code: Select all

<!-- IF S_SHARE_PLUS_FACEBOOK and SCRIPT_NAME eq 'viewtopic' -->
<meta property="og:image" content="http://www.removedmysitecom/image_fb.png" />
<!-- ENDIF -->

<!-- IF S_ARCADE_FB and SCRIPT_NAME eq 'arcade' -->
<meta property="og:site_name" content="{SITENAME}" />
<meta property="og:description"   content="{GAME_DESC}"/>
<meta property="og:title"	  content="{ARCADE_FB_GN}" />
<meta property="og:image"	  content="{ARCADE_FB_GI}" />
<!-- ENDIF -->
Thanks for the help _Vinny_ but that did not work... I suppose for now that its just best to keep the facebook bot deactivated, then all works well except members cant send to face book via a members only forum. when deactivated the public forums show all the link, info and description and the games show the games icon and description like I want. when the facebook bot is active all the forums (members and public) show the link info and description but the arcade then just shows the arcade link and then ... the icon and description does not show no more. any other ideas to solve this will be appreciated.

aicbal
Registered User
Posts: 46
Joined: Tue Jan 03, 2012 5:55 pm

Re: [DEV] Share Topic Plus (for Facebook, Twitter & Google P

Post by aicbal » Thu Mar 15, 2012 7:43 am

I know the support is closed. However, if you are kind enough to do me a favour.
Google Plus One button giving exclamation marks after click. Any help shall be highly appreciated.

User avatar
_Vinny_
Style Customisations
Style Customisations
Posts: 8416
Joined: Tue Aug 11, 2009 12:45 am
Location: Brazil
Name: Marcus Vinicius
Contact:

Re: [DEV] Share Topic Plus (for Facebook, Twitter & Google P

Post by _Vinny_ » Mon Mar 19, 2012 3:22 pm

aicbal wrote:I know the support is closed. However, if you are kind enough to do me a favour.
Google Plus One button giving exclamation marks after click. Any help shall be highly appreciated.
What is the link of your board?

wbxpress
Registered User
Posts: 150
Joined: Wed Mar 21, 2012 1:29 pm
Contact:

Re: [DEV] Share Topic Plus (for Facebook, Twitter & Google P

Post by wbxpress » Wed Mar 21, 2012 1:37 pm

aicbal wrote:I know the support is closed. However, if you are kind enough to do me a favour.
Google Plus One button giving exclamation marks after click. Any help shall be highly appreciated.
same problem here. i have to disable Google plus button for this problem. i think the problem is due to the recent change in g +1 button code. will u check mine please?

TiagoRusty
Registered User
Posts: 5
Joined: Tue Mar 20, 2012 10:56 pm

Re: [DEV] Share Topic Plus (for Facebook, Twitter & Google P

Post by TiagoRusty » Thu Mar 22, 2012 7:14 am

Hi Vinny, i know its closed the support but i have big doubt, the installation was successfull and also is working everything nice, but the icons appear down the login part and not in the topic line..

If you can help that would be nice.
My board: http://www.mysummerspot.com/forum

I already created a user for you in my board if you can check whats the problem i would be gratz.

user: teste
pass: testes

Update* No need i fixed it.. but thanks any way! :D Keep the good work!

wbxpress
Registered User
Posts: 150
Joined: Wed Mar 21, 2012 1:29 pm
Contact:

Re: [DEV] Share Topic Plus (for Facebook, Twitter & Google P

Post by wbxpress » Thu Mar 22, 2012 10:52 am

please have a look at my board:

http://www.askwb.com/

Google Plus +1 button shows (!) marks after click. Please help.

wbxpress
Registered User
Posts: 150
Joined: Wed Mar 21, 2012 1:29 pm
Contact:

Re: [DEV] Share Topic Plus (for Facebook, Twitter & Google P

Post by wbxpress » Sat Mar 24, 2012 6:11 am

please help me, Google Plus +1 button shows (!) marks after click.
http://www.askwb.com/

Locked

Return to “[3.0.x] Abandoned MODs”