vb.org Archive

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

Wired1 06-08-2010 10:00 PM

Extra Profile Fields Tab
 
1 Attachment(s)
Don't forget to hit INSTALL!

This product requires my Extra Profile Fields Page 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
3. Uninstall the 3.8.x version if you have it installed.
4) [Add/Import Product] -> Browse to wherever you saved the file.
5) Import!

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

Don't forget to hit INSTALL!

Wired1 06-09-2010 05:45 AM

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
-------------------------------
4.0.0 - vB 4.0 upgrade
4.0.1 - Fixed bug where specs would also show up in the About Me tab. Fixed by alexp999.

Wired1 06-09-2010 05:46 AM

If you don't like the title for the uncategorized profile fields (which is the same as the tab which all comes from $vbphrase["extra_options"]), find this code in the EPFP Tab plugin:


Code:

'title' => (
        $profilefieldcategoryid == 0 ?
        $vbphrase["extra_options"] :
        $vbphrase["category{$profilefieldcategoryid}_title"]
),

change $vbphrase["extra_options"] to whatever phrase or text you'd like to replace it.

Wired1 06-09-2010 05:55 AM

Reserved for future use.

sulasno 06-09-2010 06:33 AM

tagged and thanks

Wired1 06-09-2010 06:41 AM

WTF does tagging do anyway?

DS MrSinister 06-10-2010 03:57 AM

Thank you my good sir.. it works perfectly... :D

Dave-M 06-11-2010 01:27 AM

Quote:

Originally Posted by Wired1 (Post 2050842)
WTF does tagging do anyway?

It sends a psychic message to the developer to fix the system specs dropdown for VB4. :D

/tagged

strudinox 06-11-2010 04:06 PM

Awesome work on this!

Installed and working perfectly!

marrr 06-11-2010 05:33 PM

I think i found a bug.. When i load a profile page it defaults to "visitor messages" however at the bottom of the page its loading my extra profile info too.

Charlie98902 06-13-2010 07:29 PM

The following dependencies were not met:

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

Using 4.0.3 PL1

Wired1 06-13-2010 11:14 PM

Quote:

Originally Posted by marrr (Post 2052122)
I think i found a bug.. When i load a profile page it defaults to "visitor messages" however at the bottom of the page its loading my extra profile info too.

Please post a screenshot. Not 100% sure what you mean.

Quote:

Originally Posted by Charlie98902 (Post 2053067)
The following dependencies were not met:

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


Using 4.0.3 PL1

The version number refers to the version of the EPFP mod, not your vB install.

nutcase 06-14-2010 09:38 AM

1 Attachment(s)
I will post it. when you first go to a profile it will do the below. after you hit any other Tab, it is fine.

Wired1 06-19-2010 07:03 PM

Can't duplicate it. Do you have any other mods installed that customize the profile?

marrr 06-20-2010 12:39 AM

Only plugins i have installed are Separate Sticky and Normal Threads,Usergroup Color Bar,Wired1's Extra Profile Field Page and this one. If you want i'll give you the info so you can check out on my site.

LostForWords 06-20-2010 09:37 PM

I'm afraid to say I'm experiencing the same issue. (I am using 4.0.4).

LostForWords 06-26-2010 07:50 PM

No possibility of a fix at this point?

marrr 07-16-2010 02:56 PM

any idea when that bug is gonna be fixed?

alexp999 08-14-2010 04:43 PM

1 Attachment(s)
I have fixed the bug where the system specs were being shown on the "About me" tab.

To fix follow the instructions below, or download the attachment which already has the fix applied. :)

OPEN

product-extratab.xml

FIND
Code:

                        <div class="subsection">
                                {vb: raw block_data.EPFP_tab}
                        </div>

REPLACE WITH
Code:

<div id="view-EPFP_tab" class="<vb:if condition="$selected_tab == 'EPFP_tab'">selected_view_section<vb:else />view_section</vb:if>">
                        <div class="subsection">
                                {vb: raw block_data.EPFP_tab}
                        </div>
</div>


FIND
Code:

    'hook_location' => 'profile_tabs_last',
ADD AFTER
Code:

    'wrap' => false

Save, import and be sure to check overwrite, so it updates the existing file.

Wired1 08-14-2010 10:22 PM

Still can't reproduce it. Just nuked my whole site / DB, rebuilt from scratch. Default 4.0.6 install, installed EPFP then the tab mod. Created 1 field and filled it out. No issues whatsoever. Cannot duplicate.

Everyone please list your extra mods.

alexp999 08-14-2010 10:31 PM

Quote:

Originally Posted by Wired1 (Post 2083985)
Still can't reproduce it. Just nuked my whole site / DB, rebuilt from scratch. Default 4.0.6 install, installed EPFP then the tab mod. Created 1 field and filled it out. No issues whatsoever. Cannot duplicate.

Everyone please list your extra mods.

Only other mods is the required mod for this and downloadsII, running 4.0.6 to reproduce, I find it will always do it if I log out, then view my profile. Tested on latest versions of opera, firefox, chrome and ie.

Wired1 08-14-2010 10:52 PM

Bloody hell, I think I just remembered what can cause this from some old 3.8.x development work. Are the profile fields in question in a category?

