vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Adding a New Tab in Member Profile - Reloaded (https://vborg.vbsupport.ru/showthread.php?t=265971)

Glenn379 11-18-2013 07:30 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2257018)
no.

You would have to supply fields to everyone via the Admin CP -> User Profile Field Manager. You can make them optional so only users who want to fill them out have to- but they would all show under "About Me."

That is how I personally have it now. There isn't a way to then call on those profile fields to appear within the new tab?

Easy5s.net 07-12-2015 06:58 AM

i use

$template_hook['profile_tabs_first'] .= $templater->render();

Anh if members do not have the data, for example adding tabs thank, but members no have thank then no default tab is selected, how to fix?

friendlymela 07-21-2015 03:13 PM

wow this is very useful for me thanks to share

Skyrider 08-02-2015 06:42 AM

It's working perfectly for me, however. Direct access isn't working for me:

Quote:

If you want to access your custom profile tag directly, append &tab=test#testto the profile URL.
It just forwards me to (for example):
Quote:

&tab=test#
And shows the main profile.. Any clue what it might be?

The tab itself works just great.

grey_goose 08-03-2015 02:20 PM

Quote:

Originally Posted by Scanu (Post 2365939)
Thanks for the article cellarius! :)

@simonhind i was having your problem and i've done this

Create a new plugin and choose "userprofile_create" as hook, use this php code
PHP Code:

vB_Template::preRegister('name of the template for your tab',array('fieldX' => $this->userinfo['fieldX'],)); 

I'll write an article soon with this

I couldn't find this article :)

I tried your instructions, but it's not working:
PHP Code:

vB_Template::preRegister('custom_profile_tab_Characters',array('field109' => $this->userinfo['field109'],)); 

Template name: custom_profile_tab_Characters
Within the template: {vb:raw userinfo.field109}

jagtpf 01-06-2016 04:02 PM

Working on 4.2.3 - Great article - Thank you ....

satsat 10-02-2016 12:36 PM

I did the first step, and it showed in profile tabs. When I add the 2nd step and activate it, it gives this error:
Quote:

Parse error: syntax error, unexpected '<' in /home/bloggers/public_html/member.php(685) : eval()'d code on line 35
I didn't change id or anything.
What should be the title of both step? I set the 2nd one to "memberinfo_block_test" and 1st one to anything I want.
Both orders are 5 and hook locations are member_info
What did I do wrong?


All times are GMT. The time now is 03:59 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01240 seconds
  • Memory Usage 1,735KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete