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.

Contact fields

View previous topic View next topic Go down

Solved Contact fields

Post by Hert on January 18th 2015, 12:43 am

Hello!

I didn't really know where to put this problem, so I figured to just put it here and if this isn't the correct place I would just move it (;

I have a question regarding the contact field: I made some costum fields, but actually do not want the default onces (since nobody will use them on my forum). My question therefore is if there is a way to delete these default ones or disable them or just make them invisible on the forum itself (and with that I also mean in the profile editing screen)?

I've seen someone do it before on another forum, I could provide a link if that is allowed.

Love & Rockets,
Hert


Last edited by Hert on January 19th 2015, 1:10 am; edited 1 time in total

Hert
Forumember

Posts : 81
Reputation : 3
Language : Dutch and English

http://afterthefall.actieforum.com/

Back to top Go down

Solved Re: Contact fields

Post by Ramdaman on January 18th 2015, 5:37 am

You can only prevent them from being displayed.

Go to your administration panel => Users & Groups => Profiles => Press the :gear: button at the field you want to disable, then untick "Profiles" and "Messages"

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 97
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

Solved Re: Contact fields

Post by _Twisted_Mods_ on January 18th 2015, 7:25 am

use this script just add the titles of the fields in

Code:
var ftitle = ['Gender','Birthday','Location'];

make sure its spelled the same caps and everything


--------------phpbb3--------------------
Go to Administration Panel > Modules > JavaScript codes managment and create a new script.
Title: Your choice
Placement: In all the pages
Paste the code below and submit :
Code:
$(function(){

var ftitle = ['Gender','Birthday','Location'];
var thiloc = location.href;
if(thiloc.match('editprofile')){
$(function(){$('.panel fieldset dl').each(function(index){
    for(var i=0;i<ftitle.length;i++){
        if($(this).html().match(ftitle[i])){
        $(this).attr('style','display:none;');
            }
      }})})}});

-----------------phpbb2-------------------

Code:
$(function(){

var ftitle = ['Gender','Birthday','Location'];
var thiloc = location.href;
if(thiloc.match('editprofile')){
$(function(){$('#register tr').each(function(index){
    for(var i=0;i<ftitle.length;i++){
        if($(this).html().match(ftitle[i])){
        $(this).attr('style','display:none;');
            }
      }})})}});

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Contact fields

Post by Hert on January 18th 2015, 6:09 pm

@ Ramdaman; I've already done that yes and also set that only administrators can edit them, but it still annoys me since it feels like I'm hiding something from them.

@ Twisted Mods; I use Phpbb2 so I used that code, but sadly it doesn't seem to work?

Hert
Forumember

Posts : 81
Reputation : 3
Language : Dutch and English

http://afterthefall.actieforum.com/

Back to top Go down

Solved Re: Contact fields

Post by SLGray on January 18th 2015, 6:32 pm

If a member does not want those fields to appear, all he/she has to do is not fill in those fields.


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


SLGray
Administrator
Administrator

Male Posts : 36748
Reputation : 2449
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Contact fields

Post by Hert on January 18th 2015, 7:53 pm

No you don't get it: the fields are unnecessary for the type of forum I'm making (a RPG forum), so I do not need them. I could hover use the function of the contact fields to let them link other character related stuff on their profiles and messages: that's my goal.
However there are some members that do not understand and start messing up my layout when they fill in those default fields, but I find it rude to say: 'Don't do it.' Since it's a little bit misleading to let them be there but not letting them use them, so that's why I want to delete them.

I hope that this information makes everything a little bit clear.


Hert
Forumember

Posts : 81
Reputation : 3
Language : Dutch and English

http://afterthefall.actieforum.com/

Back to top Go down

Solved Re: Contact fields

Post by _Twisted_Mods_ on January 18th 2015, 8:00 pm

can you provide me with a test account via pm so i can look at your edit profile page to see if anything is different

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Contact fields

Post by Hert on January 19th 2015, 1:07 am

O I forgot to edit my post!
I looked at it again like a minute after I posted it and saw that I forgot a ' - after that it worked just fine!

Sorry for the misunderstandig (because of my blindness).

Thank you very much!

Hert
Forumember

Posts : 81
Reputation : 3
Language : Dutch and English

http://afterthefall.actieforum.com/

Back to top Go down

Solved Re: Contact fields

Post by APE on January 19th 2015, 1:12 am

Marked as solved
Topic solved and archived





APE
Manager
Manager

Male Posts : 8648
Reputation : 762
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

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