PDA

View Full Version : Adding areas to postbit


Lag
07-21-2007, 09:26 PM
On my friends forum, he wants it so in the post bit it shows all of these in the postbit below the activity/longevity modifcation.

Join Date:
Member #:
Rank:
Battle Won:
Battle Lost:
Mood:

He runs a Graphics forum and I'm assuming that the Rank, Battles won and lost would need to be admin set. But he wants the mood to be editble by the user, but in text. So they could type that they are "very bored," or something similer. Any help with this, or any info that leads me in the right direction is appreciated.

Dismounted
07-22-2007, 06:51 AM
Create a custom profile field, and then edit the postbit(_legacy) template to include that information, eg. (x is the field's unique number)
Mood: $post[fieldx]

Gameaholic
07-22-2007, 07:12 PM
I was wondering what if you want the information to show even if the field is not filled like i want there to be

Location: N/A
Mood: Happy
Grahpics Level: N/A
Battle Won: 0
Battle Lost: 0

like that and is it possible to set for example battle won/lost to have a default setting like 0 and the rest to N/A .

Dismounted
07-23-2007, 06:33 AM
Wrap the line with conditionals:
FIELDX NAME: <if condition="$post['fieldX']">$post[fieldX]<else />N/A</if>

Shouzen
08-19-2007, 11:34 PM
How do you make it so that their member number shows?

Sabalero
08-20-2007, 03:42 AM
Hi, Shouzen. You can learn about how do it
in this post https://vborg.vbsupport.ru/showthread.php?t=142264&highlight=postbit+number+member . Good Luck!