•  » Engine
  •  » more fields by registration. problem with edit

#1 2012-04-19 18:23:30

peter.w.lampke
Member
2012-01-16
24

more fields by registration. problem with edit

hi everybody!

I changed my registration form. put more fields like name and surname. all works ok by the registration.

now I will change the "edit user" template in the back end, I changed some other files like:

file: ./admin/themes/mediatool/template/profile_content.tpl
file: ./include/config_default.inc.php
file: ./profile.php

but it don't works. I cannot edit my 2 new fields. :(

I don't find any other file to change. can anybody help me?

thanks a lot!

peter


using Piwigo 2.3.3

Offline

 

#2 2012-04-19 18:31:55

flop25
Piwigo Team
2006-07-06
7038

Re: more fields by registration. problem with edit

hello
first never ever change the core files!
second learn how to avoid changing the core files : plugin creation for handling the new fields and template-extension for profile.tpl and registration.tpl
third for the plugin use the triggers register_user and save_profile_from_post
;)

Last edited by flop25 (2012-04-19 18:32:23)


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

 

#3 2012-04-19 18:37:05

peter.w.lampke
Member
2012-01-16
24

Re: more fields by registration. problem with edit

hi flop25!

you're right. makes no sense to change the core files. I will try with a plugin. :)

have a nice day! thanks!!

peter


using Piwigo 2.3.3

Offline

 

#4 2012-04-19 18:43:27

flop25
Piwigo Team
2006-07-06
7038

Re: more fields by registration. problem with edit

After a time of reflexion, it would be much better to use a prefilter instead of a template-extension : much easier to maintain after updates
to see what is prefilters see http://piwigo.org/dev/browser/extension … nf.inc.php for example


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

 

#5 2012-04-20 16:12:41

peter.w.lampke
Member
2012-01-16
24

Re: more fields by registration. problem with edit

hmmmm... interesting. I will try. thank you!

peter

Offline

 
  •  » Engine
  •  » more fields by registration. problem with edit

Board footer

Powered by FluxBB

github linkedin newsletter Piwigo.org © 2002-2026 · Contact