PDA

View Full Version : Profile Enhancements - Extra Profile Fields Page


Wired1
03-14-2009, 10:00 PM
Note to all: Yes I will be upgrading this mod if needed to work with vB 4.0, but not before it goes gold on or around the ETA of December 21st. I personally wouldn't recommend anyone upgrade their forum for a couple weeks after it comes out so that the modding community has a chance to test their code on the gold version.

=========================

Don't forget to hit INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=208356)!

NOTE: No code changes have been made from v3.0.1 for vB 3.7.x to v3.1.0 for vB 3.8.x.

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 to do this.


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!

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 this mod (with the Add-On mod, Extra Profile Fields Tab (https://vborg.vbsupport.ru/showthread.php?t=208358), and a separate mod, Profile Fields in a Postbit Dropdown (https://vborg.vbsupport.ru/showthread.php?t=208360)):
http://www.houseofhelp.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.

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)

The install process should only take 5 minutes at most.

Don't forget to hit INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=208356)!

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

Wired1
03-14-2009, 10:23 PM
vB Phrases:

extra_options_updated - Simple message posted after you hit the SAVE button on the page.
edit_extra_options - Name of UserCP link
extra_options - Shows up in various places, mostly on the title of the extra page, as well as in the profile field selection area (see pics above for more info)

Version History:
3.0.0 - Initial Release for 3.7.x
3.0.1 - Added header to edit page, cached templates, redirect now goes back to edit page
3.1.0 - Updated version # for vB 3.8.x, no code changes made.

Wired1
03-14-2009, 10:32 PM
<a href="https://vborg.vbsupport.ru/showpost.php?p=1727028&postcount=157" target="_blank">How to add these special profile fields to your advanced member search form</a>.

Wired1
03-14-2009, 10:32 PM
Reserved for future use.

Saviour
03-15-2009, 03:41 PM
Wired...

I'm not getting the link in the UserCP...

Followed the directions to edit the USERCP_SHELL and the profilefield.php templates/file, but it's not displaying the link to "Edit Extra Options".

Update...

Never mind Wired...I found a mod I have installed that conflicts with your mod. It's the User CP Icons mod. I just disabled that mod and this is working fine, now.

Ain't no thing, but a chicken wing...

RedGTiVR6
03-15-2009, 07:35 PM
Just to double check, if we had this mod (and the others that go along with it) installed with vb 3.x, then upgraded to vb 3.8, and it still works, no need to install this new mod, correct? We should be find to just mark this mod as installed and the other version (for 3.7 and the like) as uninstalled.

Am I thinking correctly?

Wired1
03-15-2009, 08:14 PM
Correctamundo.

ziggylol
03-16-2009, 09:58 AM
On the profile tab section how it says "Extra Options" how can i change the the text to something else? Cheers

Jasem
03-19-2009, 08:05 PM
Great mod. , thank you!

Wired1
03-20-2009, 03:49 PM
On the profile tab section how it says "Extra Options" how can i change the the text to something else? Cheers

Great mod. , thank you!

Hit install for support guys :) Ziggy, your question is answered and shown above as well.

shrian.al7b
03-20-2009, 05:08 PM
thnxxxxx

trickfly
03-20-2009, 05:37 PM
Looks good will try now

AshleyTwo
04-08-2009, 06:50 PM
Hey, fantastic stuff. Much appreciated :)

However I may be being an idiot but how do I change the name. I know it says change the vB Phrase but where...and to what?

I've found edit_extra_options in the edited template but I've tried changing everything I could think of. Do I add something before it? After it? Change the title itself? I've tried several different methods.

Thanks for any help.

Update

Me being stupid it seems, just seen there is a phrase section in the admin area. Was looking in the wrong place.

Many thanks for the mod :)

Actually, again this may be me being dense but can you add two or more tabs? If so how? Thanks.

Wired1
04-10-2009, 08:25 PM
shrian: please hit install to get support.

AshleyTwo: This mod does not create tabs. If you are asking about the add on, please post a more detailed question / scenario post in that thread.

Fax
04-20-2009, 08:28 AM
is it possible to add additional pages ?

Wired1
04-20-2009, 02:36 PM
If you rename the product file and rename all of the variables and whatnot, yes. Ultimately it's not a great way to do it though. Currently revamping the whole mod to make this MUCH easier. It can be done w/ categories to a certain extent, but it's ultimately going to be a new DB table. Doing it cleanly is a pain though.

Front Range 4x4
04-20-2009, 11:36 PM
Thanks, this is exactly what I was looking for. One simple question, how do I add a link to the postbit to go directly to the new tab in the profile?

Wired1
04-21-2009, 12:22 AM
::cough:: addon ::cough::

Front Range 4x4
04-21-2009, 01:55 AM
The closest I can get is with the automatic addon which shows the category name and drops down to show the added profile title but not the content the user has posted.

Wired1
04-21-2009, 02:18 AM
Try checking the addon listed in the main post :)

Front Range 4x4
04-21-2009, 03:02 AM
Thanks.

Saviour
07-09-2009, 11:49 PM
Don't need to uninstall actually, just re-do the manual edits as per the EPFP instructions and you'll be fine.

What manual edits?

Saviour
07-10-2009, 12:03 AM
Never mind...Fixed. Thank you, so much, Wired. You're a lifesaver...and I don't mean the candy!

All my best!

Wired1
07-11-2009, 10:17 PM
Glad to hear.

jgommel
07-15-2009, 02:57 PM
Mod works great. I have it installed on both of my forums. I do have one question though. I have the option set to display certain fields on the Members List, but they are not displaying. I checked all my edits and even uninstalled/reinstalled the mod, but they still do not show-up on the Members List. The same goes for Advanced Search.

Thanks, and great job!

jgommel
07-15-2009, 03:12 PM
Oops, I overlooked post #3 (https://vborg.vbsupport.ru/showpost.php?p=1768289&postcount=3). I'm good to go now.

Ipuck
07-17-2009, 12:42 AM
Hello

I added this mod when I had vB 3.7 and everything worked perfect. I upgraded a few months back to vB 3.8 and still worked OK, the users where able to select from the extra page without a problem. Now I'm in the need to change some of the field options. I remember I used to change the options on the "User Profile Field Manager", but now I can not see the fields. If I go to "User Profile Field Categories" it shows the category I created for the extra page, but I can't edit the options.

I try upgrading but it didn't work.

Any ideas how can I edit the options or the fields??

Thanks

Saviour
07-17-2009, 01:22 AM
Hello

I added this mod when I had vB 3.7 and everything worked perfect. I upgraded a few months back to vB 3.8 and still worked OK, the users where able to select from the extra page without a problem. Now I'm in the need to change some of the field options. I remember I used to change the options on the "User Profile Field Manager", but now I can not see the fields. If I go to "User Profile Field Categories" it shows the category I created for the extra page, but I can't edit the options.

I try upgrading but it didn't work.

Any ideas how can I edit the options or the fields??

Thanks

I had this same issue, after I upgraded my version of vBulletin.

When you upgraded, you overwrote the admincp/profilefield.php file.

You need to make the manual edits to that file as described in the instructions of the mod.

Ipuck
07-17-2009, 01:33 AM
I had this same issue, after I upgraded my version of vBulletin.

When you upgraded, you overwrote the admincp/profilefield.php file.

You need to make the manual edits to that file as described in the instructions of the mod.


Thank you very much!! You are the man.

Wired1 too, for creating this mod.

Saviour
07-17-2009, 01:48 AM
You're more than welcome...

