XenForo Tutorials

Custom Background For members

Submitted by security, , Thread ID: 8235

Thread Closed
security
Closed Account
Level:
0
Reputation:
0
Posts:
13
Likes:
1
Credits:
21
28-07-2015, 08:40 AM
#1
Allow yours members to customize the background of your website.


[Image: 80afbaaafd0a641a51bfd94acdc04cca.png]

Installation
Create a custom field
Field ID: background
Title: Background
Description: Choose the background of the website.
Display Location: Preferences
Field Type: Single-line text box
Value Match Requirements: URL
User Editable

In PAGE_CONTAINER find:
Code:
<div id="content" class="{$contentTemplate}">
Replace:
Code:
<div id="content"<xen:if is="{$visitor.customFields.background}"> style="background-image: url({$visitor.customFields.background});"</xen:if> class="{$contentTemplate}">

Users browsing this thread: 1 Guest(s)