thnok
Junior Member
Posts: 17
Joined: Feb 2011
Reputation: 0
|
Custom profile fields in postbit
I want to add custom profile fields such as age or maybe location to the postbit as well. I couldn't find a way to do it without any changes. Anybody know how to do it? What to edit?
|
|
| 03-01-2011, 06:24 AM |
|
Mr-Trainor
Senior Member
Posts: 287
Joined: Mar 2010
Reputation: 5
|
RE: Custom profile fields in postbit
Skip stages 1-2 if you already have the profile field you want on the postbit
1: Go to AdminCP > Configuration > Custom Profile Fields > Add New Profile Field
2: Congifure your new profile field
3: Go to AdminCP > Configuration > Custom Profile Fields and look for the ID of the custom profile field which you'll want in the postbit. You'll need this after!
4: Go to AdminCP > Templates & Style > Templates > Expand Templates (on selected theme) > Post Bit Templates
5: Open both postbit and postbit_classic and on each of them, find the following:
Code:
{$post['user_details']}
And after/below it, add:
Code:
<br />{$post['fidID']}
But remember to replace ID with the ID you got from step 3.
And that should be all . You can add text before the {$post['fidID']}.
For example, you might have it as 'Twitter: {$post['fidID']}' if your asking for their Twitter username.
|
|
| 03-04-2011, 04:09 AM |
|
thnok
Junior Member
Posts: 17
Joined: Feb 2011
Reputation: 0
|
RE: Custom profile fields in postbit
(03-04-2011 04:09 AM)Mr-Trainor Wrote: Skip stages 1-2 if you already have the profile field you want on the postbit
1: Go to AdminCP > Configuration > Custom Profile Fields > Add New Profile Field
2: Congifure your new profile field
3: Go to AdminCP > Configuration > Custom Profile Fields and look for the ID of the custom profile field which you'll want in the postbit. You'll need this after!
4: Go to AdminCP > Templates & Style > Templates > Expand Templates (on selected theme) > Post Bit Templates
5: Open both postbit and postbit_classic and on each of them, find the following:
Code:
{$post['user_details']}
And after/below it, add:
Code:
<br />{$post['fidID']}
But remember to replace ID with the ID you got from step 3.
And that should be all . You can add text before the {$post['fidID']}.
For example, you might have it as 'Twitter: {$post['fidID']}' if your asking for their Twitter username.
As always thanks buddy for helping me out!
|
|
| 03-04-2011, 01:15 PM |
|
Mr-Trainor
Senior Member
Posts: 287
Joined: Mar 2010
Reputation: 5
|
RE: Custom profile fields in postbit
No problem . Glad it worked for you .
|
|
| 03-05-2011, 02:15 AM |
|