Bonus Fields

Discuss PivotX 2.0.x extensions here, and view extensions that are available for download.

Re: Bonus Fields

Postby habbekak » Tue Oct 18, 2011 6:03 pm

After update to the last PivotX and TimThumb version, this code snippet doesn't work anymore. I'ts something with TimThumb because he gives a 404(not found) error.
Code: Select all
[[ if $entry.extrafields.afbeelding ]]
 <a href="[[entrylink hrefonly=1]]"><img src="[[pivotx_url]]includes/timthumb.php?src=[[$entry.extrafields.afbeelding]]&amp;w=150&amp;h=100" alt="[[title]]" width="150" height="100" align="left"/></a>
[[ else ]]<!--I don't see images.-->[[/if]]
Follow me on twitter, so you can check my time line.....
www.twitter.com/habbekak
habbekak
 
Posts: 46
Joined: Sun Jan 24, 2010 10:56 am
Location: Petten (NL, North-Holland)

Re: Bonus Fields

Postby hansfn » Wed Oct 19, 2011 7:31 am

It would be much easier to help you if you provided a link to a page with the problem...
hansfn
Developer
 
Posts: 3282
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Bonus Fields

Postby marcelfw » Thu Oct 20, 2011 9:21 am

Update from 1.17 to 1.19.
1.18 contained an annoying bug that needed to be fixed soon.

CHANGES:

1.19 - 2011/10/18 - 19th update

- Bugfix for multiple categories
- Bugfix extrafield called 'description' (was impossible)
- Templates slightly altered so inputs line-up in the backend again.

1.18 - 2011/10/07 - 18th update

- In PivotX 3.x and up, fields can be selected to included in a special search field, support is included
- Added/fixed checkbox
- Added a fixed html somewhere in the form
- Fixed problem with quotes/html tags in inputs/textareas
marcelfw
 
Posts: 44
Joined: Wed Nov 10, 2010 3:40 pm

Re: Bonus Fields

Postby Harm10 » Thu Oct 20, 2011 9:27 am

marcelfw wrote:1.18 - 2011/10/07 - 18th update
Don't forget the option with the choose fields to be able to select pointing to nothing. That was rather important to me....... ;)
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Bonus Fields

Postby mololynn » Thu Nov 03, 2011 10:28 am

Hi all,
I am very new to PivotX and to Bonus Fields. I need some help with the proper way to specify category or chapter restrictions for displaying the bonus field on the new entry/page form. For Show if I have selected "show if by category or chapter". I don't know how to phrase the condition for the "condition is met" section.

If there is some additional documentation for this extension posted somewhere, I would love to see it.

Thanks in advance for your help!!
mololynn
 
Posts: 4
Joined: Thu Nov 03, 2011 10:23 am
Location: Nederlands

Re: Bonus Fields

Postby Harm10 » Thu Nov 03, 2011 11:22 am

Marcel hasn't put this in the documentation yet................ ;)
But the essence is that if you want to use the condition you put in the value for which you want the bonusfield to be active.
E.g. if you want your bonusfield to only show up when editing an entry in category Linkdump you put in value "linkdump" (internal name so lowercase) and select some entry position in Location.
If you want more categories you can specify them one by one on different lines.
It's the same for chapters but of course you specify some page position in Location.

Maybe there are more options but then the author has to speak........ ;)
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Bonus Fields

Postby mololynn » Thu Nov 03, 2011 1:14 pm

Thanks for the quick response. I tried that and it didn't work. I have "entry - before introduction" as the location and I tried putting in several different categories, each in quotes and on a separate line. It isn't showing up for any of them. It only shows up if I leave the conditions met area blank.

Any other suggestions? I just installed the extension so I am sure that I have the latest version.
mololynn
 
Posts: 4
Joined: Thu Nov 03, 2011 10:23 am
Location: Nederlands

Re: Bonus Fields

Postby Harm10 » Thu Nov 03, 2011 1:23 pm

The value you put in the field itself should be without quotes. I used them in my reply to show what the valuestring should be.
So for category Linkdump put the string linkdump on 1 line.
Quality is in the detail of things............

Want to change or update your PivotX site? Mail or PM me!
I can also convert your site to a Wordpress site!
Harm10
Developer
 
Posts: 2011
Joined: Wed Jun 17, 2009 9:37 am
Location: Somewhere in The Netherlands (aka Holland)

Re: Bonus Fields

Postby Gerard113 » Thu Jan 05, 2012 3:24 pm

I use Bonus field recently and i like it very mutch.

After looking at the debug i get the following error:
Code: Select all
2012-01-05 16:17:22 - 0.155 -- modules/module_debug.php:414 / userErrorHandler() --  ( 10310328 )
Warning: htmlspecialchars() expects parameter 1 to be string, array given. (in 'bonusfields/hook_bonusfields.php' on line 1029)


Is this a bug or something else;

I use 2.3.1 build 4017-11 and sql.
Gerard113
 
Posts: 183
Joined: Fri Aug 07, 2009 9:58 pm
Location: nederland

Re: Bonus Fields

Postby Schop » Mon Jan 30, 2012 3:45 am

I seem to have an issue in my installation (PivotX 2.3.1 & MySQL).

I have created a bonus field that is only supposed to show when the category 'upcoming-events' is selected for an entry. The bonus field is supposed to store the date of the event, so I can build a (rudimentary) event calender.

However, on the entry edit page (in the back-end, that is), the bonusfield fails to show up. It is there, but hidden:

Code: Select all
<tr class="showif showif-category-upcoming-events" style="display: none">


I believe I have it setup correctly, but the documentation leaves a lot to wish for in this extension, so to be sure I took a screenshot of the configuration:
Image

Am I doing something wrong?

PS. Before you ask, yes, the internal name of the category is "upcoming-events".
User avatar
Schop
Contributor
 
Posts: 485
Joined: Mon Apr 21, 2008 1:47 pm
Location: Hudson, Ohio

PreviousNext

Return to 2.x Extensions

Who is online

Users browsing this forum: No registered users and 3 guests

cron