PDA

View Full Version : Profile Enhancements - Extra Profile Fields Tab


Wired1
05-23-2008, 10:00 PM
Don't forget to hit INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=180329)!

This is an evolution of my Additional Section within Profile and Dropdown within Posts (https://vborg.vbsupport.ru/showthread.php?t=123254) mod from 3.6.x.

If you have a pre-3.7.x version installed:
UNINSTALL the old product and reverse the edits. Don't forget to revert those templates :)

-----------------------------------------------------------------------

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

Does anyone want a future version of this to have a mini block w/ the same data?

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!

Version History:
1.0.0 - Initial Release
1.0.1 - Cached template

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

Wired1
05-24-2008, 03:23 AM
Reserved for future use.

wottech
05-24-2008, 03:25 AM
Awesome. Thanks! Finally got the other hacks reinstalled as well just a few minutes ago after a template goof up back in September. Everything works great!

Wired1
05-24-2008, 03:27 AM
Schweet :)

Subah
05-24-2008, 04:30 AM
Cool , thank you :)

TCB
05-24-2008, 07:39 AM
Wow! Excellent. I used the built-in extra tab option, but then all information is also shown on the 'about me' tab (which makes the option somewhat weird). This extra tab mod is wonderful, thanks :D

Wired1
05-24-2008, 07:41 AM
Wow! Excellent. I used the built-in extra tab option, but then all information is also shown on the 'about me' tab (which makes the option somewhat weird). This extra tab mod is wonderful, thanks :DYou're welcome!

TalkPhotography
05-24-2008, 09:44 AM
Installed :)

Although I may be being thick here, nothing is showing up on the public profile page :$
Edit : Ignore me, I was looking at a user who hadn't filled the extra fields in.

alluidh
05-24-2008, 09:55 AM
Great Job

And a question ... Need your hacks two times
- Computerparts, just like your example
- Console, just like Xbox360, Playstation 3 and so on

Is there a way to use your hacks twice? (User-CP and Profile)

Thanks for your answer

Jase2
05-24-2008, 11:04 AM
Thanks for this, Wired.

One question: I have a menu select drop down menu. Yes/no - yes to display system specs in postbit, and NO to not to display system specs in postbit. However, when it it selected to "NO" the system specs tab shows, just saying:

System Specs
NO

Where would I be able to edit to stop the system specs selection drop menu showing in the block_tab ?

KHALIK
05-24-2008, 01:47 PM
Thanks Wired

Installed.

shlomot
05-24-2008, 03:41 PM
Hello, as my former colleagues, I installed this MOD in order to avoid custom fields from showing both on a field-category tab and in the About-Me tab.

After installation, I couldn't find any vBulletin option for this MOD, nor any difference in how my profile page is showing.

Can you please expend your instructions for the thick and dummies:) Thanks.

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

Sorry, all is well :)

Only now did I understand that this MOD converts the extra page in Extra Profile Fields Page mod into extra tab.

Thanks for this great mod.

Chadi
05-24-2008, 03:56 PM
Wouldn't it make sense to combine your two mods into one since they're both supposed to work together?

shlomot
05-24-2008, 04:57 PM
A must-have request:

vBulletin provides only two permission options for a field display: private or public, and no consideration to permissions is given in field-category setting.

One permission option is lacking and could only be found in vBadvanced Dynamics: viewable by friends (buddies).

One answer to this limitation was given to me here (https://vborg.vbsupport.ru/showthread.php?t=180220), but the truth is that your product is the natural container to manage such conditional: the ability to display the tab to myself and friends only.

Please consider adding this feature to your product. It will add great functionality and desirability to it.

Many thanks in advance.

Wired1
05-24-2008, 08:16 PM
Khalik, ShlomoT: You're welcome!


Ignore me, I was looking at a user who hadn't filled the extra fields in.LOL, been there, done that! I just always look at my own profile now :)


Is there a way to use your hacks twice? (User-CP and Profile)Gotta manually hack it a bit, I'll throw something together this weekend.


Where would I be able to edit to stop the system specs selection drop menu showing in the block_tab ?I'll look into it, I think I already know how to do it. Ultimately, ideas like this and some others I have lend themselves to doing an adminCP page for the mods, so that's another project on the horizon, just gotta figure out HOW to make an easy to install AdminCP page. I'd want to make a side menu for all the Products, but ultimately I think it may just be a dropdown in the main vB options.


Wouldn't it make sense to combine your two mods into one since they're both supposed to work together?I was thinking of doing that, but some people don't use the info publicly, or just don't have a need for this mod at all, so this way they don't need to add on extra code to their vB.


A must-have request:

vBulletin provides only two permission options for a field display: private or public, and no consideration to permissions is given in field-category setting.

One permission option is lacking: viewable by friends (buddies).Good idea, I'll see what I can do!

Jase2
05-24-2008, 08:46 PM
Ok, wired -- thanks!

You can see the tab here (http://www.techsupportteam.org/forum/members/jason/). Basically, I just want to remove: System Specs YES -- which is at the top. Hmmm....

Wired1
05-24-2008, 09:16 PM
Ok, wired -- thanks!

You can see the tab here (http://www.techsupportteam.org/forum/members/jason/). Basically, I just want to remove: System Specs YES -- which is at the top. Hmmm....OH, you just want to stop showing that particular field, not the whole tab?

Ok, here's what you'd have to do. Create a new Profile Category in the AdminCP. Assign the profile field that category. NOTE the Category ID!

EDIT plugin: Extra Profile Fields Tab

FIND:
WHERE pf.form = 6

REPLACE WITH:
WHERE pf.form = 6 AND pf.profilefieldcategoryid != <INSERT CATEGORY ID # HERE>

It'll then pull up all EPFP fields that are NOT in that category.

Deepdog009
05-24-2008, 09:25 PM
Good Deal Wired1
Its good 2 see many folks working on tabs these days... Excellent


Keep the ball ROLLING!!! :up:

Jase2
05-24-2008, 09:47 PM
That produces a database error. I just want to remove the Single-Selection Menu. :)

Wired1
05-24-2008, 09:58 PM
Deepdog009: Thanks!

That produces a database error. I just want to remove the Single-Selection Menu. :)Don't use the <>, example:

WHERE pf.form = 6 AND pf.profilefieldcategoryid != 5

Jase2
05-24-2008, 10:08 PM
I forgot to add the category id, I was using the profile field LOL. Thanks for that, Wired -- works great!

Wired1
05-24-2008, 10:20 PM
Cool beans!

Brandon Sheley
05-24-2008, 10:41 PM
great idea, nice hack :)

