The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Extra Profile Fields Page Details »» | |||||||||||||||||||||||||||||||||
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
Screenshots
Show Your Support
|
Comments |
#72
|
||||
|
||||
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. |
#73
|
|||
|
|||
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. |
#74
|
||||
|
||||
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. |
#75
|
||||
|
||||
I took your mod to the next level look at attachment.
|
Благодарность от: | ||
Mr_Running |
#76
|
|||
|
|||
wow that's awesome TheWindows7Site. hopefully Wired1 will let you post it..
|
#77
|
||||
|
||||
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.
|
#78
|
||||
|
||||
that was actually a screen of my postbit_legacy.. Im not using the Tab mod.
|
#79
|
||||
|
||||
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? |
#80
|
||||
|
||||
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> 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' )); } 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(); } |
#81
|
||||
|
||||
Are you sure that it works? I've updated with your code but extra options still missing.
Saludos. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|