Page 7 of 12

Re: Bonus Fields

PostPosted: Mon Jan 30, 2012 3:11 pm
by jadwigo
That sounds like something in your javascript that's not working right

Are all your javascript files up to date? Are there any errors in your javacript console (or firebug console in firefox)

Re: Bonus Fields

PostPosted: Mon Jan 30, 2012 5:27 pm
by Schop
it;s a fresh install, so everything should be up to date.

No errors in Firebug.... if I delete the condition, everything works fine.

Another bug (?)

PostPosted: Tue Jan 31, 2012 3:59 am
by Schop
Not sure if this is a bug or a setup issue, but after enabling the Bonus Fields extension, I get the following error message when posting a page:


Image

For search purposes: "error code 1146: Table 'xxxx.pivotx_taxonomies' doesn't exist"

Re: Bonus Fields

PostPosted: Tue Jan 31, 2012 7:50 am
by hansfn
The table pivotx_taxonomies doesn't exist in PivotX 2.X. So either the extension has forgotten to add code to create the table or the extension (by mistake) is using features from PivotX 3.X (unstable).

Re: Bonus Fields

PostPosted: Sun Feb 05, 2012 12:36 pm
by streeff
Could somebody give me an example on how to use that "select" input-type in the backend? I want to do something like "Show on homepage" with options "yes" and "no".

Edit: I get the same error as John - since I am not a real 'programmer type of person', I think I better wait with using this extension until this is solved?

Re: Bonus Fields

PostPosted: Sun Feb 19, 2012 1:33 pm
by habbekak
Hello,
I want to insert a url in Fancybox. With Bonus Fields of course.
Code: Select all
[[if $entry.extrafields.reserveringssysteemurl!=""]]
<li>[[popup description="Beschikbaarheid en reserveren" title="Beschikbaarheid en reserveren" fb_type="iframe" url="[[$entry.extrafields.reserveringssysteemurl|escape]]"]] </li> [[/if]]

How can I make this work?

Re: Bonus Fields

PostPosted: Sun Feb 19, 2012 2:16 pm
by jadwigo
try this

Code: Select all
[[if $entry.extrafields.reserveringssysteemurl!=""]]
<li>[[popup description="Beschikbaarheid en reserveren" title="Beschikbaarheid en reserveren" fb_type="iframe" url="$entry.extrafields.reserveringssysteemurl" ]] </li> [[/if]]


this assumes the $entry.extrafields.reserveringssysteemurl is safe for output

Re: Bonus Fields

PostPosted: Sun Feb 19, 2012 2:27 pm
by Harm10
jadwigo wrote:this assumes the $entry.extrafields.reserveringssysteemurl is safe for output
If it isn't you can always assign the value to another one:
Code: Select all
[[ assign var=newvar value=$yourvar|escape ]]
and use the newvar in the url.

Re: Bonus Fields

PostPosted: Sun Feb 19, 2012 9:41 pm
by habbekak
hansfn,
It doesn't work. The output is:
Code: Select all
<li><p class="pivotx-wrapper"><a href="Array.extrafields.reserveringssysteemurl" class="fancyframe" title="Beschikbaarheid en reserveren" rel="entry-251193659437" ><span class="pivotx-popuptext">Beschikbaarheid en reserveren</span></a></p> </li>

Re: Bonus Fields

PostPosted: Sun Feb 19, 2012 11:20 pm
by Harm10
Are you sure you used var $entry.extrafields.reserveringssysteemurl ? Because your output suggests that the var you used contains an array of values.
If you switch on debug (and allow php in your templates through the config setting) and put
Code: Select all
[[ if $config.debug == 1 ]]
[[ php ]] $this->assign('everything', $this->get_template_vars()); [[/php]]
[[ print_r var=$everything ]]
[[ /if ]]
you can see what values the vars contain.