Announcement

#1 2016-09-17 10:24:42

vidal
Member
2016-09-16
9

Custom user fields plugins not showing data in theme

Hi,

I've tried both extensions/plugins for custom user fields, but both seem not to show the extra fields on the registration page and edit profile page.

I'm using the Bootstrap Darkroom (standaard) Theme.

How can we fix this?

System info:
Piwigo 2.8.2
PHP: 5.5.36
MySQL: 5.5.5-10.0.25-MariaDB
Graphics Library: GD bundled (2.1.0 compatible)

Offline

 

#2 2016-09-17 14:14:51

teekay
Member
2013-06-12
404

Re: Custom user fields plugins not showing data in theme

The "user custom fields" plugin seems to expect <fieldset>.*</fieldset> form tags and inserts it's own form stuff there. This will not work with bootstrap forms (http://getbootstrap.com/css/#forms)

So currently, there is no sane way to support this plugin in Bootstrap Default/Darkroom.

Last edited by teekay (2016-09-17 14:17:25)

Offline

 

#3 2016-09-17 18:22:55

vidal
Member
2016-09-16
9

Re: Custom user fields plugins not showing data in theme

Ok, so it's one the most popular responsive themes.

So I guess I have to try hire a developer? and program something in it to also support 
<div class="form-group"> ? , cause there are more bootstrap themes in the theme directory, would be nice if someone could do this.

Offline

 

#4 2016-09-17 19:56:56

teekay
Member
2013-06-12
404

Re: Custom user fields plugins not showing data in theme

I guess it would require a "bootstrap version" of this plugin. Ideally it should be written in a way that allows themes to override the template files the plugin ships with.

But let me check if I can get it working anyway by modifying something in the theme. Stay tuned.

Last edited by teekay (2016-09-17 20:03:35)

Offline

 

#5 2016-09-17 21:19:38

teekay
Member
2013-06-12
404

Re: Custom user fields plugins not showing data in theme

Support for user_custom_fields is now in Bootstrap Darkroom GIT version. I came up with a hack that makes it work.

Offline

 

#6 2016-09-18 08:10:12

vidal
Member
2016-09-16
9

Re: Custom user fields plugins not showing data in theme

Wow that is very very cool. I will gonna install it. But can you tell me which files to overwrite?
I did not changed the theme templates itself, but how to install your update, overwrite everything?

Also which plugin did u tested?

I have this one installed
http://nl.piwigo.org/ext/extension_view.php?eid=832

But this version is more cool, with drag and drop.
http://nl.piwigo.org/ext/extension_view.php?eid=833

Or do they work both on the Git version

Thanks
Vidal

Offline

 

#7 2016-09-18 08:40:51

vidal
Member
2016-09-16
9

Re: Custom user fields plugins not showing data in theme

Ok I just tested your fix, it works perfectly with this plugin

User Custom Fields
http://nl.piwigo.org/ext/extension_view.php?eid=833

Is it also possible to show them on the edit profile.php page too?, people cannot edit them now.

Thanks a million!

Offline

 

#8 2016-09-18 10:32:20

teekay
Member
2013-06-12
404

Re: Custom user fields plugins not showing data in theme

This is fixed in git now, too. Only the user_custom_fields plugin is supported.

Offline

 

#9 2016-09-18 18:11:16

vidal
Member
2016-09-16
9

Re: Custom user fields plugins not showing data in theme

Ok I see it now too, that is working, thanks!:)

Would be nice if the sorting would work too on this in the theme, now all new fields are on top.

But I just mentioned the entered data is not showing on the edit profile page and also when editing the user in admin (click edit, in the lightbox > edit custom fields data is empty)

I checked the database and I can see the extra custom field user data, so that is working.

I guess this is the a plugin issue? Also for profile page?

Thank you for your help!

Offline

 

Board footer

Powered by FluxBB

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