shlomot
05-25-2008, 05:28 AM
Would appropriate payment for your time and expertise move things faster :)

Good idea, I'll see what I can do!

Wired1
05-25-2008, 07:52 AM
LOL always, but right now I've been working on a bug w/ another mod, so sleep first :)

odeezie
05-25-2008, 07:12 PM
Probably a dumb question, but how do I just change the name of the tab from "Extra Options". I am using this on a Motocross forum and would like it to say "Bike Specs"

Do I just search in phrases and change extra_options?

Edit: I just saw this in the dropdown thread "To edit the title:

Go to AdminCP -> Languages & Phrases -> Search in Phrases. Search for the phrase's title: [dropdown_title] (no brackets). Edit and save!"

Will that work for this one too?

Wired1
05-25-2008, 09:02 PM
Do I just search in phrases and change extra_options?

Edit: I just saw this in the dropdown thread "To edit the title:

Go to AdminCP -> Languages & Phrases -> Search in Phrases. Search for the phrase's title: [dropdown_title] (no brackets). Edit and save!"

Will that work for this one too?Yes, search for the extra_options phrase (which is installed with the Extra Profile Fields Page product, not this one).

neologan
05-25-2008, 09:25 PM
installed!

how do i move the tab to after the about me tab?

Wired1
05-25-2008, 09:45 PM
installed!

how do i move the tab to after the about me tab?There's no hook for AFTER the About Me tab, but there is one to place the tab BEFORE it.

Edit the Extra Profile Fields Tab plugin.

FIND and REPLACE:
profile_left_last
with
profile_left_first

ComputerVitals
05-26-2008, 12:50 AM
Thanks for the tip on removing the field from the tab. I added urls to the specs and used this to remove the link in the tab as well..

Superb job!!

neologan
05-26-2008, 03:30 AM
what would be the best way to revamp the styling for the fields? i mean for all the pc specs on the tab, how can i style this with my own html?

Wired1
05-26-2008, 03:53 AM
what would be the best way to revamp the styling for the fields? i mean for all the pc specs on the tab, how can i style this with my own html?Damned if I know :) The mod's pretty much a schmorgasboard of code from my previous mods + this tutorial (https://vborg.vbsupport.ru/showthread.php?t=165554) on how to make a tab.

Put it this way: Any code that works on the About Me Tab's profile fields should automatically work on this tab, and if it doesn't, it should only take a modification or two to get it to work here.

There's 3 points where it intersects with templates:

In the Plugin: Extra Profile Fields Tab

if ($profilefield['value'] != '')
{
$show['extrainfo'] = true;
eval('$category[\'fields\'] .= "' . fetch_template('memberinfo_profilefield') . '";');
}
}

if ($category['fields'])
{
eval('$profilefields .= "' . fetch_template('memberinfo_profilefield_category') . '";');
}

and then of course there's the TEMPLATE: memberinfo_block_EPFP_tab.

odeezie
05-26-2008, 05:22 AM
I dont have the knowledge of this stuff so this may be completely absurd, but is there a way to put a small picture on the Extra Profile Tab?

I am using this mod on a Motocross forum and just got it going today and it is very well liked. The only thing I have had a few people ask for is if they could put a picture of their bike in there as well. Similar to how the About Me tab has their signature picture.

Is this possible to do?

Wired1
05-26-2008, 07:10 AM
I dont have the knowledge of this stuff so this may be completely absurd, but is there a way to put a small picture on the Extra Profile Tab?

I am using this mod on a Motocross forum and just got it going today and it is very well liked. The only thing I have had a few people ask for is if they could put a picture of their bike in there as well. Similar to how the About Me tab has their signature picture.

Is this possible to do?Since it's done in another tab, it's definitely possible, looking at different ways to do it. Where would you be storing this picture though?

