Jump to content
WebFlake

IPB Feature Plan


Nervodx
Message added by Tony

If you're having trouble following this tutorial or would like an easier option, WebFlake currently offers a copy of its Feature Plan on our Store, here:

https://webflake.sx/store/product/12-webflake-feature-plan/

You can also purchase our Trackers Bundle that includes a copy of our Feature Plan, Release Notes, Bug Tracker, and Suggestions Tracker, here:

https://webflake.sx/store/product/3-webflake-trackers-bundle/

 

Recommended Posts

I think I'm missing a step... my status won't display in my view. 

 

In my record view I did this: {{if $row->fieldValues()['field_6'] == '38'}} . 38 is this: do=form&id=38 and my display for statuses:

{{if intval( $formValue ) === 1}}
	<span class='c4StatusBadge c4StatusBadge_upNext'>{$value}</span>
{{elseif intval( $formValue ) === 2}}
	<span class='c4StatusBadge c4StatusBadge_comingSoon'>{$value}</span>
{{elseif intval( $formValue ) === 3}}
	<span class='c4StatusBadge c4StatusBadge_future'>{$value}</span>
{{elseif intval( $formValue ) === 4}}
	<span class='c4StatusBadge c4StatusBadge_done'>{$value}</span>
{{endif}}

The only thing I'm having trouble understanding is 'field_6' -> Not sure what to change field_6 to?

 

Screen Shot 2015-07-01 at 8.16.26 PM.png

  • Upvote 1
Link to comment
Share on other sites

i'm on 25-28 steps, when i drag the database and select the future plan database  and save it.

 

It shows me error text, what to do?

What is the error?

object(UnexpectedValueException)#102 (7) { ["message":protected]=> string(0) "" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(67) "/home/inviter2/public_html/applications/cms/sources/Theme/Theme.php" ["line":protected]=> int(569) ["trace":"Exception":private]=> array(12) { [0]=> array(6) { ["file"]=> string(79) "/home/inviter2/public_html/applications/cms/modules/front/database/category.php" ["line"]=> int(134) ["function"]=> string(11) "getTemplate" ["class"]=> string(14) "IPS\cms\_Theme" ["type"]=> string(2) "->" ["args"]=> array(3) { [0]=> string(4) "plan" [1]=> string(3) "cms" [2]=> string(8) "database" } } [1]=> array(6) { ["file"]=> string(76) "/home/inviter2/public_html/applications/cms/modules/front/database/index.php" ["line"]=> int(40) ["function"]=> string(4) "view" ["class"]=> string(40) "IPS\cms\modules\front\database\_category" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [2]=> array(6) { ["file"]=> string(59) "/home/inviter2/public_html/system/Dispatcher/Controller.php" ["line"]=> int(94) ["function"]=> string(6) "manage" ["class"]=> string(37) "IPS\cms\modules\front\database\_index" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [3]=> array(6) { ["file"]=> string(76) "/home/inviter2/public_html/applications/cms/sources/Databases/Dispatcher.php" ["line"]=> int(291) ["function"]=> string(7) "execute" ["class"]=> string(26) "IPS\Dispatcher\_Controller" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [4]=> array(6) { ["file"]=> string(64) "/home/inviter2/public_html/applications/cms/widgets/Database.php" ["line"]=> int(110) ["function"]=> string(3) "run" ["class"]=> string(29) "IPS\cms\Databases\_Dispatcher" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [5]=> array(6) { ["file"]=> string(66) "/home/inviter2/public_html/applications/cms/sources/Pages/Page.php" ["line"]=> int(1004) ["function"]=> string(6) "render" ["class"]=> string(25) "IPS\cms\widgets\_Database" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [6]=> array(6) { ["file"]=> string(72) "/home/inviter2/public_html/applications/cms/modules/front/pages/page.php" ["line"]=> int(88) ["function"]=> string(10) "getWidgets" ["class"]=> string(19) "IPS\cms\Pages\_Page" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [7]=> array(6) { ["file"]=> string(72) "/home/inviter2/public_html/applications/cms/modules/front/pages/page.php" ["line"]=> int(43) ["function"]=> string(4) "view" ["class"]=> string(33) "IPS\cms\modules\front\pages\_page" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [8]=> array(6) { ["file"]=> string(59) "/home/inviter2/public_html/system/Dispatcher/Controller.php" ["line"]=> int(94) ["function"]=> string(6) "manage" ["class"]=> string(33) "IPS\cms\modules\front\pages\_page" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [9]=> array(6) { ["file"]=> string(72) "/home/inviter2/public_html/applications/cms/modules/front/pages/page.php" ["line"]=> int(33) ["function"]=> string(7) "execute" ["class"]=> string(26) "IPS\Dispatcher\_Controller" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [10]=> array(6) { ["file"]=> string(59) "/home/inviter2/public_html/system/Dispatcher/Dispatcher.php" ["line"]=> int(129) ["function"]=> string(7) "execute" ["class"]=> string(33) "IPS\cms\modules\front\pages\_page" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [11]=> array(6) { ["file"]=> string(36) "/home/inviter2/public_html/index.php" ["line"]=> int(13) ["function"]=> string(3) "run" ["class"]=> string(15) "IPS\_Dispatcher" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> NULL }

