Helpful Information
 
 
Category: vBulletin 3.5 Template Modifications
Custom Field Below Signature on Legacy Postbit

This is my first released hack ever so I hope it all works right. Don't hate me if it doesn't do what it's suppose to. Lol.

Description
Basically, this allows you to create a custom profile field, or anything for that matter, and display it along the bottom of each post. Aligned to the right side are the edit and quote buttons. This will align a field of your choice to the left side. Note that this is primarily for the legacy Postbit.

Templates to edit: 1 (postbit legacy)

Comments
I use this on my forums for two different things. One thing I use it for is ranks. It looks a lot cleaner having them somewhere out of the way, but very obvious to see. They tend to get very cluttered up around the username and avatar. The other thing I use it for is a comment that people can make. They have a custom field that they can say a quote or something in and it'll display this along the bottom below their signatures.

01/13/2006- Tested on 3.5.3 and works perfectly.

Hello ,

Can i put in this custom field randomly of theard that user make it ,

Regards

Thanks!

Hello ,

Can i put in this custom field randomly of theard that user make it ,

Regards

I'm not sure what you're asking. >_<

Where the following is, anything can go between the <td>'s. My suggestion is merely to use custom profile fields or ranks. You can put anything there that you want.

<td class="alt1" align="$stylevar[left]">
<if condition="$post['fieldx']">
$post[fieldx]
</if>
</td>

What do you mean replace x with the field ID ?

What do you mean replace x with the field ID ?


WHere it says fieldx you will need to change the x to the field number. Like it will say 14 or 6 or what ever your field number is. To become field14 field15 etc.

Exactly as Fusion said. If you create a new Field, it's going to have an ID on the right side of the manager. Make sure you copy the field number and not the order number. Then take that number and place it in both areas.

Example:
<if condition="$post['field2']">
$post[field2]
</if>

Interesting, I may end up using this.

hi there,

Can you help me if ,

<if condition="$post['fieldx']">
$post[fieldx]
</if>

if i want to add some more info with this fiels in showthread.php

like if(!empty($post['fieldx'])
$post['my_new_var']='somevalue'.$post['fieldx'];

when i call this variable in postbit it's blank

$post['my_new_var']

is it correct or not

Regards
Jitender

how about "Report This Post" link?

hi there,

Can you help me if ,

<if condition="$post['fieldx']">
$post[fieldx]
</if>

if i want to add some more info with this fiels in showthread.php

like if(!empty($post['fieldx'])
$post['my_new_var']='somevalue'.$post['fieldx'];

when i call this variable in postbit it's blank

$post['my_new_var']

is it correct or not

Regards
Jitender
I don't really know what much php to be able to help you. I just deal with the actual templates themselves. If anyone else can help you, that'd be great.
how about "Report This Post" link?That is still there. I'm viewing my post so I can't report my own post. =D










privacy (GDPR)