Jase2
05-26-2008, 10:31 AM
Anyway to stop this using any queries, or at least cut down on one?

odeezie
05-26-2008, 02:31 PM
Since it's done in another tab, it's definitely possible, looking at different ways to do it. Where would you be storing this picture though?

I have no idea where I could store it. I guess anywhere would work, similar to the profile or signature picture. Or maybe have it hosted on photobucket or something like that and let them link to the offsite picture. I really dont know how that would work. I think it would be cool if you could go to the usercp "edit extra options" and put it in there at the bottom of the specs list.

Let me know if I can be of any help. I dont know much about code, so if I cant I will be sure to throw some $ your way. :up:

Jase2
05-26-2008, 03:56 PM
Ummm, how would I make each category title bold in the tab? For example: CPU bold, Hard Drive bold ect ect.

neologan
05-26-2008, 04:00 PM
it would be cool to be able to hook some album pics to the tab, but that sounds like a lo of work.

Wired1
05-27-2008, 02:08 AM
Anyway to stop this using any queries, or at least cut down on one?? It only has ONE query, and it's necessary for now.


I guess anywhere would work, similar to the profile or signature picture. I think it would be cool if you could go to the usercp "edit extra options" and put it in there at the bottom of the specs list.it would be cool to be able to hook some album pics to the tab, but that sounds like a lo of work.The profile and sig pics have their own locations within the database, and I'd like to stay away from any DB edits if possible. The album is what I was thinking of, but I haven't looked at the album code yet.


Ummm, how would I make each category title bold in the tab? For example: CPU bold, Hard Drive bold ect ect.You mean the Profile Field titles, not categories. I'm just using the standard memberinfo_profilefield template for them, just like the About Me tab uses.

Jase2
05-27-2008, 10:11 AM
Ok, no worries. Well, I did some testing and this seems to use two queries. Not a big deal, though I guess.

Wired1
05-27-2008, 02:34 PM
How did you test this?

Jase2
05-27-2008, 03:10 PM
I enabled debug mode from my ACP (using my hack) and went to the members profile page. It hit 24 queries (I think). I then went and disabled this product and returned to the members profile page - this time it hit only 22 queries.

Chadi
05-27-2008, 05:55 PM
Can you please explain how to get the tab to show up static regardless if the fields have not been filled in by the member yet? Thank you

Wired1
05-27-2008, 06:18 PM
I enabled debug mode from my ACP (using my hack) and went to the members profile page. It hit 24 queries (I think). I then went and disabled this product and returned to the members profile page - this time it hit only 22 queries.I wonder if your hack and/or debug mode adds a query?


Can you please explain how to get the tab to show up static regardless if the fields have not been filled in by the member yet? Thank youPlease clarify: do you mean just the tab, or the fields within the tab as well?

Chadi
05-27-2008, 06:22 PM
I mean the tab and fields. Basically, if the fields are not filled in it shows "n/a" by default which is fine. However, the tab is missing until then and basically no one knows it exists.

Wired1
05-27-2008, 07:04 PM
I mean the tab and fields. Basically, if the fields are not filled in it shows "n/a" by default which is fine. However, the tab is missing until then and basically no one knows it exists.

EDIT PLUGIN: Extra Profile Fields Tab
function confirm_empty_wrap()
{
return false;
}

Change to true.

Chadi
05-27-2008, 07:40 PM
Thank you. Now when you click the tab, its actually blank (nothing at all, not even the page itself for the tab). Can we have it defaul to "n/a" for all unfilled fields?

Wired1
05-27-2008, 08:03 PM
Thank you. Now when you click the tab, its actually blank (nothing at all, not even the page itself for the tab). Can we have it defaul to "n/a" for all unfilled fields?Odd, came up as n/a for me.

Chadi
05-27-2008, 08:13 PM
Examples:
http://www.talkjesus.com/members/abigya.html
http://www.talkjesus.com/members/katzie.html

Jase2
05-27-2008, 08:28 PM
Your forum requires registration, so no-one can see the above member profiles without being registered.

Chadi
05-27-2008, 08:32 PM
See attached screenshot

Wired1
05-27-2008, 09:06 PM
Figured it out. Shows N/A if you can edit it, but to all others, nothing shows up. Do this:

FIND
if ($show['profilefield_edit'] AND $profilefield['value'] == '')

REPLACE WITH
if ($profilefield['value'] == '')

Chadi
05-27-2008, 09:12 PM
Perfect, that worked. Thank you.

dodjer42
05-28-2008, 12:13 AM
Seems when i go to my usercp, i selecte extra options, but the table that comes up is blank and all i can do is select 'reset fields' or 'save' and neither does anything.

Any ideas?

Wired1
05-28-2008, 02:36 AM
Seems when i go to my usercp, i selecte extra options, but the table that comes up is blank and all i can do is select 'reset fields' or 'save' and neither does anything.

Any ideas?Please post in the correct mod's thread, and make sure you have FULLY gone through the instructions.

EvilJohn
05-28-2008, 02:46 AM
Installed :)

Seer
05-28-2008, 08:55 AM
I have added some profile fields to this with catagories how ever the catagories do not show, do i need to make seperate tabs for them?

Thanks in advance

Chadi
05-28-2008, 10:56 AM
[edit: my mistake]

Wired1
05-28-2008, 07:14 PM
I have added some profile fields to this with catagories how ever the catagories do not show, do i need to make seperate tabs for them?

Thanks in advanceCategories have a built in ability to create their own tab.

Jase2
05-29-2008, 02:45 PM
Hi Wired,

If a user hasn't filled in any of the system specs field, then the tab still shows with N/A -- anyway to stop it showing if they don't fill in at least one system spec field? That way, you save on queries. :)

Wired1
05-29-2008, 06:43 PM
Hi Wired,

If a user hasn't filled in any of the system specs field, then the tab still shows with N/A -- anyway to stop it showing if they don't fill in at least one system spec field? That way, you save on queries. :)

It shouldn't show the tab unless you've made the manual edits someone else asked for. Either way, it won't stop the query.

RedGTiVR6
05-29-2008, 09:46 PM
Does anyone want a future version of this to have a mini block w/ the same data?

Yes please!

wWw.Fun2Wii.Com
05-29-2008, 09:48 PM
thanks nice

RedGTiVR6
05-29-2008, 09:52 PM
Gotta manually hack it a bit, I'll throw something together this weekend.

I'll second this! I know this would be great for a lot of forums out there.

For instance...car forums...or our forums...

One for CarPC specs, one for audio specs, and one for vehicle specs....

:up:

Jase2
05-29-2008, 10:40 PM
It shouldn't show the tab unless you've made the manual edits someone else asked for. Either way, it won't stop the query.

Hmm, so no way to stop this:

http://www.techsupportteam.org/forum/members/blind-dragon/

He hasn't filled in his system specs, yet the tab still shows...

Wired1
05-29-2008, 11:21 PM
Yes please!That's 1 vote :)


thanks nice????? You haven't downloaded it or installed it.


Hmm, so no way to stop this:

http://www.techsupportteam.org/forum/members/blind-dragon/

He hasn't filled in his system specs, yet the tab still shows...Shouldn't even happen though. Gotta modify the code to make it do that, unless there's some vB setting that's doing it. Un/reinstall the product.

mr clean
05-30-2008, 12:59 PM
I'll second this! I know this would be great for a lot of forums out there.It would absolutely make things better for some forums. More intuitive with the User CP from a users standpoint for sure. The way the built-in tabbing and category system shows profile fields in the 'About Me' tab even when they have their own tab or block is rather silly. I just don't see the point in it.

This is a very useful mod, Wired. Thank you.

Does anyone want a future version of this to have a mini block w/ the same data?Yes. It would be great.

kether1
06-03-2008, 09:30 PM
*Installed* - and loving it! Brilliant modification, M8! :up:

Is there a way to link to the specific tab this mod creates? I would like to be able to link to it from a thread. Right now, I just link to the profile and the first tab shows opened. I want to be able to link to the content in the different tabs.

Is this possible? If so, what is the tab's URL ?

Thanks,
Kether

kether1
06-03-2008, 11:32 PM
*Installed* - and loving it! Brilliant modification, M8! :up:

Is there a way to link to the specific tab this mod creates? I would like to be able to link to it from a thread. Right now, I just link to the profile and the first tab shows opened. I want to be able to link to the content in the different tabs.

Is this possible? If so, what is the tab's URL ?

Thanks,
Kether


Well, I figured out how to link to the other tabs (friends, stats, contactinfo, etc) but cannot find a way to link the tab this modification creats. It appears to be 'EPFP_tab" but that does not work. Anyone have any idea? It is a bummer to not be able to link to the content on this specific tab.

Thanks for your help!
Kether

Wired1
06-04-2008, 01:11 AM
I made the tab from a tutorial here on vB.org, and there's no mention on how to do it there. I checked the HTML, and it all looks the same, so I don't know why it's not working. What's the link that works for the other tabs?

BTW, if you're just trying to get profile info in posts, check out my Dropdown mod.

kether1
06-04-2008, 02:47 AM
I made the tab from a tutorial here on vB.org, and there's no mention on how to do it there. I checked the HTML, and it all looks the same, so I don't know why it's not working. What's the link that works for the other tabs?

BTW, if you're just trying to get profile info in posts, check out my Dropdown mod.

The link for the other tabs are as follows:

For About Me: ?tab=aboutme
For Contacts: ?tab=contact
For Friends: ?tab=friends
For Statistics: ?tab=stats


I used firefox web browser and the Firebug Addon to inspect the links since they are basically hidden because the ajax changes the tabs but doesn't reload the page.

I see that the link for your mod's tab is supposed to be
?tab=EPFP_tab
But it will not work for some reason. It always loads the regular profile page.

I am using the link in the drop down of the profile. It was an easy template edit to put it in, but I still need to get the correct url to display the custom tab.

Thanks for any assistance you can offer. And again - excellent modification!

Thanks,
Kether

kether1
06-05-2008, 06:50 PM
Anyone know of a way to link to the tab that this mod creates? I still cannot get it to link directly to the specific tab. It always opens the profile's first tab and not the one this modification creates.

Thanks for any help!

Kether

