XF 1.4 How to phrase for Custom User Field and how to redirect Contact Us overlay

sbj

Well-known member
1) I have 2 languages installed.
I created a phrase with id phrase_abc for language A, and then I created a phrase with id phrase_abc for language B.

I want to use that phrase for a custom user field.
For the custom user field description I used:
Code:
{xen:phrase phrase_abc}
but it didn't work.
Instead of displaying the description text for that custom user field in my register form, it displays
Code:
{xen:phrase phrase_abc}
. What is wrong?


2) How can I redirect the Contact Us overlay to the http://abc.com/misc/contact page ? I guess I need to edit one template for that. So when somebody visits your forum and they use the "Contact Us" link on buttom on the right side of the page, that the overlay doesn't appear and the person is redirected to a contact form page.
 
1. Custom user field descriptions are already phrased. See the "user_field_*" phrases. Otherwise, you can't use template syntax in areas other than templates so the syntax you're trying to use isn't valid.

2. You would need to change the footer template to remove the class="OverlayTrigger" part of the link to the contact form.
 
  • Like
Reactions: sbj
1. Ahhh, awesome! Didn't know that. Are "Question and Answer Captchas" also phrased? How can I phrase them?

2.
Code:
            <xen:hook name="footer_links">
                <xen:if is="{$xenOptions.contactUrl.type} === 'default'">
                    <li><a href="{xen:link 'misc/contact'}" class="OverlayTrigger" data-overlayOptions="{&quot;fixed&quot;:false}">{xen:phrase contact_us}</a></li>
                <xen:elseif is="{$xenOptions.contactUrl.type} === 'custom'" />
                    <li><a href="{$xenOptions.contactUrl.custom}" {xen:if {$xenOptions.contactUrl.overlay}, 'class="OverlayTrigger" data-overlayOptions="{&quot;fixed&quot;:false}"'}>{xen:phrase contact_us}</a></li>
                </xen:if>
...

I have to remove just those
Code:
class="OverlayTrigger"
parts?
 
Removing the overlay trigger part worked. Thank you.

Ok, now Q&A Captcha is not phrased, and I can't use template syntax for phrasing, is there a method left to make it phrased?
 
Back
Top Bottom