Advertisement:

Author Topic: Where is a member's profession displayed?  (Read 609 times)

Offline brucegust

  • Semi-Newbie
  • *
  • Posts: 24
Where is a member's profession displayed?
« on: November 25, 2019, 09:15:54 PM »
I just updated my client to version 15. She was using 7 so I'm guessing there may very well be several changes in terms of navigation and what's displayed, but I don't know...

Here's the thing:

It used to be that when you logged on to the Admin page, you would in the upper left hand corner an alert that told you how many members were awaiting approval. You would click on that link and be given a list of candidates and from there you could see each of their respective professions.

At this point, she doesn't have any members awaiting approval, but she is seeing activity in the Messages section that's been created by users that she recognizes as bogus. What's made it easy to confirm her suspicions was the profession of these renegades. But when you click on "View the Member List," there's no reference to their profession and when I look at the member table, I don't see a column heading that suggests this info is even available in the system.

Am I missing something?

Where would a user's profession be displayed?

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,626
Re: Where is a member's profession displayed?
« Reply #1 on: November 25, 2019, 09:22:11 PM »
Sounds like advanced profile fields.  Upgrade shouldn't have broken that if you patched from .7 to .15 in package manager.
Look in Admin -> Core Features, is Advanced Profile Fields enabled?  Do you see the field in Admin -> Features and Options -> Profile Fields?

Offline brucegust

  • Semi-Newbie
  • *
  • Posts: 24
Re: Where is a member's profession displayed?
« Reply #2 on: November 25, 2019, 09:40:59 PM »
Evening, Sir!

Since posting this, I found something: In the database, there's a table called "smf_custom_fields." In that table, I see "Occupational Specialty," so it is in the system!

But...

I don't know how to ensure that field is accessible and it sounds from your post that there's a setting I need to activate in order for it to be displayed.

When I go to Admin, I don't see "Core Features." The "Profile Fields" suggestion you made sounds completely on point, but I don't how to get there.

 When I go to "Features and Options," I don't see Profile Fields.

What do you think?

Offline brucegust

  • Semi-Newbie
  • *
  • Posts: 24
Re: Where is a member's profession displayed?
« Reply #3 on: November 25, 2019, 09:47:02 PM »
OK! I did find "Profile Settings" and I was able to activate it! But it's still not displaying on the user's individual profile or on the member list. Is there a way in which you can dictate where the field shows up?

Here's a screenshot of what I'm looking at...


Offline brucegust

  • Semi-Newbie
  • *
  • Posts: 24
Re: Where is a member's profession displayed?
« Reply #4 on: November 25, 2019, 09:51:16 PM »
This is where I want the "occupation" specialty profile setting to show up.

Offline efk

  • Jr. Member
  • **
  • Posts: 191
  • Gender: Male
Re: Where is a member's profession displayed?
« Reply #5 on: November 25, 2019, 09:57:55 PM »
Slow down, click on Modify button and you should be able to set it be like that from given options, read what you have inside Modify. About Standard Profile Fields, I think they can't be modified the same way you can manipulate with Custom Profile Fields. So go experiment for some time before asking more questions :)
Not sure atm, but you might need mod to display on member list.

Offline brucegust

  • Semi-Newbie
  • *
  • Posts: 24
Re: Where is a member's profession displayed?
« Reply #6 on: November 26, 2019, 04:06:46 PM »
This is what I get when I click on "Modify..."

There's nothing on this screen that I can find that would facilitate the field showing up on a list of members anywhere in the app.

What am I missing?

Offline brucegust

  • Semi-Newbie
  • *
  • Posts: 24
Re: Where is a member's profession displayed?
« Reply #7 on: November 26, 2019, 04:08:34 PM »
Admin -> Configuration -> Features and Options -> Profile Fields -> Modify

That's where I'm at. Let me know if I need to go somewhere else.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: Where is a member's profession displayed?
« Reply #8 on: November 26, 2019, 04:23:55 PM »
Showing them on the memberlist is not a feature in 2.0, but it is in 2.1.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,626
Re: Where is a member's profession displayed?
« Reply #9 on: November 26, 2019, 04:42:17 PM »
It can be done (think I did it once), requires some custom coding.
« Last Edit: November 26, 2019, 04:52:33 PM by Sir Osis of Liver »

