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)

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.


All times are GMT. The time now is 10:39 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.01232 seconds
  • Memory Usage 1,733KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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