Page 1 of 1

Can;t find the twitter share code

Posted: 18 Jan 2012, 08:40
by x-tremed
I'm looking for the file that contains the code for the addthis sharing by twitter.
Now when i'm sharing a photo trough twitter it uses the filename as twittermessage.

But i would like to change this into a text that i can fill in myself. I have allready looked trough some files but didn't find the actual code for the addthis / share buttons.

Could you tell me where to find it?

Re: Can;t find the twitter share code

Posted: 18 Jan 2012, 22:27
by mjau-mjau
This is the default output for Twitter ... You can change it by editing the file iv-includes/templates/index.gallery.phtml:
Code
window.addthis_share = {
	templates: {twitter: '{{title}} - {{url}}'}
}

Re: Can;t find the twitter share code

Posted: 20 Jan 2012, 05:02
by x-tremed
changed it now to
Code
templates: {twitter: 'Mijn foto gemaakt door Carli Hermes - {{url}}'}
but when trying to share the photo trough twitter i still get the file name as twitter message ( see: http://lg.opdefoto.com/#/content/AIFW/sunset.jpg )

Re: Can;t find the twitter share code

Posted: 20 Jan 2012, 22:51
by mjau-mjau
It seems this is related to the AddThis API, and we don't control the output. I found this:
http://www.addthis.com/help/client-api# ... -templates

It seems they insinuate this method might become deprecated some time. We just send all the data to AddThis, and it parses the output for the services.