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
5 posters

    Contact fields

    Hert
    Hert
    Forumember


    Posts : 81
    Reputation : 3
    Language : Dutch and English

    Solved Contact fields

    Post by Hert Sat Jan 17, 2015 5:43 pm

    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 Sun Jan 18, 2015 6:10 pm; edited 1 time in total
    Ramdaman
    Ramdaman
    Active Poster


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

    Solved Re: Contact fields

    Post by Ramdaman Sat Jan 17, 2015 10:37 pm

    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"
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    Solved Re: Contact fields

    Post by _Twisted_Mods_ Sun Jan 18, 2015 12: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;');
                }
          }})})}});
    Hert
    Hert
    Forumember


    Posts : 81
    Reputation : 3
    Language : Dutch and English

    Solved Re: Contact fields

    Post by Hert Sun Jan 18, 2015 11:09 am

    @ 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?
    SLGray
    SLGray
    Administrator
    Administrator


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

    Solved Re: Contact fields

    Post by SLGray Sun Jan 18, 2015 11:32 am

    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.
    Hert
    Hert
    Forumember


    Posts : 81
    Reputation : 3
    Language : Dutch and English

    Solved Re: Contact fields

    Post by Hert Sun Jan 18, 2015 12: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.

    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    Solved Re: Contact fields

    Post by _Twisted_Mods_ Sun Jan 18, 2015 1: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
    Hert
    Hert
    Forumember


    Posts : 81
    Reputation : 3
    Language : Dutch and English

    Solved Re: Contact fields

    Post by Hert Sun Jan 18, 2015 6:07 pm

    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!
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19325
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Contact fields

    Post by Ape Sun Jan 18, 2015 6:12 pm

    Marked as solvedĀ 
    Topic solved and archived



    Contact fields Left1212Contact fields Center11Contact fields Right112
    Contact fields Ape_b110
    Contact fields Ape1010

      Current date/time is Sun Sep 22, 2024 10:27 pm