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

  • 1 month later...
52 minutes ago, fsr said:

Because at first u have to do step 29

Tried what you have to told but still doesn't work. I also tried to remove the reputation code but still doesn't work. I tried again tutorial in different ways but still nothing ;/

Link to comment
Share on other sites

On 6/5/2020 at 4:05 PM, joshwhite said:

Tried what you have to told but still doesn't work. I also tried to remove the reputation code but still doesn't work. I tried again tutorial in different ways but still nothing ;/

Please provide screenshot of db and your recordrow template.

Also what error does it display?

 

 

Edited by fsr

244125173664448512.png

Link to comment
Share on other sites

18 hours ago, fsr said:

Please provide screenshot of db and your recordrow template.

Also what error does it display?

 

 

There is no error, the thing doesn't even show up. When in the blocks mode I add the database to the page and select Future Plan as the database, but I click Finish and the page is just blank , nothing happens. The code in the recordrow is red and I don't know why I think it might be a problem.. The field id is right.

image.thumb.png.ee87d1db1c6c6811e7e762fa841af9d7.png

image.thumb.png.f146dcbef5d9dd2b881c5bfd93f168f8.png

{{if $row->fieldValues()['field_18'] == '5'}}ipsFaded{{endif}} ipsType_blendLinks {{if $row->hidden()}}ipsModerated{{endif}}'

This is that part that has the red color...

image.thumb.png.1bdc149dd83507020bb8bd3bb3582e19.png

image.thumb.png.8dd75281a5ac8e1a13b9699a4fc24825.png

image.thumb.png.6f791cf5fff1b693ff5eb506f7df3700.png

image.thumb.png.bba8e42bd16c3cab6a7a6b9944c0a2fb.png

  image.png.8a8d4a3418b4faf0e2193754b3afa091.png

Link to comment
Share on other sites

  • 1 year later...

More optimized code with update date and reputation. No background blinking on reputation.

Edit -> Pages -> Templates -> RecordRow

P.S. Make sure you change field_29 to your field ID for your status

{{$rowIds = array();}}
{{foreach $rows as $row}}
{{$idField = $row::$databaseColumnId;}}
{{$rowIds[] = $row->$idField;}}
{{endforeach}}
{{$iposted = ( $table AND method_exists( $table, 'container' ) AND $table->container() !== NULL ) ? $table->container()->contentPostedIn( null, $rowIds ) : array();}}
{{foreach $rows as $row}}
{{$idField = $row::$databaseColumnId;}}
<li class="{{if $row->fieldValues()['field_29'] == '4'}}ipsFaded{{endif}} ipsSpacer_bottom c4StatusRow ipsAreaBackground_light  ipsPad" data-rowID='{$row->$idField}'>
	<div class="ipsColumns ipsColumns_collapsePhone">
		<a href='#' class='ipsType_blendLinks ipsColumn ipsColumn_fluid {{if $row->hidden()}}ipsModerated{{endif}}' data-ipsDialog data-ipsDialog-title="{$row->_title}" data-ipsDialog-size='medium' data-ipsDialog-content='#el4StatusInfo_{$row->$idField}_main'>
		<h4 class='ipsType_sectionHead ipsType_break'>
			<strong>{{if $row->_title}}{$row->_title}{{else}}<em class="ipsType_light">{lang="content_deleted"}</em>{{endif}}</strong>
		</h4>
		{{if $row->isFutureDate() || $row->mapped('pinned') || $row->mapped('featured') || $row->hidden() === -1 || $row->hidden() === 1}}
		<span>
		{{if $row->isFutureDate()}}
		<span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_warning" data-ipsTooltip title='{$row->futureDateBlurb()}'><i class='fa fa-clock-o'></i></span>
		{{elseif $row->hidden() === -1}}
		<span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_warning" data-ipsTooltip title='{$row->hiddenBlurb()}'><i class='fa fa-eye-slash'></i></span>
		{{elseif $row->hidden() === 1}}
		<span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_warning" data-ipsTooltip title='{lang="pending_approval"}'><i class='fa fa-warning'></i></span>
		{{endif}}							
		{{if $row->mapped('pinned')}}
		<span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_positive" data-ipsTooltip title='{lang="pinned"}'><i class='fa fa-thumb-tack'></i></span>
		{{endif}}
		{{if $row->mapped('featured')}}
		<span class="ipsBadge ipsBadge_icon ipsBadge_small ipsBadge_positive" data-ipsTooltip title='{lang="featured"}'><i class='fa fa-star'></i></span>
		{{endif}}
		</span>
		{{endif}}
		<div class='ipsType_normal ipsType_break'>
			{$row->customFieldDisplayByKey('summary', 'listing')|raw}
		</div>
		</a>
		<div class='ipsColumn ipsColumn_medium'>
			<a href='#' class='ipsType_blendLinks {{if $row->hidden()}}ipsModerated{{endif}}' data-ipsDialog data-ipsDialog-title="{$row->_title}" data-ipsDialog-size='medium' data-ipsDialog-content='#el4StatusInfo_{$row->$idField}_status'>
			{$row->customFieldDisplayByKey('status2', 'listing')|raw}
          <ul class="ipsType_center ipsBreadcrumb"> 
              {datetime="$row->__get( $row::$databaseColumnMap['updated'] )"}
		  </ul>
          </a>
			{{if $row instanceof \IPS\Content\Reputation and settings.reputation_enabled}}
			<div class='ipsSpacer_top ipsSpacer_half ipsType_center'>
				{template="reputationMini" app="core" group="global" params="$row->reputation(), $row->canGiveReputation( 1 ), $row->canGiveReputation( -1 ), $row->url('showRep'), $row->url('rep')"}
			</div>
			{{endif}}
		</div>
	</div>

	{{if $table->container()->can('add')}}
		<div class='ipsType_center'>
			<ul class="ipsToolList ipsFollow ipsClearfix">		
				<a class="ipsFollow ipsButton ipsButton_light ipsButton_verySmall" href='{$row->url()}&do=edit'>Изменить</a>
			</ul>
		</div>
	{{endif}}

	<div id='el4StatusInfo_{$row->$idField}_main' class='ipsHide'>
		<div class='ipsPad ipsType_normal ipsType_break ipsType_contained ipsType_richText'>
			{$row->content()|raw}
		</div>
	</div>
  	<div id='el4StatusInfo_{$row->$idField}_status' class='ipsHide'>
		<div class='ipsPad ipsType_normal ipsType_break ipsType_contained ipsType_richText'>
			{$row->content()|raw}
		</div>
	</div>
 
	<div class='ipsToolList ipsClearfix'>
		{{if \IPS\IPS::classUsesTrait( $row, 'IPS\Content\Reactable' ) and settings.reputation_enabled}}
			{template="reputation" app="core" group="global" params="$row"} 
		{{endif}}
	</div>

</li>
{{endforeach}}

Screen:

image.thumb.png.5950360338dc40fdae76981880e972a9.png

image.thumb.png.cd4be8c8d15ebb81006c3639fd85a888.png

 

Help: Can I add a delete button next to Edit?

Edited by pet9948
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...