FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

Who is online?
In total there are 7 users online :: 0 Registered, 0 Hidden and 7 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

Profile Customization [Project]

View previous topic View next topic Go down

Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Mon 10 Mar 2014, 22:18

Hello everyone,

I have been working on some customization for the profiles here. So far this will allow you to change the background color, some font color, and add a banner to the top of your profile.

You can access these options from Profile.

Profile Customization [Project] Captu124

This is still in beta, so if you encounter any bugs, or have any suggestions; don't hesitate.

Thanks and have fun. Smile


Last edited by Ange Tuteur on Sun 16 Mar 2014, 07:40; edited 1 time in total
Rhino.Freak
Rhino.Freak

Gender : Male
Age : 28
Posts : 275
Points : 4469
Reputation : 86
Location : India!
Language : English, Hindi
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
http://tokyoghoular.foruns.com.pt/

PostRhino.Freak Mon 10 Mar 2014, 23:45

I don't like to post useless comments like "wow awesome" to begin with, but you dont leave a choice. I was looking for this for soo long I tell you..

Keep it up, its amazing so far Smile
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Tue 11 Mar 2014, 00:04

Thanks,

So far it will work on the index of a members profil. I could probably get it on all pages, but right now I'll keep it as is since I'm using a AJAX profile.
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Wed 12 Mar 2014, 06:30

Hello,

Few updates made to the profile customization. Changes made with the AJAX editing field on the profile should be seen without page refresh. The user style is now in a stylesheet.

Two options have been added :
background color 1
background color 2

these will allow you to further change the colors on your profile. For a their descriptions navigate to your profile settings.

If you encounter any bug, or have feedback do not hesitate.

Many thanks Smile
Rhino.Freak
Rhino.Freak

Gender : Male
Age : 28
Posts : 275
Points : 4469
Reputation : 86
Location : India!
Language : English, Hindi
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
http://tokyoghoular.foruns.com.pt/

PostRhino.Freak Fri 14 Mar 2014, 01:41

great ! my profile looks awesome already!
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Fri 14 Mar 2014, 02:48

Very nice Very Happy

When I get some time, I will try to further work on this.
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Sun 16 Mar 2014, 07:25

Hi,

For now I am finished experimenting with this. For example you can see/use the code below. It is done by using a profile fields value for the style. This was mainly developed for phpbb3, since that is this forums version.

Code:
$(function() {
    var customProfile = function() {
       var banner = $('#field_id6 .field_uneditable').text();
       if (banner.length > 10) { $('#profile-advanced-banner').html('<img id="banner-image" src="'+banner+'" />') }
       else { $('#banner-image').remove() }

       var fontColor = $('#field_id5 .field_uneditable').text();
       var linkColor = $('#field_id10 .field_uneditable').text();
       var bgColor1 = $('#field_id7 .field_uneditable').text();
       var bgColor2 = $('#field_id11 .field_uneditable').text();
       var bgColor3 = $('#field_id12 .field_uneditable').text();
       var bgImage = $('#field_id8 .field_uneditable').text();
       var bgRepeat = $('#field_id9 .field_uneditable').text();
        
       var profileStyle =
          '<style id="profileStylesheet">'+
              '#main, #page-footer, .module, .panel, #tabs li span { color:'+fontColor+'; }'+
              '#main a, #page-footer a { color:'+linkColor+'; }'+
              'body, #wrap { background-color:'+bgColor1+'; }'+
              '.module, .panel.row3, #tabs a, #tabs .activetab { background-color:'+bgColor2+' !important; border:none !important; box-shadow:none; }'+
              '.panel .panel { background:'+bgColor3+' !important; }'+
              '#wrap { background-image:url('+bgImage+'); }'+
              '#wrap { background-repeat:'+bgRepeat+'; }'+
           '</style>';
        $('head').append(profileStyle);
    };
    
    if (document.getElementById('profile-advanced-details')) {
        
       $('#field_id6').before('<div class="h3">Profile Design Settings</div>');
       $('#field_id5').before('<div class="h3">Font Settings</div>');
       $('#field_id7').before('<div class="h3">Background Settings</div>');
    
       $('#profile-advanced-layout').prev().before('<div id="profile-advanced-banner" align="center"></div>');
        
       customProfile();
        
       $(document).on('click','.ajax-profil_valid',function() { setTimeout(function() { $('#profileStylesheet').remove(); customProfile() },300) });
    }
});
SSYT
SSYT
Member
Gender : Male
Age : 30
Posts : 19
Points : 4093
Reputation : 13
Language : Romanian, English
Browser : Browser : Opera Forum Version : Forum Version : Forumactif Edge
https://www.forumcodes.com

