The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Disable Email Field On Posts

View previous topic View next topic Go down

In progress Disable Email Field On Posts

Post by Vanityy on Mon May 23, 2016 3:49 am

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?
avatar
Vanityy
Helper
Helper

Male Posts : 2334
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

In progress Re: Disable Email Field On Posts

Post by SLGray on Mon May 23, 2016 7:19 pm

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.


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

avatar
SLGray
Administrator
Administrator

Male Posts : 37987
Reputation : 2561
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

In progress Re: Disable Email Field On Posts

Post by Vanityy on Mon May 23, 2016 9:36 pm

The thing is is that there is no email field.
avatar
Vanityy
Helper
Helper

Male Posts : 2334
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

In progress Re: Disable Email Field On Posts

Post by Ange Tuteur on Mon May 23, 2016 10:23 pm

That's a user preference.

Go to your Profile > Preferences > Allow members to contact me by e-mail : NO
avatar
Ange Tuteur
Forumaster

Male Posts : 13065
Reputation : 2738
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Disable Email Field On Posts

Post by Vanityy on Mon May 23, 2016 10:26 pm

I know but is there a way to disable it for all users?
avatar
Vanityy
Helper
Helper

Male Posts : 2334
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

In progress Re: Disable Email Field On Posts

Post by Ange Tuteur on Mon May 23, 2016 10:49 pm

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.
avatar
Ange Tuteur
Forumaster

Male Posts : 13065
Reputation : 2738
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Disable Email Field On Posts

Post by Vanityy on Sat Jun 04, 2016 5:02 am

Thanks! Smile

Doesn't seem to remove the extra space that replaces the image.
avatar
Vanityy
Helper
Helper

Male Posts : 2334
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

In progress Re: Disable Email Field On Posts

Post by Ange Tuteur on Tue Jun 07, 2016 2:15 pm

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
avatar
Ange Tuteur
Forumaster

Male Posts : 13065
Reputation : 2738
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Disable Email Field On Posts

Post by Vanityy on Tue Jun 07, 2016 11:29 pm

I think Rhino fixed it. Smile

I will look into it more soon.
avatar
Vanityy
Helper
Helper

Male Posts : 2334
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

View previous topic View next topic Back to top


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