06-02-2011, 04:04 PM
Original Guide: http://ziesweb.com/showthread.php?tid=42
Hi there, in this tutorial I am going to be showing you how to add a custom profile field into a users post bit. (The bit with your rep, post count and joined date)
For this guide I will be using the "Software" profile field I added to the Zies Web post bit.
Step 1:
After creating your custom profile field we're going to need to get ID of the field itself, navigate to the custom profile configuration in your AdminCP.
To the right of the name should be the 'ID' column, in this case it's '4'
Make a note of that ID.
Step 2
Now we're going to edit the template to include this field into the post bit.
Navigate to:
AdminCP >> Templates & Style >> Templates >> YOUR THEME >> Post Bit Templates >> Postbit_author_user
This is the template we're going to insert the custom field into. For this example I'm going to place the profile field under the joined date and above the reputation count.
Look for the following sections of code in the template:
Between these two we're going to add the code to post the profile field, also for this example I'm going to add the text 'Software :'
Remember to replace 'fid4' with whatever your profile ID was!
This is the completed example.
This concludes the tutorial, if you're stuck then please post below and I'll be glad to help you out Thanks for reading.
Hi there, in this tutorial I am going to be showing you how to add a custom profile field into a users post bit. (The bit with your rep, post count and joined date)
For this guide I will be using the "Software" profile field I added to the Zies Web post bit.
Step 1:
After creating your custom profile field we're going to need to get ID of the field itself, navigate to the custom profile configuration in your AdminCP.
To the right of the name should be the 'ID' column, in this case it's '4'
Make a note of that ID.
Step 2
Now we're going to edit the template to include this field into the post bit.
Navigate to:
AdminCP >> Templates & Style >> Templates >> YOUR THEME >> Post Bit Templates >> Postbit_author_user
This is the template we're going to insert the custom field into. For this example I'm going to place the profile field under the joined date and above the reputation count.
Look for the following sections of code in the template:
Code:
{$post['userregdate']}
{$post['replink']}
Between these two we're going to add the code to post the profile field, also for this example I'm going to add the text 'Software :'
Remember to replace 'fid4' with whatever your profile ID was!
This is the completed example.
Code:
{$post['userregdate']}
Software: {$post['fid4']}
{$post['replink']}
This concludes the tutorial, if you're stuck then please post below and I'll be glad to help you out Thanks for reading.