vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Adding areas to postbit (https://vborg.vbsupport.ru/showthread.php?t=152977)

Lag 07-21-2007 08:26 PM

Adding areas to postbit
 
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 05: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)
Code:

Mood: $post[fieldx]

Gameaholic 07-22-2007 06: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 05:33 AM

Wrap the line with conditionals:
Code:

FIELDX NAME: <if condition="$post['fieldX']">$post[fieldX]<else />N/A</if>

Shouzen 08-19-2007 10:34 PM

How do you make it so that their member number shows?

Sabalero 08-20-2007 02:42 AM

Hi, Shouzen. You can learn about how do it
in this post https://vborg.vbsupport.ru/showthrea...+number+member . Good Luck!


All times are GMT. The time now is 06:26 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01653 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete