Featured content

Resource 'Customising the layout with custom user fields'
This is a simple guide explaining how custom user fields can be used to customise the layout and allow members to have some form of control over the content, depending on the options you provide. For the purposes of this guide, we will be creating a checkbox for members to opt out of seeing the forum statistics in the sidebar. Create the custom user field The first step is to create the custom user field, like so: A new option will then be present on the account preferences page...
Resource 'Randomising content'
Randomising content can be used in various ways, the most common of which is for header images and logos, or advertising banners. This guide will explain how it can be done simply with one line of code (which ironically has taken a hundred lines of explanatory text). For the purposes of this guide, we'll be adding an image in the Container header advertising position, which will randomly change between 5 different images. Prepare the images The first step is to prepare your images. I...
Resource 'Identifying and using variables in templates, advertising positions, navigation entries, and widgets'
What are variables? In simple terms, variables are names which hold values. These values are stored in the database and are used in templates to evaluate and present the content and data. Using variables in templates opens up a lot of possibilities for customising and modifying the look and behaviour of an XF installation. Most of you are probably already aware of using variables in some way or another, via conditional statements for example - <xf:if is="$xf.visitor.user_id">, or widget...
🎶 Yo I'll tell you what I want, what I really, really want So tell me what you want, what you really, really want I wanna, I wanna, I wanna, I wanna, I wanna really, really, really wanna localhost installation which works over https, has push notifications, supports PWA, and optionally has Elasticsearch capability 🎶 Spicy! Huh?! This guide will explain in detail how to get a localhost installation working using XAMPP, served over https, so all XF features and functionality are available...
Resource 'Creating custom User banner styling'
By default, XF comes with the following user banner styles: Creating custom styling using the Other, using custom CSS class name option is fairly straightforward. This guide will explain how to. The easiest way by far to add new prefix styling and to ensure it inherits all of the core styling is to edit the app_user_banners.less template. Look for the section in the template highlighted in the screenshot below: Then just add your custom entries after the orange entry and before the...
Resource 'Creating custom prefix styling'
By default, XF comes with the following prefix styles: Creating custom styling using the Other, using custom CSS class name option is fairly straightforward. This guide will explain how to. The easiest way by far to add new prefix styling and to ensure it inherits all of the core styling is to edit the core_labels.less template. Look for the section in the template highlighted in the screenshot below: Then just add your custom entries after the error entry and before the closing }...
Resource 'Creating a custom Reactions sprite sheet'
By default, XF ships with a Reactions sprite sheet with 7 emojis: https://xenforo.com/community/styles/default/xenforo/reactions/emojione/sprite_sheet_emojione.png Adding new Reactions is fairly straightforward, either as individual images, or by using a secondary custom sprite sheet, but why not combine them all into a single sprite sheet? Doing so has several benefits; the browser only has to download one file and if XF ever changes the sprite sheet in the future, your Reactions won't...
Resource 'Using DigitalOcean Spaces or Amazon S3 for file storage in XF 2.1+'
XenForo Version Compatibility The download is only compatible with XenForo 2.1 and above. Why this guide? Since XenForo 2.0.0 we have supported remote file storage using an abstracted file system named Flysystem. It's called an abstracted file system as it adds a layer of abstraction between the code and a file system. It means that it provides a consistent API for performing file system operations so that whether the file system is a local disk-based file system or a distributed and...
Resource 'Using Custom user fields with User group promotions'
This guide will show how easy it is to allow your members to choose which additional user groups they wish to be members of and subsequently affect their forum experience. For an explanation of both features, see the following pages of the Manual: Custom User Fields User Group Promotions Custom user fields in conjunction with user group promotions allow your users to choose to become members of user groups from their account preferences page. Some uses could be: Special interest forums...
If you want to provide an extra layer of protection to admin.php, the /install directory, and test & development installations, you can do so with .htaccess authentication. Protecting admin.php To protect admin.php, edit the .htaccess file which is in your forum root directory (e.g. /community) and add the following to it: <Files admin.php> AuthType Basic AuthName "ACP" AuthUserFile "path/to/passwd/file" Require valid-user </Files> The "path/to/passwd/file" will look something like...
These instructions explain how to create a test installation which is an exact duplicate of your live installation. On Your Server Create a new test database with a different database name, user name and password to your live installation Export your current live database and import it into your new test database Create a new directory on your server, e.g. /test Copy all of the files from your current live site directory to the new /test directory - ensure you also copy any hidden...
Resource 'Implementing permissions across multiple user groups'
Having logged in to quite a few installations to resolve permission issues, it's clear that a lot of people haven't quite grasped the concept. So here are a few pointers: 1. All members should have the Registered user group as their primary group - that includes moderators, administrators and super administrators. Like so: 2. Configure the Registered user group to set the minimum permissions you want all members to have. Set those permissions you want them to have to Yes, leave...
Top Bottom