• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

HTML in Custom Titles 1.5

No permission to download
Allow HTML tags in Custom User Titles

Chris D

XenForo developer
Staff member
#1
Thank you so much for donating. It is always appreciated!

This add-on will allow people who may edit their Custom User Title to use some HTML tags in their Custom User Title.

The tags that are allowed to be used can be configured in the Admin CP > Options > User Registration.



The end result can look like this:



HOW TO INSTALL
The easiest way to install this add-on is if you use the Add-On Installer.

Alternatively:
  1. Download the zip file.
  2. Extract its contents to your hard drive.
  3. Upload the contents of the upload folder to the root of your XenForo installation.
  4. Complete install via the Admin CP using the provided XML file.
 

ineedhelp

Well-known member
#2
Can you also add the option which allows members or admins, to colour code usernames ? It will be good if members would pick and choose the colour of their username.
 

James

Well-known member
#5
Nice add-on Chris, however, strip_tags doesn't remove attributes.

It creates the potential to have this add-on do unwanted things, such as <b style="background:red;width:600px"> or even worse, <b onclick="window.location('mrmaliciouswebsite.com')">.

For the next version, perhaps you can incorporate some regex to strip anything after the initial tag :)
 
#7
Nice addon Chris. May I recommend that you include the following features:

1. Enable/disable open links in new window
2. Enable/disable nofollow tag for all links
 

TrevC

Well-known member
#8
Excellent work (as usual).

Small suggestion: have the add-on increase the limit from 50 chars to something higher (varchar custom_title needs to be upped, and the Xenforo User datawriter PHP). 50 seems way too low when hrefs etc are involved.

Thank you Chris :D
 

Chris D

XenForo developer
Staff member
#16
Only with changes to the database tables. There's a maximum limit on that field in the database of 50 characters.
 

Chris D

XenForo developer
Staff member
#19
And the max length value in the data writer.

I haven't got time to get into this right now, but if you make a post elsewhere on the forum or if someone else has more time to help they will talk you through it.

Ideally you should request it as an add-on, though, or you'll have a core file edit that you would need to edit each time you do a XenForo upgrade.
 

Pope Viper

Well-known member
#20
I found the entry in the database for that particular field (Xf_user, custom_title), I'm going to mess around there, and see how that works out.

Thanks Chris!