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.

Majava 11-19-2007 01:32 AM

I have had this isntalled for quite some time, but I have just recently noticed that the one field I wanted to be searchable isnt. When I look in the field manager in the AdminCP, the option for it to show up and be searchable is there and marked but when you look in the members list, it doesnt show in list or in advanced search.

Is it SUPPOSED to be and I messed something up or not?

Wired1 11-19-2007 12:28 PM

It's not supposed to be searchable. If you hack the memberpage it may work, never really tested it.

Charmedfan 11-22-2007 02:24 PM

Hey,
very nice hack, is it possible that the useres have to fill it out by the registration or that they would be remebered after it?

Thanks!

Wired1 11-23-2007 06:04 PM

Quote:

Originally Posted by Charmedfan (Post 1387522)
Hey,
very nice hack, is it possible that the useres have to fill it out by the registration or that they would be remebered after it?

Thanks!

Any profile field can be mandatory, it's a standard option when you make profile fields. Personally, I choose to just show those fields at registration, and not make them mandatory.

Dinatius 01-14-2008 03:10 PM

Quote:

Originally Posted by Tralala (Post 1233010)
The only downside is that right now I have three "regular" User Profile fields that I had designated as "not searchable" -- and now, as result of this edit, they appear in the "Members List: Advanced Search."

Got this narrowed down a bit - if you create a second db query for "form = 6" instead of tacking it on after form = 0, you can get only the ones you've designated as searchable. The problem I'm running into now is that hidden fields aren't showing up for people who can see hidden fields.

Wired1 01-14-2008 06:05 PM

When 3.7.0 comes out I may try tackling the search, or start looking for a mod that may do it.

Mr. Boo 01-27-2008 09:06 AM

Hi, Just wondering if this will be released for VB 3.7 just upgraded the forums and now realising how much I needed this mod...

*slaps self* for not checking if it was compatible

Wired1 01-28-2008 05:15 PM

When 3.7 comes out I will start working on it, yes.

TCE Killa 01-28-2008 05:22 PM

This is great, just what I needed, thanks alot. Installed.

Wired1 01-28-2008 06:18 PM

No problemo!

PRCNet 01-31-2008 06:04 AM

First off, Great mod. Love it.

Got it installed, and essentially working. Only one issue.
I've created User Profile Fields in the Admincp for use with the Options:Characters (The vbphrase I chose to create/use) yet when I click on Edit Characters in the UserCP the page comes up but no Profile Fields are there.

I know, I'm an idiot. What did I do wrong?

Wired1 01-31-2008 11:07 PM

If all the steps were done, it should work. Hrm...

kau 02-03-2008 08:44 AM

How do you integrate this hack after upgrading from 3.5.x to 3.6.x

If I uninstall the 3.5.x version and install the 3.6.x will all my user's data get erased?

Nineaxis 02-03-2008 09:27 PM

Hi Wired1. Great hack, thanks! Works good.

My question is, can we add more than one extra profile fields page?

If so, how would this work?

Say for example, I have users who have widgets, one red, one blue, one yellow.

How can I it say:

Edit Yellow Widgets
Edit Blue Widgets
Edit Red Widgets

And each one have their own profile page. Does this hack support this?

Thanks!!

TCE Killa 02-06-2008 01:11 AM

Is there away to add a second one aswell? I have added one, I just need one more, thanks.

Wired1 02-06-2008 03:25 AM

Quote:

Originally Posted by kau (Post 1435199)
How do you integrate this hack after upgrading from 3.5.x to 3.6.x

Uninstall 3.5.x version by reversing the install, then install 3.6.x.

Quote:

Originally Posted by kau (Post 1435199)
If I uninstall the 3.5.x version and install the 3.6.x will all my user's data get erased?

No. It's just a different way to look at profile fields.


Nineaxis, TCE Killa: Yes. The instructions are somewhere in the thread, but basically it involves duplicating the hack, and changing a couple of variable names. Only other way to do it would be to create a database to hold the fields, which some are against.

Wired1 02-06-2008 03:30 AM

PRCNet: did you edit the pages manually as per the instructions? Also, you've turned PM receiving off.

MiahBeSmokin420 02-10-2008 05:40 AM

so i can just edit all that stuff such as extra options and lets just say extra options 2 for example

do that to all the file edits and the xml and then i can just upload it again and have 2 new pages right?

ya i think im about right on that im not too sure though idk ill test that out tomarrow

thanks

**Clicked Installed**

Wired1 02-10-2008 06:29 AM

pretty much yea

Jase2 02-16-2008 06:30 PM

Hello Wired1,

Does this have to be the light blue in the postbit like on your site, or can it be a different colour?

Regards Jason :)

Wired1 02-17-2008 02:40 AM

IIRC, it follows the template of the forum.

Jase2 02-24-2008 09:54 PM

Ok, thanks.

I see TechSpot are using this drop down on their site, is this yours, or have they custom coded that? They don't have the blue background, just blue writing and that's how I'd like mine (if possible).

Regards Jason :)

Geeps 02-24-2008 10:13 PM

Just got it working on our forum. Should be a great addition for our members!

Hades-1 02-24-2008 11:36 PM

i like how on the demo profile it replaces the usergroups section with the extra fields.

Will it do that to my site to? I dont use joinable usergroups anyway so swapping out those sections of memberinfo would be nice.

Wired1 02-25-2008 05:37 PM

Quote:

Originally Posted by Jase2 (Post 1450292)
I see TechSpot are using this drop down on their site, is this yours, or have they custom coded that? They don't have the blue background, just blue writing and that's how I'd like mine (if possible).

Looks like they coded that on their own. The dropdown is either by their own coding, or the vBulletin dropdown one, but modified.


Quote:

Originally Posted by Geeps (Post 1450303)
Just got it working on our forum. Should be a great addition for our members!

Thanks!


Quote:

Originally Posted by Hades-1 (Post 1450346)
i like how on the demo profile it replaces the usergroups section with the extra fields.

Will it do that to my site to?

If you follow all of the instructions, yes. IIRC there's a section in the instructions where it says that's what you're doing.

Hugo Firth 02-27-2008 04:17 PM

Hi, Is it possible to add more than one set of fields (i.e. two seperate boxes on the user profile page) ? :) I Havent looked into this code much, but might try and construct a simple gallery with it.

Wired1 02-27-2008 05:14 PM

Quote:

Originally Posted by Hugo Firth (Post 1452210)
Hi, Is it possible to add more than one set of fields (i.e. two seperate boxes on the user profile page) ? :) I Havent looked into this code much, but might try and construct a simple gallery with it.

Depends on what you want to do, but yes, the code could be somewhat easily modified to have some fields on one box, some in another.

What type of gallery are you thinking of though? If pictures, then read up on vBulletin 3.7.0 :)

Hugo Firth 02-27-2008 05:26 PM

No - more of a portfolio (so actually - yeah - pictures :p my bad), I have that part already, Im not that advanced at php, but I was wondering whether I could combine your code and this to make a simple vB mod for designers etc :)

BUT, I would like to have Another field, with more conventional info on it, and possible using your dropdown mod :) and I wondered if I could do both

Wired1 02-27-2008 08:01 PM

Hrm, a bit confused as to what you want to do exactly. Yes, you can have pics and my mod in your member profile page. 3.7.0 will drastically change the member page however, so I'd take a look at the screenshots of the new page in the vBulletin.com forums (under Announcements).

RokuDaMerlin 02-28-2008 12:04 AM

i have installed this and i see not the link in my profil :/


All times are GMT. The time now is 11:41 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.01546 seconds
  • Memory Usage 1,852KB
  • 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
  • (13)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
  • (40)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