One of the most requested features for XenForo 1.1 has been the ability to define custom fields for your users. Here's a first look at the user field system we've built.
No, i haven't seen any option for thisI have not moved over to XenForo yet, just have the licenses. Can anyone tell me if I can limit who gets to use the custom fields.
No, i haven't seen any option for this
There is no need to use this funktion. If you don't create more fields there are no fieldsThen can it be turned off for everyone?
There is no need to use this funktion. If you don't create more fields there are no fields
<xen:if is="$visitor.user_id == 1">
url: {$value}
</xen:if>
<?php
class XenForo_Helper_UserField
{
public static function verifyFacebook(array $field, &$value, &$error)
{
if (preg_match('#^https?://www\.facebook\.com/(\#!/)?profile\.php\?id=(?P<id>\d+)#i', $value, $match))
{
$value = $match['id'];
}
else if (preg_match('#^https?://www\.facebook\.com/(\#!/)?(?P<id>[a-z0-9\.]+)#i', $value, $match))
{
if (substr($match['id'], -4) != '.php')
{
$value = $match['id'];
}
}
if (!preg_match('/^[a-z0-9\.]+$/i', $value))
{
$error = new XenForo_Phrase('please_enter_valid_facebook_username_using_alphanumeric_dot_numbers');
return false;
}
return true;
}
public static function verifyTwitter(array $field, &$value, &$error)
{
if ($value[0] == '@')
{
$value = substr($value, 1);
}
if (!preg_match('/^[a-z0-9_]+$/i', $value))
{
$error = new XenForo_Phrase('please_enter_valid_twitter_name_using_alphanumeric');
return false;
}
return true;
}
}
{xen:helper userFieldValue, $fieldInfo, $user, {$user.customFields.{$fieldId}}}
Dude you really feel accomplished somehow by doing the dumb first post in every thread you can? Lets grow up can we?Comment before watching.
It must be cool as usual.
Just let him be, he's not bothering anyone.Dude you really feel accomplished somehow by doing the dumb first post in every thread you can? Lets grow up can we?
Dude you really feel accomplished somehow by doing the dumb first post in every thread you can? Lets grow up can we?
Ok, great !
But it will be cool to have the option to put an image or icon instead of text.
for exemple : what is your favorite drink ? beer, coca... it will display an icon,
like that :
View attachment 19458
I had this on vB, I would like to have it on xenforo.
It would be amazing if we could do this, or possibly specify a template?It would be great if we could use xen template syntax in the html output.
e.g.
PHP:<xen:if is="$visitor.user_id == 1"> url: {$value} </xen:if>
I'm after a similar result to this - I have users select their supported teams from user profiles. Each team has a .png file in a directory with the same name as the options in the userfield.
Is anyone able to help out with the template code to link in the images?
I agree. Some sites have tons of custom profile fields. For vB I made a mod that moved them to their own separate pages for editing. That allows sites who use the fields like PC / car / character specs, AND have multiples of said items, to arrange them neatly. In otherwords, one edit page for the PC specs of their main rig (say, custom profile fields 5-10), another page for their HTPC box (say, custom profile fields 11-16), etc.@Kier
This looks great, but I missed something in the options. All new Custom User Fields where displayed as a part of the "Information" / "About" on the profile page (selected for to show there). It would be great to have another type of Custom User Fields to select as a title. So you would be able to create pages with an order like:
and a lot of fields in that ...
- Signature
- About
- Home Cinema
- Computer Equipment
- Something else
- Interact
I hope you understand what I mean
With that for me your Custom User Fields were perfect
Great solution, thanks for sharing.Here's what I did, although I put all the icons in a single image and used a CSS sprite.
We use essential cookies to make this site work, and optional cookies to enhance your experience.