I use several templates in my website and suddenly not all of those templates seem to function properly anymore.
I'll include the code of a few of those templates
First template has to show the homework for a student if somebody is logged in, hide it if not.
[wpv-conditional if="( '[can_access]' eq '1' )"]
Cursist: [wpv-post-author][has_page id='[wpv-post-author format="meta" meta="ID"]']<br/>
Cursus: [wpv-post-taxonomy type="course-group"] les [types field="lesson-number" format="FIELD_VALUE"][/types]<br/>
<div class="homework-image">[types field="assignment-image" width="800" height="800" align="center" resize="proportional"][/types]</div>
<div class="homework-watched">
Aantal malen bekeken [do_counter]
</div>
<div class="homework-remarks"><h3>Opmerkingen:</h3>[wpv-post-body view_template="None"]</div>
[wpv-conditional if="( $(wpcf-teacher-comments) ne '' )"]<div class="homework-feedback">
<h3>Docentenfeedback:</h3>[types field="teacher-comments"][/types]<br/>
<h4>Waardering: </h4>
- Compositie : [types field="teacher-composition"][/types]
- Kleur: [types field="teacher-color"][/types]
- Textuur: [types field="teacher-texture"][/types]
- Vorm en lijn: [types field="teacher-shape-and-line"][/types]
- Originaliteit: [types field="teacher-originality"][/types]
- Toonwaarde: [types field="teacher-tone-value"][/types]
</div>
[/wpv-conditional]
[video_access post=[wpv-post-id] level='access']
[wpv-conditional if="( $(wpcf-video-comment) ne '' )"]
[wpv-conditional if="( '[video_access post=[wpv-post-id] level='access']' ne '1' )"]
<h3>Bij deze huiswerkopdracht hoort een video bespreking. </h3>
<h4>Je moet een PLUS account hebben om toegang tot de video te krijgen</h4>
[/wpv-conditional]
[wpv-conditional if="( '[video_access post=[wpv-post-id] level='access']' eq '1' )"]
[videoframes src="[types field=video-comment output="raw"][/types]" skin="17" headline_color="#000000" autoplay=0 headline_size="22"]
[/wpv-conditional]
[/wpv-conditional]
<div class="homework-meta">
<label>Trefwoorden: </label>[wpv-post-taxonomy type="assignment-keyword"]<br/>
[go_back label="Terug"]
</div>
[/wpv-conditional]
[wpv-conditional if="( '[can_access]' eq '0' )"]
Het lijkt erop, dat hier niets te zien is...
[/wpv-conditional]
If somebody IS logged in I would expect to see the data, if not the message 'het lijkt erop, dat hier niets te zien is'.
The second template has pretty much the same problem
<div class="wxp-portfolio-image">
[wpv-conditional if="( '[can_access]' eq '1' )"]
[wpv-conditional if="( $(wpcf-image-file) eq '' )"]
[wpv-post-featured-image size="large"]
[/wpv-conditional]
[wpv-conditional if="( $(wpcf-image-file) ne '' )"]
[types field='image-file' size='large' align='none' resize='proportional'][/types]
[/wpv-conditional]
</div>
<div class="wxp-portfolio-description">
[wpv-post-author] Bekijk meer afbeeldingen...<br/>
<p>
[wpv-post-body view_template="None"]
</p>
[/wpv-conditional]
[wpv-conditional if="( '[can_access]' eq '0' )"]
Deze foto bestaat niet, bestaat niet meer of is niet voor u toegankelijk.
[/wpv-conditional]
</div>
I would expect a third template to have a similar problem, but here the content is shown as expected.
<div class="my-user-page">
[wpv-conditional if="( '[can_access]' eq '1' )"]
<div class="user_bio">
[wpv-post-body view_template="None"]
</div>
<div class="profile_picture">
[wpv-post-featured-image size="medium"]
</div>
<div style="clear:both;"></div>
<h2>Mijn vrije werk</h2>
[wpv-view name="User Page Images"]
<div class="wxp-clear-both" style="clear:both;"> </div>
<h2>Mijn cursusresultaat</h2>
[wpv-view name="User homework section"]
[/wpv-conditional]
[wpv-conditional if="( '[can_access]' eq '0' )"]
Deze cursist heeft nog geen eigen pagina aangemaakt, of heeft de toegang tot deze pagina beperkt.
[/wpv-conditional]
</div>
I've changed the two first template in a way that all is visible for everybody right now, but I want to hide certain parts of information for not-logged-in users.
Can you please explain me why two samples do not work?