Offline efk

  • Jr. Member
  • **
  • Posts: 191
  • Gender: Male
Re: Where is a member's profession displayed?
« Reply #10 on: November 26, 2019, 06:29:26 PM »
Custom Fields On Memberlist
https://custom.simplemachines.org/mods/index.php?mod=1520

I thought its easier.

Offline brucegust

  • Semi-Newbie
  • *
  • Posts: 24
Re: Where is a member's profession displayed?
« Reply #11 on: December 01, 2019, 09:26:34 PM »
eftk...

Not sure whether or not the number of errors contained in the test installation of this mod represents a dealbreaker or not. I have made a backup of everything, so I've got a net, but if this was you, would you proceed or would you be looking for another option?

Here's a screenshot:


Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 9,626
Re: Where is a member's profession displayed?
« Reply #12 on: December 01, 2019, 09:52:09 PM »
If you click on the edit widget left side, it will show you the target code and the edit, you can do it manually.  If you proceed with the install as is, bad things will happen.

Offline efk

  • Jr. Member
  • **
  • Posts: 191
  • Gender: Male
Re: Where is a member's profession displayed?
« Reply #13 on: December 01, 2019, 10:04:22 PM »
brucegust I am wrong guy to ask that, but when I see problems I always avoid. Also there is at bottom in Package Manager "Advanced" and there you can emulate version before installing, but I usually let friends to play with that, and last time when I've touched that was about year ago. Also search for topic for that mod, maybe there are some instructions that you need to know. I always read a lot about mod before installing, and from that I learned almost all what I know, also have lists of useful mods on side.
And of course, listen what people with nice amount of posts are saying to you.

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,543
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk
Re: Where is a member's profession displayed?
« Reply #14 on: December 01, 2019, 11:19:58 PM »
Yes, I tried to install that and after making the modifications manually on 2.0.15, i got this:

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

the only difference is the "." after smf209 - i use a "_" so it won't install anyway !
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,543
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk
Re: Where is a member's profession displayed?
« Reply #15 on: December 02, 2019, 12:33:45 AM »
Just for you - I got this working on 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 to the existing code

3. modify install.php and removed any database code 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)

it works now on 2.0.15 !
« Last Edit: December 02, 2019, 12:57:37 AM by aegersz »
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,543
  • Gender: Male
  • the "mods and tweaks" junkie
    • dopetalk
Re: Where is a member's profession displayed?
« Reply #16 on: December 02, 2019, 01:37:38 AM »
forget all that, the field displays in the Topic anyway and the memberlist field still eludes me  :P >:(
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Offline brucegust

  • Semi-Newbie
  • *
  • Posts: 24
Re: Where is a member's profession displayed?
« Reply #17 on: December 03, 2019, 03:01:11 PM »
Guys, this is still a "thing..."

I went out to https://custom.simplemachines.org/mods/index.php?action=parse and went through every change in the code by hand, uploaded it and got an error that was generated from the "MemberSettings.php" page that said, "show_mlist" isn't a column in the 'custom_fields' table."

And they're right.

Any other ideas?

This was a fixture in my client's previous version and I really do want to figure it out.

Again, I just want to have one more column on the page that displays the members. That column would be their occupation.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,980
    • StoryBB/StoryBB on GitHub
Re: Where is a member's profession displayed?
« Reply #18 on: December 03, 2019, 03:05:48 PM »
Well, the plugin would have a script that would have to be run to add the show_mlist column... it'll be part of the zip file and the parse page should indicate you have to run this.

And we understand your need and what you're trying to do, just this is not something the core supports at this time, so you'll need to reimplement it using that mod.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline brucegust

  • Semi-Newbie
  • *
  • Posts: 24
Re: Where is a member's profession displayed?
« Reply #19 on: December 03, 2019, 03:21:56 PM »
The problem with the zip file is that when I attempted to upload it and run it, it generated all kinds of errors, however...

Popping the hood on the install.php page, I see your point.

Can I just run the install.php page from the root directory on its own? Seems like the only thing that its affecting is the database. All of the other code modifications have been done.