PDA

View Full Version : Profile Enhancements - Extra Profile Fields Tab


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=208358)!

This product requires my Extra Profile Fields Page (https://vborg.vbsupport.ru/showthread.php?t=208356) product. This product places the Extra Profile Fields into a new tab on the user's Public Profile.

To Install:
1) Save the attached product-extratab.xml file.
2) Navigate to AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product]
3) Browse to wherever you saved the file.
4) Import!


NOTE: Support will only be given to those who have hit install.

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

Wired1
03-14-2009, 10:34 PM
Version History:
1.0.0 - Initial Release for 3.7.x
1.0.1 - Cached template
1.1.0 - Updated for 3.8.x, no code changes made.
1.1.1 - Fixed typo.
1.1.2 - Category titles now show up, added template

Wired1
03-14-2009, 11:01 PM
Reserved for future use.

gator777
03-15-2009, 04:50 AM
Hey Wired, tried to install, but I'm getting this error message

The product wired1_epfp_38x must be installed before this product may be installed. (Compatible starting with 3.0.0)

I have 3.8.1 installed...

Wired1
03-15-2009, 07:52 AM
Download the product file again and upload it, fixed a typo.

der_darkon
03-15-2009, 12:22 PM
Great Mod (together with Extra Profile Fields Page of course ;) )

There are just two tiny things i?m missing...

First, it would be perfect if the users could use their privacy settings on this extra-tab , like for any other tab on the profile.

Second, i have my profile fields ordered in multiple categories. Two of these categories are shown in the extra tab. It would be a good thing if the name of the categorie could be displayed before the first field of this category.

exyuteam
03-15-2009, 12:55 PM
I just downloaded this product and I have this error:eek:

The following dependencies were not met:
The product wired1_epfp must be installed before this product may be installed. (Compatible starting with 3.0.0)

I use VB 3.8.1 PL1. What is wired1_epfp?

gator777
03-15-2009, 04:02 PM
Thanks for the fix, and great mod. :)

Wired1
03-15-2009, 06:41 PM
First, it would be perfect if the users could use their privacy settings on this extra-tab , like for any other tab on the profile.

Second, i have my profile fields ordered in multiple categories. Two of these categories are shown in the extra tab. It would be a good thing if the name of the categorie could be displayed before the first field of this category.1. Never used the privacy settings myself, I'll look into it. I built the tab straight from the article here.
2. Do you have an example of this?


I just downloaded this product and I have this error:eek:

I use VB 3.8.1 PL1. What is wired1_epfp?

The product linked to and mentioned in the top of this thread. This is an add-on to that mod.

Jasem
03-19-2009, 02:33 AM
Great mod. , thank you!

Installed

Wired1
03-19-2009, 04:44 AM
Great mod. , thank you!

Installed

Not installed, you need to hit the INSTALL button on the thread. You too gator and exyuteam :)

Blackhat
03-20-2009, 07:51 PM
Is there a way to add anything into this tab ? I would like to publish each users wordpress articles in there by using rss feed ?

Thanks

repaire
03-22-2009, 02:44 PM
Hello Wired1
Great job, nice hack !

my question
By default, the extra tab is the last one on the right of the bar. would it be possible to place it at the 3rd place, after the "Additional Information" one ?

I don't know how to make it...:confused:

Thanks

Wired1
03-22-2009, 05:17 PM
Is there a way to add anything into this tab ? I would like to publish each users wordpress articles in there by using rss feed ?Please hit install for support.

It's possible I'd imagine, but you'd have to recode the tab. I'd recommend reading the article here on how to create a tab, and then modify it to what you need.


By default, the extra tab is the last one on the right of the bar. would it be possible to place it at the 3rd place, after the "Additional Information" one ?You can only place new tabs before or after the default ones, not in the middle as per the hook locations.

reverse1312
03-22-2009, 06:32 PM
Thank you for this good mod !

RedKilla
03-22-2009, 07:16 PM
Cant install..get the following error..

The following dependencies were not met:

1. The product wired1_epfp must be installed before this product may be installed. (Compatible starting with 3.0.0)

Wired1
03-22-2009, 08:20 PM
The error contains the solution, as does the description of this mod...

Please hit install.

Atakan KOC
03-25-2009, 04:40 PM
open file product-extratab.xml and find

<dependency dependencytype="product" parentproductid="wired1_epfp" minversion="3.0.0" maxversion="" />

replace

<dependency dependencytype="vbulletin" parentproductid="wired1_epfp" minversion="3.0.0" maxversion="3.9.9 Alpha 1" />

Wired1
03-25-2009, 06:11 PM
That is not correct. His problem is that he doesn't have the EPFP product installed...

Atakan KOC
03-25-2009, 08:39 PM
I've also reviewed many other code. example, Paul M code.

<dependency dependencytype="vbulletin" minversion="3.8.0" maxversion="3.8.99" />

Wired1
03-25-2009, 11:52 PM
What does that have to do with this?

Atakan KOC
03-26-2009, 04:16 PM
The product wired1_epfp must be installed before this product may be installed. (Compatible starting with 3.0.0)

the above error message during installation of plug-in was reported. I changed a line in the file if it will fix the problem wrote. That's it. I think I got it wrong I want to tell you.

Wired1
03-26-2009, 10:21 PM
When you got that error, did you have EPFP installed?

Atakan KOC
03-27-2009, 04:26 PM
Yes, I've uploaded for testing. The first load I saw this error. The code I provided above was compared with the change.

der_darkon
03-29-2009, 08:46 AM
1. Never used the privacy settings myself, I'll look into it. I built the tab straight from the article here.

Any news about that?

I think it?s really important since members can choose the privacy-setting for everything else in the profilepage.

der_darkon
04-21-2009, 09:43 AM
O guess it won´t matter if i´, asking or not.... *sigh*

Any news about the privacy-settings?

Wired1
04-21-2009, 01:25 PM
Thanks for the bump, forgot about that :) Reading up on it right now.

Actually, just tested it, and it worked for me. I marked a field on my test bed as private, and guests were no longer able to see it on the tab. Do you have the permissions set correctly in the usergroup manager?

Wired1
04-22-2009, 06:37 AM
Second, i have my profile fields ordered in multiple categories. Two of these categories are shown in the extra tab. It would be a good thing if the name of the categorie could be displayed before the first field of this category.Category titles now show up as of v1.1.2.

der_darkon
04-23-2009, 08:20 AM
1. Privacy Settings won´t work for me. I´ve set the two categories on "friends only" and any guest can see them.
Wich settings in the usergroup-manager should i change or take a look at?

2.The category titles are showing up at the profilpage, but not in die user-CP.

Wired1
04-23-2009, 02:14 PM
1. FYI to all, if you're running 3.8.1 you can't set permissions to categories. Apparently it worked in 3.8.0, broken in 3.8.1 (line of code went missing), and was fixed in 3.8.2. My test bed is of course 3.8.1 lol!

There's currently no way to enable privacy settings on custom tabs. A hook request was posted in January to extend the privacy settings, and I bumped it today.

2. To clarify, you are asking for the EPFP page to show categories? If so, that's something I've been working on, but haven't been able to get on the EPFP page as of yet. I'm getting closer though :)

der_darkon
05-07-2009, 11:25 AM
Ok, so i just have to wait and hope for the best :)

Wired1
05-07-2009, 04:50 PM
Hopefully they fix it in vB 4.0.

Travis641
05-23-2009, 12:34 AM
Is there anyway to hide the fields that haven't had anything imputed into them? Thanks :)

Wired1
05-23-2009, 01:49 AM
YOU can see those fields in your own profile, but you can't see empty fields in the profiles of others.

Saviour
07-07-2009, 02:44 PM
Hmmm...

I've run into an issue and not sure what's causing it. I use vb 3.8.3 and created custom profile fields for a user's PC Specs. While the PC Specs category is in my Admin CP/User Profile Fields/User Profile Field Categories...I don't see any of the fields there...just the category.

I can edit the category...but don't see where to edit the fields currently in that category.

Any suggestions?

Wired1
07-07-2009, 04:52 PM
Regardless of category the fields should still be available to edit in the Extra Profile Fields page.

Saviour
07-07-2009, 05:17 PM
Regardless of category the fields should still be available to edit in the Extra Profile Fields page.

So where is the Extra Profiles Field Page in the Admin Control Panel?

I need to modify a field by adding an additional radio button to that particular field.

Wired1
07-07-2009, 05:39 PM
Oh, I thought you meant the user couldn't edit it. All fields should still be under the User Profile Field Manager.

Saviour
07-07-2009, 05:55 PM
Oh, I thought you meant the user couldn't edit it. All fields should still be under the User Profile Field Manager.

I know...but they're not there. The PC Specs is in the User Profile Field Category Manager...and it states there's 18 fields there, but for the life of me do not see them anywhere.

Wired1
07-07-2009, 06:04 PM
Not a clue. What changed recently?

Saviour
07-07-2009, 06:05 PM
Not a clue. What changed recently?

Heh...I've added some mods and reinstalled vb3.8.3 with Google Adsense.

Wired1
07-07-2009, 08:32 PM
Haven't gone to 3.8.3 myself, but the changes shouldn't have done anything. What are the other mods?

Saviour
07-09-2009, 09:05 PM
Sorry, Wired....

I disabled all plugins and am still getting the same problem. So...I'm pretty sure it isn't a mod conflict. I have a lot of mods, too.

Do me a favor, though...

Go to your own Profile Field Manager...do you see the fields there for the PC Specs you created? I'm basically using mine for PC Specs, as well...yet the profile fields aren't there for me to edit. However, I do see the category I created...along with a note there that says this category contains 18 fields. Strange...

Steve from vBulletin told me to submit a support ticket, but I haven't done that, as of yet. I will though...and hope it all works out.

As it stands...I can't edit any of the profile fields I created for PC Specs. So...if I wanted to add another readio option, for example, I can't do that until I get this sorted.

Wired1
07-09-2009, 10:53 PM
Un/reinstall the EPFP mod. I remember running into this issue before, and it was when a manual edit wasn't done after an upgrade.

Saviour
07-09-2009, 11:07 PM
Well...right now. Jake from vBulletin is trying to figure things out...

Hopefully, if he doesn't find the problem. I'll try that. In the interim...he's got admin access and ftp access.

Wish you would have told me sooner so I could have tried that first.

Saviour
07-09-2009, 11:20 PM
Just tried what you suggested...and it did not work.

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

txsbmw
11-06-2009, 03:54 PM
Just a question what would I need to change to show it as the first tab instead of the last tab?

Wired1
11-07-2009, 01:41 AM
Just a question what would I need to change to show it as the first tab instead of the last tab?

This should help you out:
Go to AdminCP -> Plugins & Products -> Product : Wired1's Extra Profile Fields Tab -> Extra Profile Fields Tab, and then select edit.

Change 'profile_left_last' to 'profile_left_first'.

Wired1
12-09-2009, 01:30 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.

bada_bing
01-26-2010, 09:27 PM
How can I change the Tab to say something different the the default Extra Options?

viper357
01-31-2010, 07:52 AM
How can I change the Tab to say something different the the default Extra Options?

Go to "search in Phrases" under the Languages and phrases menu in your admincp and search for extra-options, select Phrase Variable Name Only then click find, then edit it to what you want.

viper357
01-31-2010, 07:54 AM
Wired1, thanks for this hack, been using it since 3.6.12 :)

Just upgraded to 3.8.4 and was wondering if there is a way to Bold the headings? Thanks.

111400

viper357
02-09-2010, 06:55 PM
Wired1, thanks for this hack, been using it since 3.6.12 :)

Just upgraded to 3.8.4 and was wondering if there is a way to Bold the headings? Thanks.

111400

Can anyone help? How do I make the extra profile field headings in the member profile in bold text? Thanks.

Wired1
02-22-2010, 05:45 AM
How can I change the Tab to say something different the the default Extra Options?Check the pic attached to the first post.


Just upgraded to 3.8.4 and was wondering if there is a way to Bold the headings? Thanks.Been a while since I looked at the code, but IIRC the look is done automatically by the default vB CSS code for those tabs. There's probably a way to apply different CSS to the tab, but I just got off a 16 hour work day, so I have no idea where to look lol.

viper357
02-22-2010, 09:54 AM
Been a while since I looked at the code, but IIRC the look is done automatically by the default vB CSS code for those tabs. There's probably a way to apply different CSS to the tab, but I just got off a 16 hour work day, so I have no idea where to look lol.
Stop working so hard :p

I've had a poke around and found this, in the memberinfo_css_EPFP_tab

#EPFP_tab li.profilefield_category {
font-weight:bold;
margin-top:6px;
}
#EPFP_tab dl.profilefield_list {
font-weight:normal;
margin:6px 16px 0px 16px;
}
#EPFP_tab dl.profilefield_list dd {
margin-bottom:6px;
margin-left:0px;


In the 2nd piece of code, if I change the 'normal' to 'bold' then it makes all the text in the tab bold. The 1st piece of code doesn't seem to do anything when I change it, am I fiddling in the right place? :o

Wired1
02-22-2010, 06:27 PM
I think there's other CSS code that does the mark up for the tabs in general. You'd have to find the reference to that, change it to a different CSS template (or whatever it is), and then change the fields.

Could've sworn I figured out how to do that before, can't remember ATM.

gator777
02-22-2010, 07:39 PM
@Wired1

Will you be creating a tab in the user's profile for your script?

AllinJac
04-11-2010, 01:19 AM
Going to install now...

Give her a shot!

THanks!!!

identitas
04-25-2010, 01:18 PM
Does this work on 4.0?

marrr
06-04-2010, 07:05 PM
Whats the status of moving this to vb4?
thanks

Wired1
06-04-2010, 09:12 PM
Ready to go after someone showed me their version of it. Turns out while trying to make it use the new calls in vB 4 it was just overcomplicating it. Removed a bunch of code and it works, albeit not as aesthetically pleasing as I'd like. Going to give it one last try tomorrow, otherwise it'll be released as BETA (no bugs or anything) probably on Sunday.

Wired1
06-09-2010, 05:46 AM
*cough* 4.0 *cough*
https://vborg.vbsupport.ru/showthread.php?t=244255

FreshFroot
12-01-2010, 05:56 PM
Just a quick question.

I noticed in vB3 once you reach a certain limit of tabs. An arrow button shows up to open the other tabs.

Is there a way to stop this arrow from showing and having another row of tabs show up? Kinda like how vB4 does it?

Wired1
12-06-2010, 06:53 AM
That's outside the realm of this mod.

Chadi
04-18-2012, 11:43 AM
Getting this error when I attempt to view profile manager

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

Wired1
04-18-2012, 03:06 PM
Getting this error when I attempt to view profile manager

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

I'm guessing a manual code edit wasn't done properly, or a separate mod is interfering.

LostForWords
07-03-2012, 12:41 AM
Hey there, currently the tab and content of the tab doesn't show when a profile field isn't entered. However I'd like them both to show, even if there is no content.
(I need this because I'm installed the other extra profile fields page multiple times, and if somebody chooses not to enter a profile field in the main extra options page, but does fill a field from another then it doesn't show the tab ;l).

I've managed to get the tab button to show by modifying this:

* Whether to return an empty wrapper if there is no content in the blocks
*
* @return bool
*/
function confirm_empty_wrap()
{
return false;
}

However the template for the epfp tab still isn't parsed and thus anything else that I've coded in that tab doesn't show.

