Announcement

#1 2009-07-27 15:25:58

Chenasona
Member
Kolkata, India
2009-07-23
4

Embed Javascript Code Snipet in Every Uploaded Picture : Please Help

Hi, Im a newbie to use piwigo in my website http://www.moodfresher.com

I want to use some javascript (e.g. Gigya www.gigya.com ) to share any picture with other social networking or bloging or bookmarking sites.

This codes are basically in two parts :  1st part inside <head> section and rest part in <body>.

It can be implemented very easily in html sites but in a dynamic website written in php as Piwigo it is too hard for me because I am puzzled where ( means in which file ) I have to implement this?


Thanks in advance for any help & suggestion in advance...

Offline

 

#2 2009-07-27 22:03:20

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
6745

Re: Embed Javascript Code Snipet in Every Uploaded Picture : Please Help

Did you look at [extension by tiico] AddThis ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2009-07-28 09:48:07

Chenasona
Member
Kolkata, India
2009-07-23
4

Re: Embed Javascript Code Snipet in Every Uploaded Picture : Please Help

Yes I have implemented this plugin (ADDTHIS) in my website, But I want to embed Gigya code because it can be used on Most Social Networking Website as Scrap, or Comment. Specifically I want to use this for "Photo Scrap" or "Photo Comment" Etc. This will help to Bring Many Visitors to my site.

Please Help.

Offline

 

#4 2009-07-28 10:00:32

Chenasona
Member
Kolkata, India
2009-07-23
4

Re: Embed Javascript Code Snipet in Every Uploaded Picture : Please Help

Is There Any Way to Edit  ./template/yoga/picture.tpl   this file to insert my code there in stead of Picture Summery??

Offline

 

#5 2009-07-28 10:29:57

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
6745

Re: Embed Javascript Code Snipet in Every Uploaded Picture : Please Help

To do this, use the template extension.


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#6 2009-07-28 10:34:18

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
6745

Re: Embed Javascript Code Snipet in Every Uploaded Picture : Please Help

1/ Create the template extension

Administration -> Specials -> Plugins -> LocalFiles Editor -> tab template

Create new file

File name      : p_picture.tpl
Model               : picture.tpl

Sumit

--------------------

after line 232 [</table>] insert your code

Save file


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#7 2009-07-28 10:36:48

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
6745

Re: Embed Javascript Code Snipet in Every Uploaded Picture : Please Help

2/ use your extension personnel template

Administration -> Configuration -> Templates

Replacers (customized templates)                           Original templates
p_picture.tpl                                                              picture.tpl

Submit

And will see if you agree on a photo


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#8 2009-07-30 17:14:15

Chenasona
Member
Kolkata, India
2009-07-23
4

Re: Embed Javascript Code Snipet in Every Uploaded Picture : Please Help

Many many thanks ddtddt,

But I am unable to edit these because currently my Internet Connection is Down :( .  I shall definitly apply this to test how it works..

and if unable to do so  definitly disturb you again..;)

Thanks Again..

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact