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
  #72  
Old 06-04-2011, 06:01 AM
BaziCenter's Avatar
BaziCenter BaziCenter is offline
 
Join Date: Sep 2005
Location: Montreal, QC
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This Mod has an issue with vB4.1.4 Beta1. Every time the user updates his/her extra fields in userCP, his/her IM, Website and Birthday fields resets to empty.

I don't know if it's happen in 4.1.x too or not.
Reply With Quote
  #73  
Old 06-27-2011, 03:26 AM
grey_goose grey_goose is offline
 
Join Date: Jun 2009
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello! Love the mod, used it on 3.8. Recently migrated to 4.1.4, and can't seem to get the same functionality.

Basically I use these to make 10 separate pages, by changing the value of "extra" and incrementing the instance from 7 onward. It worked in 3.8 but doesn't seem to be working now.

What am I doing wrong? I've attached my first 'add-on' page for perusal. When I import it, it makes it impossible to read the previous extra fields.
Attached Files
File Type: xml CS1.xml (4.9 KB, 13 views)
Reply With Quote
  #74  
Old 06-27-2011, 03:37 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bazicenter: No idea, don't have that vB version to test on.

grey_goose: quick glance at the code and it seems ok, but again, I can't test with that version of vB.
Reply With Quote
  #75  
Old 06-27-2011, 11:40 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I took your mod to the next level look at attachment.
Attached Images
File Type: png Untitled.png (36.0 KB, 0 views)
Reply With Quote
Благодарность от:
Mr_Running
  #76  
Old 06-28-2011, 12:33 AM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow that's awesome TheWindows7Site. hopefully Wired1 will let you post it..
Reply With Quote
  #77  
Old 06-28-2011, 03:50 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wrong mod actually That's within the member page right? Was it just multiple profile fields pages, or a real back end? By all means post the code if you'd like, and/or add it as an add on if you want.
Reply With Quote
  #78  
Old 06-28-2011, 06:54 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that was actually a screen of my postbit_legacy.. Im not using the Tab mod.
Reply With Quote
  #79  
Old 07-20-2011, 08:06 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also recently upgraded from 3.8 to 4.1.4 sp2 and I canted edit view the extra profile fields page. Ive checked and double checked the template edits and read the entire mod. Ive also imported the mod a 2nd time with overwrite and still no change.

Also at the very top you have a note about 3.8 to 4.- upgrades about possible DB errors and you say to delete the PAGE template. The only page template I can find is the one for Facebook. What am I missing here?
Attached Images
File Type: jpg missing page.jpg (43.5 KB, 0 views)
Reply With Quote
  #80  
Old 07-20-2011, 08:37 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured out how to do it.
I took the template code from the plugin and created a new template called extraprofilepage

I then added the this code.
HTML Code:
<form action="profile.php" method="post">
<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
<input type="hidden" name="do" value="{vb:raw updateextra}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />

	<h2 class="blockhead">{vb:rawphrase edit_extra_options}</h2>
	<div class="blockbody formcontrols">
		<h3 class="blocksubhead">{vb:rawphrase extra_options}</h3>
			{vb:raw customfields.extra}	
	</div>

	<div class="blockfoot actionbuttons">
		<div class="group">
			<input type="submit" class="button" value="{vb:rawphrase save_changes}" accesskey="s" />
			<input type="reset" class="button" value="{vb:rawphrase reset_fields}" accesskey="r" />
			<input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
			<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
			<input type="hidden" name="do" value="updateprofile" />
		</div>
	</div>

</form>
After that I went to the plugin manager and changed two of the plugins.

Caches Extra Profile Field Page Templates is replaced with this code using the new template name above.
HTML Code:
if (THIS_SCRIPT == 'profile')
{
$cache = array_merge((array)$cache,array(
	'extraprofilepage',
	'userfield_checkbox_option',
	'userfield_radio',
	'userfield_radio_option',
	'userfield_select',
	'userfield_select_multiple',
	'userfield_select_option',
	'userfield_textarea',
	'userfield_textbox',
	'userfield_wrapper'
));
}
And this plugin, Creates Extra Profile Field Page is changed to....
HTML Code:
// This is if a user requests ?do=extra it will do start the actions
if ($_REQUEST['do'] == 'extra')
{
	// Gets our Extra Page Fields
	$customfields = array();
	fetch_profilefields(1);

	// makes the user cp nav look correct
	construct_usercp_nav('extra');
	

	// sets the area discription, feel free to change
	$navbits[''] = $vbphrase[edit_extra_options];
	
	// sets template name to be called when the action is performed
	//$templatename = 'extraprofilepage';
	$templater = vB_Template::create('extraprofilepage');
	
	$page_templater = vB_Template::create('extraprofilepage');
	$page_templater->register('customfields', $customfields);	
	
	// sets shell template
	//$shelltemplatename = 'USERCP_SHELL';
}

// this is so that when a user saves their info it does get saved
if ($_POST['do'] == 'updateextra')
{
	$vbulletin->input->clean_array_gpc('p', array(
		// custom profile fields
		'userfield'    => TYPE_ARRAY,
	));

	// init user data manager
	$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
	$userdata->set_existing($vbulletin->userinfo);

	// custom profile fields
	$userdata->set_userfields($vbulletin->GPC['userfield']);

	// save the data
	$userdata->save();
}
Works fine now. :up:
Reply With Quote
  #81  
Old 07-21-2011, 01:18 PM
ryohnosuke's Avatar
ryohnosuke ryohnosuke is offline
 
Join Date: Nov 2010
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure that it works? I've updated with your code but extra options still missing.

Saludos.
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 11:20 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.05547 seconds
  • Memory Usage 2,358KB
  • 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
  • (3)bbcode_html
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (7)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • 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
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete