View Full Version : Profile Enhancements - Extra Profile Fields Tab
Wired1
06-08-2010, 10:00 PM
Don't forget to hit INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=244255)!
This product requires my Extra Profile Fields Page (https://vborg.vbsupport.ru/showthread.php?t=229881) 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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=244255)!
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:
'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
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
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.
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 PL1The version number refers to the version of the EPFP mod, not your vB install.
nutcase
06-14-2010, 09:38 AM
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
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
<div class="subsection">
{vb: raw block_data.EPFP_tab}
</div>
REPLACE WITH
<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
'hook_location' => 'profile_tabs_last',
ADD AFTER
'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
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
I find it will always do it if I log outAhah! 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.php?p=2050834&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.php?p=2170878&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!
wrang
07-04-2012, 06:39 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!
Same for me its look strange with version 4.2.0
theczech
08-01-2012, 01:30 PM
I, too, am getting a weird behavior in the Tab:
field1______data1
.....................field2_______data2
........................................... field3_______data3
etc.
Thank you for the great mod. I'm hoping you can fix this bug shortly.
4.1.10
Wired1
09-27-2012, 03:43 PM
Edit it in the extra profile fields page, not on the page itself.
Losias
10-12-2012, 01:21 AM
Edit it in the extra profile fields page, not on the page itself.
Is there any way to disable editing on the page itself so it displays correctly?
**Nevermind, I figured it out. I edited the plugin file on line 102.
I changed it from...
$this->build_field_data($options['simple']);
if ($options['category'] == 'all')
{
$categories = $this->categories;
$show['profile_category_title'] = true;
$enable_ajax_edit = true;
}
to...
$this->build_field_data($options['simple']);
if ($options['category'] == 'all')
{
$categories = $this->categories;
$show['profile_category_title'] = true;
$enable_ajax_edit = false;
}
webmastersitesi
12-08-2013, 02:17 PM
tab seems not working at 4.2.2
BigMac1111
11-07-2014, 06:20 AM
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!
To fix it follow the instructions below (testing on 4.2.0).
Open template memberinfo_block_extra
REPLACE ALL WITH
<vb:if condition="$nowrap">
<div id="view-{vb:raw id}" class="<vb:if condition="$selected_tab == $id">selected_view_section<vb:else />view_section</vb:if>">
</vb:if>
<vb:if condition="$show['simple_link']">
<a class="floatright" href="{vb:link member,{vb:raw bbuserinfo}}&tab=EPFP_tab&simple=1">{vb:rawphrase view_your_about_me}</a>
</vb:if>
<vb:if condition="$show['edit_link']">
<a class="floatright" href="{vb:link member,{vb:raw bbuserinfo}}&tab=EPFP_tab">{vb:rawphrase edit_your_about_me}</a>
</vb:if>
<div class="blockbody userprof_content userprof_content_border">
<div class="blockrow member_blockrow">
<vb:if condition="$show['profile_category_title']">
<ul>
{vb:raw block_data.EPFP_tab}
</ul>
<vb:else />
{vb:raw block_data.EPFP_tab}
</vb:if>
</div>
</div>
<vb:if condition="$nowrap">
</div>
</vb:if>
kevius
11-29-2014, 06:13 PM
Thank you very much for all !
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.