PostSSYT Sun 16 Mar 2014, 12:01

How to use and execute code for working ?
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Sun 16 Mar 2014, 14:50

Each profile field has a unique ID, you use that ID to grab its textual contents. As seen by this mess :
Code:
      var fontColor = $('#field_id5 .field_uneditable').text();
       var linkColor = $('#field_id10 .field_uneditable').text();
       var bgColor1 = $('#field_id7 .field_uneditable').text();
       var bgColor2 = $('#field_id11 .field_uneditable').text();
       var bgColor3 = $('#field_id12 .field_uneditable').text();
       var bgImage = $('#field_id8 .field_uneditable').text();
       var bgRepeat = $('#field_id9 .field_uneditable').text();

There is multiple profile fields where the text is returned. Those variables are used in the stylesheet; the text content serves as the property value.
Rhino.Freak
Rhino.Freak

Gender : Male
Age : 28
Posts : 275
Points : 4469
Reputation : 86
Location : India!
Language : English, Hindi
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
http://tokyoghoular.foruns.com.pt/

PostRhino.Freak Mon 17 Mar 2014, 02:23

incredible .. thanks a ton, for sharing .. Smile
SSYT
SSYT
Member
Gender : Male
Age : 30
Posts : 19
Points : 4093
Reputation : 13
Language : Romanian, English
Browser : Browser : Opera Forum Version : Forum Version : Forumactif Edge
https://www.forumcodes.com

PostSSYT Mon 17 Mar 2014, 04:57

Very nice code, thanks.
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Mon 17 Mar 2014, 14:46

You're welcome and thanks. ^^
Rhino.Freak
Rhino.Freak

Gender : Male
Age : 28
Posts : 275
Points : 4469
Reputation : 86
Location : India!
Language : English, Hindi
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
http://tokyoghoular.foruns.com.pt/

PostRhino.Freak Sat 05 Apr 2014, 04:14

wait so we have to create profile fields ourselves ? coz I added the code in my test forum but nothing happened (its phpbb3 )
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Sat 05 Apr 2014, 14:19

Yep you do, unfortunately.

See this statement :
Code:
var linkColor = $('#field_id10 .field_uneditable').text();

Before field_uneditable is the profile ID. You can see this through the browser tools on the profil :
Profile Customization [Project] Captu146
Rhino.Freak
Rhino.Freak

Gender : Male
Age : 28
Posts : 275
Points : 4469
Reputation : 86
Location : India!
Language : English, Hindi
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
http://tokyoghoular.foruns.com.pt/

PostRhino.Freak Sun 06 Apr 2014, 09:13

profile type text zone or what?
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Sun 06 Apr 2014, 16:07

If the field is text it should work 100% Wink
Ch@lo Valdez
Ch@lo Valdez

Gender : Male
Age : 49
Posts : 65
Points : 3899
Reputation : 5
Location : Mexico
Language : eng spa
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3

PostCh@lo Valdez Sat 25 Oct 2014, 22:40

where is the css?
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12255
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Sun 26 Oct 2014, 18:05

The CSS was determined by the member's input on their profile page. Everything was done through javascript, and needs to be edited with the appropriate field IDs.

e.g. #field_id5 .field_uneditable

