vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Profile Enhancements - Extra Profile Fields Page (https://vborg.vbsupport.ru/showthread.php?t=123253)

Wired1 11-06-2007 03:44 PM

Quote:

Originally Posted by Audentio (Post 1376827)
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?

principino1984 11-06-2007 04:13 PM

I'm using right now with 3.6.8 lp2

Marco

Audentio 11-06-2007 07:24 PM

Quote:

Originally Posted by Wired1 (Post 1377072)
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.

RedGTiVR6 11-07-2007 01:43 AM

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
    // ************************* 


Wired1 11-07-2007 02:26 AM

Quote:

Originally Posted by Audentio (Post 1377226)
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 (Post 1377447)
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.

RedGTiVR6 11-07-2007 02:33 AM

It could have been in pl1...I didn't have a chance to make the update until pl2 was already out.

Audentio 11-09-2007 12:06 AM

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...

Wired1 11-09-2007 01:58 PM

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.

fatal1980 11-15-2007 04:05 PM

Quote:

Originally Posted by Wired1 (Post 1060790)
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 ###

Wired1 11-16-2007 06:03 PM

... ### 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.


All times are GMT. The time now is 06:31 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.01428 seconds
  • Memory Usage 1,768KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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