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 Page (https://vborg.vbsupport.ru/showthread.php?t=179989)

yotsume 08-16-2009 12:48 AM

Quote:

Originally Posted by Wired1 (Post 1868167)
What version of FF do you have?

The fields are so long probably because of the profile field settings per field.

My fields are set at 80 long because they need to be for my members. In my screenshots you will see your page has a bunch of blank space on the left side. How can I get them moved to the left side please?

The problem is in latest FF IE Safari etc. Not sure why but again how can I get the wasted space removed on the left.

Your own screenshot seems to show the fields set way off to the right! Great for fields that are very short.... but not everyone will use short fields and I guess will have the same layout problem.

Thanks...

yotsume 08-16-2009 01:14 AM

Quote:

Originally Posted by GHC Webmaster (Post 1727028)
Solved this myself, put brackets around the "form = 0 OR form = 6" bit, which makes the complete code edit of memberlist.php for the search function:

FIND line 233 (vB 3.8.1)

Code:

    // Process Custom Fields..
    $userfields = '';
    $profilefields = $db->query_read_slave("
        SELECT profilefieldid, type, data, optional, memberlist, searchable
        FROM " . TABLE_PREFIX . "profilefield
        WHERE form = 0 "

REPLACE WITH

Code:

    // Process Custom Fields.. EDITED
    $userfields = '';
    $profilefields = $db->query_read_slave("
        SELECT profilefieldid, type, data, optional, memberlist, searchable
        FROM " . TABLE_PREFIX . "profilefield
        WHERE form = 0 OR form = 6"

FIND line 905 (vB 3.8.1)

Code:

    // get extra profile fields
    $profilefields = $db->query_read_slave("
        SELECT *
        FROM " . TABLE_PREFIX . "profilefield
        WHERE searchable = 1
            AND form = 0

REPLACE WITH

Code:

    // get extra profile fields.. Edited
    $profilefields = $db->query_read_slave("
        SELECT *
        FROM " . TABLE_PREFIX . "profilefield
        WHERE searchable = 1
            AND (form = 0 OR form = 6)


Does this code edit make the fields we had marked searchable and onces we do not mark not searchable? The wording in not clear to me.

I need fields I move to this mods new page to be searchable if I set them that way.

Thanks!

Wired1 08-16-2009 01:56 AM

Quote:

Originally Posted by yotsume (Post 1868235)
My fields are set at 80 long because they need to be for my members. In my screenshots you will see your page has a bunch of blank space on the left side. How can I get them moved to the left side please?

Ok, did some quick testing with a normal profile field set to a field length of 80 within the standard Additional Information area. See pic below:
https://vborg.vbsupport.ru/attachmen...hmentid=103291

Basically, the space within the red box is dynamic depending on the browser's width. In my case I use a widescreen, so there's more spacing there. The blue box outlines the standard border. The EPFP uses standard vBulletin code to display the profile fields in a separate page. This is why the problem exists both in a standard profile field area as well as in the EPFP.

One option would be to lower the profile field length to a smaller number. This doesn't affect the character size of the variable itself, only the viewable size when editing it. Ultimately it's a limitation of the forum software itself in how it shows the editable area and overlaps the border.


Quote:

Originally Posted by yotsume (Post 1868252)
Does this code edit make the fields we had marked searchable and onces we do not mark not searchable? The wording in not clear to me.

Haven't tested his code myself, but yes, that's exactly what it should do. All that code does is allow the forum to be able to see the profile fields within the EPFP. From there standard profile field parameters would apply.

yotsume 08-16-2009 02:38 AM

Ok I follow you. Should be an easy fix to just make the fields a little shorter and if needed multi line input so more is viewable.

I would have rather done one edit to a template of a file to try and get the space on the right removed but reediting 100 fields will work! UGGGG LOL

We use your mod to make an extensive member question section in a new tab due to the nature of our site.

I will test the code edits out to get the fields searchable. THANKS!

scandalous 12-03-2009 09:34 AM

Is there a way to create extra similar pages using this product?

I need around 4 pages with the profile fields, can this be done? :)

Wired1 12-03-2009 03:03 PM

Check the 3.8.x thread.

scandalous 12-04-2009 12:51 AM

I checked and couldn't find what I was looking for.

Basically, there's going to be x amount of different sets of profile fields.

For example...

1.1
1.2
1.3
1.4
------
2.1
2.2
2.3

And so on, but we wish to have say set 1 on one page and then set 2 on another, to make the profile fields less cluttered on one page.

Can you help me with this? I would be grateful if you could. :)

Wired1 12-04-2009 06:08 AM

What version of vB do you have?

scandalous 12-04-2009 03:24 PM

vB v3.7.2 :)

Wired1 12-09-2009 01:09 AM

IIRC the vB 3.8.x page already shows you how to create a 2nd page (I believe someone attached a 2nd page mod to the thread). Either way I'm working on making the vB 4.0 version be easier to use in the sense of unlimited pages (e.g. it'll use new tables).


All times are GMT. The time now is 09:23 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.01349 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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