Wired1
07-17-2009, 04:53 AM
Glad everyone's good to go. Too bad not everyone's hitting the INSTALL button :(

yotsume
08-16-2009, 12:42 AM
How to add these special profile fields to your advanced search form (https://vborg.vbsupport.ru/showpost.php?p=1727028&postcount=157).

You say this is how to add the fields but the instructions seem to be the opposite?

I asked this question in a 3.7x thread but you lead my to a 3.8x thread? Nice mess. So My question remains of how to have these threads show on the advanced search form???

Wired1
08-16-2009, 01:34 AM
The quoted link is talking about adding these specially marked profile fields to the advanced member search form. I just clarified the initial link to say that so that it can no longer be confused with advanced thread / post searches.

As it states at the top of this thread:
NOTE: No code changes have been made from v3.0.1 for vB 3.7.x to v3.1.0 for vB 3.8.x.So there's no mess. Code's the same, therefore the advanced member search code changes (completely optional) will work just fine regardless if you are using this mod in vB 3.7.x or vB 3.8.x.

Please clarify what you mean by threads? None of my mods do anything to threads. The closest would be adding a dropdown for these extra profile fields within the postbit.

christian8a
08-16-2009, 09:35 AM
If you rename the product file and rename all of the variables and whatnot, yes. Ultimately it's not a great way to do it though. Currently revamping the whole mod to make this MUCH easier. It can be done w/ categories to a certain extent, but it's ultimately going to be a new DB table. Doing it cleanly is a pain though.

I need to create 2 extra pages man, can you help me? I tried duplicating all plugins and changing the variables with different names but with no luck...

I know I am confused with the template this mod uses, is it called 'page' do I have to change that as well, and the $templatecustom ? I think somewhere there I messed up

Wired1
08-16-2009, 09:21 PM
Correct, EVERYTHING needs to be duplicated / changed, including the templates and the variables inside of them.

yotsume
08-16-2009, 10:34 PM
Correct, EVERYTHING needs to be duplicated / changed, including the templates and the variables inside of them.

If someone is successful in making a second page can they please post their while mod as an attachment here. I need this function as well.

Thanks!

christian8a
08-17-2009, 06:55 AM
Here you go man, let me know if it works fine... works on my end.
Just remember to add the variables to the admincp/profilefield.php

I edited the template name to put it where the modify user options are to keep it neat, you can change it if you plan on using a different template name.

same link on the usercp just add the 1 at the end =extra1

If you are already using the extra page of this mod then you need just to add the extra lines

find

"$vbphrase[options]: $vbphrase[extra_options]" (add a coma at the end)

like:
"$vbphrase[options]: $vbphrase[extra_options]",

and add underneat

"$vbphrase[options]: $vbphrase[extra1_options]" (no coma)

Then find

6 => "$vbphrase[options]: $vbphrase[extra_options]",

add underneat

7 => "$vbphrase[options]: $vbphrase[extra1_options]",



Wired1, if you dont authorize this post let me know and ill edit it :up:

blind-eddie
08-17-2009, 06:59 AM
I have created 3 pages so for with this mod. There are many mods here that require you to make new User Profile fields & then add it to Edit Details or Edit Options or New ones we have made. I think adding them to default vb Profile Fields looks ugly if they really do not belong in that section. So, creating new pages is the way to go, to seperate Fields that need their own section.

I will do my best to walk you through creating new pages using this mod.
================================================== ==========
First, Change the product name to the name you wish to use.

You will need to open your newly named duplicate product with your favorite editor.

Next, Find:
<product productid="wired1_epfp" active="1">

Change wired1 to wired2
If this is not done, you will over-write your System Specs Product & will result in a white page when viewing your System Specs Page.
================================================== ==========
Find:
<title><![CDATA[Wired1's Extra Profile Field Page]]></title>
Change the highlighted text to Test. ( You can change this later, after you have tested it)
This will be the name of the Product on the Products list.
================================================== ==========
Next, you will need to find every instance of the word extra and replace it with the name of your page, in this instance, name it test.
Easy way to do them all at once is to click edit, if you are using wordpad as your editor, then click Replace. You will see a pop-up.

Find what: type in extras.
Replace with: test.
click replace all.

================================================== ==========
Next, Find:

<template name="page" templatetype="template" date="1136338972" username="Wired1" version="3.1.0"><![CDATA[<form action="profile.php" method="post">

Change page to test

Next, Find:

$globaltemplates = array_merge($globaltemplates, array('page', 'userfield_checkbox_option', 'userfield_radio', 'userfield_radio_option', 'userfield_select', 'userfield_select_multiple', 'userfield_select_option', 'userfield_textarea', 'userfield_textbox', 'userfield_wrapper'));
}]]></phpcode>

Change page to test
================================================== ===========
Next, Find:
$templatename = 'page';

Change page to test


================================================== ==========

Next, Find:

<phpcode><![CDATA[if ($profilefield['form'] == 6)

Change the 6 to 7. (This number will increase by one for each page you create)

Save it, Upload your newly named product.
================================================== ==========

Next, you will again need to edit your admincp/profilefield.php

Search for:

"$vbphrase[options]: $vbphrase[extra_options]"
Replace with:

"$vbphrase[options]: $vbphrase[extra_options]",
"$vbphrase[options]: $vbphrase[test_options]"

Find:

6 => "$vbphrase[options]: $vbphrase[extra_options]",
Add below:

7 => "$vbphrase[options]: $vbphrase[test_options]",
Save it, Upload it to your admincp file, allow over-write.

================================================== ==========

Now you will need to edit your USERCP_SHELL template
Skip this if you want to add your new page to its own section.

Find:
<tr><td class="$navclass[profile]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_your_details]</a></td></tr>

Add after:

<tr><td class="$navclass[test]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=test">$vbphrase[edit_test_options]</a></td></tr>

Note: test will need to be changed to new page name for each page made.

================================================== ===========


If you want to add your new page in its own section, simply add the following.

In your USERCP_SHELL, Find:


<tr><td class="tcat" nowrap="nowrap"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_control_panel]</a></td></tr>

Add after:

<tr><td class="thead">Test Options</td></tr>
<tr><td class="$navclass[test]" nowrap="nowrap"><a class="smallfont" href="profile.php?$session[sessionurl]do=test">$vbphrase[edit_test_options]</a></td></tr>

Note: test will need to be changed to new page name for each page made.


To get Profile Fields to show up on your new page, Go into your Profile Field Manager.

Select your User Profile field you want to add to this page, at the very bottom, Select, Options Test Options.

Hopefully I covered all the bases & this will help many of you to create new profile pages from this mod.
You will need to re-do these steps for every Profile page you wish to create.

Thanks Wired....Later, Tim

yotsume
08-17-2009, 07:23 AM
Thanks for the outlines on how to create more pages. One thing to note is that other hacks.... for instance.... the Mass PM hack list all created fields. So the more fields we make make these other hacks draw a huge list of fields. Anyway just something to note.

I think maybe these is another feature overlooked that might need to be integrated into this mod. One were we can quickly to the fields to be a sort of invisible to VB and only show on the new page and new tab much in the same way we can select to make a field searchable or not on the members list. The more fields we enter the more lists of fields grow. If you enter a large amount of fields as I have... another example of this problem is on editing a users settings. A mass amount of fields gets listed.

What I am saying here is that as we address the need for more pages and tabs we will eventually have to address how these new fields show in AdminCP areas as well.

Another similar issue is if you add say 70 fields to a new page and tab. All these fields and their inputed data must get pulled and displayed. There is no system of pagination designed yet. So for my uses I will need to have pagination added. I use this mod to make a second very extensive More About Me tab next to the standard About Me tab. That new page and tab of mine has 70 targeted questions for members to answer. This list will grow larger.

How can we add pagination to the new page and also to the othe rhack for adding a new tab?

Thanks!

Wired1
12-09-2009, 01:31 AM
Note to all: Yes I will be upgrading this mod if needed to work with vB 4.0, but not before it goes gold on or around the ETA of December 21st. I personally wouldn't recommend anyone upgrade their forum for a couple weeks after it comes out so that the modding community has a chance to test their code on the gold version.

NOTE! I'm currently working on making the EPFP mod for vB 4.0 more DB driven so that pages and tabs are easier to create and customize.

If you DON'T want a DB version, post here and as long as I get more than one or two responses I'll add that to my modification upgrade list.

grey_goose
12-14-2009, 07:02 PM
With what blind-eddie posted (thanks!) this could be pretty amazing *if* the CES Parser Permissions (https://vborg.vbsupport.ru/showthread.php?t=211102) could be added to the extra pages. I'm sure this is just adding the parser, right?

* grey_goose looks hopefully at the people who know what they're doing :)

Wired1
12-14-2009, 08:04 PM
If that affects profile fields in the back end, it should work fine with this mod.

grey_goose
12-14-2009, 11:35 PM
Well, it's odd... it parses the fields on your epfp tab but not on the dedicated epfp page ^^

Wired1
12-15-2009, 01:24 AM
Does that mod process profile fields in the Edit Profile area?

grey_goose
12-15-2009, 01:38 AM
Yes it does; is there a hook or something needed to load the parser on that epfp page?

Wired1
12-15-2009, 05:10 AM
No idea how his mod works.

burlesque
12-16-2009, 12:09 PM
I've tried installing this mod onto a brand new 3.8.4 board, but for some reason, when I click the 'Edit Extra Options' link in the UserCP, the 'profile.php?do=extra' page is totally blank.

I've tried uninstalling and reinstalling the mod several times, but to no avail.

Please help!

Wired1
12-16-2009, 10:43 PM
Sounds like you haven't done any of the ma nual edits as per the instructions.

grey_goose
12-17-2009, 08:27 PM
Very cool stuff; I used the multi-page hack in conjunction with DJ's dots to do some truly awesome stuff I've been wanting for a long time. Thanks, all!

Wired1
12-18-2009, 02:45 AM
Got a link? I love to see how people use this mod in new ways.

grey_goose
12-18-2009, 11:44 AM
Sure;

http://www.twilightvalley.org/forum/ (http://www.twilightvalley.org/forum/)

You can see the extra pages as "Character Sheets" in the UserCP area, which then also populate the 'MiniSheets' below the postbit avatars, accessible via the 'dots'. Using CES Parser perms, there is 'public' info and 'Storyteller info' in the MiniSheets and full Character Sheets, based on group membership.

turbosatan
12-29-2009, 10:44 AM
is there a way top only show the additional profile page if the user is a member of a certain usergroup?

and also is it possible to only show them if they have a certain value in another profile field

burlesque
12-31-2009, 11:22 AM
Sounds like you haven't done any of the ma nual edits as per the instructions.

Hi, I had done these changes already - I've checked, double checked and triple checked the code but still no joy.

:(

Wired1
12-31-2009, 06:19 PM
turbo: If you throw conditionals around the plugins / template calls, then yes. I'll add that to the list of the super version I'm working on.

burlesque: Did you move the profile fields to the page?

turbosatan
01-03-2010, 01:40 PM
turbo: If you throw conditionals around the plugins / template calls, then yes. I'll add that to the list of the super version I'm working on.



cool ill try it out

that would be great if you can add the ability to limit access in your super version

any plans for when that might be released?

Jd19
01-22-2010, 10:23 AM
dosen't work for me, I did everything you said but I don't know where to go to add / edit profile fields, please help (did all manual edits and overwrote admincp/profilefield.php with the new edits) but still dosen't work.

Any help would be great!

Wired1
02-22-2010, 05:42 AM
Adding profile fields in the AdminCP hasn't changed.

JesterP
04-02-2010, 02:45 AM
I hope I'm not alone but I really miss this mod for VB4.

Looking forward to the upgrade.

Jester

Wired1
04-02-2010, 02:52 AM
I hope I'm not alone but I really miss this mod for VB4.

Looking forward to the upgrade.

Jester

https://vborg.vbsupport.ru/showthread.php?t=229881

Welcome to 4 months ago :)

biftek
06-01-2010, 04:35 PM
Wired...

I'm not getting the link in the UserCP...

Followed the directions to edit the USERCP_SHELL and the profilefield.php templates/file, but it's not displaying the link to "Edit Extra Options".

Update...

Never mind Wired...I found a mod I have installed that conflicts with your mod. It's the User CP Icons mod. I just disabled that mod and this is working fine, now.

Ain't no thing, but a chicken wing...

not sure if this has alread been posted

but the work around is that you need to edit the icons for usercp i just edited the icons for usercp xml and reinstalled with over write on

the edit goes like this find <tr><td class="$navclass[profile]" nowrap="nowrap"><img src="$stylevar[imgdir_misc]/usercp_icons/user_edit.png">&nbsp;<a class="smallfont" href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_your_details]</a></td></tr>
after put

<tr><td class="$navclass[profile]" nowrap="nowrap"><img src="$stylevar[imgdir_misc]/usercp_icons/user_edit.png">&nbsp;<a class="smallfont" href="profile.php?$session[sessionurl]do=extra">$vbphrase[extra_options]</a></td></tr>

as i said then just reinstall the icons for usercp with overwrite on and it'll appear

karabaja3
12-09-2010, 04:11 PM
I have installed that conflicts with your mod. It's the User CP Icons mod. I just disabled that mod and this is working fine, now.

Ain't no thing, but a chicken wing...

Yeah! I have the same problem. How to use them jointly. They are great plugins.

Wired1
12-10-2010, 03:30 AM
Read the post before yours :)

shervin_dvb
03-31-2011, 09:44 PM
Hi
How to add profile fields to Above Signature ?
Please help me

ShawneyJ
05-06-2011, 08:49 AM
hi,

i have an MP3 player added in your profile fields page. its works like a charm, meaning i can see the MP3 player on the members profile. But the thing is, Me (Admin) is the only one that can see the MP3 player in a users profile. If i login as a test account as normal member, i can see the MP3 player, but as admin i can.

any tip please mate?

thx

Wired1
05-06-2011, 08:29 PM
hi,

i have an MP3 player added in your profile fields page. its works like a charm, meaning i can see the MP3 player on the members profile. But the thing is, Me (Admin) is the only one that can see the MP3 player in a users profile. If i login as a test account as normal member, i can see the MP3 player, but as admin i can.

any tip please mate?

thxThis mod doesn't have a public area. Perhaps you were thinking of this one (https://vborg.vbsupport.ru/showthread.php?t=208358)? Either way none of my mods have group permission code in them.

ShawneyJ
05-07-2011, 04:55 AM
This mod doesn't have a public area. Perhaps you were thinking of this one (https://vborg.vbsupport.ru/showthread.php?t=208358)? Either way none of my mods have group permission code in them.

hi mate, yeah i installed that mod to thinking it may help.

like we all no members dont need permission for profile fields but i just can work it out.

i'll add 2 screen shots, 1 from admin view and one from members/mod view of a members profile with MP3 player.

thanks for your support.

EDIT: ahhh found the problem, the profile fields did not show when using CYB login to user account hack. when i made a test account and logged in as normal the MP3 player was visible.

sorry about the confusion mate. great hack, nominated ;)

GavoTrav
08-21-2011, 01:43 PM
When you add it to that field it dissappears off the Profile fields in AdminCP how do you get it back?

ludachris
05-13-2013, 03:39 PM
Been a long time since the last reply, but...

Would it be possible to add a file upload option for a field?