Wired1
06-05-2008, 07:05 PM
Do you have an example of a FULL URL link to a tab (that works)?

This does not work for me:
http://www.houseofhelp.com/forums/member.php?u=15?tab=contact

kether1
06-05-2008, 07:22 PM
Do you have an example of a FULL URL link to a tab (that works)?

This does not work for me:
http://www.houseofhelp.com/forums/member.php?u=15?tab=contact

This is how it works for me:

http://www.yoursitename.com/forum/members/kether.html?tab=friends
or
http://www.yoursitename.com/forum/members/kether.html?tab=stats
etc...


Hope this helps!

Thanks,
Kether

kether1
06-05-2008, 07:31 PM
I have VBSEO so my urls are rewritten. Here is a link that works on your site.

http://www.houseofhelp.com/v3/member.php?u=15&tab=stats


Thanks,
Kether

Wired1
06-07-2008, 12:38 AM
Ah, I typed in a ? before it instad of an &.

I think I know how to fix it, I'll do some testing.

neologan
06-07-2008, 02:07 PM
my apologies if this is already discussed, but i was wondering if this could handle multiple tabs? i use this for system specs, but had the idea of another tab with extra details for console user names and all that stuff.

I'd also really like a way to edit each fields look, with images etc. At the moment you are using some nice code, but it makes it hard to edit. I'm quite happy to just throw some less advanced code to get the fields to show up in the template, and then edit them all with images etc, and use the <if> to make them not disply if it's not filled in etc.

I love this mod, but i really think it needs these sort of options in there so it can be customised more.

any thoughts on ways to do this?

neologan
06-09-2008, 02:53 PM
i added a custom User Profile Field and wanted it to be second inline, but it's pushing in front of the system specs plugin. I assume it's using the same hook here, so how to i get the pc specs tab to display in front of it.

the custom field is "gaming": http://forums.pureoverclock.com/member.php?u=1

Wired1
06-09-2008, 04:42 PM
i added a custom User Profile Field and wanted it to be second inline, but it's pushing in front of the system specs plugin. I assume it's using the same hook here, so how to i get the pc specs tab to display in front of it.

the custom field is "gaming": http://forums.pureoverclock.com/member.php?u=1Try editing the plugin and changing the Execution Order # of the plugin.

neologan
06-09-2008, 05:09 PM
i've changed them to 1, but it hasn't changed things.

Wired1
06-09-2008, 07:39 PM
Alphabetical in order maybe? Either way, it's a question more for the modding community and/or Jelsoft, so you may want to start a new thread concerning the order of tabs via plugins.

ssslippy
06-10-2008, 03:10 AM
here is your cache code for your tab


<plugin active="1" executionorder="5">
<title>Caches Extra Profile Field Tab</title>
<hookname>cache_templates</hookname>
<phpcode><![CDATA[if (THIS_SCRIPT == 'member')
{
$globaltemplates = array_merge($globaltemplates, array('memberinfo_block_EPFP_tab'));
}]]></phpcode>
</plugin>

vanbao
06-11-2008, 08:35 PM
Okay,

I must be missing something here. I am trying to find a way to change the text from on the link and tab from "extra options" to "Favorite Listings".

Please help. Much appreciated.

Wired1
06-11-2008, 09:38 PM
Okay,

I must be missing something here. I am trying to find a way to change the text from on the link and tab from "extra options" to "Favorite Listings".

Please help. Much appreciated.

Check out the example image. It shows what phrase to edit. The EPFP mod uses the same phrase for some things as well.

vanbao
06-11-2008, 10:53 PM
Check out the example image. It shows what phrase to edit. The EPFP mod uses the same phrase for some things as well.

I noticed that the text "extra_options" shows up in both the admincp/profilefield.php

at
"$vbphrase[options]: $vbphrase[other]",
"$vbphrase[options]: $vbphrase[extra_options]"

and in the .xml at:
'class' => 'EPFP_tab',
'title' => $vbphrase['extra_options'],

So do I change the text in both places? I tried opening the .xml file but it does not open.

Wired1
06-11-2008, 11:31 PM
No, you are not supposed to edit random code. Read the vB manual on how to edit phrases. It is part of the AdminCP.

http://www.vbulletin.com/docs/html/

ThreeD
06-13-2008, 10:37 AM
How would I tweak this to make two extra profile field tabs? :)

kether1
06-19-2008, 05:13 AM
Ah, I typed in a ? before it instad of an &.

I think I know how to fix it, I'll do some testing.

Any luck with the linking to the tab? I still have not been able to accomplish it.

Thanks,
Kether

Wired1
06-19-2008, 07:28 AM
Nada. Can't get it to work at all. Looked into the code a bit. Because they're AJAX tools, I think there needs to be java references to the individual tabs somewhere within their scripts.

kether1
06-21-2008, 07:19 PM
Nada. Can't get it to work at all. Looked into the code a bit. Because they're AJAX tools, I think there needs to be java references to the individual tabs somewhere within their scripts.

Thanks for looking!

Regards,
Kether

Jase2
06-23-2008, 04:18 PM
Hi Wired,

When I turn on vBulletin Debug mode....25 queries are executed on a members profile page...in bold red. Then, memberinfo_block_EPFP_tab is highlighted in bold red. Anything to be concerned of?

Dinatius
06-25-2008, 12:35 AM
Very awesome. I haven't poked 3.7 much, but a couple questions:
1. How would I get rid of another tab? such as Contact Info... I don't want the arrow for an extra tab.
2. There seem to be breaks between Profile Field Categories. Is that intentional? Is there any way I could actually put in a <hr> or something?
3. I'm currently using 2 of the Profile Field hack because fields get so spaced out, but on the Profile Tab they display much more cleanly - any way I can get both pages of extra_options and extra_options1 to show up on the same profile tab?
4. and last, I know I asked this on another thread (maybe the 3.6.x one) - is there any way to get 2 profile fields to show next to each other? i.e. two columns of profile fields? I know it's not doable in the userCP, but how about in the Tabbed Profile?

Anyways, like you said - not everyone uses these two mods together. The profile field page mod is a good way to get data in and tie it to a user, but I did a custom search page to let people search on several of the custom profile fields - I was hardly using the profile display previously. I'm looking at writing a much more extensive search at some point.

And since you asked at some point - I'm using this to keep track of character info for a guild I'm a webmaster for.

LoRdGd
06-26-2008, 01:24 AM
Im getting an error:
http://img516.imageshack.us/my.php?image=scr24a4644fma2.png
What can I do now?

Wired1
06-26-2008, 10:48 PM
Hi Wired,

When I turn on vBulletin Debug mode....25 queries are executed on a members profile page...in bold red. Then, memberinfo_block_EPFP_tab is highlighted in bold red. Anything to be concerned of?Red means it will self destruct in 5 seconds Mr. Phelps.... :)

Nah, red means it isn't cached. Fixed that over a month ago... looks like I forgot to upload it... v1.0.1 now out! :)


1. How would I get rid of another tab? such as Contact Info... I don't want the arrow for an extra tab.Ask Jelsoft.

2. There seem to be breaks between Profile Field Categories. Is that intentional? Is there any way I could actually put in a <hr> or something?It has not been tested with Categories, as it's sort of its own category.


3. I'm currently using 2 of the Profile Field hack because fields get so spaced out, but on the Profile Tab they display much more cleanly - any way I can get both pages of extra_options and extra_options1 to show up on the same profile tab?

NOTE: THIS IS UNTESTED, but should work.
EDIT Plugin: Extra Profile Fields Tab.

FIND:
WHERE pf.form = 6

CHANGE TO:
WHERE pf.form = 6 OR pf.form = 7


4. and last, I know I asked this on another thread (maybe the 3.6.x one) - is there any way to get 2 profile fields to show next to each other? i.e. two columns of profile fields? I know it's not doable in the userCP, but how about in the Tabbed Profile?Both are probably possible, but most of my code calls on standard vBulletin templates / functions for maximum compatibility / minimum edits.


Im getting an error:
http://img516.imageshack.us/my.php?image=scr24a4644fma2.png
What can I do now?As it states at the top of this thread, this is an ADDON for another product, and as such, REQUIRES that product to be installed first.

Jase2
06-27-2008, 10:27 AM
Thanks..!

Jase2
07-02-2008, 09:35 PM
Wired, this doesn't pass xhtml validation -- could you update this modfication to be xhtml compliant?

Angels1928
07-09-2008, 05:29 AM
Is it possible to post pictures in the new tab?

I want a tab in every user profile, in which I can post small pictures. These pictures are actually rewards for winning Sig of the Week competitions and whatnot. Is this possible?

If so, is it possible to center each image into a cell of a table?

pipin
07-16-2008, 07:37 AM
Hi Wired,

I used the epfp just from the start of the vB 3.5 hack and always liked it.

To be exact I use it twice in our forum ( if you want to habe a look: http://www.planet3dnow.de/vbulletin/showthread.php?t=343982).

I just added a _first or first to all variables and plugin names, changed the template name and the $profilefield['form'] data.

But now i run into a problem with the extra profile fields tab.

Changed all the variables in the product (see attachment), but always the first epfp tab is overwritten by the new product.

Wired1
07-16-2008, 09:33 AM
Missed a spot :)

Search "EPFP_tab" in that file and you'll see one you still need to change to EPFP_tab_first.

pipin
07-16-2008, 09:03 PM
Missed a spot :)

Search "EPFP_tab" in that file and you'll see one you still need to change to EPFP_tab_first.

Got it working with two tabs now, thanks.

Morrus
08-05-2008, 07:03 AM
I have a problem!

Installed. Working perfectly as described. However - the extra profile fields will not show up on the members list, nor will they show up on the advanced members search. Is there some way to fix this? I don't want to have to move all the profile fields into the Edit Your Details section.

RedGTiVR6
08-05-2008, 11:51 AM
search the thread as this has been covered. It's a small change - adding a 0 basically.

moonclamp
10-11-2008, 02:49 AM
Is there any way to make the "extra fields" tab look the same as the "about me" tab?

To clarify; at the moment the value is slightly inset in the "extra info" tab, but in the "about me" tab the value is directly below the field name.


Also, how would I add a bold title to the top of the tab like "about me" and "signature"