Link to comment
Share on other sites

  • 2 weeks later...

I think I'm missing a step... my status won't display in my view. 

 

In my record view I did this: {{if $row->fieldValues()['field_6'] == '38'}} . 38 is this: do=form&id=38 and my display for statuses:

{{if intval( $formValue ) === 1}}
	<span class='c4StatusBadge c4StatusBadge_upNext'>{$value}</span>
{{elseif intval( $formValue ) === 2}}
	<span class='c4StatusBadge c4StatusBadge_comingSoon'>{$value}</span>
{{elseif intval( $formValue ) === 3}}
	<span class='c4StatusBadge c4StatusBadge_future'>{$value}</span>
{{elseif intval( $formValue ) === 4}}
	<span class='c4StatusBadge c4StatusBadge_done'>{$value}</span>
{{endif}}

The only thing I'm having trouble understanding is 'field_6' -> Not sure what to change field_6 to?

 

Screen Shot 2015-07-01 at 8.16.26 PM.png

I have the same issue, status won't display. Any help/idea ? Thanks ;)

Link to comment
Share on other sites

I think I'm missing a step... my status won't display in my view. 

 

In my record view I did this: {{if $row->fieldValues()['field_6'] == '38'}} . 38 is this: do=form&id=38 and my display for statuses:

{{if intval( $formValue ) === 1}}
	<span class='c4StatusBadge c4StatusBadge_upNext'>{$value}</span>
{{elseif intval( $formValue ) === 2}}
	<span class='c4StatusBadge c4StatusBadge_comingSoon'>{$value}</span>
{{elseif intval( $formValue ) === 3}}
	<span class='c4StatusBadge c4StatusBadge_future'>{$value}</span>
{{elseif intval( $formValue ) === 4}}
	<span class='c4StatusBadge c4StatusBadge_done'>{$value}</span>
{{endif}}

The only thing I'm having trouble understanding is 'field_6' -> Not sure what to change field_6 to?

 

Screen Shot 2015-07-01 at 8.16.26 PM.png

I have the same issue, status won't display. Any help/idea ? Thanks ;)

Go into the fields of your database and hover over the pencil / edit button. At the end of the URL you should see &id=NUMBER. NUMBER obviously being replaced with a number that matches your field ID.

Link to comment
Share on other sites

yes it is what I do (I think and if I understand) :

Here my id for status field :

fields&database_id=2&do=form&id=13

the number id is 13

So, in RecordRow template, I have 2 line to change, correct ?

This line appear twice in the template, I just remplace your ID by my ID : 

{{if $row->fieldValues()['field_13'] == '4'}}

It's good ? Because no work when I go on the feature plan :

55b1f03bd559a_Capture_dcran_2015-07-24__

Just the status not appear, the rest work fine. 

Link to comment
Share on other sites

yes it is what I do (I think and if I understand) :

Here my id for status field :

fields&database_id=2&do=form&id=13

the number id is 13

So, in RecordRow template, I have 2 line to change, correct ?

This line appear twice in the template, I just remplace your ID by my ID : 

{{if $row->fieldValues()['field_13'] == '4'}}

It's good ? Because no work when I go on the feature plan :

55b1f03bd559a_Capture_dcran_2015-07-24__

Just the status not appear, the rest work fine. 

Please check at the bottom of the tutorial, the fix for this has been added.

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...