hi
how can i forced all my users to input the new custom profile ive just enabled?
thanks
Would it be possible to setup a Xenforo NOTICE ... for those with missing information ?
<xen:if is="{$sidebar}">
<div class="mainContainer">
<div class="mainContent"></xen:if>
<xen:include template="ad_above_top_breadcrumb" />
<xen:if is="!{$visitor.customFields.field_id}">
<p class="importantMessage">
YOU NEED TO FILL OUT THIS THING
</p>
</xen:if>
<xen:hook name="page_container_breadcrumb_top">
<div class="breadBoxTop">
<xen:if is="{$topctrl}"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
<xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
</div>
</xen:hook>
Thanks Jake. I've three fields that must be filled. How can I modify your code?The notice system doesn't have criteria for that. But you can edit the templates:
<xen:if is="!{$visitor.customFields.field_id1}">
<p class="importantMessage">
YOU NEED TO FILL OUT THIS THING
</p>
</xen:if>
<xen:if is="!{$visitor.customFields.field_id2}">
<p class="importantMessage">
YOU NEED TO FILL OUT THIS THING
</p>
</xen:if>
<xen:if is="!{$visitor.customFields.field_id3}">
<p class="importantMessage">
YOU NEED TO FILL OUT THIS THING
</p>
</xen:if>
Can I do that?
Jake it works but I've a problem. With the code I've inserted also the visitors see the messages and that's not correct. I would need that these notices appear only for the members of a particular usergroup. How can I modify the code?Yes that works.
<xen:if is="{$visitor.user_id}">
</xen:if>
what is the FIELD ID of "location" in XF
{$visitor.location}
Can I do that?
Code:<xen:if is="!{$visitor.customFields.field_id1}"> <p class="importantMessage"> YOU NEED TO FILL OUT THIS THING </p> </xen:if> <xen:if is="!{$visitor.customFields.field_id2}"> <p class="importantMessage"> YOU NEED TO FILL OUT THIS THING </p> </xen:if> <xen:if is="!{$visitor.customFields.field_id3}"> <p class="importantMessage"> YOU NEED TO FILL OUT THIS THING </p> </xen:if>
<xen:if is="{$visitor.user_id}">
<xen:if is="!{$visitor.customFields.regione} OR !{$visitor.customFields.provincia} OR !{$visitor.customFields.city}">
<p class="importantMessage">
we added some custom fields to profiles, once inserted this notification will disapear. Click <a href="{xen:link account/personal-details}"> here </a>to update your profile
</p>
</xen:if>
</xen:if>
The notice system doesn't have criteria for that. But you can edit the templates:
Admin CP -> Appearance -> Templates -> PAGE_CONTAINER
Add the red code:
Rich (BB code):<xen:if is="!{$visitor.customFields.field_id}">
<xf:if is="!$xf.visitor.user_id"><p>
Welcome guest! <a href="/register">Register free </a>today to get access to post and search the site! <a href="/register">Click here to register</a>.
</p>
<xf:else /><xf:if is="!{$visitor.customFields.year_of_thunderbird_you_o}">
<p class="importantMessage">Please verify the model year Thunderbird you own to your profile. Enter none if you don't have one.
<a href="https://forums.fordthunderbirdforum.com/account/account-details">your profile</a>
<a href="https://forums.fordthunderbirdforum.com/account/account-details">Click
here</a> to update.</p>
</xf:if></xf:if>
We use essential cookies to make this site work, and optional cookies to enhance your experience.