Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: SethStudent on September 20, 2021, 04:04:56 AM

Title: Hide email address, unread posts list
Post by: SethStudent on September 20, 2021, 04:04:56 AM
Sorry for my ignorance. I just updated to 2.1 RC4 today (LOVE IT, wow!) and have had questions from members that I can't answer.

One: there used to be a personal profile option "allow other members to email me" that we can't seem to find (some want that turned off).

Two: Apparently Unread Posts alerts were obviously marked on the home page upon login in 2.0 (I never noticed that myself), and now there's instead a link on the Home page to Unread Posts. Any way to change that back?
Title: Re: Hide email address, unread posts list
Post by: Arantor on September 20, 2021, 04:23:39 AM
1. The option is now simply off IIRC.

2. Unread posts + unread replies link is on every page in the breadcrumb trail. Nothing gone, simply in a different place.
Title: Re: Hide email address, unread posts list
Post by: Kindred on September 20, 2021, 10:08:35 AM
you can style the links as "buttons" using CSS

e.g.
.unread_links a {
    color: #444;
    font-size: 0.7rem;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid;
    border-color: #ddd #bbb #aaa #ddd;
    border-radius: 3px;
    box-shadow: 1px 1px 1px rgba(221, 221, 221, 0.57);
    box-sizing: border-box;
    vertical-align: middle;
    padding-right: 10px !important;
}
Title: Re: Hide email address, unread posts list
Post by: SethStudent on September 20, 2021, 10:29:41 AM
Quote from: Arantor on September 20, 2021, 04:23:39 AM1. The option is now simply off IIRC.

I just can't find where to turn off "allow other members to email me," I think it used to be in Forum Profile. Has it been moved?

Quote from: Kindred on September 20, 2021, 10:08:35 AMyou can style the links as "buttons" using CSS

Thank you, great idea. I did see style sheets can now more easily edited. Pretty exciting!

Title: Re: Hide email address, unread posts list
Post by: Arantor on September 20, 2021, 10:30:54 AM
Yes the option has been removed because it's now forcibly off for everyone. Don't need an option to turn it off when off is the only choice.
Title: Re: Hide email address, unread posts list
Post by: SethStudent on September 20, 2021, 10:37:56 AM
Quote from: Arantor on September 20, 2021, 10:30:54 AMYes the option has been removed because it's now forcibly off for everyone. Don't need an option to turn it off when off is the only choice.

Oh OK I didn't realize that. Thank you. I had a member ask me how to turn it off. Being logged in as Admin, all the envelope icons appeared under all posting members' names. I then logged into my forum as a regular member, and the icons are now gone. It wasn't obvious to me—such as here, under my Posts:80 I see the envelope.
Title: Re: Hide email address, unread posts list
Post by: shadav on September 20, 2021, 10:48:44 AM
Quote from: SethStudent on September 20, 2021, 10:37:56 AM
Quote from: Arantor on September 20, 2021, 10:30:54 AMYes the option has been removed because it's now forcibly off for everyone. Don't need an option to turn it off when off is the only choice.

Oh OK I didn't realize that. Thank you. I had a member ask me how to turn it off. Being logged in as Admin, all the envelope icons appeared under all posting members' names. I then logged into my forum as a regular member, and the icons are now gone. It wasn't obvious to me—such as here, under my Posts:80 I see the envelope.

as an admin you can see everyone's
as a member you can see your own

if you wanted to you could just pull it from the display.template.php

// Show the email if necessary
if (!empty($message['member']['email']) && $message['member']['show_email'])
echo '
<li class="email"><a href="mailto:' . $message['member']['email'] . '" rel="nofollow">', ($settings['use_image_buttons'] ? '<span class="main_icons mail centericon" title="' . $txt['email'] . '"></span>' : $txt['email']), '</a></li>';