XenForo Personal banner

CR LEAKS

CR LEAKS

Administrative
Joined
Mar 25, 2022
Messages
1,272
Reaction score
5,191
Points
113
Credits
19,896
1. Create two additional fields for banner title and banner color.
Field ID: p_banner
Title: Personal Banner Header
Display location: Personal details
Display order: 1
Field Type: Single-line text box
Value Matching Requirement: None
Only "Can be edited by a moderator" should be checked in the "General options".

View attachment 50
Now for the color of the banner
Field ID: p_banner_color
Title: Personal Banner Color
Display location: Personal details
Display order: 2
Field Type: Radio buttons
Value Matching Requirement: Color
"Choices field settings" see on the screenshot
"Basic settings" as above
The HTML for the value output: {$choice}

View attachment 51
View attachment 52
Then make template modifications, message_macros, find:


Code:
Please, Log in or Register to view codes content!
replace:


Code:
Please, Log in or Register to view codes content!
In the member_view template we find:


Code:
Please, Log in or Register to view codes content!
replace:


Code:
Please, Log in or Register to view codes content!


Result:

View attachment 53
 
4,485Threads
10,412Messages
39,631Members
mika67Latest member
Top