Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Extra Profile Fields Page Details »»
Extra Profile Fields Page
Version: 4.0.0, by Wired1 Wired1 is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 4.0.6 Rating:
Released: 12-09-2009 Last Update: 11-15-2010 Installs: 147
Uses Plugins Template Edits
Re-useable Code Code Changes  
No support by the author.

For those upgrading from the 3.8.x mod, read this.

Don't forget to hit INSTALL!

This product will add a new page to the User CP for easy editing of specially marked profile fields, that for one reason or another you would like to split off from the main list.

NOTE: Any fields marked for this page will not be seen in the user's profile. You would need to install the Extra Profile Fields Tab addon (haven't updated it as of yet) to do this.

Personally, I use this page for PC specs, but it can also be used for other specs as well (e.g. cars). With an ADDITIONAL product (e.g. NOT this one), I place these specs in a dropdown list under the user title in each user's post, as well as in their profile as an extra tab.

Here's some examples of how I use the 3.8.x version of this mod (with the Add-On mod, Extra Profile Fields Tab, and a separate mod, Profile Fields in a Postbit Dropdown):
http://forum.corsair.com/forums/showthread.php?t=39826

================
# of plugins: 3
# of php page edits: 1 (admincp/profilefield.php)
# of new templates: 1 (page)
# of template edits: 1 (USERCP_SHELL)
# of new phrases: 3 Click here for details. Also look at the attached pictures to see where they show up.

Version Changes
Known Bugs
================

To Install:
1) Save the attached product-wired1_epfp.xml file.
2) Navigate to AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product]
3) Browse to wherever you saved the file.
4) Allow Overwrite -> Yes.
5) Import!
6) Follow the instructions for the manual edits (1 template edit, 1 PHP page edit)


After the product is FULLY installed, when a you want to move a profile field to the new page for easy editing:

1. Go to the AdminCP and edit the field as normal.
2. At the bottom in the Display Page area, you will see "Which page displays this option?" The last option should say Options: <$vbphrase[extra_options]>.
3. Save!


Don't forget to hit INSTALL!

Support will only be given to people who have hit install.

Download Now

File Type: xml product-wired1_epfp.xml (4.8 KB, 838 views)
File Type: txt extra_profile_fields_instructions_4.0.0.txt (1.9 KB, 575 views)

Screenshots

File Type: jpg Extra Options.jpg (59.0 KB, 0 views)
File Type: jpg phrases.jpg (47.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 12-17-2012, 08:10 PM
grey_goose grey_goose is offline
 
Join Date: Jun 2009
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by grey_goose View Post
Nice -- I used this to create several more pages. One thing; on any of these new pages, savign info redirects back to profile.php rather than the add-on page. Did I miss something?
Figured this out. What was missing was the button value and redirect in the plugin:

In your new page template:
Find:
Code:
<input type="hidden" name="do" value="updateprofile" />
Replace With:
Code:
<input type="hidden" name="do" value="updateYOURTEMPLATENAME" />
Plugin at profile_start:
Find:
Code:
	// save the data
	$userdata->save();
}
Replace with:
Code:
// save the data 
    $userdata->save(); 

    $vbulletin->url = 'profile.php?' . $vbulletin->session->vars['sessionurl'] . 'do=YOURTEMPLATENAME'; 
    eval(print_standard_redirect('redirect_updatethanks', true, true)); 
}
Now additional pages will redirect back to themselves after saves/edits.
Reply With Quote
  #103  
Old 02-01-2013, 09:57 PM
Chadi's Avatar
Chadi Chadi is offline
 
Join Date: May 2004
Location: USA
Posts: 2,043
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would appreciate help on this issue I'm having in this thread, which is related.

https://vborg.vbsupport.ru/showthread.php?t=294569
Reply With Quote
  #104  
Old 04-18-2013, 07:21 PM
Paolitus's Avatar
Paolitus Paolitus is offline
 
Join Date: Apr 2012
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

work on 4.2.0
Thank you
Reply With Quote
  #105  
Old 10-20-2013, 05:38 PM
RhysH RhysH is offline
 
Join Date: Aug 2009
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone managed to get this working for vb 4.2.1?
I keep getting blank page on the edit page (profile.php?do=extra)
Reply With Quote
  #106  
Old 10-23-2013, 06:53 PM
s_cocis s_cocis is offline
 
Join Date: Nov 2011
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

with 4.2.2 work.
Reply With Quote
  #107  
Old 12-30-2013, 04:17 PM
TiKu's Avatar
TiKu TiKu is offline
 
Join Date: Sep 2006
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by grey_goose View Post
Figured this out. What was missing was the button value and redirect in the plugin:

In your new page template:
Find:
Code:
<input type="hidden" name="do" value="updateprofile" />
Replace With:
Code:
<input type="hidden" name="do" value="updateYOURTEMPLATENAME" />
Plugin at profile_start:
Find:
Code:
	// save the data
	$userdata->save();
}
Replace with:
Code:
// save the data 
    $userdata->save(); 

    $vbulletin->url = 'profile.php?' . $vbulletin->session->vars['sessionurl'] . 'do=YOURTEMPLATENAME'; 
    eval(print_standard_redirect('redirect_updatethanks', true, true)); 
}
Now additional pages will redirect back to themselves after saves/edits.
Thanks, this also solves the problem that saving the extra fields clears other profile fields like the birthday.
However, the redirect should be as this:
Code:
eval(print_standard_redirect(array('redirect_updatethanks', $vbulletin->userinfo['username']), true, true));
Reply With Quote
  #108  
Old 10-05-2017, 01:26 PM
kevius kevius is offline
 
Join Date: Oct 2009
Location: France
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Saviour View Post
Never mind, Wired...

I just re-imported the product and allowed overwrite. It's working now.

Sorry...
Yes i do the same on vBulletin 4.2.5 and edit extra is now working again !
Reply With Quote
  #109  
Old 09-25-2019, 08:55 AM
oneill oneill is offline
 
Join Date: Aug 2018
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can't get the dropdown button to be shown near to avatar like in the example :/ any thoughts ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:20 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.04958 seconds
  • Memory Usage 2,326KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (9)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (4)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete