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 12 users online :: 0 Registered, 0 Hidden and 12 Guests :: 2 Bots

None

[ View the whole list ]


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

Profile Customization Problem

View previous topic View next topic Go down

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

PostRhino.Freak Sun 04 Jan 2015, 09:39

https://fmdesign.forumotion.com/t203-profile-customization-project

So I have a problem, I tried seeing the profile id of the new profile fields I made.
but they are in weird formats, not a simple number.
its 13_4 , how do I put it??
Will simply writing it like that work?
Simply putting it didn't work. HELP

Also, I have the Profile pop-up given here (and also on support forum) so I don't want it the design as well as the profile fields appear in it, what do I need to do for that?

Forum is Phpbb3
and link is http://onepiecea-edition.yoo7.com
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12258
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 04 Jan 2015, 21:15

Question, did you copy the profile field that was on your user profile ? i.e. /u1

Add this tool to javascript codes management :

Title : Your choice
Placement : In all the pages
Code:
/\/u\d+/.test(window.location.pathname) && $(function(){$('#profile-tab-field-profil dl').on('click',function(){alert('#'+$(this).attr('id'))})});

Go to your profile, and click on a profile field's value or name and it will alert the field ID. Then just replace the field IDs in the code below with your own.
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();
Keep .field_uneditable though, because that's where the value is.

When you're finished you can remove the script I gave you before.
Rhino.Freak
Rhino.Freak

Gender : Male
Age : 28
Posts : 275
Points : 4472
Reputation : 86
Location : India!
Language : English, Hindi
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
http://tokyoghoular.foruns.com.pt/

PostRhino.Freak Mon 05 Jan 2015, 00:31

that helped Very Happy thanks a lot!!

So its finally working! Smile
But I have a few questions more :

- I have an announcement set up, the font-color changes in that too.. I don't want that.. Sad And the "All about Guest" text color is unchanged.
- I don't really want to see the "Banner: Font-Color: " etc profile fields when I visit someone profile, can they disappear?

- will you make some more allowance on customizing profile more in future? Razz like maybe font-family, border-style, 2 types of font? (1 header and 1 normal)
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12258
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 05 Jan 2015, 03:00

For the coloring, you can change what the variables color by editing the stylesheet :
Code:
      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>';
Looks like it would be the first rule.

To hide the fields use this inside the code :
Code:
$('field1, field2, field3').hide();
Replace field1, 2, 3, by your field IDs. Make sure to separate multiple IDs by a comma.

I might redo it in the future. That old code is a bit clunky and could be easier to edit than it is now. I'm sorry if I kicked you off before. I was touching up the database methods, so I can make modifications easier.
Rhino.Freak
Rhino.Freak

Gender : Male
Age : 28
Posts : 275
Points : 4472
Reputation : 86
Location : India!
Language : English, Hindi
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB3
http://tokyoghoular.foruns.com.pt/

PostRhino.Freak Tue 06 Jan 2015, 02:58

that part of removing fields would also remove them from showing up in the profile popup?

I'd wait patiently if you re-do it in future Very Happy
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12258
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 06 Jan 2015, 15:03

Oh wait, yeah that wouldn't work. The best thing to do would be hiding them with CSS, because it would hide the whole DL. The only thing that'll look a little weird would be the profile separators. Don't know why that didn't come to mind first. tongue

Just create a rule where the goal is to hide elements. Replace the IDs below with your own, and separate multiple IDs by a comma.
Code:
#field_id1, #field_id2, #field_id3 { display:none }

My idea would be to utilize 1 profile field, but create multiple input fields inside it when you edit. Probably will generate the whole style code like below after submission.
Code:
style = {
  fontColor : #FFF;
  bgColor : #F66;
  bgimage : someimg.gif;
}
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