Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Extra Profile Fields Page Details »»
Extra Profile Fields Page
Version: 2.1.10, by Wired1 Wired1 is offline
Developer Last Online: Dec 2021 Show Printable Version Email this Page

Category: Profile Enhancements - Version: 3.6.9 Rating:
Released: 08-06-2006 Last Update: 04-25-2008 Installs: 388
Uses Plugins Template Edits
Code Changes  
No support by the author.

IMPORTANT INSTRUCTIONS for those upgrading to vB 3.6.10!!!

https://vborg.vbsupport.ru/showpost....&postcount=269

EVERYONE: PLEASE BE CRYSTAL CLEAR IN WHAT ISSUES YOU ARE HAVING WITH THIS MOD IF YOU ARE USING IT IN 3.7.x! A 3.7.x version is already in the works.

------------------------------------------------------------

You can find the 3.5.x version of this hack here.

This hack will add an extra page to the User CP. This area can be used for extra profile fields that for one reason or another you would like to split from the main list.

Personally, I use this page for PC specs, but it can also be used for other specs as well (e.g. cars). I have the specs in a dropdown list under the user title in each user's post, as well as in their profile page, but that's another hack You'll see a link to it under Add-Ons to the right.

Here's some examples of how I use this hack (with the Add-On hack, Additional Section within Profile and Dropdown within Posts):
http://www.houseofhelp.com/forums/sh...ad.php?t=39826
http://www.houseofhelp.com/forums/member.php?u=15

# of plugin hooks: 1
# of php page edits: 3
# of new templates: 1
# of template edits: 1
# of new phrases: 2


To install, upload the product and then make the manual edits as listed in the text file.

Don't forget to hit INSTALL!

Support will only be given to people who have hit install.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #202  
Old 11-06-2007, 03:44 PM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Audentio View Post
Im guessing this doesnt work with 3.6.8? I dont see where to edit any of this stuff, nor does it show up in usercp nor anywhere in the acp that I can see. I checked vb options, everywhere.
It says at the top it works with 3.6.8, and I'm running 3.6.8 PL1, so yeah, it works The steps are correct. What are you not finding?
Reply With Quote
  #203  
Old 11-06-2007, 04:13 PM
principino1984 principino1984 is offline
 
Join Date: Jul 2006
Location: Italy
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using right now with 3.6.8 lp2

Marco
Reply With Quote
  #204  
Old 11-06-2007, 07:24 PM
Audentio's Avatar
Audentio Audentio is offline
 
Join Date: Mar 2007
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wired1 View Post
It says at the top it works with 3.6.8, and I'm running 3.6.8 PL1, so yeah, it works The steps are correct. What are you not finding?
I don't know, I don't know where to edit anything :P.
Reply With Quote
  #205  
Old 11-07-2007, 01:43 AM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure if this is related or not but I just updated to 3.6.8.PL2 and when trying to access member.php I ran into an error.

The error was rather generic so it led me to do further research. Basically unexpected end to the code on the last line of code in member.php (line 848).

When I compared the 3.6.8 version of member.php to the new version (3.6.8.pl2) I found that there was an addition on lines 573-574 as follows. Removing the added code (the vbulletin code, not the modification code) let's it run normally.

Any ideas?

PHP Code:
if ($execute['profilefields'])

This was right before the following code which has been added:

PHP Code:
    // *********************
    // CUSTOM PROFILE FIELDS
    
$profilefield_categories = array(=> array());
    