I'm sure these are just template changes, but I can't find what bits I need to change.

Thank you :)

christian8a
12-08-2008, 12:01 AM
Hey wired, awesome product, im using it and works perfect!

One question, where do I change the CSS for the new tab? Like to set the margins you usually can on the about me block?

Wired1
12-09-2008, 03:17 AM
moon: sorry I didn't see the post earlier. It's already bold for me when the tab is selected. It's just calling vB's templates / code.

moon / christian: For CSS changes... you've got me :) It's all standard code, but I've never messed w/ the vB settings for CSS. Heck, I can't remember where they are in the AdminCP ATM :) You can always change the template calls in the plugins, and make your own template / CSS changes however.

transparent
01-04-2009, 05:58 AM
What an awesome hack when added with your other goodies!

Anyone know how I can change the order of the new tab this creates? So instead of it displaying in 6th position by default I can change it to 3rd?

Wired1
01-04-2009, 08:00 AM
Custom tabs can either be set to come BEFORE the standard tabs, or AFTER, but not inbetween. Post on vb.com to request that.

GHC Webmaster
01-18-2009, 12:12 PM
Hello Wired1,

Is there a version for product-wired1_epfp_2.xml available as well? Is saw the extratab1 Pipin attached, but don't know whether these two combine.

If not could you explain to me what to edit in the normal extratab product (a duplicate I mean) to get it working with the second extra profile fields page?

I would also like the second tab to be in first position (before visitor messages). What should I do for that? Just change the hook location?

Thanks very much in advance!

Regards,

Walrick

GHC Webmaster
01-18-2009, 12:59 PM
Ok, I figured it out myself. I edited Pipins Extratab1 in such a way that it does what I want (including fixing his original mistake). I also got it to show in the first tab. And renamed some things to _2 instead of _first. It's the second extra tab after all, not the first. Also the product name itself to comply more with the second profile fields page product.

If anyone is interested, I attached the product to this post.

For those looking for the extra profile fields page product to go with this:

https://vborg.vbsupport.ru/showpost.php?p=1622763&postcount=134

Walrick

JIK1987
01-30-2009, 06:35 AM
How can I change the tab title Extra Options to something else?

I looked up the phrase $vbphrase['extra_options'] and got No Phrases Matched Your Query, am I missing something?

Wired1
01-30-2009, 12:43 PM
Search for "extra_options", not the actual variable name.

JIK1987
01-30-2009, 03:09 PM
I had already tried that too and got No Phrases Matched Your Query.

Um, okay...after typing in extra_options several times going back, retyping it...it decided to work. Weird...

Wired1
03-14-2009, 10:58 PM
3.8.x version released:
https://vborg.vbsupport.ru/showthread.php?t=208358

No code changes whatsoever.

Cees
03-15-2009, 06:00 PM
Hi,

I installed the profile page 2 also. But now i have just one extra tab. How can i get a second tab (sorry im no coder :erm:)

Wired1
03-15-2009, 06:49 PM
Wrong thread.

Cees
03-16-2009, 09:04 AM
where should i asked it? Im standing on the extra tab?:confused:

Wired1
03-17-2009, 02:11 AM
You are using 3.8.x, therefore the 3.8.x thread is where you should be posting. Also, no 2nd tab mod has been made yet.

GHC Webmaster
03-20-2009, 11:38 AM
Hi,

I installed the profile page 2 also. But now i have just one extra tab. How can i get a second tab (sorry im no coder :erm:)

