Status
Not open for further replies.

rowedf

New member
Hello,

I was wondering if you can offer any html content that can be copy/pasted as an example of how you can use the tabs to hold content? For example, I have custom profile fields I'd love to have the information displayed in one of the tabs, but I nave no idea how to display the data there.
 
This one is to move all the standard postbit content:
HTML:
<dl class="userinfo_extra">
	<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
	<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
	<vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
	<dt>{vb:rawphrase 'posts'}</dt> <dd>{vb:raw post.posts}</dd>
	<vb:if condition="$post['entries']"><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></vb:if>
</dl>
{vb:raw template_hook.dbtech_userinfo_right_after_posts}
 
How does it look in vb 3.8.x?
HTML:
<div class="smallfont">
	<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
	<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
	<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
	<div>
		$vbphrase[posts]: $post[posts]
	</div>
</div>
{$template_hook[dbtech_userinfo_right_after_posts]}

BTW where is the manual for tabs :p ?
Not ready yet, unfortunately :)
 
I have removed these from postbit_legacy but what "View IDs" i should use to show them in Tabs only?
like i want to show Joined Date and No. of Posts, what view IDs should i use for these?
 
The View ID is entirely up to you. It is merely an identifier that helps you remember the contents.
 
I guess you took me wrong, you meant to say
I can use any View ID i like for example by default for DragonByte Tech: vBShop - Points Display
this View ID dbtech_vbshop_points is used ....

so i can change it to any phrase i like e.g. dbtech_vbshop_points_mine

I think this ID is the value that is fetch from DB to be displayed.
 
No, the ID is not shown anywhere and it cannot be changed, there's also no reason to change it.
 
Do I get you right to remove following content from the postbit:

Code:
<vb:if condition="$post['userid']">
				<div class="userinfo_extra">
					<dl class="userstats">
						<vb:if condition="$post['joindate']"><dt>{vb:rawphrase join_date}</dt> <dd>{vb:raw post.joindate}</dd></vb:if>
						<vb:if condition="$post['field2']"><dt>{vb:rawphrase location_perm}</dt> <dd>{vb:raw post.field2}</dd></vb:if>
						<vb:if condition="$post['age']"><dt>{vb:rawphrase age}</dt> <dd>{vb:raw post.age}</dd></vb:if>
						<dt>{vb:rawphrase posts}</dt> <dd>{vb:raw post.posts}</dd>	
						{vb:raw template_hook.postbit_userinfo_right_after_posts}
					</dl>
 
That is from vBulletin, you may do as you wish. If it don't turn out right you can always revert the template.
 
Replace that code block with this:
Code:
                 <vb:if condition="$post['userid']">
                    <dl class="userinfo_extra">   
                        {vb:raw template_hook.postbit_userinfo_right_after_posts}
                    </dl>
 
Status
Not open for further replies.

Legacy Postbit Tabs

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
496
Customer rating
0.00 star(s) 0 ratings
Back
Top