vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Profile Enhancements - Extra Profile Fields Tab (https://vborg.vbsupport.ru/showthread.php?t=180329)

Wired1 05-23-2008 10:00 PM

Extra Profile Fields Tab
 
Don't forget to hit INSTALL!

This is an evolution of my Additional Section within Profile and Dropdown within Posts 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 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!

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

Quote:

Originally Posted by TCB (Post 1529781)
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

You'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, 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!


Quote:

Originally Posted by TalkPhotography (Post 1529862)
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 :)


Quote:

Originally Posted by alluidh (Post 1529868)
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.


Quote:

Originally Posted by Jase2 (Post 1529910)
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.


Quote:

Originally Posted by chadi (Post 1530143)
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.


Quote:

Originally Posted by shlomot (Post 1530193)
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. Basically, I just want to remove: System Specs YES -- which is at the top. Hmmm....

Wired1 05-24-2008 09:16 PM

Quote:

Originally Posted by Jase2 (Post 1530387)
Ok, wired -- thanks!

You can see the tab here. 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:
Code:

WHERE pf.form = 6
REPLACE WITH:
Code:

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!

Quote:

Originally Posted by Jase2 (Post 1530430)
That produces a database error. I just want to remove the Single-Selection Menu. :)

Don't use the <>, example:

Code:

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 :)

Quote:

Originally Posted by Wired1
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

Quote:

Originally Posted by odeezie (Post 1531221)
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

Quote:

Originally Posted by neologan (Post 1531303)
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:
Code:

profile_left_last
with
Code:

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

Quote:

Originally Posted by neologan (Post 1531485)
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 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

Code:

        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

Quote:

Originally Posted by odeezie (Post 1531518)
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

Quote:

Originally Posted by Wired1 (Post 1531580)
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

Quote:

Originally Posted by Jase2 (Post 1531692)
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.


Quote:

Originally Posted by odeezie (Post 1531883)
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.

Quote:

Originally Posted by neologan (Post 1531984)
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.


Quote:

Originally Posted by Jase2 (Post 1531977)
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.


All times are GMT. The time now is 03:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01609 seconds
  • Memory Usage 1,838KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete