The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Is there a way to add "custom notes" below a user's name?

5 posters

Go down

Solved Is there a way to add "custom notes" below a user's name?

Post by Friendly Toucan April 7th 2023, 11:55 pm

Hello,

I would like to add a custom text note just below the name of a few specific users. Everywhere if possible. But if not, in the memberlist and in threads would do.

phpBB3

Ideas?

Thanks.


Last edited by Friendly Toucan on May 3rd 2023, 7:20 pm; edited 1 time in total
Friendly Toucan
Friendly Toucan
Forumember

Posts : 243
Reputation : 4
Language : English

https://cerulean-blues.forumotion.com

Back to top Go down

Solved Re: Is there a way to add "custom notes" below a user's name?

Post by mc nabulsy April 8th 2023, 1:09 am

u can go through user&groups then profile then add a field and make it a text zone or text field and give the permissions
mc nabulsy
mc nabulsy
Forumember

Male Posts : 37
Reputation : 3
Language : Arabic
Location : Palestine

https://iinkor.com

Back to top Go down

Solved Re: Is there a way to add "custom notes" below a user's name?

Post by skouliki April 8th 2023, 8:01 am

skouliki
skouliki
Manager
Manager

Female Posts : 15399
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

TonnyKamper likes this post

Back to top Go down

Solved Re: Is there a way to add "custom notes" below a user's name?

Post by Friendly Toucan April 10th 2023, 12:40 am

Hey,

I already thought of doing it that way. But how would I then add that same note under the user's name in the memberlist?

Is there a way to add "custom notes" below a user's name? Mouais

Should add that I'm using the code provided here, to put the name below the avatar in the memberlist:

https://help.forumotion.com/t161897-would-like-to-make-a-few-changes-to-the-memberlist

Ideas?

Thanks.
Friendly Toucan
Friendly Toucan
Forumember

Posts : 243
Reputation : 4
Language : English

https://cerulean-blues.forumotion.com

Back to top Go down

Solved Re: Is there a way to add "custom notes" below a user's name?

Post by Ape April 10th 2023, 1:19 pm

The members list is not made to hold a lot of data about the members it is made to just show the basic things.


Is there a way to add "custom notes" below a user's name? Left1212Is there a way to add "custom notes" below a user's name? Center11Is there a way to add "custom notes" below a user's name? Right112
Is there a way to add "custom notes" below a user's name? Ape_b110
Is there a way to add "custom notes" below a user's name? Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19452
Reputation : 2012
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Is there a way to add "custom notes" below a user's name?

Post by Razor12345 April 10th 2023, 8:00 pm

Good evening!

I can offer two solutions to the issue:

1) You can use the standard field 'HOBBIES'

AP - Users & Groups - Profiles - Profile fields - Here you can rename the field, e.g., 'Some field'

AP - Display - Templates - General - memberlist_body

Find:

Code:
<th class="interests">{L_INTERESTS}</th>

Replace with:

Code:
<th class="interests">Some field</th>

Save. Publish.

Result:

Is there a way to add "custom notes" below a user's name? Screen89

Is there a way to add "custom notes" below a user's name? Screen90

2) Use the data upload I suggested in a neighboring thread: https://help.forumotion.com/t162228-about-the-contact-column#1137323

AP - Users & Groups - Profiles - Profile fields - Green plus
Create a new field, e.g. "Status"
Display - Profile and Messages

AP - Display - Templates - General - memberlist_body

Find:

Code:
<th class="interests">{L_INTERESTS}</th>

Replace with:

Code:
<th class="interests">Status</th>

Find:

Code:
<td>{memberrow.INTERESTS}</td>

Replace with:

Code:
<td><div class='res'></div></td>

At the end of the template, insert this code:

Code:
<script>
  window.addEventListener('load', function() {
 
 
    let aaa = document.querySelectorAll('a.tooltipstered');
    let bbb = document.querySelectorAll('td div.res');
 
    aaa.forEach(function(item, index) {
        let adr = item.href;
        $.ajax({
                  url: adr,
                  method: "GET",         
                  data: 'dl#field_id1',     
                  dataType: "html",     
                  success: function (data) {
                    let div = document.createElement('div');
                    div.innerHTML = data;
          let find_el = div.querySelector('dl#field_id1');
         
                    bbb[index].append(find_el);
 
          }
        })
    })
 
  });
 
</script>

dl#field_id1 - the id depends on the number of fields created. If you know how to use the developer tools, you can check the field id yourself. If not, send me the username and password for a regular user account.

Is there a way to add "custom notes" below a user's name? Screen87

Save. Publish.

AP - Display - Colors & CSS - CSS Stylesheet

Code:
div.res dl#field_id1 dt {
  display: none;
}

Save.

Result:

Is there a way to add "custom notes" below a user's name? Screen88

Is there a way to add "custom notes" below a user's name? Screen91

The styling of the profile field is already up to you
Razor12345
Razor12345
Support Moderator
Support Moderator

Male Posts : 1586
Reputation : 268
Language : Ukr, Rus, Eng
Location : Ukraine

Ape, Niko, TonnyKamper and mc nabulsy like this post

Back to top Go down

Solved Re: Is there a way to add "custom notes" below a user's name?

Post by skouliki April 21st 2023, 12:41 pm

is this solved?
skouliki
skouliki
Manager
Manager

Female Posts : 15399
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Is there a way to add "custom notes" below a user's name?

Post by Ape May 4th 2023, 1:04 am

Problem solved & topic archived.
Please read our forum rules: ESF General Rules


Is there a way to add "custom notes" below a user's name? Left1212Is there a way to add "custom notes" below a user's name? Center11Is there a way to add "custom notes" below a user's name? Right112
Is there a way to add "custom notes" below a user's name? Ape_b110
Is there a way to add "custom notes" below a user's name? Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19452
Reputation : 2012
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum