Search…

X3 Photo Gallery Support Forums

Search…
 
x-tremed
Topic Author
Posts: 20
Joined: 20 May 2011, 16:40

Can;t find the twitter share code

18 Jan 2012, 08:40

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?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Can;t find the twitter share code

18 Jan 2012, 22:27

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}}'}
}
 
x-tremed
Topic Author
Posts: 20
Joined: 20 May 2011, 16:40

Re: Can;t find the twitter share code

20 Jan 2012, 05:02

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 )
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Can;t find the twitter share code

20 Jan 2012, 22:51

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.