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)

Turbe 01-03-2009 08:20 PM

Quote:

Originally Posted by jjdurrant (Post 1673759)
"Extra Profile Fields" How do I change the name of the link?

Quote:

Originally Posted by Wired1 (Post 1674226)
WHICH link? If you mean the ones in the UserCP, the variables are already shown in the attached pics.


I think perhaps he was asking how to change the string "Edit Extra Options" that is shown in the User's CP..

I would like to change it to something else: "Edit Referral System" or "Edit Referral System Options"


Where is that done?

EDIT: I am asking pre-install questions.. :)

lazyseller 01-04-2009 12:38 AM

Did you try phrases?

firstimecaller 01-07-2009 09:14 AM

in the userCP template responsible for making the menu on the left side (I don't know which off the top of my head) I added a conditional that checked the usergroup (you can find out how to do that here somewhere, it is trivial) and added an element in that to display the link to the extra profile fields edit/update page. On that page, you can also add a check for that usergroup, and deny access unless they have permission, but I didn't bother in my application.

transparent 01-17-2009 12:58 AM

Could you please update this for 3.8 Gold??

I have it installed and working except if you set individual profile fields to show on the member list or be searchable they no longer appear. They were appearing perfectly on 3.7. Everything else seems to work fine including your additional profile tab hack!

It would rad if you could update it!

Wired1 01-18-2009 08:49 AM

Quote:

Originally Posted by transparent (Post 1715294)
Could you please update this for 3.8 Gold??

I have it installed and working except if you set individual profile fields to show on the member list or be searchable they no longer appear. They were appearing perfectly on 3.7. Everything else seems to work fine including your additional profile tab hack!

It would rad if you could update it!

Don't recall that ever being an offical part of the product. IIRC that was a hack of the member list someone posted.

GHC Webmaster 01-27-2009 06:59 AM

Quote:

Originally Posted by Wired1 (Post 1716628)
Don't recall that ever being an offical part of the product. IIRC that was a hack of the member list someone posted.

That's correct, see here

I notice one thing however. Using this code all profile fields from the extra page show on the advanced search form, even if they are set to not be searchable. Anyone an idea why?

GHC Webmaster 01-28-2009 09:36 AM

Quote:

Originally Posted by GHC Webmaster (Post 1725957)
I notice one thing however. Using this code all profile fields from the extra page show on the advanced search form, even if they are set to not be searchable. Anyone an idea why?

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)


Wired1 03-14-2009 10:55 PM

3.8.x version released:
https://vborg.vbsupport.ru/showthread.php?t=208356

No code changes whatsoever.

Cees 03-15-2009 11:00 AM

Hi, im working with 3.8.1 and installed this mod and the mod for a extra tab. Working great. One question.. If somebody register, then the extra page doesnt have a separed block. It fields stand under other information.. Is it possible to get a on his one standing thing?

Wired1 03-15-2009 06:37 PM

Quote:

Originally Posted by Cees (Post 1768575)
Is it possible to get a on his one standing thing?

I have no idea what you just said, but 3.8.x questions should be in the 3.8.x thread about the tab mod, NOT in this thread.


All times are GMT. The time now is 01:03 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.01299 seconds
  • Memory Usage 1,745KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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