Bonus Fields

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

Re: Bonus Fields

Postby jadwigo » Mon Jan 30, 2012 3:11 pm

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)
My pivotx playground is at http://jivotx.twokings.eu - the rest is at http://www.jadwigo.nl
jadwigo
Developer
 
Posts: 117
Joined: Wed Nov 18, 2009 9:49 am
Location: Den Haag, Netherlands

Re: Bonus Fields

Postby Schop » Mon Jan 30, 2012 5:27 pm

it;s a fresh install, so everything should be up to date.

No errors in Firebug.... if I delete the condition, everything works fine.
User avatar
Schop
Contributor
 
Posts: 485
Joined: Mon Apr 21, 2008 1:47 pm
Location: Hudson, Ohio

Another bug (?)

Postby Schop » Tue Jan 31, 2012 3:59 am

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"
User avatar
Schop
Contributor
 
Posts: 485
Joined: Mon Apr 21, 2008 1:47 pm
Location: Hudson, Ohio

Re: Bonus Fields

Postby hansfn » Tue Jan 31, 2012 7:50 am

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).
hansfn
Developer
 
Posts: 3282
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Bonus Fields

Postby streeff » Sun Feb 05, 2012 12:36 pm

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?
Evert Albers, Streeff - web // branding // information design - Amersfoort & Amsterdam, NL
Site: http://www.streeff.nl
User avatar
streeff
 
Posts: 146
Joined: Sat Jul 25, 2009 9:28 pm
Location: Amersfoort, NL

Re: Bonus Fields

Postby habbekak » Sun Feb 19, 2012 1:33 pm

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?
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 jadwigo » Sun Feb 19, 2012 2:16 pm

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
My pivotx playground is at http://jivotx.twokings.eu - the rest is at http://www.jadwigo.nl
jadwigo
Developer
 
Posts: 117
Joined: Wed Nov 18, 2009 9:49 am
Location: Den Haag, Netherlands

Re: Bonus Fields

Postby Harm10 » Sun Feb 19, 2012 2:27 pm

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.
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 habbekak » Sun Feb 19, 2012 9:41 pm

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>
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 Harm10 » Sun Feb 19, 2012 11:20 pm

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.
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)

PreviousNext

Return to 2.x Extensions

Who is online

Users browsing this forum: No registered users and 6 guests

cron