Code:
$(function() {
    var customProfile = function() {
       var banner = $('#field_id6 .field_uneditable').text();
       if (banner.length > 10) { $('#profile-advanced-banner').html('<img id="banner-image" src="'+banner+'" />') }
       else { $('#banner-image').remove() }

       var fontColor = $('#field_id5 .field_uneditable').text();
       var linkColor = $('#field_id10 .field_uneditable').text();
       var bgColor1 = $('#field_id7 .field_uneditable').text();
       var bgColor2 = $('#field_id11 .field_uneditable').text();
       var bgColor3 = $('#field_id12 .field_uneditable').text();
       var bgImage = $('#field_id8 .field_uneditable').text();
       var bgRepeat = $('#field_id9 .field_uneditable').text();
        
       var profileStyle =
          '<style id="profileStylesheet">'+
              '#main, #page-footer, .module, .panel, #tabs li span { color:'+fontColor+'; }'+
              '#main a, #page-footer a { color:'+linkColor+'; }'+
              'body, #wrap { background-color:'+bgColor1+'; }'+
              '.module, .panel.row3, #tabs a, #tabs .activetab { background-color:'+bgColor2+' !important; border:none !important; box-shadow:none; }'+
              '.panel .panel { background:'+bgColor3+' !important; }'+
              '#wrap { background-image:url('+bgImage+'); }'+
              '#wrap { background-repeat:'+bgRepeat+'; }'+
           '</style>';
        $('head').append(profileStyle);
    };
    
    if (document.getElementById('profile-advanced-details')) {
        
       $('#field_id6').before('<div class="h3">Profile Design Settings</div>');
       $('#field_id5').before('<div class="h3">Font Settings</div>');
       $('#field_id7').before('<div class="h3">Background Settings</div>');
    
       $('#profile-advanced-layout').prev().before('<div id="profile-advanced-banner" align="center"></div>');
        
       customProfile();
        
       $(document).on('click','.ajax-profil_valid',function() { setTimeout(function() { $('#profileStylesheet').remove(); customProfile() },300) });
    }
});
Ch@lo Valdez
Ch@lo Valdez

Gender : Male
Age : 49
Posts : 65
Points : 3899
Reputation : 5
Location : Mexico
Language : eng spa
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3

PostCh@lo Valdez Sun 26 Oct 2014, 20:09

Ange Tuteur wrote:The CSS was determined by the member's input on their profile page. Everything was done through javascript, and needs to be edited with the appropriate field IDs.

e.g. #field_id5 .field_uneditable

Code:
$(function() {
    var customProfile = function() {
       var banner = $('#field_id6 .field_uneditable').text();
       if (banner.length > 10) { $('#profile-advanced-banner').html('<img id="banner-image" src="'+banner+'" />') }
       else { $('#banner-image').remove() }

       var fontColor = $('#field_id5 .field_uneditable').text();
       var linkColor = $('#field_id10 .field_uneditable').text();
       var bgColor1 = $('#field_id7 .field_uneditable').text();
       var bgColor2 = $('#field_id11 .field_uneditable').text();
       var bgColor3 = $('#field_id12 .field_uneditable').text();
       var bgImage = $('#field_id8 .field_uneditable').text();
       var bgRepeat = $('#field_id9 .field_uneditable').text();
        
       var profileStyle =
          '<style id="profileStylesheet">'+
              '#main, #page-footer, .module, .panel, #tabs li span { color:'+fontColor+'; }'+
              '#main a, #page-footer a { color:'+linkColor+'; }'+
              'body, #wrap { background-color:'+bgColor1+'; }'+
              '.module, .panel.row3, #tabs a, #tabs .activetab { background-color:'+bgColor2+' !important; border:none !important; box-shadow:none; }'+
              '.panel .panel { background:'+bgColor3+' !important; }'+
              '#wrap { background-image:url('+bgImage+'); }'+
              '#wrap { background-repeat:'+bgRepeat+'; }'+
           '</style>';
        $('head').append(profileStyle);
    };
    
    if (document.getElementById('profile-advanced-details')) {
        
       $('#field_id6').before('<div class="h3">Profile Design Settings</div>');
       $('#field_id5').before('<div class="h3">Font Settings</div>');
       $('#field_id7').before('<div class="h3">Background Settings</div>');
    
       $('#profile-advanced-layout').prev().before('<div id="profile-advanced-banner" align="center"></div>');
        
       customProfile();
        
       $(document).on('click','.ajax-profil_valid',function() { setTimeout(function() { $('#profileStylesheet').remove(); customProfile() },300) });
    }
});

ok thanks I love you
Sponsored content

PostSponsored content

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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