dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse

This website has run out of funding so feel free to contribute if you can afford it (see footer)

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

Offline Chip (OP)

  • Server Admin
  • Hero Member
  • *****
  • Administrator
  • *****
  • Join Date: Dec 2014
  • Location: Australia
  • Posts: 6648
  • Reputation Power: 0
  • Chip has hidden their reputation power
  • Gender: Male
  • Last Login:Yesterday at 05:53:23 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 »
friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
Our Discord Server invitation link is https://discord.gg/jB2qmRrxyD

Tags:
 


dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse





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
SimplePortal 2.3.6 © 2008-2014, SimplePortal