Announcement

#1 2014-05-07 10:01:17

raymond1965
Member
2013-09-05
83

checkbox

Hello/Hi/Greetings,

(I added 2 checkbox functions in Addinfo_users, (profile_add.tpl) and updated the other files
but it doesn't keep the data after I submit.

Example form checkbox 1
<li id="addinfouser_9">
<span class="property">{'addinfousers_info9'|@translate}&nbsp;:&nbsp;</span>
<input type="checkbox" name="inser9" value="{$AICONTENT9}" id="nonpayment">
</li> )

What should I change in this form to let it work? and what should I add in the MySQL extra row info9



Piwigo version:
PHP version:
MySQL version:
Piwigo URL: http://www.euroartgallery.nl

Offline

 

#2 2014-05-07 12:09:25

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

Re: checkbox

hi :-)

You've update database ?
you've udate function for add information on database ?


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 2014-05-07 12:15:03

flop25
Piwigo Team
2006-07-06
7037

Re: checkbox

Short resume: You have to update also the php script also! check main.inc.php


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#4 2014-05-07 21:57:27

raymond1965
Member
2013-09-05
83

Re: checkbox

Hi,
Yes I updated the database. I added extra rows info8, info9 and info 10

I installed an extra  piwigo again (original), for testing test what happen.  And same thing

Burt for sure I miss something. I guess ?

Offline

 

#5 2014-05-08 07:00:15

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

Re: checkbox

Hi :-)

Have you change change query to add information on database in register and other file where you update information ?


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 2014-05-08 11:17:03

raymond1965
Member
2013-09-05
83

Re: checkbox

Hi everything works
When I a register a name, then all information is in the database. Only the ID's are not the same. When I update the ID in the Data Base , so that both have the same, then is't ok.

Their must be some explanation, but hard to find when you don't know it.


Raymond

Offline

 

#7 2014-05-08 12:47:52

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

Re: checkbox

hi,
If you delete user only on piwigo admin and no on database I think you don't have a probleme.


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

 

Board footer

Powered by FluxBB

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