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
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)
Offline
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
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
Offline
hmmmm... interesting. I will try. thank you!
peter
Offline