$profilefields_result $db->query_read_slave("
        SELECT pf.profilefieldid, pf.profilefieldcategoryid, pf.required, pf.type, pf.data, pf.def, pf.height
        FROM " 
TABLE_PREFIX "profilefield AS pf
        LEFT JOIN " 
TABLE_PREFIX "profilefieldcategory AS pfc ON(pfc.profilefieldcategoryid = pf.profilefieldcategoryid)
        WHERE pf.form = 0 " 
iif(!($permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canseehiddencustomfields']), "
                AND pf.hidden = 0"
) . "
        ORDER BY pfc.displayorder, pf.displayorder
    "
);
    while (
$profilefield $db->fetch_array($profilefields_result))
    {
        
$profilefield_categories["$profilefield[profilefieldcategoryid]"][] = $profilefield;
    }

    
$customfields '';
    
$customfields_category = array();
    foreach (
$profilefield_categories AS $profilefieldcategoryid => $profilefields)
    {
        
$category = array(
            
'title' => $vbphrase["category{$profilefieldcategoryid}_title"],
            
'description' => $vbphrase["category{$profilefieldcategoryid}_desc"],
            
'fields' => ''
        
);

        foreach (
$profilefields AS $profilefield)
        {
            
exec_switch_bg();

            
fetch_profilefield_display($profilefield$userinfo["field$profilefield[profilefieldid]"]);

            (
$hook vBulletinHook::fetch_hook('member_customfields')) ? eval($hook) : false;

            if (
$profilefield['value'] != '')
            {
                
$show['extrainfo'] = true;
                eval(
'$category[\'fields\'] .= "' fetch_template('memberinfo_customfields') . '";');
            }
        }

        
$customfields_category["$profilefieldcategoryid"] = $category['fields'];

        eval(
'$customfields .= "' fetch_template('memberinfo_customfields_category') . '";');
    }
    
// END CUSTOM PROFILE FIELDS
    // ************************* 
Reply With Quote
  #206  
Old 11-07-2007, 02:26 AM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Audentio View Post
I don't know, I don't know where to edit anything :P.
The instructions do state what files to edit, as well as what code to replace, or where in the code to edit.

Quote:
Originally Posted by RedGTiVR6 View Post
I'm not sure if this is related or not but I just updated to 3.6.8.PL2 and when trying to access member.php I ran into an error.
Just got the notice about PL2. Time to work on a new version!

It probably only needs a bracket moved or added based upon that snipped you posted.

Reading the news post about it here, only 3 pages were changed, which I don't recall being edited within the instructions.

Come to think of it, I think that was a change in PL1? May want to read through the current instructions here, but I don't recall editing that part of the instructions. Either way, I'll look at it tomorrow.
Reply With Quote
  #207  
Old 11-07-2007, 02:33 AM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It could have been in pl1...I didn't have a chance to make the update until pl2 was already out.
Reply With Quote
  #208  
Old 11-09-2007, 12:06 AM
Audentio's Avatar
Audentio Audentio is offline
 
Join Date: Mar 2007
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, I guess I have mods that might be conflicting with this since Ive edited and edited and re edited twice so there must be something wrong...

EDIT: I got it to work by actually typing the url because the table row wont appear in USERCP_SHELL. And when I edit one of the extra options, it doesn't show in member.php. I do have interactive profiles installed as well as Princeton's USERCP_SHELL mod.

EDIT2: Found the right template for those using Princetons mod. Its called GTPM_USERCP_SHELL. You will need to place the link in there.

And as for us using advanced profile fields...that might be a tough fix, what do you think? These fields wont show in there...
Reply With Quote
  #209  
Old 11-09-2007, 01:58 PM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got a standard member test acount I can log in as? BTW, I checked your member page, search your members for .co.uk and other domain extensions. Looks like at least one person is SEO spamming your site.
Reply With Quote
  #210  
Old 11-15-2007, 04:05 PM
fatal1980 fatal1980 is offline
 
Join Date: Jul 2006
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wired1 View Post
HOW TO ADD MULTIPLE PAGES:

I've attached EXAMPLES of modified instruction.txt and product.xml of what to change. ANYWHERE you see ###, INCLUDING the product name, change to whatever number you wish (but don't repeat in another extra page). I'd recommend editing the product and instructions first, and then follow them as normal.


cavyspirit, futuredood, BETIServices:
Any questions? BTW, futuredood, please hit install


1996 328ti:
cool beans


That would not be this hack, sorry. Your idea is definitely possible, but beyond the scope of this hack.


This hack has nothing in common with that one, and that hack is for 3.0.x, so it may not even be compatible with 3.6.x.
This broke within my vb installation, and I wasn't able to remove it afterwards. You need to change the id of the mod to something different than ###
Reply With Quote
  #211  
Old 11-16-2007, 06:03 PM
Wired1's Avatar
Wired1 Wired1 is offline
 
Join Date: Nov 2003
Location: Orlando, FL, USA
Posts: 1,361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

... ### is an EXAMPLE. It is NOT an ID. That is why in the post you quoted I said to REPLACE ### with whatever number you wish, e.g. 1, 2, 3, etc.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10084 seconds
  • Memory Usage 2,346KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete