We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Extension: NB Show custom field data

Development and Programming

Nicolas Bottari's avatar
Nicolas Bottari
143 posts
16 years ago
Nicolas Bottari's avatar Nicolas Bottari

Thanks for your input, shinka. Just in case, I updated the extension to 0.5.2 so that errors are not thrown if field types haven’t been selected yet. 😉

Interesting about the error when no custom fields are set for a weblog. I assumed everyone used at least one custom field per weblog. I mean, custom fields is the magic of EE, right? 😉

Thanks for finding the error in this rare situation, I’ll try to fix this in a later version.

       
shinka's avatar
shinka
147 posts
16 years ago
shinka's avatar shinka

Haha, yeah I can understand how it’s a unique situation. Basically I’ve got sports seasons (like Baseball 2009, Football 2009, etc.) and I have players assigned to those sports through a relationship field. I use the custom statuses of the sports season entry to turn on and off online voting as well as turning on and off other display features. It works pretty well to keep everything organized but it doesn’t require any custom fields to make it work, lol.

       
Nicolas Bottari's avatar
Nicolas Bottari
143 posts
16 years ago
Nicolas Bottari's avatar Nicolas Bottari

Since I had this lying around but still at a decent stage, I’m updating the extension to version 0.6. Here are the changes, including one that some may like, even though it’s pretty basic 😉

  • Includes a few fixes for errors when Fieldframe field types have not yet been enabled
  • No more need to specify upload directory for File display type
  • New: option to limit the number of rows to show for FF matrix display type
  • New: options to show FF matrix field names and labels above the matrix
  • New: “Image” display type, based on upload folder containing at least one image file
  • New: simple image thumbnail. Image size is set based on width in settings. This is only an image resize of the original image, no thumbnail file is created
  • New: link to original file for Image and File display types
  • Settings form cleanup: text in settings page should take less vertical space.

I should really add an auto-update feature… Probably in the next version 😊

       
shinka's avatar
shinka
147 posts
16 years ago
shinka's avatar shinka

Thanks for the update. The thumbnail creation seems to be working beautifully. I have a new error for you though. 😊

Notice: Undefined variable: imageUploadDirIds in .../system/extensions/ext.nb_show_custom_field_data.php on line 356

Warning: Invalid argument supplied for foreach() in .../system/extensions/ext.nb_show_custom_field_data.php on line 356
       
Nicolas Bottari's avatar
Nicolas Bottari
143 posts
16 years ago
Nicolas Bottari's avatar Nicolas Bottari

shinka, thanks for pointing that out. Should be fixed now. Please re-download the extension from the first post and let me know if you still have the error.

       
shinka's avatar
shinka
147 posts
16 years ago
shinka's avatar shinka

Yup, that fixed it, thanks!

       
Nicolas Bottari's avatar
Nicolas Bottari
143 posts
16 years ago
Nicolas Bottari's avatar Nicolas Bottari

Updated the extension to 0.7, which adds support for the LG addon updater, which will check for new versions of the extension directly from the Control Panel.

Changelog: * Automatic version checking using LG Addon Updater, which must also be installed. * Added “check for update” setting * Some more cleanup

       
shinka's avatar
shinka
147 posts
16 years ago
shinka's avatar shinka

Got another bug. Now I’ve installed the Multiple Site Manager and added another site. I’m getting this error when I try to access the extension settings.:

Fatal error: Call to undefined function exif_imagetype() in /system/extensions/ext.nb_show_custom_field_data.php on line 911
       
Nicolas Bottari's avatar
Nicolas Bottari
143 posts
16 years ago
Nicolas Bottari's avatar Nicolas Bottari

shinka, can you check if the EXIF library is installed on your server? Go to Control Panel > Admin > Utilites > PHP Info …and check if EXIF Support is enabled. Also, what version of PHP are you using?

I’m not sure this has to do with the MSM, although I don’t have much experience with that module. Thanks.

       
shinka's avatar
shinka
147 posts
16 years ago
shinka's avatar shinka

phpinfo() is disabled on my client’s server unfortunately. PHP version is 5.2.6. Sorry I can’t be more helpful. :(

       
Nicolas Bottari's avatar
Nicolas Bottari
143 posts
16 years ago
Nicolas Bottari's avatar Nicolas Bottari

I thought this would be a 15-minute fix, but took much longer than I thought ^_^;. I upgraded the extension to 0.7.1, which should fix the exif error (actually, there shouldn’t be an error related to that anymore) as well as other small bugs that no one noticed 😉

If you have NB Show custom field data 0.7, the addon should automatically inform you of this newer version.

Fixes: * For better compatibility with certain server setups, changed PHP the command used to check if directory contains at least one image * Bug fixes and code simplification for determining image directories

       
shinka's avatar
shinka
147 posts
16 years ago
shinka's avatar shinka

Awesome, it worked! Thank you so much for putting up with my odd bugs!

       
Nicolas Bottari's avatar
Nicolas Bottari
143 posts
16 years ago
Nicolas Bottari's avatar Nicolas Bottari

My pleasure. Finding these odd bugs is important, so I appreciate you pointing them out. 😊

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Thanks for adding LG Addon Updater support!

       
Beebs's avatar
Beebs
207 posts
16 years ago
Beebs's avatar Beebs

Hi,

I am interested to use this extension.

But I got this error message :

MySQL ERROR:

Error Number: 1054

Description: Unknown column 'ff_settings' in 'field list'

Query: SELECT field_id, field_name, field_label, group_id, field_type, ff_settings FROM exp_weblog_fields WHERE group_id='1' ORDER BY group_id

Can you tell mew what should I do? I’ve been seraching this forum and did google search, but couldn’t find the answer.

       
1 2 3

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.