What's new
Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Welcome to My Sharing Site

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Script How to code custom postbit background

Script How to code custom postbit background
Mario1337 Offline

Mario1337

New member

Member
May 26, 2021
42
67
18
US
Description
This guide will run you through on how to allow your members to set a postbit cover photo that will display within their posts/messages.

Guide
  1. Create a custom user field. Go to Admin CP > Users > Custom user fields
  2. Field ID: This can be anything you want i.e. postbit_cover
  3. Title: This can be anything you want i.e Postbit Cover
  4. Description: URL of the image. Support types: PNG, JPG, GIF.
  5. Display location: Personal details
  6. Field type: Single-line text Box
  7. General option: User editable, Moderator editable
  8. Go to Admin CP > Appearance > Templates > Search: message_macros
  9. Go to Admin CP > Appearance > Templates > Search: extra.less

Step 8 details:

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

Paste below:

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


Replace FIELD_ID with the Field ID you used in step 2 i.e. postbit_cover

Step 9 details:

Place at the top of extra.less:

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

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Top Posters of the Month

Online statistics

Members online
59
Guests online
264
Total visitors
323
Top