This is the answer to a question a lot of our customers ask us. If you have used our skins you will see how the user info like Posts, Join Date etc are wrapped with a box. This tutorial will do it's best to explain how to do it to ones that modules add. We will also compile known ones like Blog Entries. If you have suggestions for more templates that need to be done with this please let us know.
Default Postbit_Legacy Snippit
- Login to admincp (http://www.yourdomain.com/admincp)
- Click and expand Styles & Templates
- Click Style Manager
- Expand Postbit Templates then click to edit postbit_legacy
- Below you will see the default block wrapped with our code
You will see how we wrapped the code with the followingCode:<dl class="userinfo_extra"> <vb:if condition="$post['joindate']"><div class="post_field"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></div></vb:if> <vb:if condition="$post['field2']"><div class="post_field"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></div></vb:if> <vb:if condition="$post['age']"><div class="post_field"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></div></vb:if> <div class="post_field"><dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd></div> {vb:raw template_hook.postbit_userinfo_right_after_posts} </dl>
How to wrap Blog EntriesCode:<div class="post_field"> WRAPPED CODE </div>
- Login to admincp (http://www.yourdomain.com/admincp)
- Click and expand Styles & Templates
- Click Style Manager
- Expand Blog Templates then click to edit blog_postbit_entries_link
- Copy & Paste the below code overwriting what is currently within the blog_postbit_entries_link template
Code:<div class="post_field"><dt>{vb:rawphrase blog_entries}</dt><dd><a href="{vb:link blog, {vb:raw post}, null, 'userid', 'blog_title'}">{vb:raw post.entries}</a></dd></div>









LinkBack URL
About LinkBacks




Reply With Quote
