If you need any help or a chat then IM/PM or email me, Chip

Author Topic: Custom Fields On Memberlist  (Read 40 times)

Offline Chip (OP)

  • Server Admin
  • Moderator
  • Hero Member
  • ***
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6243
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Yesterday at 04:52:41 PM
  • Deeply Confused Learner
  • Profession: IT Engineer
Custom Fields On Memberlist
« on: December 02, 2019, 02:01:01 PM »
see https://www.simplemachines.org/community/index.php?topic=570634.msg4039107#msg4039107

EDIT: I did not get this working on Dev 2.0.15 (still have an issue with the config formatting though) by:

1. I had to unzip the mod into it's own directory in .Packages

2. I had to make the minor manual changes that failed to the existing code (and installed the rest)

3. modify install.php and removed any database code to this error:

Code: [Select]
Table 'smf209.custom_fields' doesn't exist
File: /var/www/html/Packages/temp/install.php
Line: 16

to now look like:

Code: [Select]
<?php

if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
{
        
$ssi true;
        require_once(
dirname(__FILE__) . '/SSI.php');
}
elseif (!
defined('SMF'))
        exit(
'<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');

?>


4. add the column into the table (your db and table name may vary):

Code: [Select]
USE smf209;
ALTER TABLE smf209_custom_fields
ADD   show_mlist tinyint(3)
;

5. check the box to display on memberlist in Admin -> Features and Options -> Profile Fields > Profession (that i added)

My files affected by that mod end with "-new" in the Sources and Themes subdirs.

Post Merged: December 02, 2019, 02:34:02 PM

forget all that - the Profession displays in Topics once the Profession field is added anyway.

i gave up as I still can't see it it the memberlist though !
« Last Edit: December 02, 2019, 02:41:44 PM by Chip »
I do not condone or support any illegal activities. All information is for theoretical discussion and wonder.
All activities discussed are considered fictional and hypothetical. Information of all discussion has been derived from online research and in the spirit of personal Freedom.

Tags:
 





TERMS AND CONDITIONS

In no event will d&u or any person involved in creating, producing, or distributing site information be liable for any direct, indirect, incidental, punitive, special or consequential damages arising out of the use of or inability to use d&u. You agree to indemnify and hold harmless d&u, its domain founders, sponsors, maintainers, server administrators, volunteers and contributors from and against all liability, claims, damages, costs and expenses, including legal fees, that arise directly or indirectly from the use of any part of the d&u site.


TO USE THIS WEBSITE YOU MUST AGREE TO THE TERMS AND CONDITIONS ABOVE



Founded December 2014