TravisWPaquin
09-26-2012, 06:00 PM
I uploaded the plugin and your other mod, but my new tab does not show and if it did where would I add it, change the name, settings, etc?

Thanks.

blind-eddie
10-18-2012, 02:30 PM
I uploaded the plugin and your other mod, but my new tab does not show and if it did where would I add it, change the name, settings, etc?

Thanks.

To get the tab to show, you need to select "Options: Extra Options" in the Display Page Section at the bottom of the edit profile field.

To change the name of the tab, Search in phrases for extra_options, change the name to what ever you want it to be, click save.

ludachris
05-13-2013, 04:35 PM
Considering using this as a the basis for vehicle sub-profiles instead of some of the other plugins that are out there. I'm wondering if it would be possible to have an avatar associated with each tab. And maybe a mini photo gallery for each tab. And then finally, have an option for the tab to display under the username in postbit. Or at the very least, figure out a way to throw in some code that checks to see if the user has tab ID # and then display it in some templates - if tab ID 3 is not empty, then display this html here.

Wired1
05-14-2013, 12:35 AM
Considering using this as a the basis for vehicle sub-profiles instead of some of the other plugins that are out there. I'm wondering if it would be possible to have an avatar associated with each tab. And maybe a mini photo gallery for each tab. And then finally, have an option for the tab to display under the username in postbit. Or at the very least, figure out a way to throw in some code that checks to see if the user has tab ID # and then display it in some templates - if tab ID 3 is not empty, then display this html here.It's outside the realm of this mod, but I suppose it could be done. The easiest way would be to have two fields:

field a - pictureID from an album for the avatar
field b - albumID for the photo gallery

Then some swanky code for the pics (or just re-use the vB gallery code).

Inna
11-27-2016, 11:57 AM
I'm using vB 4.2.3 PL 2, and I'm having both Extra Profile Fields Page and Extra Profile Fields Tab, but when the Tab product is enabled, it shows error on the header of profile member page:
PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: memberinfo_css_EPFP_tab in ..../includes/functions.php on line 4602

PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: memberinfo_profilefield in ..../includes/functions.php on line 4602
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/speciali/domains/special.ir/public_html/forum/member.php(599) : eval()'d code(176) : eval()'d code on line 2
PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: memberinfo_profilefield in ..../includes/functions.php on line 4602
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/speciali/domains/special.ir/public_html/forum/member.php(599) : eval()'d code(176) : eval()'d code on line 2
PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: memberinfo_profilefield in ..../includes/functions.php on line 4602
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/speciali/domains/special.ir/public_html/forum/member.php(599) : eval()'d code(176) : eval()'d code on line 2
PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: memberinfo_profilefield in ..../includes/functions.php on line 4602
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/speciali/domains/special.ir/public_html/forum/member.php(599) : eval()'d code(176) : eval()'d code on line 2
PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: memberinfo_profilefield in ..../includes/functions.php on line 4602
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in /home/speciali/domains/special.ir/public_html/forum/member.php(599) : eval()'d code(176) : eval()'d code on line 2

Before this time, I've used this product with no error, but seems today it's showing error.

In the line 4602 functions.php:
trigger_error('fetch_template() calls should be replaced by the vB_Template class. Template name: ' . htmlspecialchars_uni($templatename), E_USER_WARNING);

and in line 599 member.php, it is:
($hook = vBulletinHook::fetch_hook('member_build_blocks_sta rt')) ? eval($hook) : false;

What should I do? Any comments rather than disabling this product?

PHP version is 5.6.28

Wired1
11-27-2016, 06:43 PM
I've never seen those errors before. How'd you install a 3.8.x mod on 4.x?

Inna
11-28-2016, 07:29 AM
How? Easily!
Just installed it with no further actions

MarkFL
11-28-2016, 07:59 AM
You will need to port that product to vB 4.2.x if you intend to use it. vB 3.8.x and vB 4.2.x use different methods for rendering templates.