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

    New features for your profiles + friends list amelioration!

    Shadow
    Shadow
    Manager
    Manager


    Male Posts : 16208
    Reputation : 1832
    Language : French, English

    New features for your profiles + friends list amelioration! Empty New features for your profiles + friends list amelioration!

    Post by Shadow Fri 27 Mar - 11:40

    Hi all!

    We've made an update for your profiles, to make them more user-friendly, and therefore easier to edit Smile It will be effective within the next minutes!
    You can now, as an admin/mod (with proper permissions), directly browse any profile and edit it directly without going to your admin panel : simply click on the field you wish to edit, and there you go!
    Same for regular users : you can edit your own profile the same way.

    We've also made the friends list visually clearer, I let you discover that too loove
    Also, major bug fixes have been uploaded, so that surely help most of your forums to run 100% smooth now!

    You can see a tutorial for the new profile features right here :
    https://help.forumotion.com/frequently-asked-questions-f5/edit-profiles-fields-browsing-through-the-members-profiles-t39774.htm

    Best regards,
    Typlo Wink


    Last edited by Typlo on Wed 26 Aug - 10:27; edited 2 times in total
    Shadow
    Shadow
    Manager
    Manager


    Male Posts : 16208
    Reputation : 1832
    Language : French, English

    New features for your profiles + friends list amelioration! Empty Re: New features for your profiles + friends list amelioration!

    Post by Shadow Fri 27 Mar - 13:04

    Please also see this templates modifications to do regarding the update :



    • Profiles fields

      • profile_view_body

        • Replace :
          Code:
          [tr]           

                 
          nowrap="nowrap">
          class="gen">{L_LOCATION}:

                  [b]
          class="gen">{LOCATION}[/b]
                 

                 
                 
          valign="middle" nowrap="nowrap">
          class="gen">{L_WEBSITE}:

                 
          class="gen">[b]{WWW}[/b]
                 

                 
                 
          valign="middle" nowrap="nowrap">
          class="gen">{L_OCCUPATION}:

                  [b]
          class="gen">{OCCUPATION}[/b]
                 

                 
                 
          nowrap="nowrap">
          class="gen">{L_INTERESTS}:

                  [b]
          class="gen">{INTERESTS}[/b]
                 

                 
                 
          nowrap="nowrap">
          class="gen">{L_GENDER}:

                    [b]
          class="gen">{GENDER}[/b]
                 

                 
                 
          nowrap="nowrap">
          class="gen">{L_BIRTHDAY}:

                  [b]
          class="gen">{BIRTHDAY}

          {ZODIAC_IMG}{CHINESE_IMG}[/b]
                 

               
                 

                 
          align="center">[b]
          class="gen">
                   
          action="profile.forum?mode=viewprofile&u={USER_ID}"

          method="post">
                   
          value="{USER_ID}" />
                   
          {L_PROFILE_FIELDS}[/b]
                 
                 

                 
                 

                 

          align="right">{switch_profile_fields.field.NAME}:
                 


          valign="middle">{switch_profile_fields.field.OBJECT}


          />
                 
                 
                 
                 

                 
          align="right">
                 
          valign="middle">
          value="{L_MODIFY}"
          name="modify_profilefields" class="liteoption" />


          />
                 
                 
                 
               
          By :
          Code:
                   
                   
          id="{switch_profile_tab.profile_field.ID}">
                       

                           
          {switch_profile_tab.profile_field.LABEL}
                       

                       
                           
          {switch_profile_tab.profile_field.CONTENT}
                       

                   
                   
          class="separator">

                   
        • Add at the templates end :
          Code:


          src="/{JS_DIR}/jquery/jquery.json-1.3.min.js">

          type="text/javascript">
          // 
          $(document).ready(function(){
               
          $('[id^=field_id]').each(function(){
                    if (
          $(this).find('.field_editable').is('span') )
                    {
                       
          $(this).hover(function()
                        {
                            if(

          $(this).find('.field_editable.invisible').is('span') )
                           
          {
                               

          $(this).find('.field_editable').prev().addClass('ajax-profil_hover').parent().addClass('ajax-profil_parent').append('[img]{AJAX_EDIT_IMG}[/img]
          ');
                               
          $(this).find('.ajax-profil_edit').attr({
                                        alt:
          "{L_FIELD_EDIT_VALUE}",
                                        title:
          "{L_FIELD_EDIT_VALUE}"
                                   
          }).click(function(){
                                   

          $(this).prev().prev().removeClass('ajax-profil_hover').addClass('invisible').next().removeClass('invisible').append('[img]{AJAX_VALID_IMG}[/img]').find('input,select');
                                   
          $(this).prev().find('.ajax-profil_valid').attr({
                                       
          alt: "{L_VALIDATE}",
                                        title:
          "{L_VALIDATE}"
                                   
          }).click(function(){
                                        var content = new
          Array();
                                       

          $(this).parent().find('[name]').each(function(){
                                           
          var type_special =

          $(this).is('input[type=radio],input[type=checkbox]');
                                           
          if ( (type_special &&
          $(this).is(':checked')) || !type_special
          )
                                           
          {
                                                content.push(new

          Array($(this).attr('name'),
          $(this).attr('value')));
                                           
          }
                                        });
                                        var
          id_name =

          $(this).parents('[id^=field_id]').attr('id');
                                       
          var id = id_name.substring(8,

          id_name.length);
                                       
          $.post(
                                           
          "ajax_profile.forum?jsoncallback=?",
                                           

          {id:id,user:"{CUR_USER_ID}",active:"{CUR_USER_ACTIVE}",content:$.toJSON(content)},
          [/size]
           
          [font=Arial][size=9]                                 
          function(data){
                                                $.each(data,
          function(i, item){
                                                   
          $('[id=field_id' + i +

          ']').find('span.field_uneditable').html(item).end().find('.ajax-profil_valid').remove().end().find('.field_editable').addClass('invisible').end().find('.field_uneditable').removeClass('invisible');
          [/size][/font]
           
          [font=Arial][size=9]                                     
          });
                                           
          },
                                           
          "json"
                                        );
                                   
          });
                                    $(this).remove();
                               
          });
                            }
                        },function()
                       
          {
                            if(

          $(this).find('.field_editable.invisible').is('span') )
                           
          {
                               

          $(this).find('.field_editable').prev().removeClass('ajax-profil_hover');
                               
          $(this).find('.ajax-profil_edit').remove();
                           
          }
                        });
                    }
                });
           
          });
          //]]>




      Current date/time is Wed 13 Nov - 17:37