[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.
cossielee
Registered User
Posts: 101
Joined: Tue Jul 13, 2010 12:26 am

Re: [ALPHA] Share Topic Plus

Post by cossielee » Wed Nov 30, 2011 12:45 am

got my google+ working by adding <link> tag for the image. Still getting a problem with topic as login/register but i suspect this is due to my forums being private.

cossielee
Registered User
Posts: 101
Joined: Tue Jul 13, 2010 12:26 am

Re: [ALPHA] Share Topic Plus

Post by cossielee » Sat Dec 03, 2011 1:32 pm

Found the answer to my problem with google+ showing Login as topic title.

If the forum im trying to comment on is set so that guests cannot read it then it gives the login title, if i change it so guests can read forum then it uses proper thread topic title...this problem persists even if im logged it, which is a bit crazy, i dont show alot of forums to guests so makes the google button a bit useless. I know of no other way around this....Does anyone? Its defo tied to 'Can Read Forum' as guest permssion.

Gino
Registered User
Posts: 124
Joined: Sun Mar 21, 2010 2:39 pm
Contact:

Re: [ALPHA] Share Topic Plus

Post by Gino » Sun Dec 04, 2011 3:00 am

very cool .. i'll try it soon

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

Re: [BETA] Share Topic Plus

Post by _Vinny_ » Wed Dec 07, 2011 7:59 pm

Beta version available. :) Changelog

The major changes:
  • Subsilver2 support
  • Valid XHTML 1.0 Strict (prosilver)
  • Valid XHTML 1.0 Transitional (subsilver2)
To upgrade to the new version, simply replace all files. Edits in install.xml have not changed, only to subsilver2

murdmon
Registered User
Posts: 189
Joined: Thu Sep 24, 2009 7:56 am

Re: [BETA] Share Topic Plus

Post by murdmon » Thu Dec 08, 2011 4:52 am

I replaced all files...I get this

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_share_topic_plus.php on line 210: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "./..//FacebookLocales.xml"
[phpBB Debug] PHP Notice: in file /includes/acp/acp_share_topic_plus.php on line 213: Invalid argument supplied for foreach()
[phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3715)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3715)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3715)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3715)

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

Re: [BETA] Share Topic Plus

Post by _Vinny_ » Thu Dec 08, 2011 5:27 pm

murdmon wrote:I replaced all files...I get this

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/acp/acp_share_topic_plus.php on line 210: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "./..//FacebookLocales.xml"
[phpBB Debug] PHP Notice: in file /includes/acp/acp_share_topic_plus.php on line 213: Invalid argument supplied for foreach()
[phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3715)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3715)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3715)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3715)
Upload the file FacebookLocales.xml to your server in phpBB root installation.

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

Re: [BETA] Share Topic Plus

Post by kmakoto » Sat Dec 10, 2011 3:03 am

is error in archive install.php in new zip

Code: Select all

/*
* The language file which will be included when installing
*/
$language_file = 'mods/acp_share';
correct

Code: Select all

/*
* The language file which will be included when installing
*/
$language_file = 'mods/info_acp_share_topic_plus';

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

Re: [BETA] Share Topic Plus

Post by _Vinny_ » Sat Dec 10, 2011 4:57 pm

kmakoto wrote:is error in archive install.php in new zip

Code: Select all

/*
* The language file which will be included when installing
*/
$language_file = 'mods/acp_share';
correct

Code: Select all

/*
* The language file which will be included when installing
*/
$language_file = 'mods/info_acp_share_topic_plus';
Thanks. ;) Download update.

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

Re: [BETA] Share Topic Plus

Post by kmakoto » Mon Dec 12, 2011 8:44 pm


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

Re: [BETA] Share Topic Plus

Post by _Vinny_ » Mon Dec 12, 2011 11:20 pm

Yes. See the images in the first post. ;)

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

Re: [BETA] Share Topic Plus

Post by greybox » Tue Dec 20, 2011 8:37 am

1. Automod doesn't recognize properly your zipped structure: you have one extra zipped file level in your share-topic-plus-1.0.0b.zip file, so it only works when manually copying the share_topic_plus folder to the forum/store folder.

2. I would like to be able to have the social icons on the left side. I tried to use

Code: Select all

<div id="social_icons" style="float: left;">
inside sharetopic_body.html, but it messes up the topic formatting. Would anybody be able to help?

3. I am trying to figure our how to add the social icons into the overall_header.html to enable the generic links to the entire web site. Any suggestions?

Thanks for the mod!!

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

Re: [BETA] Share Topic Plus

Post by _Vinny_ » Tue Dec 20, 2011 4:46 pm

