Is there a way to add "custom notes" below a user's name?
5 posters
Page 1 of 1
Is there a way to add "custom notes" below a user's name?
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.
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
Re: Is there a way to add "custom notes" below a user's name?
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
Re: Is there a way to add "custom notes" below a user's name?
Hello
Here is the tutorial for profile fields
https://help.forumotion.com/t11187-personalized-profile-fields-warning-system?highlight=Fields
Here is the tutorial for profile fields
https://help.forumotion.com/t11187-personalized-profile-fields-warning-system?highlight=Fields
TonnyKamper likes this post
Re: Is there a way to add "custom notes" below a user's name?
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?
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.
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?
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.
Re: Is there a way to add "custom notes" below a user's name?
The members list is not made to hold a lot of data about the members it is made to just show the basic things.
Re: Is there a way to add "custom notes" below a user's name?
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:
Replace with:
Save. Publish.
Result:
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:
Replace with:
Find:
Replace with:
At the end of the template, insert this code:
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.
Save. Publish.
AP - Display - Colors & CSS - CSS Stylesheet
Save.
Result:
The styling of the profile field is already up to you
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:
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.
Save. Publish.
AP - Display - Colors & CSS - CSS Stylesheet
- Code:
div.res dl#field_id1 dt {
display: none;
}
Save.
Result:
The styling of the profile field is already up to you
Razor12345- Support Moderator
- Posts : 1586
Reputation : 268
Language : Ukr, Rus, Eng
Location : Ukraine
Ape, Niko, TonnyKamper and mc nabulsy like this post
Re: Is there a way to add "custom notes" below a user's name?
Problem solved & topic archived.
|
Similar topics
» Forum Mod/Mod Notes....
» Welcome To The-EN!
» Is there a way to let the options for sticky notes available on my forum?
» How do I set up users and users who have been on the forum for less than 7 days?
» Custom BBCodes
» Welcome To The-EN!
» Is there a way to let the options for sticky notes available on my forum?
» How do I set up users and users who have been on the forum for less than 7 days?
» Custom BBCodes
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum