Thanks ragtek, but that's a little over my head. How would I get that in a clickable/link format?something like
$writer = XenForo_DataWriter::create('XenForo_DataWriter_User');
$writer->setExistingData(XenForo_Visitor::getUserId());
$writer->setCustomFields(array('field_id' => 1));
$writer->save();
should work
<xen:if is="{$visitor.customFields.dba_chat}">
<li class="navTab PopupClosed"><a href="{xen:link account/preferences}" class="navLink visitorTabItem">Disable Chat</a></li>
<xen:else />
<li class="navTab PopupClosed"><a href="{xen:link account/preferences}" class="navLink visitorTabItem">Enable Chat</a></li>
</xen:if>
it's not possible
you'll need a custom addon, OR include a form link used for the toggle vissibility
That would work.just to be sure
you want this: View attachment 29278 and on click on the navbar you'll get the popup and by confirming, the users profile field will be changed
You'll have to ask him.I have a use for this as well but not to enable/disable chat, something else - is this being released as a full add on? Or could I have the files to customise them to our needs?
DBA can tweek/release it if he wants
You'll have to ask him.
Thanks.DBA can tweek/release it if he wants
I've attached the zip file that ragtek sent me.DBA it's up to you. If you don't want to that's fine. It was made for you and modified by you so entirely your choice
<xen:if is="!{$visitor.customFields.insert_fieldID_here}">
text to be shown
</xen:if>
Thanks.
I've attached the zip file that ragtek sent me.
Couple things:
I'm using this conditional to show whatever's inside it (if the custom profile is unchecked).
- All phrases are hard coded.
- Edit the custom profile field ID in the TF/config file.
- Field type should be a check box and the value "on"
We use essential cookies to make this site work, and optional cookies to enhance your experience.