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.
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?
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(0 => 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;
}
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
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.
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...
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.
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 ###