PDA

View Full Version : Profile Enhancements - Add editable Info to end of posts


AURFSCAN
09-04-2011, 10:00 PM
tested on 4.08 not sure about others


Add editable Info to the end of your posts. - look at the attached pics.

1. Create a new User Profile field http://www.youtube.com/watch?v=7rwHpG6Iilo

2. take note of the field number of your newly created field (screen @3:46 on the vid above) eg. field20

3. goto postbit template

4. Find and add above this line<vb:if condition="$show['postedited']">


this

<vb:if condition="$post['field20']"><br /><br /><br /><br /><SPAN STYLE="font-size: 8pt"><font color="#151B54"><b>Equip: </b></font>{vb:raw post.field20}</span></vb:if>


so it looks like this



<vb:if condition="$post['field20']"><br /><br /><br /><br /><SPAN STYLE="font-size: 8pt"><font color="#151B54"><b>Equip: </b></font>{vb:raw post.field20}</span></vb:if>

<vb:if condition="$show['postedited']">




5. Change field20 in the above code (there are 2 Instances of field20) to your new field number eg. field8, field 12, field18 etc.

6. Change 'Equip' to whatever you want to show before editable info, also use html to change color etc.

Done

AURFSCAN
09-05-2011, 04:21 PM
Some Ideas for Information displayed could be Computer specs, youtube channel, website url, Map url, mods etc. etc.


edit*

Some more features

- Add extra line
- Limit width of text on page



To add an extra line, create another custom field, note the field number and use the code below, again replacing the field
numbers with yours.

To limit the width of text edit width:820px (820 pixels) with a size that suits you





<vb:if condition="$post['field20']"><br /><br /><br /><br /> <div style="width:820px"><SPAN STYLE="font-size: 8pt"><font color="#2B3856"><b>Equip:</b></font> &nbsp; {vb:raw post.field20}</span></div></vb:if>

<vb:if condition="$post['field21']"><div style="width:820px"><SPAN STYLE="font-size: 8pt"><font color="#800517"><b>Equip2:</b></font> &nbsp; {vb:raw post.field21}</span></div></vb:if>






:)