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.

Contact fields

5 posters

Go down

Solved Contact fields

Post by Hert 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
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 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
Ramdaman
Active Poster

Male Posts : 1590
Reputation : 99
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_ 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_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Contact fields

Post by Hert 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
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 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.


Contact fields Slgray10

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

Male Posts : 51576
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Contact fields

Post by Hert 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
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_ 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_
_Twisted_Mods_
Helper
Helper

Male Posts : 2083
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Contact fields

Post by Hert 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
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 January 19th 2015, 1:12 am

Marked as solved 
Topic solved and archived


Contact fields Left1212Contact fields Center11Contact fields Right112
Contact fields Ape_b110
Contact fields Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19454
Reputation : 2012
Language : fluent in dork / mumbojumbo & English haha

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

Back to top Go down

Back to top

- Similar topics

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