vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   extra field (https://vborg.vbsupport.ru/showthread.php?t=124217)

VaaKo 08-17-2006 03:16 PM

extra field
 
I would like to create a an extra field where users can submit their myspace url and in the postbit_legacy it would show their Profile's name on myspace with an hyperlink (_blank) to their profile.

Thanks.

Ntfu2 08-17-2006 03:25 PM

AdminCP -> Add new user profile field -> Set the options you want -> Then user profile field manager -> Remember the number associated with that field

ed, biography is field1

Then go to styles and templates -> style manager -> edit the postbit_legacy template and add this where you want it to appear
HTML Code:

<a href="$post[fieldX]" target="_blank">$post[username]'s Myspace Page</a>
where fieldX is the number from the first few steps

VaaKo 08-17-2006 04:39 PM

I used this code

HTML Code:

<if condition="$post[field47]"><div align="left" class="user_info">Earthopia: <b><a href="http://www.earthopia.com/$post[field47]" target="_blank">$post[field47]</a></b>
                                </div></if>


rogersnm 08-17-2006 04:58 PM

HTML Code:

<if condition="$post[47]"><div align="left" class="user_info">Earthopia: <b><a href="http://www.earthopia.com/$post[47]" target="_blank">$post[field47]</a></b>
                                </div></if>

It is $post[x] not fieldx i think, +if it's myspace then why is that Earthopia

VaaKo 08-18-2006 10:58 AM

<a href="http://www.Earthopia.com" target="_blank">www.Earthopia.com</a> is a new social network, it'll be launched next month.

peterska2 08-18-2006 11:13 AM

Quote:

Originally Posted by rogersnm
HTML Code:

<if condition="$post[47]"><div align="left" class="user_info">Earthopia: <b><a href="http://www.earthopia.com/$post[47]" target="_blank">$post[field47]</a></b>
                </div></if>

It is $post[x] not fieldx i think, +if it's myspace then why is that Earthopia

It is fieldx in templates.

VaaKo 08-18-2006 11:14 AM

Quote:

Originally Posted by peterska2
It is fieldx in templates.

But it worked as $post[x]

peterska2 08-18-2006 11:17 AM

The correct variable for use in templates is
Code:

$post[fieldx]
If you look at the postbot, the default items in the postbit such as location are in the format
Code:

$post[fieldx]


All times are GMT. The time now is 07:52 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.01161 seconds
  • Memory Usage 1,730KB
  • 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
  • (4)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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