Resource icon

XF 2 Tip Postbit Background Custom Fields

Verss

Moderator
Staff member
Moderator
*Lifetime*
Registered
Joined
Apr 21, 2019
Messages
126
Points
53

Reputation:

Verss submitted a new resource:

Postbit Background Custom Fields - template modification

1. Make a custom user field

2. Title Postbit Cover or Anything you want

3. Field ID can be anything i suggest no space on it

4. Description : JPG, PNG, GIF (Link of the Image)

5. Display Location : Personal Details

6. Field Type: Single Line text Box

7. General Option: User editable, Moderator Editable

8. go to templates >> search message_macros >> paste this after xf:macro

Code:
<div class="postbit_background" style="background-image...

Read more about this resource...
 
E

ESXFBOT

Guest
<div class="postbit_background" style="background-image: url({$user.Profile.custom_fields.YourFieldID});"></div>

Whrere to paste this code which line?
There are many xf:Macro
 

Verss

Moderator
Staff member
Moderator
*Lifetime*
Registered
Joined
Apr 21, 2019
Messages
126
Points
53

Reputation:

on the top of message_macros
 

SacreDWolF

Member
Registered
Joined
May 18, 2019
Messages
12
Points
13

Reputation:

hey man im trying to set this on my forum but is not working right for me this is some pic of the problem that im having( I tried to put everything in one pick just the essential)
thanks
ss.png
 

Verss

Moderator
Staff member
Moderator
*Lifetime*
Registered
Joined
Apr 21, 2019
Messages
126
Points
53

Reputation:

follow the instructions carefully, place the code after the xf:macro on the top change YourFieldID to your custom field that you made before
 

Verss

Moderator
Staff member
Moderator
*Lifetime*
Registered
Joined
Apr 21, 2019
Messages
126
Points
53

Reputation:

Inamsay

Well-known member
Registered
Joined
Oct 1, 2019
Messages
52
Points
18

Reputation:

Thanks. Can you send me you web page in rpivate? I like a lot Anime
 

Pr0fesseur

Well-known member
Registered
Joined
Nov 20, 2019
Messages
69
Points
18

Reputation:

can you show how you got the background to fade down.. i tried this method but my picture is outside of the postbit area
 

Pr0fesseur

Well-known member
Registered
Joined
Nov 20, 2019
Messages
69
Points
18

Reputation:

can you
pm me id like to learn how you did some of your layout in postbit
 

Verss

Moderator
Staff member
Moderator
*Lifetime*
Registered
Joined
Apr 21, 2019
Messages
126
Points
53

Reputation:

Verss

Moderator
Staff member
Moderator
*Lifetime*
Registered
Joined
Apr 21, 2019
Messages
126
Points
53

Reputation:

where do you put the code?? i dont see the postbit background code
 

vo6tu7

Member
Registered
Joined
Jul 4, 2019
Messages
12
Points
3

Reputation:

Here right ?
 

Attachments

  • 1dsa.png
    1dsa.png
    27.9 KB · Views: 12

Verss

Moderator
Staff member
Moderator
*Lifetime*
Registered
Joined
Apr 21, 2019
Messages
126
Points
53

Reputation:

@vo6tu7 noo put before section code
 
Top