vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   User profile fields (https://vborg.vbsupport.ru/showthread.php?t=177041)

africanw 04-24-2008 01:42 PM

User profile fields
 
Hi,

Anyone know how to include a vbulletin user profile field (eg country) inside a custom Vb template.

Tried things lile $user[field10] but that did not work.

Thanks

Opserty 04-24-2008 01:48 PM

The User profile field of the browsing user? [mincode]$bbuserinfo[field10][/minicode]

Or in a postbit then poster's would be [minicode]$post[field10][/minicode]
Or on the member profile page [minicode]$userinfo[field10][/minicode]

africanw 04-24-2008 04:16 PM

$bbuserinfo[field10] does work but it is not for the actual user looking at the template but the user in the database.

I have $post[field10] in the postbit already and working.

It is just in my custom template (vbclassified template) that I cannot get this field to show.

I had tried $userinfo[field10]. $user[username] works though.

snippet of the code -

HTML Code:

                                <td class="alt1" width="53%>
                                        $vbphrase[posted_by]:
                                </td>
                                <td class="
alt2">
                                        <a href="classifieds.php?do=user&amp;userid=$user[userid]">$user[username]</a>
                                </td>
                        </tr>

                                <tr>
                                        <td class="alt1" colspan="2">

                                                Seller Location: $userinfo[field10]
                                               
                                        </td>
                                </tr>


Opserty 04-24-2008 07:08 PM

It is a custom template on a custom page, therefore you will need to consult the authors of the custom PHP. You'd need to edit the query to fetch the custom fields, however like I said, you will need to contact the authors.

africanw 04-25-2008 12:57 AM

ah I see thanks.


All times are GMT. The time now is 02:16 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.00945 seconds
  • Memory Usage 1,716KB
  • 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)bbcode_html_printable
  • (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