vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Display profile fields (https://vborg.vbsupport.ru/showthread.php?t=197626)

nothing4me 11-30-2008 12:12 AM

Display profile fields
 
But for postbit... I have 180 custom profile fields, I can't manually add every single thing.

So, How about something like what VBulletin does, you know, for VBulletin 3.7 when you're logged on as an ordinary user and you can input stuff. But when you select "View your profile like everyone else can view it" and it takes off all the fields you didn't enter, leaving the ones you've entered.

How would I just display the fields entered in a postbit? (Non-editable by anyone including the user of course). I've looked at the "memberinfo_profilefield" template and I think it's the answer.

Could anyone quickly make a quick mod that will autofill or get these variables?
$profilefield[title] and $profilefield[value]

I've provided the "memberinfo_profilefield" template where I got this info from:

Code:

<if condition="$show['profilefield_edit']">
        <dt class="shade" id="profilefield_title_$profilefield[profilefieldid]">$profilefield[title]</dt>
        <dd id="profilefield_value_$profilefield[profilefieldid]">
                $profilefield[value]
                <script type="text/javascript">
                <!--
                vBulletin.register_control("vB_ProfilefieldEditor", "$profilefield[profilefieldid]");
                //-->
                </script>
        </dd>
<else />
        <dt class="shade">$profilefield[title]</dt>
        <dd>$profilefield[value]</dd>
</if>


Lynne 11-30-2008 02:16 AM

The field title is actually a phrase. The title for field9, for instance, is $vbphrase[field9_title]. Just something to keep in mind when you write your plugin.

nothing4me 11-30-2008 02:31 AM

Quote:

Originally Posted by Lynne (Post 1675515)
The field title is actually a phrase. The title for field9, for instance, is $vbphrase[field9_title]. Just something to keep in mind when you write your plugin.

That's EXACTLY what I needed! I won't have to write any plugins then. THANKS! :)


All times are GMT. The time now is 05:01 PM.

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.01122 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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