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.
The forum of the forums
3 posters

    Disable Email Field On Posts

    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    In progress Disable Email Field On Posts

    Post by Take Notes Mon 23 May 2016 - 4:49

    Can anyone please help me with this? I see that the support managed to do this.

    Deleting the image leaves a gap, I can't seem to figure out how to not show it and not have the gap, is modifying a template involved?
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51499
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: Disable Email Field On Posts

    Post by SLGray Mon 23 May 2016 - 20:19

    AD > Users & Groups > Users > Profiles
    Contact Tab
    Modify the email field.
    Then change the order where the field is either the first one or last one on the order.



    Disable Email Field On Posts Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    In progress Re: Disable Email Field On Posts

    Post by Take Notes Mon 23 May 2016 - 22:36

    The thing is is that there is no email field.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Disable Email Field On Posts

    Post by Ange Tuteur Mon 23 May 2016 - 23:23

    That's a user preference.

    Go to your Profile > Preferences > Allow members to contact me by e-mail : NO
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    In progress Re: Disable Email Field On Posts

    Post by Take Notes Mon 23 May 2016 - 23:26

    I know but is there a way to disable it for all users?
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Disable Email Field On Posts

    Post by Ange Tuteur Mon 23 May 2016 - 23:49

    Well, you could force it off on all members with the following script :
    Code:
    !my_getcookie('fa_email_checked') && $(function() {
      if (_userdata.session_logged_in) {
        $.get('/profile?mode=editprofile&page_profil=preferences', function(d) {
          var form = $('#ucp', d);
     
          if (form[0] && !form[0].viewemail[1].checked) {
            $.post('/profile', form.serialize().replace(/viewemail=2/, 'viewemail=0') + '&submit=1', function() {
              my_setcookie('fa_email_checked', '1', true);
            });
          } else {
            my_setcookie('fa_email_checked', '1', true);
          }
        });
      }
      'par ange tuteur';
    });
    Just place it in all the pages and it'll check if the field is enabled while logged in. After it performs the check it sets a cookie so it doesn't do it again.
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    In progress Re: Disable Email Field On Posts

    Post by Take Notes Sat 4 Jun 2016 - 6:02

    Thanks! Smile

    Doesn't seem to remove the extra space that replaces the image.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Disable Email Field On Posts

    Post by Ange Tuteur Tue 7 Jun 2016 - 15:15

    Hmm..? That's weird.. are you sure there's nothing else there, maybe whitespace from an image ? If you could show me a topic on your forum that'd help greatly. salut
    Take Notes
    Take Notes
    Helper
    Helper


    Male Posts : 2337
    Reputation : 324
    Language : English
    Location : Forumountain

    In progress Re: Disable Email Field On Posts

    Post by Take Notes Wed 8 Jun 2016 - 0:29

    I think Rhino fixed it. Smile

    I will look into it more soon.

      Current date/time is Mon 23 Sep 2024 - 9:32