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.

New features for your profiles + friends list amelioration!

View previous topic View next topic Go down

New features for your profiles + friends list amelioration!

Post by Leviosa on March 27th 2009, 12:40 pm

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 :
http://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 August 26th 2009, 12:27 pm; edited 2 times in total


No help without your forum url
No support via private message



Leviosa
Administrator
Administrator

Female Posts : 15587
Reputation : 1589
Language : French, English

http://help.forumotion.com

Back to top Go down

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

Post by Leviosa on March 27th 2009, 2:04 pm

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();
                         
        }
                      });
                  }
              });
         
        });
        //]]>





No help without your forum url
No support via private message



Leviosa
Administrator
Administrator

Female Posts : 15587
Reputation : 1589
Language : French, English

http://help.forumotion.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