greybox wrote:1. Automod doesn't recognize properly your zipped structure: you have one extra zipped file level in your share-topic-plus-1.0.0b.zip file, so it only works when manually copying the share_topic_plus folder to the forum/store folder.
Will be fixed in next version.
greybox wrote:2. I would like to be able to have the social icons on the left side. I tried to use

Code: Select all

<div id="social_icons" style="float: left;">
inside sharetopic_body.html, but it messes up the topic formatting. Would anybody be able to help?
Replace <div id="social_icons" style="float: left;"> with <div id="social_icons">
greybox wrote:3. I am trying to figure our how to add the social icons into the overall_header.html to enable the generic links to the entire web site. Any suggestions?
If you use prosilver, I recommend below the search box.

User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm
Contact:

Re: [BETA] Share Topic Plus

Post by keith10456 » Tue Dec 20, 2011 5:38 pm

Thanks for the update. I plan on adding this this week :D

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

Re: [BETA] Share Topic Plus

Post by greybox » Wed Dec 21, 2011 8:52 am

_Vinny_ wrote:
greybox wrote:
greybox wrote:3. I am trying to figure our how to add the social icons into the overall_header.html to enable the generic links to the entire web site. Any suggestions?
If you use prosilver, I recommend below the search box.

Could you help with the code, please?

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

Re: [BETA] Share Topic Plus

Post by _Vinny_ » Wed Dec 21, 2011 6:29 pm

If is prosilver or based in prosilver, open styles/prosilver/template/overall_header.html
Find:

Code: Select all

				</form>
			</div>
		<!-- ENDIF -->
Add after:

Code: Select all

<!-- IF S_SHARE_PLUS_ENABLE -->
<div id="social_icons" style="float: right; padding-top: 16px;">
<!-- IF S_SHARE_PLUS_FACEBOOK -->
<script type="text/javascript">
//<![CDATA[
(function() {
	document.write('<fb:like data-href="{U_SHARE_TOPIC}" class="fb-like" data-send="{SHARE_PLUS_FACEBOOK_SEND}" data-layout="{SHARE_PLUS_FACEBOOK_LAYOUT}" data-width="{SHARE_PLUS_FACEBOOK_WIDTH}" data-show-faces="{SHARE_PLUS_FACEBOOK_FACE}" data-action="{SHARE_PLUS_FACEBOOK_ACTION}" data-colorscheme="{SHARE_PLUS_FACEBOOK_COLOR}" data-font="{SHARE_PLUS_FACEBOOK_FONT}"><\/fb:like>');
	var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
	s.type = 'text/javascript';
	s.async = true;
	s.src = 'http://connect.facebook.net/{SHARE_PLUS_FACEBOOK_LANG}/all.js#xfbml=1';
	s1.parentNode.insertBefore(s, s1);
})();
//]]>
</script>
<!-- ENDIF -->

<!-- IF S_SHARE_PLUS_TWITTER -->
<script type="text/javascript">
//<![CDATA[
(function() {
	document.write('<a href="http://twitter.com/share" class="twitter-share-button" data-url="{U_SHARE_TOPIC}" data-text="{TOPIC_TITLE}" data-count="{SHARE_PLUS_TWITTER_BUTTON}" data-via="{SHARE_PLUS_TWITTER_VIA}" data-lang="{SHARE_PLUS_TWITTER_LANG}">Tweet<\/a>');
	var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
	s.type = 'text/javascript';
	s.async = true;
	s.src = 'http://platform.twitter.com/widgets.js';
	s1.parentNode.insertBefore(s, s1);
})();
//]]>
</script>
<!-- ENDIF -->

<!-- IF S_SHARE_PLUS_GOOGLE -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
//<![CDATA[
	{lang: '{SHARE_PLUS_GOOGLE_LANG}'}
//]]>
</script>
<div id="plusone-div"></div>
<script type="text/javascript">
//<![CDATA[
gapi.plusone.render ('plusone-div', {"href": "{U_SHARE_TOPIC}", "size": "{SHARE_PLUS_GOOGLE_SIZE}", "annotation": "{SHARE_PLUS_GOOGLE_COUNT}"});
//]]>
</script>
<!-- ENDIF -->
</div><!-- ENDIF -->
Find:

Code: Select all

data-href="{U_SHARE_TOPIC}"
Replace {U_SHARE_TOPIC} with your site/forum URL.
Find:

Code: Select all

data-url="{U_SHARE_TOPIC}"
Replace {U_SHARE_TOPIC} with your site/forum URL.
Find:

Code: Select all

"href": "{U_SHARE_TOPIC}"
Replace {U_SHARE_TOPIC} with your site/forum URL.

To work also in the header, the mod must be installed and active.

Locked

Return to “[3.0.x] Abandoned MODs”