Have a look at my post (https://vborg.vbsupport.ru/showpost.php?p=1716786&postcount=109) earlier in this thread (on this page actually).

Cees
03-20-2009, 12:28 PM
Thanks, that's what i looked for, im feeling a little bit stupid:o. I searched the entire post and i think that i didn't read yours thoroughly Thanks works now.:up:

chet
06-01-2009, 03:04 PM
Is there any way I can alter so only admins can fill in the options, reason being is I would like to add a membership number there which can not be changed by the user

Thanks

Chet

Wired1
06-01-2009, 05:46 PM
Is there any way I can alter so only admins can fill in the options, reason being is I would like to add a membership number there which can not be changed by the user

Thanks

Chet

That's completely outside the scope of this mod. That has to deal with the profile fields and not this mod.

yotsume
08-15-2009, 06:44 AM
Install both your extra options and this profile tab mod. VERY AWESOME!

QUESTION:
Now can you please post clear instruction on how to reorder the profile tabs. I want this new tab to site right next to the default About Me tab.

THANKS!

yotsume
08-15-2009, 06:56 AM
<font color="DarkRed">post deleted sorry not needed</font>

GHC Webmaster
08-15-2009, 07:22 AM
QUESTION:
Now can you please post clear instruction on how to reorder the profile tabs. I want this new tab to site right next to the default About Me tab.


I can help you a bit with that. The problem with this is that the plugin uses template hooks, and to do what you want, you would need to move one of those hooks in the MEMBERINFO template.

Look in that template for something like:

<div id="profile_tabs">
$template_hook[profile_left_first]
$blocks[visitor_messaging]
$blocks[aboutme]
$blocks[stats]
$blocks[friends]
$blocks[infractions]
$blocks[contactinfo]
$template_hook[profile_left_last]
</div>And then move the line with "$template_hook[profile_left_last]" up till it's between "about me" and "stats". That should do what your want. (Assuming your extra tab is on the far right at the moment.)

Regards,

Walrick

GHC Webmaster
08-15-2009, 08:03 AM
Addition: be aware that this moves other tabs by addons which use the same hook as well. (The Blog tab for example.) Is this happens you can change the hook which extra tab uses in this plugin to "profile_left_first" and move that hook in the template instead of the hook I mentioned above.

yotsume
08-15-2009, 10:01 AM
Addition: be aware that this moves other tabs by addons which use the same hook as well. (The Blog tab for example.) Is this happens you can change the hook which extra tab uses in this plugin to "profile_left_first" and move that hook in the template instead of the hook I mentioned above.

I knew about this already. Yes I have blogs, experience, recipes, etc mods all using the damn right hook punch junk way to make a tab! So because multiple coders went the easy right hook punch way to rig their tabs we cant easily reoder tabs. What a waste of time on our end. So I will have to recode a number of mods so they use their own hook and can be reordered at anytime. Personally this is the way they should all be coded in the first place.

So now where or where do I change this to use the left hook punch code???

Better yet here is the plugin:

$blocklist = array_merge($blocklist, array(
'EPFP_tab' => array(
'class' => 'EPFP_tab',
'title' => $vbphrase['extra_options'],
'hook_location' => 'profile_left_last',
'options' => array(
'simple' => $vbulletin->GPC['simple'],
),
)
));How do I make it so I can have it located in its own hook by altering the red code??? This needs to be standard for this mod as an update asap please! :) So to be clear here the real question that I need answered is how to make my own hook to call this tab to where I want it so it can be in the standard list on its own? I guess its time to learn how to make my own custom hooks....

GHC Webmaster
08-15-2009, 10:54 AM
Is profile_left_first in use already on your site as well? If not you could use that.

Otherwise I'd suggest googling for "vbulletin adding hooks" or something similar. I found some results already.

Wired1
08-15-2009, 10:03 PM
Where did you think I started first in hunting! LOL I will quote for you word for word!

"VB can not and will not support any modification to the core code of VB go look on vborg."There's a difference between them supporting modification of the code and asking for more hook locations / forum features. They've added many hooks and features with version changes in the past, so they're definitely open to suggestions.


I suggest you change your mod to use a more diverse way to manipulate the profile tab. :DNo. I will not complicate this mod to make up for a perceived limitation of the tab functionality within the profile. If someone wants to make a mod that allows admins / users to easily reorganize tabs that's fine by me, but it's well outside the scope of this mod.


Thanks for a great mod! Now we need my question answered of how to get the fields which are moved to your mods extra page searchable again??? How can I do that? When fields are moved they loose their ability to be searched. Any solutions?I have already answered that question when you asked it in the main modification's thread. Also, if you're using vB 3.8.x, it's noted at the top of the modification for that version how to have the fields searchable.

Lynne
08-15-2009, 10:04 PM
Thread cleaned.

Please keep this thread centered around comments regarding this modification. Thank you.

GHC Webmaster
08-16-2009, 06:34 AM
Thread cleaned.

Please keep this thread centered around comments regarding this modification. Thank you.

In my view the solution you removed could be very useful to the users of this modification. Now every user who needs something similar has to search for a solution elsewhere and find out for themselves how to implement that for this mod.

Not a helpful moderation. Luckily I still got the notification of new post email with the full solution in it.

yotsume
08-16-2009, 10:11 AM
I spent the whole night around the clock doing the research on how to achieve tab manipulation via custom hooks. It has a big impact on this mod and to have it moved without a warning or notification was a bit rude actually. It was only after I reposted it again because I though I was going mad in the head when I woke up to see my post and tutorial had gone missing with ZERO communication.

Anyway now that my post was moved and made into an article... I am stuck rewording the whole thing since it is now all out of context! I might get around to fixing it sometime... I had planned on talking more to PaulM to make sure my research and findings were all accurate for a larger article I was going to write in the first place.

It is important for this mod and other mods which use the left hook to know that there is actually no reason why we have to use those hooks since it is actually so easy to add hooks as it turns out.

Anyway back on topic... ;)

Lynne
08-16-2009, 02:59 PM
In my view the solution you removed could be very useful to the users of this modification. Now every user who needs something similar has to search for a solution elsewhere and find out for themselves how to implement that for this mod.

Not a helpful moderation. Luckily I still got the notification of new post email with the full solution in it.
All I did was make it an article as it was written as one. Anyone can read it here - How to Easily Make Your Own Movable Profile Tab Hook (https://vborg.vbsupport.ru/showthread.php?t=220968)

GHC Webmaster
08-16-2009, 05:56 PM
All I did was make it an article as it was written as one. Anyone can read it here - How to Easily Make Your Own Movable Profile Tab Hook (https://vborg.vbsupport.ru/showthread.php?t=220968)

Yes I concluded that from yotsume's last post. But that wasn't clear from your previous one. Looked like you had deleted it. If you had posted a link in that post, it would have been more clear.

But all is ok now. :-)