vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Can you Help me?? Please? (https://vborg.vbsupport.ru/showthread.php?t=84643)

imported_Eternale 09-18-2002 11:01 AM

Can you Help me?? Please?
 
how do i get something entered in a added profile field to show up with your post i know where to put it alls i need is the code thanks :d

imported_Eternale 09-18-2002 11:02 AM

example: i added a field called famous rapper and now i want what poeple entered in that field to show up by there avatar(Below) thanks

Brad 09-18-2002 05:33 PM

give me 10 minutes and ill post the code. :)

Brad 09-18-2002 05:56 PM

ill use your example for this

Open template postbit:

#Find:

$post[avatar]

#Replace by:

$post[avatar]<br />famous rapper: $post[fieldX]

Where the X is in $post[fieldX] replace it with the number of the profile feild you wish to add. dont know the number? no problem :)

in your admin cp (www.yoursiteurl.com/vbdirectory/admin) find User Profile Fields and click the Modify link. This will bring you to a page listing all the profile feilds. pull your cursor over the "[edit]" link but to not click it. a url will apper at the bottom right of your broswer window. the end of this url has a #. that # is the one you sould replace the X with in the above code.

for example.

i have a custom profile feild called "Fav Anime" for my forum. my url when i pull the mouse over the edit link is.

http://www.kousetsu.net/kan/admin/pr...ofilefieldid=8

see that 8? that the number for my "Fav Anime" feild. so to add it to the postbit template my code would look like this

$post[avatar]<br />Fav Anime: $post[field8]

hope that helps :)

imported_Eternale 09-19-2002 02:27 AM

oh thank you it works :D


All times are GMT. The time now is 03:23 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.01596 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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