•  » Engine
  •  » Attempt at plugin helped by chatgpt

#1 2023-07-30 22:13:37

PEU
Member
Buenos Aires, Argentina
2017-02-12
105

Attempt at plugin helped by chatgpt

Hi, Im trying to make a derivative plugin based on the one by @plg https://piwigo.org/ext/extension_view.php?eid=843

I want to put a small overlay over the photo with its photo id.
So I asked chatgpt to do this for me, it doesn't work (I was expecting this) but maybe its a little detail that can be fixed, or it can be complete garbage code and since I'm a newbie I'm unable to notice this LOL

here is the not working plugin: https://piwigo.org/ext/extension_view.php?eid=966

Any help will be appreciated, and if this is a dead route, please also let me know.

THanks

Offline

 

#2 2023-08-02 10:22:16

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

Re: Attempt at plugin helped by chatgpt

Hi :-)

What do you want to do ?


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 2023-08-02 16:28:51

PEU
Member
Buenos Aires, Argentina
2017-02-12
105

Re: Attempt at plugin helped by chatgpt

I want all the pictures in the gallery to have this little rectangle with its photo ID. I'm willing to learn if the code needs slight modifications :) Thanks!!
https://i.imgur.com/2Kp7a3F.png

Last edited by PEU (2023-08-02 20:30:51)

Offline

 

#4 2023-08-03 09:13:58

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

Re: Attempt at plugin helped by chatgpt

Hi:-)

with extention:966 id appears ?

if yes, add css for change place


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

 

#5 2023-08-03 19:38:37

PEU
Member
Buenos Aires, Argentina
2017-02-12
105

Re: Attempt at plugin helped by chatgpt

No, downloaded it again and activated and doesn't show

Offline

 

#6 2023-08-04 18:47:02

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

Re: Attempt at plugin helped by chatgpt

Hi :-)

Theme ?


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 2023-08-04 19:39:45

PEU
Member
Buenos Aires, Argentina
2017-02-12
105

Re: Attempt at plugin helped by chatgpt

Im using bootstrap darkroom :)

Offline

 

#8 2023-08-04 21:29:23

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

Re: Attempt at plugin helped by chatgpt

Hi :-)

you can test [extension by ddtddt] Manage Properties Photos for add id on photo page


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

 

#9 2023-08-04 22:19:17

PEU
Member
Buenos Aires, Argentina
2017-02-12
105

Re: Attempt at plugin helped by chatgpt

YEs, is another way of showing the image ID, like https://piwigo.org/ext/extension_view.php?eid=843, but I want it as an overlay on the photo like the example above, that was what I was trying to accomplish. thanks!

Offline

 

#10 2023-08-09 00:26:19

PEU
Member
Buenos Aires, Argentina
2017-02-12
105

Re: Attempt at plugin helped by chatgpt

ddtddt wrote:

Hi :-)

Theme ?

So you think is possible? Thanks

Offline

 

#11 2023-08-09 08:04:19

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

Re: Attempt at plugin helped by chatgpt

Hi:-)

Have you test add css for move id ?


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

 

#12 2023-08-09 19:04:11

PEU
Member
Buenos Aires, Argentina
2017-02-12
105

Re: Attempt at plugin helped by chatgpt

I get this error:"

Warning: Cannot modify header information - headers already sent by (output started at /home2/uv0023/public_html/cuchillos/plugins/peu-overlay/main.inc.php:196)

this happened when I modified the installed main.inc.php file

then removed it, manually uploaded it again with the main.inc.php file modified and the error dissapeared

I don't understand what you mean move id :)

Last edited by PEU (2023-08-09 19:16:31)

Offline

 

#13 2023-08-10 07:36:55

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

Re: Attempt at plugin helped by chatgpt

Hi :-)

PEU wrote:

Warning: Cannot modify header information - headers already sent by (output started at /home2/uv0023/public_html/cuchillos/plugins/peu-overlay/main.inc.php:196)

error isn't on [extension by ddtddt] Manage Properties Photos but plugin peu-overlay


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

 

#14 2023-08-10 17:32:36

PEU
Member
Buenos Aires, Argentina
2017-02-12
105

Re: Attempt at plugin helped by chatgpt

yes, edited the post when I understood what happened, still I'm lost about what you mean by: "Have you test add css for move id "

Thanks

Offline

 

#15 2023-08-21 22:37:45

PEU
Member
Buenos Aires, Argentina
2017-02-12
105

Re: Attempt at plugin helped by chatgpt

a little more help toward the goal would be appreciated!! TIA !

Offline

 
  •  » Engine
  •  » Attempt at plugin helped by chatgpt

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact