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.

Change Contact Field

View previous topic View next topic Go down

Solved Change Contact Field

Post by TamDonCo on September 13th 2016, 2:54 am

Hi All

How do I get and change "contact field" in profile section



e.g : I would to change Pinterest field from 12345 to 12345-67890

I saw the code to change "Always allow HTML" some where before


Last edited by TamDonCo on September 13th 2016, 10:39 pm; edited 1 time in total

TamDonCo
Forumember

Posts : 180
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change Contact Field

Post by SLGray on September 13th 2016, 6:58 am

I do not understand what you want? All you have to do is enter the link, exactly just the last part of the link, to your Pinterest profile in the field.


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


SLGray
Administrator
Administrator

Male Posts : 36639
Reputation : 2441
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Change Contact Field

Post by TamDonCo on September 13th 2016, 3:10 pm

@SLGray wrote:I do not understand what you want? All you have to do is enter the link, exactly just the last part of the link, to your Pinterest profile in the field.

I want to change the value of that field from current value to a new value

TamDonCo
Forumember

Posts : 180
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change Contact Field

Post by TamDonCo on September 13th 2016, 6:17 pm

This is the code from Ange Tuteur to enable HTML for users and it works

Code:
// auto enable HTML in the preferences
(function($) {
  if (my_getcookie('faAutoHTML') != 'checked') {
    $.get('/profile?mode=editprofile&page_profil=preferences', function(d) {
      d = $('#ucp', d).serialize(); // serialize form data for submission
   
      /allowhtml=0/.test(d) && $.post('/profile', d.replace(/allowhtml=0/, 'allowhtml=1') + '&submit=1'); // if HTML is disabled we'll submit the modified form data
   
      my_setcookie('faAutoHTML', 'checked'); // set a cookie to prevent constant checks
    });
  }
})(jQuery);
// par ange tuteur



and this is my test but it does not work

Code:
$(document).ready(function($){


      var id = _userdata.user_id ;

    $.get('/u' + id + '/profile?mode=editprofile&page_profil=informations', function (e) {
 
        e = $('#ucp', e).serialize(); // serialize form data for submission
        $.post('/profile', e.replace(/profile_field_3_-23=12345/, 'profile_field_3_-23=12345:67890') + '&submit=1');

    });


});


where profile_field_3_-23 is field ID of Pinterest

TamDonCo
Forumember

Posts : 180
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change Contact Field

Post by TamDonCo on September 13th 2016, 10:39 pm

never mind, I found the problem

Thanks anyway

TamDonCo
Forumember

Posts : 180
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change Contact Field

Post by Nemo on September 14th 2016, 10:04 pm

Since no solution was provided, this topic will be garbaged.

Hello

Nemo
Support Moderator
Support Moderator

Male Posts : 1080
Reputation : 113
Language : Greek, English, French

http://www.helpgr.forumgreek.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