Advertisement:

Author Topic: [New Plugin] Custom Attributes  (Read 115754 times)

sydcode

  • Newbie
  • *
  • Posts: 41
[New Plugin] Custom Attributes
« on: December 25, 2012, 06:58:32 pm »
Merry Christmas! :) Here is a little present from sharkey and myself.

Custom Attributes supports:
- Four input types (text, select, radio, and checkbox).
- Ability to make them required or searchable.
- Choice of alphabetical or custom ordering.
- Editing of inputs and values.
- Attribute groups, with category selection.
- Optional group headings.

This is a beta version! Please don't expect it to be perfect.
We hope you find it useful, and we're looking forward to your comments.

Requires version 3.0 or greater.

Update (4th March 2013):
I've uploaded a new beta version. Thanks for your patience!
This plugin is still in development so there may be lots of bugs.
Update simply by clicking on the cross button and uploading the file.
Don't uninstall or you will lose your existing fields and values.
Good luck :)

Update (5th March, 2013):
Fixed bugs and added Jay's updates. Custom Attributes is now on GitHub.
Remove "-master" that GitHub adds to the plugin folder. Better yet, use the SourceForge link below.

Update (12th March, 2013):
Added language support.

Update (17th June, 2013):
Added date field (jQuery datepicker) and textarea field.
Added limits (min-max) option for text fields.
Added support for Bender theme.
Bug fixes, thanks Aficionado and sirjones!
Fixed deprecated hooks (v3.2 ready)
Many small improvements.

Update (20th December, 2013):
Removed search filter to fix wildcard bug. Thanks dev101!
Added settings "Hide empty attributes" and "Uninstall data".
Allowed multiple installs and custom folder names.
Fixed bug causing groups to reset on values page.
Fixed bug in search fields. Thanks mestr!

Remember! DO NOT uninstall the old plugin or your data will be lost.
Just hit the plus button and upload the new plugin.

Download Custom Attributes (121KB):
http://sourceforge.net/projects/custom-attrs/files/latest/download
« Last Edit: December 21, 2013, 01:58:54 am by sydcode »

sharkey

  • Full Member
  • ***
  • Posts: 102
Re: [New Plugin] Custom Attributes
« Reply #1 on: December 26, 2012, 07:48:38 am »
I want to clarify Sydcode was paid to create this plugin.
I requested it be given back to the community but I do not expect him to maintain it.

If anyone needs help with another project I would strongly suggest hiring him, he does amazing work and you can verify through this plugin.  I would ask if you hire him to be as generous as I (shameless plug) and share his work.

Thank you and Merry Christmas!
« Last Edit: December 26, 2012, 07:58:37 am by sharkey »

hallartistry

  • Full Member
  • ***
  • Posts: 133
Re: [New Plugin] Custom Attributes
« Reply #2 on: December 26, 2012, 11:19:51 am »
Oh my goodness! Thank you so much! This is the kind of plugin we've been needing here. I just installed it and played with it a little, and so far so good. I haven't done all that I need to with it, so I'll keep you updated on how it works once I have everything set up. I've been wanting a plugin that would allow you to add custom fields that are searchable without having to basically create your own attributes plugin. One thing for now, is there a way to add different attributes to different categories. Right now it looks like if I check more than one category, it will add those attributes to all the cats that are checked?

Krautshooter

  • Newbie
  • *
  • Posts: 6
Re: [New Plugin] Custom Attributes
« Reply #3 on: December 26, 2012, 10:32:18 pm »
... a plugin that would allow you to add custom fields that are searchable ...

You guys nailed it! That's the kind of stuff that can make OSClass a real contender. The initial excitement over the script had almost faded after noticing that almost EVERYTHING needs to be coded afterwards if one wants modifications. Kudos, guys!

snirpidotcom

  • Full Member
  • ***
  • Posts: 107
Re: [New Plugin] Custom Attributes
« Reply #4 on: December 26, 2012, 11:08:53 pm »
How are we to translate? Not a plugin, but the check-box, fields, headers etc ...
Such is the custom fields. But still can not translate?

Thanks.


atrifa81

  • Jr. Member
  • **
  • Posts: 57
Re: [New Plugin] Custom Attributes
« Reply #5 on: December 27, 2012, 09:56:24 am »
Great plugin....but if i want to have this plugin under another name to use it in different categories...witch lines should i change in the php files?....for exampel i installed it under the name custom_attributes and i use it in the service category....but i want to make other attributes to use them in job category.....is like i instaled this plugin twice but under different names...how do i do that? tks in advance.

sharkey

  • Full Member
  • ***
  • Posts: 102
Re: [New Plugin] Custom Attributes
« Reply #6 on: December 27, 2012, 10:36:33 am »
How are we to translate? Not a plugin, but the check-box, fields, headers etc ...
Such is the custom fields. But still can not translate?

Thanks.

Modify conf.php

Line 119

Code: [Select]
<h2 class='render-title' style='margin-bottom: 10px; margin-top: 0;'><?php _e('Heading'PLUGIN_NAME); ?></h2>
Line 134

Code: [Select]
<h2 class='render-title' style='margin-bottom: 10px; margin-top: 0;'><?php _e('Add Attribute'PLUGIN_NAME); ?></h2>

Line 162
Code: [Select]

<h2 class='render-title' style='margin-bottom: 10px;'><?php _e('Delete Attribute'PLUGIN_NAME); ?></h2>

Lines 218 -223

Code: [Select]
<select class='field_type' name='edit_type'>
<option value='text'<?php if ($type == 'text') echo " selected='selected'"?>><?php _e('Text'PLUGIN_NAME); ?></option>
<option value='select'<?php if ($type == 'select') echo " selected='selected'"?>><?php _e('Select'PLUGIN_NAME); ?></option>
<option value='radio'<?php if ($type == 'radio') echo " selected='selected'"?>><?php _e('Radio'PLUGIN_NAME); ?></option>
<option value='checkbox'<?php if ($type == 'checkbox') echo " selected='selected'"?>><?php _e('Checkbox'PLUGIN_NAME); ?></option>
</select>


sharkey

  • Full Member
  • ***
  • Posts: 102
Re: [New Plugin] Custom Attributes
« Reply #7 on: December 27, 2012, 10:45:58 am »
Oh my goodness! Thank you so much! This is the kind of plugin we've been needing here. I just installed it and played with it a little, and so far so good. I haven't done all that I need to with it, so I'll keep you updated on how it works once I have everything set up. I've been wanting a plugin that would allow you to add custom fields that are searchable without having to basically create your own attributes plugin. One thing for now, is there a way to add different attributes to different categories. Right now it looks like if I check more than one category, it will add those attributes to all the cats that are checked?

Great plugin....but if i want to have this plugin under another name to use it in different categories...witch lines should i change in the php files?....for exampel i installed it under the name custom_attributes and i use it in the service category....but i want to make other attributes to use them in job category.....is like i instaled this plugin twice but under different names...how do i do that? tks in advance.

I only use one category and did not consider needing this for multiple categories so I'm not sure it's possible without extensive modifications.  It's all or nothing right now.

Maybe Sydcode will answer but my intent was to create this based on my needs and hope someone else in the community enhances it.

ETA:

I just noticed this;


Todo:
- Move inline styles to stylesheets.
- Add category selector.
« Last Edit: December 27, 2012, 10:48:48 am by sharkey »

snirpidotcom

  • Full Member
  • ***
  • Posts: 107
Re: [New Plugin] Custom Attributes
« Reply #8 on: December 27, 2012, 03:59:48 pm »
How are we to translate? Not a plugin, but the check-box, fields, headers etc ...
Such is the custom fields. But still can not translate?

Thanks.

Modify conf.php

Line 119

Code: [Select]
<h2 class='render-title' style='margin-bottom: 10px; margin-top: 0;'><?php _e('Heading'PLUGIN_NAME); ?></h2>
Line 134

Code: [Select]
<h2 class='render-title' style='margin-bottom: 10px; margin-top: 0;'><?php _e('Add Attribute'PLUGIN_NAME); ?></h2>

Line 162
Code: [Select]

<h2 class='render-title' style='margin-bottom: 10px;'><?php _e('Delete Attribute'PLUGIN_NAME); ?></h2>

Lines 218 -223

Code: [Select]
<select class='field_type' name='edit_type'>
<option value='text'<?php if ($type == 'text') echo " selected='selected'"?>><?php _e('Text'PLUGIN_NAME); ?></option>
<option value='select'<?php if ($type == 'select') echo " selected='selected'"?>><?php _e('Select'PLUGIN_NAME); ?></option>
<option value='radio'<?php if ($type == 'radio') echo " selected='selected'"?>><?php _e('Radio'PLUGIN_NAME); ?></option>
<option value='checkbox'<?php if ($type == 'checkbox') echo " selected='selected'"?>><?php _e('Checkbox'PLUGIN_NAME); ?></option>
</select>

Hello.

I'm talking about information that is presented in front end user.
Not translate plugin, but users see the data.
The same problem has "add custom fields in menu item".
Be possible to translate each attribute in languages ​​enabled on the site.
When you add an attribute if you write in English, appears only in English ...

snirpidotcom

  • Full Member
  • ***
  • Posts: 107
Re: [New Plugin] Custom Attributes
« Reply #9 on: December 27, 2012, 04:01:03 pm »
Need add locale function to the plugin...

Thanks ;)

sydcode

  • Newbie
  • *
  • Posts: 41
Re: [New Plugin] Custom Attributes
« Reply #10 on: December 27, 2012, 05:38:35 pm »
Thank you sharkey! Very kind of you to say that.  :)

I'll add more features once the holidays are over. The first will be a category selector, followed by localization. Do you guys think it's worth having import and export functions?

Quote
instaled this plugin twice but under different names...how do i do that?
That's a lot of work. Everything is stored in custom tables so a lot of code needs to be changed. The category select will be added very soon.

Legion

  • Hero Member
  • *****
  • Posts: 622
  • I am founder of top20remedies.com buyeradvise.com
Re: [New Plugin] Custom Attributes
« Reply #11 on: December 27, 2012, 06:01:19 pm »
looks Great hop will work

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [New Plugin] Custom Attributes
« Reply #12 on: December 28, 2012, 06:29:53 am »
Hi sydcode,

I have just tried your plugin. It does seem to be working for the most part. The one part that is not working for me is searching by the attributes. It could be other plugins conflicting I will try on a fresh install once and see if that helps.

I also would think and import and export function would be very useful.

Jay

sharkey

  • Full Member
  • ***
  • Posts: 102
Re: [New Plugin] Custom Attributes
« Reply #13 on: January 03, 2013, 07:07:29 am »
Hi sydcode,

I have just tried your plugin. It does seem to be working for the most part. The one part that is not working for me is searching by the attributes. It could be other plugins conflicting I will try on a fresh install once and see if that helps.

I also would think and import and export function would be very useful.

Jay

Hi Jay,

Does it work for you?

It's working great for me with only 1 quirk.  The edit values section shows the ad's with that value.  I don't understand that design.


trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [New Plugin] Custom Attributes
« Reply #14 on: January 03, 2013, 09:13:42 pm »
Hi sharkey,

I just tried it on a new install and it is working just fine. I am thinking I may have had another attribute plugin installed on my other site and that is why it was not working right.

I do not quite follow the following line.

Quote
The edit values section shows the ad's with that value.  I don't understand that design.

Jay