Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

MYBB - How to add location to postbit template?

Ads
antony Offline referral

Posts: 478
Joined: Jul 2013
Reputation: 5

#1
Senior Member
Hi does anybody know how can I show user location in posbit template under user information like:

Posts:
Joined:
Reputation:


Many big forums have this feature and I really like to have it too. I am not very good at all this templates modification and my MYBB knowledge is pretty bad.
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#2
Support Team
Hy Antony to add location or anything you like to postbit template use:
Code:
$post['fidX']

Replace X with Custom Profile Fields ID number.

To make it work properly you'll also need to have "template conditionals plugin" then you can do something like this.

Open postbit_author_user template and add anywhere you like this code:
PHP Code:
<if ($post['fid1']) then>Location: {$post['fid1']}</if> 

By default location user filed has ID 1
antony Offline referral

Posts: 478
Joined: Jul 2013
Reputation: 5

#3
Senior Member
Works great it show only whenever user provided location and if not remains hidden. Thanks very much +1 Smile





User(s) browsing this thread: 1 Guest(s)