[Edit: just tried it, can't duplicate it, but try it anyway]

alexp999 08-14-2010 10:58 PM

I have some in a category, some not. All show up on about me tho. My fix sets the class to view_section instead of block which seemed to be the culprit.

Wired1 08-14-2010 11:19 PM

Why is the question though. Doesn't happen on default install. Are you still on vB 4.0.0 as per your profile suggests?

alexp999 08-14-2010 11:20 PM

No 4.0.6.

Wired1 08-15-2010 12:03 AM

Quote:

Originally Posted by alexp999 (Post 2083989)
I find it will always do it if I log out

Ahah! Yep, duplicated! Logging out's the key! Confirmed your code's the exact fix. WHY it happens and WHY that fixes it I have no idea. Thanks for the fix! How'd you figure out the solution?

4.0.1's being pushed up right now!

alexp999 08-15-2010 09:22 AM

Firstly I launched opera (as I find it really handy for debugging) and saw that the "Extra Tab" was having a class of "block" applied to it for the outermost div. All the other tabs were being given a class of "view-section". I changed the class to "view-section" and hit apply, low and behold it fixed it!

Now I had to find a way of having that code applied, not just modifying the incoming source for me locally.

I looked through the XML, and compared to as many other plugins I could find which also added a tab to the profile. (one being downloadsII) and I found that they were all specifying their own outer div, to set the class as "view-section"). So I tried changing the template in your xml, (as shown in the first find and replace in my fix). But that alone, just caused nothing to appear in the tab at all.

I found the vbulletin was adding the outermost div itself, outside the template you specify in the plugin. I looked a bit more and found that the other plugins using tabs, were telling vbulletin not to wrap the html output. So I added the line "'wrap' => false". Which stops vbulletin putting the outer most div on, therefore using the template, and having a class of "view-section".

Hope that makes sense, gets a bit complicated trying to explain things like this, lol.

Wired1 08-15-2010 05:07 PM

Note to self: Test in Opera more often :) Thanks for the blow by blow, helped out a lot!

DS MrSinister 10-29-2010 03:44 PM

any plans on making a update for vb4.0.8 new tabs?

Wired1 11-12-2010 12:57 PM

New tabs? I'll have to read up on that. Haven't looked at vB 4.0.x development in a while.

ackanime 11-13-2010 09:16 PM

Is there a way for me to make it so that one can use HTML or BBCode to link text for the new fields?

Sadly my coding skills are lacking and I've not very familar with vB's inner workings.

BTW liking this addon :)

Wired1 11-13-2010 11:35 PM

This mod (nor any of my other mods for that matter) change profile fields. Any added functionality to the fields themselves should be directed towards vB or another mod.

Saviour 03-08-2011 10:53 AM

Wired,

I'm not too clear on this post: https://vborg.vbsupport.ru/showpost....34&postcount=3

Are you saying to change the name given to the phrase, "extra_options"...do we edit the plugin, or do we just search for the phrase and edit the phrase from within the Admin CP?

Thanks, in advance...

Saviour 03-08-2011 10:58 AM

By the way...

Is this mod dependent on the User Profile fields being added to Extra Options? I have installed this mod, but haven't created any Profile Fields, as of yet. However, the tab is not showing up in the User's profile. I have already installed the Extra Profile Fields Page mod.

Thanks, in advance...

BlueCheri 03-08-2011 11:17 AM

Tagged, and thanx

Saviour 03-08-2011 02:27 PM

Regarding my last post: https://vborg.vbsupport.ru/showpost....8&postcount=34

Never mind...I found out after creating the Profile Fields... ;)

Bill Thebert 09-05-2011 01:07 PM

How would I go about restricting the appearance of this extra tab to only specific usergroups?

chiggy 05-19-2012 11:05 AM

Hello Wired1
Sir First Thanx For This Mod
I Realy Need This Mod But I Dont Know Its Work For Vbulletin 4.1.4 or Not I My Vb Version Is 4.1.4 So Tell Me What Do I Do If This Is Not Supported With My Version Then What I Do To Work With My Forum I Realy Need This Mod.
Thanx In Advanced

kether1 06-04-2012 12:26 PM

just updated my test forum from 4.1.9 to 4.2.0. I had to reinstall the product along with the parent product and all seems to work correctly, but I'm getting a display issue in the profile tab. The first two items on the list are always indented. For example:

the way the profile field items appeared before the update to 4.2.0 was like this:

Item 1
The list
Item 2
its list
Item 3
its list
Item 4
its list
Item 5
its list

Now, I get the following type of display: (I use white periods to make the spaces here for illustration purposes. That space appears blank on the tab in the profile. I just couldn't figure out how to get spaces here when typing this message)

.......Item 1
.......The list
..............Item 2
..............its list
Item 3
its list
Item 4
its list
Item 5
its list

Any idea how to fix this display? I have reinstalled the edits and both products. I've even tested moving the fields in the admincp and no matter what the arrangement, the first one is indented and the second one is indented that much more. The remaining fields all appear normal.

Thanks for your help.
Kether.

TerryMason 06-05-2012 05:53 PM

I'm getting the same behavior as kether1, except mine look like

.......Item 1
.......The list
..............Item 2
..............its list
............................Item 3
............................its list
..........................................Item 4
..........................................its list

However this is only when you are in edit mode. If you look at someone else's page, or or when not logged in, it looks fine.

Also, would it be possible to customize the text on this tab, to say one thing to the owner (tell us about your computer..), and another thing to everyone else (terrymason's computer specs).

Thanks for the great mod!


All times are GMT. The time now is 10:17 AM.

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.02559 seconds
  • Memory Usage 1,820KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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