Bob submitted a new Article:
How to place custom Item Fields in templates?
Read more about this article here...
How to place custom Item Fields in templates?
Read more about this article here...
Last edited:
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Bob, I am back and I have been spending a lot of time trying to get the output html box to output something correctly. You tried to help me previously, but your page didn't help or explain in a way I could understand. I can't find what I am looking for here or at xf. I attached what I have. I want to output anchor text to the url. Can you link me to a page that will show me how this box works? I know HTML/CSS, but as my opening thread showed...I still have no idea why the HTML Output box won't accept HTML. It seems straight forward, but it's not. What string do I put there? I know xf has it's own language, but I don't speak it and I can't find a dictionary.
View attachment 2601
No I tried this too. I have tried {$value}, {$valueUrl}, and the Field ID. The screenshot was just me last shot at getting it to work. I copy and pasted what you wrote and still didn't work.For the html, you have entered the field id into the html code, you only need to enter $valueUrl
<a href="{$valueUrl}" target="_blank">Check Out Our Site</a>
https://www.yourpshome.net/%3Ca+href%3D%22https%3A%2F%2Fdatabase.yourpshome.net%2Fscea-rewards%2Fhome-spaces%2Flocoroco-mui-mui-crusier%22+rel%3D%22nofollow%22+class%3D%22externalLink%22+target%3D%22_blank%22%3Ehttps%3A%2F%2Fdatabase.yourpshome.net%2Fscea-rewards%2Fhome-spaces%2Flocoroco-mui-mui-crusier%3C%2Fa%3E
There is ALSO {$valueRaw} and {$valueSC}.No I tried this too. I have tried {$value}, {$valueUrl}, and the Field ID. The screenshot was just me last shot at getting it to work. I copy and pasted what you wrote and still didn't work.
$valueRaw = htmlspecialchars(XenForo_Helper_String::censorString($value));
$valueSC = nl2br(htmlspecialchars(XenForo_Helper_String::censorString($value)));
Using $valueRaw fixed my problem with the link being all messed upThere is ALSO {$valueRaw} and {$valueSC}.
{$valueRaw}
PHP:$valueRaw = htmlspecialchars(XenForo_Helper_String::censorString($value));
{$valueSC} (This is actually how the XF Custom User fields {$value} is formatted.
PHP:$valueSC = nl2br(htmlspecialchars(XenForo_Helper_String::censorString($value)));