View Full Version : Profile Enhancements - Extra Profile Fields Page
Wired1
12-09-2009, 10:00 PM
For those upgrading from the 3.8.x mod, read this (https://vborg.vbsupport.ru/showpost.php?p=1928067&postcount=3).
Don't forget to hit INSTALL! (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=229881)
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 (https://vborg.vbsupport.ru/showpost.php?p=1928066&postcount=2)
Known Bugs (https://vborg.vbsupport.ru/showpost.php?p=1928067&postcount=3)
================
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! (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=229881)
Support will only be given to people who have hit install.
Wired1
12-09-2009, 10:44 PM
vB Phrases:
extra_options_updated - Simple message posted after you hit the SAVE button on the page. (currently NOT working)
edit_extra_options - Name of UserCP link, breadcrumb link, and main header.
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:
4.0.0 - Initial Release for 4.0.0 Beta 5
Wired1
12-09-2009, 10:45 PM
KNOWN BUGS:
-Redirect isn't working, so after a user saves his page they will be redirected to the userCP instead of the page like before. No redirect message pops up. - Apparently a vB patch between 4.0.0 and 4.0.3 fixed this.
FOR THOSE UPGRADING FROM 3.8.X: I haven't tested an upgrade scenario as of yet, however I did a small problem with the 3.8.x page template being overwritten and throwing a DB error. Just delete the page template manually and then re-upload the product.
Wired1
12-09-2009, 10:46 PM
NOTE: I am also working on a more comprehensive update to this mod which will allow multiple (and unique) pages to be created on the fly and that will be independent of profile fields. It will be a new product.
Later I'll pop up an example of how to manually create more than one page, but considering both the mod and forum is in BETA (not to mention the afforementioned update), don't expect it for a while. Feel free to check out the 3.8.x mod thread for some guidelines if you'd like to attempt this yourself. Aside from the code changes, it's the same types of edits.
Wired1
12-09-2009, 11:17 PM
Reserved for future use.
Wired1
12-09-2009, 11:24 PM
Reserved for future use.
Cool, I'll probably be using this soon. Thanks!
mbc100
12-10-2009, 10:43 AM
Cool, I'll probably be using this soon. Thanks!
me too
abdobasha2004
12-10-2009, 10:44 AM
nice
reserved !
I also think it can be made by template edit
Wired1
12-10-2009, 03:44 PM
abd: reserved for what?
Also, clarify what can be made by a template edit?
taffy056
12-12-2009, 11:07 AM
can I ask before I install this, will I be able to make a bunch of links that are clickable for this? thanks :)
Wired1
12-12-2009, 04:22 PM
It's just splitting off the profile fields to a new edit window. This mod does NOT change the properties or limitations of profile fields.
gator777
12-12-2009, 07:32 PM
Nice work wired1. I will be patienly waiting for your "Extra Profile Fields Tab". :D
Wired1
12-12-2009, 07:42 PM
Yeah, I guess I should get to work on that one lol.
grey_goose
12-14-2009, 01:33 AM
I have this set up as a tab in member.php... how do i open this tab by default with the:
/member.php?$session[sessionurl]u=$bbuserinfo[userid]&tab=tabname ?
Wired1
12-14-2009, 07:55 AM
&tab=EPFP_tab
Are you using my 3.8.x tab mod, or did you create your own?
Sarcoth
01-01-2010, 05:10 PM
KNOWN BUGS:
-Redirect isn't working, so after a user saves his page they will be redirected to the userCP instead of the page like before. No redirect message pops up.
Is this still a bug? I've been a big user of this mod since back in 3.6, but I'd like it to be redirected to the page you just edited. I know it works on my 3.7 site correctly. Any idea what code is broken?
xbrian88
01-12-2010, 07:22 PM
and Profile Fields in a Postbit Dropdown for Vbulletin 4???
Verionia
01-12-2010, 11:37 PM
yea, is this going to show as a dropdown like you have in your demo - in the postbit ?
Tagged for future release when no PHP edits required.
xbrian88
01-13-2010, 07:59 PM
news?
LifesGreatestGift
01-17-2010, 05:49 AM
This needs to be upgraded to support 4.0.1
Thanks for the mod :)
LifesGreatestGift
01-17-2010, 06:04 AM
NVM :) I failed to read the instructions :) Works fine :)
xbrian88
01-18-2010, 06:51 AM
and Profile Fields in a Postbit Dropdown for Vbulletin 4???
xbrian88
01-24-2010, 09:24 AM
news????
Ted S
01-31-2010, 01:34 AM
Working great in 4.0.1. Thanks as always.
smartkidbk5
02-22-2010, 02:52 AM
Great mod. But something I think would be a great option is to have multiple extra pages. Is it possible to do this now? Or maybe you can add it in the next release? :)
Wired1
02-22-2010, 05:46 AM
Great mod. But something I think would be a great option is to have multiple extra pages. Is it possible to do this now? Or maybe you can add it in the next release? :)It's possible (copy the plugins, change some variables, additional manual edits), but it's fugly on the back end. The upgraded version of the mod (DB driven) will allow an infinite number of pages if/when I can get free time to do anything other than work (e.g. just got off a 16 hour work day).
To others: Support will only be given to people who have hit install.
gator777
02-23-2010, 02:06 PM
@Wired1 - When will you be adding a TAB or Block for this?
Thanks in advance. :)
BBR-APBT
03-01-2010, 03:42 AM
extra page went blank in 4.0.2
Edit simple fix was to reinstall.
gundarN
03-14-2010, 11:01 PM
Used this mod for a while now, and am patiently waiting for the Tab mod to be completed.
Wired1
03-14-2010, 11:52 PM
Working on it right now actually. Man do I hate code refreshes :)
Mr.David
03-21-2010, 03:40 PM
I have created instructions for Italians,you could put it as an attachment?
MarkoXaser
04-06-2010, 06:31 PM
please the dropdown menu????
guvner
04-08-2010, 06:01 PM
and Profile Fields in a Postbit Dropdown for Vbulletin 4???
I love this mod and have used it since it first came out - especially the postbit drop down extension it used to have.
Because I run a tech support forum, this was the best way of preventing members from clogging up their signature lines with system specs.
Is there an ETA on the drop down addon to this mod?
Many thanks!
Mike :)
Dave-M
04-13-2010, 12:09 AM
Because I run a tech support forum, this was the best way of preventing members from clogging up their signature lines with system specs.
Is there an ETA on the drop down addon to this mod?
Many thanks!
Mike :)
Yes, patiently waiting for this before I upgrade to V4 too. :)
Chalex4
05-22-2010, 06:11 PM
Any update on making the fields show in postbit/member pages?
Wired1
05-22-2010, 06:26 PM
Please post in the appropriate threads and not this one. Having said that, yes and no. Dropdown KINDA works, but looks like shit. Can't get profile fields to output to the tab whatsoever, but I can get the array (but not what's within it) to be recognized... wahoo... :(
tommac3
05-23-2010, 11:04 PM
How do I get these to show up under my name in my posts?
Like :
tommac
supporting member
myfield1 this is my answer
Wired1
05-24-2010, 12:35 AM
Please read my last post as well as the first post.
sulasno
06-09-2010, 06:35 AM
tagged and thanks
justoverclock
07-19-2010, 02:32 PM
i see a blank page in my hardware options
.the filed are created and set to view in extra options
ù.
why don't work?
marrr
07-31-2010, 03:32 AM
Below is an example of the code I used to create a dropdown menu in the postbit_legacy template. The code mimics the code used in the forum menu for creating a dropdown menu, only this one does not use links but rather static text.
Instructions:
Replace all Instances of $post['field#'] to list the proper field name of each custom profile field you wish to include and follow the format below to add additional fields. Only 3 fields were shown in the code to reduce the length of it. When adding a new field you should add it to the first vB conditional as well as the code for listing it. The conditional for displaying each field is optional and by some may be considered excessive, this is entirely up to you! You also do not have to use inline styling as I have but this was thrown together quickly to get something that works.
<!-- post specs_menu -->
<vb:if condition="$post['field#'] OR $post['field#'] OR $post['field#']">
<div class="userinfo_extra">
<ul>
<li class="popupmenu">
<a href="javascript://" class="popupctrl" accesskey="6">Computer Specs</a>
<ul class="popupbody popuphover">
<vb:if condition="$post['field#']">
<li style="width:300px;color:#808080"><span style="font-weight:bold;color:#EEE;">Case:</span> {vb:raw post.field#}</li>
</vb:if>
<vb:if condition="$post['field#']">
<li style="width:300px;color:#808080"><span style="font-weight:bold;color:#EEE;">Motherboard:</span> {vb:raw post.field#}</li>
</vb:if>
<vb:if condition="$post['field#']">
<li style="width:300px;color:#808080"><span style="font-weight:bold;color:#EEE;">Processor:</span> {vb:raw post.field#}</li>
</vb:if>
</ul>
</li>
</ul>
</div>
</vb:if>
<!-- / post specs_menu -->
I hope this helps and that I have posted this code in the right section :P
Neo_obs
07-31-2010, 09:46 PM
I fixed the redirect a couple ways... Although I think the plugin edit is the only thing needed I added the rest of my edits because they make sense.
In the "Creates Extra Profile Field Page" plugin add this just after $userdata->save();
$vbulletin->url = 'profile.php?' . $vbulletin->session->vars['sessionurl'] . 'do=extra';
eval(print_standard_redirect('redirect_extra_optio ns_updated', true, true));
And then overwrite the "page" template with this
<form action="profile.php?do=updateextra" method="post">
<input type="hidden" name="do" value="{vb:raw updateextra}" />
<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="updateextra" />
</div>
</div>
</form>
There were two inputs with the name do which I think confused the browser, at least it confused me. Also it appears that the forms are now submitted to profile.php?do=(updatepage) So I changed that as well and removed duplicate inputs for s and securitytoken, again not needing a duplicate of everything.
justoverclock
08-14-2010, 01:51 PM
Below is an example of the code I used to create a dropdown menu in the postbit_legacy template. The code mimics the code used in the forum menu for creating a dropdown menu, only this one does not use links but rather static text.
Instructions:
Replace all Instances of $post['field#'] to list the proper field name of each custom profile field you wish to include and follow the format below to add additional fields. Only 3 fields were shown in the code to reduce the length of it. When adding a new field you should add it to the first vB conditional as well as the code for listing it. The conditional for displaying each field is optional and by some may be considered excessive, this is entirely up to you! You also do not have to use inline styling as I have but this was thrown together quickly to get something that works.
<!-- post specs_menu -->
<vb:if condition="$post['field#'] OR $post['field#'] OR $post['field#']">
<div class="userinfo_extra">
<ul>
<li class="popupmenu">
<a href="javascript://" class="popupctrl" accesskey="6">Computer Specs</a>
<ul class="popupbody popuphover">
<vb:if condition="$post['field#']">
<li style="width:300px;color:#808080"><span style="font-weight:bold;color:#EEE;">Case:</span> {vb:raw post.field#}</li>
</vb:if>
<vb:if condition="$post['field#']">
<li style="width:300px;color:#808080"><span style="font-weight:bold;color:#EEE;">Motherboard:</span> {vb:raw post.field#}</li>
</vb:if>
<vb:if condition="$post['field#']">
<li style="width:300px;color:#808080"><span style="font-weight:bold;color:#EEE;">Processor:</span> {vb:raw post.field#}</li>
</vb:if>
</ul>
</li>
</ul>
</div>
</vb:if>
<!-- / post specs_menu -->
I hope this helps and that I have posted this code in the right section :P
not work for me, the position of code???, where in postbit legacy?
justoverclock
08-14-2010, 02:19 PM
work for me thanks!!!!!!!!!!!
wipedout
08-25-2010, 01:36 PM
i found 1 bug and i have a request as well.
first of all, when i change my settings in the extra tab, my emails and such from the standard profile settings get reset, msn and such.
secondly, is it possible to make it "register" as an own setting?
tommac3
08-28-2010, 04:14 AM
Any update on the using this as part of the profile
alexp999
08-29-2010, 11:57 AM
i found 1 bug and i have a request as well.
first of all, when i change my settings in the extra tab, my emails and such from the standard profile settings get reset, msn and such.
secondly, is it possible to make it "register" as an own setting?
I've just fixed this bug by applying the following fix. I know it wasnt intended to fix this, but I thought I would give it a shot and it worked! :D
https://vborg.vbsupport.ru/showpost.php?p=2077375&postcount=44
Wired1
08-30-2010, 05:13 AM
wipedout: So you mean instead of editing the fields in the EPFP, you're going into the tab from the addon and editing them there? Are they ACTUALLY deleted (e.g. you're checking the adminCP), or you just don't see them in the appropriate tab if you switch to it? If the latter, refresh the page, sounds like an AJAX thing.
tommac3: Can you be more specific on your question please?
alexp999: The redirect "bug" had nothing to do with the mod. When I upgraded the test bed, the issue went away. Didn't come back on a complete wipe / reinstall of the test bed.
alexp999
08-31-2010, 12:00 PM
Wired1, I've experienced what wipedout was refering to.
When you go to "Settings" (usercp), and click edit "extra fields" (or whatever you ve named the page), and click save, it wiped out the data that you had, in some of the normal profile fields, such as msn address, etc.
The fix I linked to, seems to send the information as a different "do" instead of the same as the normal profile page, which therefore fixes the issue of the data being wiped out.
xbrian88
10-27-2010, 01:22 PM
problem with 4.0.8
https://vborg.vbsupport.ru/external/2010/10/13.jpg
please help me!!!
DS MrSinister
10-27-2010, 09:57 PM
re-import the product Allow Overwrite Yes. worked great for me sir.
xbrian88
10-28-2010, 08:35 AM
Below is an example of the code I used to create a dropdown menu in the postbit_legacy template. The code mimics the code used in the forum menu for creating a dropdown menu, only this one does not use links but rather static text.
Instructions:
Replace all Instances of $post['field#'] to list the proper field name of each custom profile field you wish to include and follow the format below to add additional fields. Only 3 fields were shown in the code to reduce the length of it. When adding a new field you should add it to the first vB conditional as well as the code for listing it. The conditional for displaying each field is optional and by some may be considered excessive, this is entirely up to you! You also do not have to use inline styling as I have but this was thrown together quickly to get something that works.
<!-- post specs_menu -->
<vb:if condition="$post['field#'] OR $post['field#'] OR $post['field#']">
<div class="userinfo_extra">
<ul>
<li class="popupmenu">
<a href="javascript://" class="popupctrl" accesskey="6">Computer Specs</a>
<ul class="popupbody popuphover">
<vb:if condition="$post['field#']">
<li style="width:300px;color:#808080"><span style="font-weight:bold;color:#EEE;">Case:</span> {vb:raw post.field#}</li>
</vb:if>
<vb:if condition="$post['field#']">
<li style="width:300px;color:#808080"><span style="font-weight:bold;color:#EEE;">Motherboard:</span> {vb:raw post.field#}</li>
</vb:if>
<vb:if condition="$post['field#']">
<li style="width:300px;color:#808080"><span style="font-weight:bold;color:#EEE;">Processor:</span> {vb:raw post.field#}</li>
</vb:if>
</ul>
</li>
</ul>
</div>
</vb:if>
<!-- / post specs_menu -->
I hope this helps and that I have posted this code in the right section :P
not work me in VB 4.0.8... the position of code???, where in postbit legacy?
xbrian88
10-29-2010, 07:32 AM
???
DS MrSinister
10-29-2010, 12:45 PM
how about using this hack here https://vborg.vbsupport.ru/showthread.php?t=248651
Hall of Famer
11-12-2010, 06:48 AM
umm can the new profile field page and tab be used as iframes that link to a page outside of the forum?
Wired1
11-12-2010, 12:56 PM
problem with 4.0.8
please help me!!!I'll try to duplicate it this weekend. Sorry for the delayed response, never got an email that said the thread had new posts.
re-import the product Allow Overwrite Yes. worked great for me sir.Huh?
umm can the new profile field page and tab be used as iframes that link to a page outside of the forum?Please clarify as to what you're wanting to do? If you just want a link in the UserCP that links outside of the forum you certainly don't need this mod.
DS MrSinister
11-12-2010, 02:09 PM
well my good sir Wired1. when upgrading from 4.0.7 to 4.0.8 your mod stop working. so i tried reinstalling the xml then it start working again.
OcR Envy
11-15-2010, 07:47 PM
There is an error in your instructions
FIND:
<li class="{vb:raw navclass.profile}"><a href="profile.php?{vb:raw session.sessionurl}do=editprofile">{vb:rawphrase edit_your_details}</a></li>
After it post:
<li class="{vb:raw navclass.profile}"><a href="profile.php?{vb:raw session.sessionurl}do=extra">{vb:rawphrase edit_extra_options}</a></li>
Should be:
FIND:
<li class="{vb:raw navclass.profile}"><a href="profile.php?{vb:raw session.sessionurl}do=editprofile">{vb:rawphrase edit_your_details}</a></li>
After it post:
<li class="{vb:raw navclass.extra}"><a href="profile.php?{vb:raw session.sessionurl}do=extra">{vb:rawphrase edit_extra_options}</a></li>
Wired1
11-15-2010, 11:58 PM
Good catch, thanks!
kether1
01-15-2011, 06:31 PM
After the 4.1.1 update, the extra page doesn't show in the settings page. Clicking on the link doesn't display it either. The tab (the other product) still seems to display the information and it is editable there within the tab.)
Any fix?
Thanks.
Kether
Wired1
01-15-2011, 06:44 PM
You need to re-do the manual edits.
kether1
01-15-2011, 07:07 PM
You need to re-do the manual edits.
Yes, I did the two edits. One to insert the link on the settings page and the other to the php file. Am I missing something else?
Thanks
Kether
EDIT: I found the problem in the product file. I did the redirect edit and missed a "{". Sorry for the bother. Love this product!!
LVGgebruiker
01-17-2011, 07:27 PM
First off all thank you for your mod, i like it!
But i also have an short question: which Profile Fields in a Postbit Dropdown mod did you use? i cann't find any but i realy like it how it's made on your forum. Please could you point me in the right direction?
UPDATE: found it :-)
LVGgebruiker
01-18-2011, 06:26 PM
I need some help with an little tweak (i think).
I want to make an field where user's can put in one or more url's from there website's. That is not a big problem but those url's must be clickable. (use your tab mod to and the dropdown postbit)
I did tweak the dropdown postbit so the url do show up as an link with this code
<li class="left">Webwinkel-adres: </li>
<li class="right"><a href="{vb:var post.field5}">{vb:var post.field5}</a></li>
And that is working for one url (text) line, when people do add an second it is not working. Do you have any tips for fixing that?
Second question where and how do i change the template of the dropdown menu? The problem i now have is that when user's have a very long url it will fallout of the template.
I hope you can and will help me and sorry for crappy english.
Saviour
03-08-2011, 10:40 AM
Couldn't find it in this thread...maybe I'm blind. Anyway, how do you change the link in the User CP to read, "Edit PC Specs", rather than "Edit Extra Options"?
Sorry if this has been covered before...
Saviour
03-08-2011, 10:44 AM
Never mind...found it.
Saviour
04-18-2011, 02:23 PM
Hello, Wired...
Although I have an extra tab in a user's Profile...and their PC Specs show up there...with the ability to edit, etc....and it works in the dropdown....the link in the USERCP is not working. It returns a blank page.
Here's my link:
http://www.xxxxxxxxxxxxxx.com/forum/profile.php?do=extra
Any idea why the link to edit a user's PC Specs wouldn't work?
Saviour
04-18-2011, 02:29 PM
Never mind, Wired...
I just re-imported the product and allowed overwrite. It's working now.
Sorry...
BaziCenter
06-04-2011, 06:01 AM
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.
grey_goose
06-27-2011, 03:26 AM
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.
Wired1
06-27-2011, 03:37 AM
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.
LifesGreatestGift
06-27-2011, 11:40 PM
I took your mod to the next level ;) look at attachment.
DS MrSinister
06-28-2011, 12:33 AM
wow that's awesome TheWindows7Site. hopefully Wired1 will let you post it.. :D
Wired1
06-28-2011, 03:50 AM
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.
LifesGreatestGift
06-28-2011, 06:54 PM
that was actually a screen of my postbit_legacy.. Im not using the Tab mod.
Scalemotorcars
07-20-2011, 08:06 PM
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?
Scalemotorcars
07-20-2011, 08:37 PM
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.
<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.
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....
// 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:
ryohnosuke
07-21-2011, 01:18 PM
Are you sure that it works? I've updated with your code but extra options still missing.
Saludos.
Scalemotorcars
07-21-2011, 03:40 PM
Make sure to follow the original directions. All I did was manually change the template name in the 2 plugins and created my own template since the PAGE template is used by the Facebook feature.
It may be better to open the original XML file and change things there first before importing the product. Its not my hack so I dont want to add the fixed xml.
Also try clearing your browser cache.
ryohnosuke
07-21-2011, 05:40 PM
The same thing, tested on vB 4.14 and vB 4.15 Beta1. :(
Saludos.
DeanoG
08-05-2011, 09:39 PM
Thanks Scalemotorcars for the modified code.. worked perfectly . confirmed working on VB 4.1.5 PL1
OcR Envy
08-27-2011, 12:43 AM
+1 on Scalemotocars fix working fine.
ryohnosuke
08-27-2011, 01:03 AM
I don't know how, but I replace all "extra" words for "mypc" and edited on the template, and it works xD
Saludos.
Bill Thebert
09-04-2011, 04:56 AM
I just installed this product on 4.1.5 PL1 and it looks like it will suit my needs perfectly. Thanks.
The only thing I want to change, however, is as follows:
I would like the "Edit Extra Options" link (Settings > My Settings > Edit Extra Options) to appear ONLY if the user belongs to a particular usergroup (Group ID = 14). I would like the link to be visible regardless of whether ID=14 is someone's PRIMARY usergroup, or whether it's an "additional" usergroup. I assume I have to put a conditional around the edit that was made to the USERCP_SHELL template? Can you (or anyone?) help with this?
Similarly, I would like to also install the "Extra Tab" product -- but with the same conditional. The newly added tab should be visible ONLY to those users belonging to usergroup=14 (as either a primary or a secondary usergroup). Is that possible?
Lastly, I think one more small template edit might be required; for if I go to the admincp and review any OTHER user, the name of the extra page isn't reflected properly in the header above the extra profile fields. I can provide a screen capture if my explanation isn't clear.
Best,
Bill
Bill Thebert
09-05-2011, 05:12 AM
Mischief managed. I figured out the appropriate conditional to solve my first question above.
I'd still like to make use of the "extra tab" add-on, with a similar conditional, however.
marrr
09-06-2011, 01:09 AM
Thanks Scalemotorcars!
stuartn
11-02-2011, 09:48 AM
Mischief managed. I figured out the appropriate conditional to solve my first question above.
I'd still like to make use of the "extra tab" add-on, with a similar conditional, however.
Can you please confirm how - as I would be interested in the same option :)
RhysH
01-29-2012, 01:49 PM
can someone explain to me how to add another page on top of the current one i installed from here.
thanks
principino1984
04-24-2012, 09:13 PM
not working anymore for me on vb 4.1.12 :(
Marco
The Rocketeer
05-03-2012, 02:54 AM
yes, doesnt work, both this and the tab mod are broken, :(
edit: just made them both work, I think i missed some instructions before, eg. you have to go into the profile fields manager and import them to the new extra profile fields section, then both this and the tab will work. Its working fine with vB4.1.12 now :)
chiggy
05-26-2012, 05:42 PM
Sir Wired1
Sir I have Install On My Test Site Vb4.1.4 finaly your EXTRA PROFILD PAGE AND EXTRA PROFILE FIELD TAB worked but sir I Dont Wont To See The Defult Name I Want System Spec Name On Profile Edit Option And Also On View Profile Plz Specify Step By Step What I Need To Change To Change The Defult Name ? Plz Give Instruction With Exmple I want To Install This Mod On My Main Site When I Finay Install On Test Site Perfectly. So Plz Guide Me.
Thanx In Advanced And Also Very Very Thanx For This Great Mod.
Your New Friend.
SouthpawK
06-15-2012, 01:57 AM
Has anyone tried this on vb 4.2? Does it work?
Thanks...
The Rocketeer
07-22-2012, 06:08 PM
I think it should if you follow this
edit: oops..looks like I spoke too soon, I am having problems to get this working with 4.2. I will see If I can get it working and get back.
|| ********************************** ||
|| Extra Profile Fields Page by Wired ||
|| ||
|| Version 4.0.0 ||
|| - Initial Release for vB 4.0.x ||
|| ||
|| ||
|| ||
========================================
Install the product, then:
====================================
// This adds the actual edit button on the left nav of the User CP under Edit Your Details. Feel free to move it wherever you'd like.
Go to the vBulletin AdminCP -> Styles & Templates -> Style Manager -> (Select Style) -> User Control Panel Templates -> USERCP_SHELL
FIND:
<li class="{vb:raw navclass.profile}"><a href="profile.php?{vb:raw session.sessionurl}do=editprofile">{vb:rawphrase edit_your_details}</a></li>
After it post:
<li class="{vb:raw navclass.extra}"><a href="profile.php?{vb:raw session.sessionurl}do=extra">{vb:rawphrase edit_extra_options}</a></li>
====================================
The following code adds an extra area to: User Profile Fields -> User Profile Field Manager
// *** open admincp/profilefield.php
find
"$vbphrase[options]: $vbphrase[other]"
replace with
"$vbphrase[options]: $vbphrase[other]",
"$vbphrase[options]: $vbphrase[extra_options]"
find
5 => "$vbphrase[options]: $vbphrase[other]",
add under
6 => "$vbphrase[options]: $vbphrase[extra_options]",
// *** save and close admincp/profilefield.php
====================================
NOTE: Any fields marked for this page will not be seen in the user's profile.
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 (see below)
I'd like to have this for 4.20, going to try it.
TheSupportForum
09-12-2012, 11:38 AM
I'd like to have this for 4.20, going to try it.
its not needed for 4.2.0
4.2.0 allows you to add extra profile fields
my website already has 1 extra profile tab for other profile fields
Wired1
09-12-2012, 06:03 PM
its not needed for 4.2.0
4.2.0 allows you to add extra profile fields
my website already has 1 extra profile tab for other profile fieldsLOL, really? They finally added this functionality to vB? Wow, only took 7 years...
grey_goose
12-14-2012, 12:58 PM
Did you ever create the mod that allows creation of multiple extra pages?
grey_goose
12-16-2012, 12:17 PM
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.
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?
grey_goose
12-17-2012, 08:10 PM
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:
<input type="hidden" name="do" value="updateprofile" />
Replace With:
<input type="hidden" name="do" value="updateYOURTEMPLATENAME" />
Plugin at profile_start:
Find:
// save the data
$userdata->save();
}
Replace with:
// save the data
$userdata->save();
$vbulletin->url = 'profile.php?' . $vbulletin->session->vars['sessionurl'] . 'do=YOURTEMPLATENAME';
eval(print_standard_redirect('redirect_updatethank s', true, true));
}
Now additional pages will redirect back to themselves after saves/edits.
Chadi
02-01-2013, 09:57 PM
I would appreciate help on this issue I'm having in this thread, which is related.
https://vborg.vbsupport.ru/showthread.php?t=294569
Paolitus
04-18-2013, 07:21 PM
work on 4.2.0
Thank you
RhysH
10-20-2013, 05:38 PM
Anyone managed to get this working for vb 4.2.1?
I keep getting blank page on the edit page (profile.php?do=extra)
s_cocis
10-23-2013, 06:53 PM
with 4.2.2 work.
Figured this out. What was missing was the button value and redirect in the plugin:
In your new page template:
Find:
<input type="hidden" name="do" value="updateprofile" />
Replace With:
<input type="hidden" name="do" value="updateYOURTEMPLATENAME" />
Plugin at profile_start:
Find:
// save the data
$userdata->save();
}
Replace with:
// save the data
$userdata->save();
$vbulletin->url = 'profile.php?' . $vbulletin->session->vars['sessionurl'] . 'do=YOURTEMPLATENAME';
eval(print_standard_redirect('redirect_updatethank s', 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:
eval(print_standard_redirect(array('redirect_updat ethanks', $vbulletin->userinfo['username']), true, true));
kevius
10-05-2017, 01:26 PM
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 !
oneill
09-25-2019, 08:55 AM
Can't get the dropdown button to be shown near to avatar like in the example :/ any thoughts ?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.