Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Fine tuning User Profile layout

11 years 8 months ago - 11 years 8 months ago #221342 by philiplardner
[SOLVED] Fine tuning User Profile layout was created by philiplardner
Hi Kyle,

I am trying to edit the layout of my users' profile page. I have placed the Avatar, User Status and Menu (edit profile button) tabs, one under the other in the L1C1 position and all the other tabs in the L1C2 position - see attached file 'current-layout.jpg'.

I need to change the CSS so that the L1C2 position is aligned just to the right of L1C1 (without the big gap) and also make the L1C2 position extend right to fill the remaining available width - see attached file 'desired-layout.jpg'.

I also need to fine tune the position of the User Profile Page Title and the [Edit] profile button.

I've been trying to figure out how to do this using FireBug but am not having any success.

I'm using the Luna profile template.

Can you help?

Thanks,

Phil.
Attachments:
Last edit: 11 years 8 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
11 years 8 months ago #221361 by krileon
Replied by krileon on topic Fine tuning User Profile layout
You should be just using the Left and Middle or Middle and Right positions to have that display. Aside from that you'll need to inspect the page using Chrome or Firebug for Firefox to review and alter the CSS as needed.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

11 years 8 months ago #221385 by philiplardner
Replied by philiplardner on topic Fine tuning User Profile layout
Ok - setting the various tab positions to either Left Side (of middle area) or Right Side (of middle area) gives me a very similar layout to the my earlier attached file 'desired-layout.jpg) but the large gap between the two blocks remains.

Inspecting these elements with Firebug/Firefox I can see (in the Firebug HTML panel) that each block has its width set to 49%. Changing (the HTML in Fidebug) cbPosLeft parameter to 25% and cbPosRight to 75% gives me exactly the layout I want! *However* I still cannot locate what bit of the Luna template.css file I need to edit to make these changes permenant. I'm not familliar with CSS and would really appreciate a little help!

Thanks,

Phil.

Please Log in or Create an account to join the conversation.

11 years 8 months ago #221469 by philiplardner
Replied by philiplardner on topic [Solved] Fine tuning User Profile layout
I finally figured out how to edit the layout of the User Profile page (Luna template) from the default cbPosLeft: 49% / cbPosRight: 49% layout.

You can either edit the CSS file directly: components/com_comprofiler/plugin/templates/luna/template.css

Note - the header remarks in the Luna template.css contain the following warning - /* Name: Luna. DO NOT MODIFY: also used for backend. */ ...so treat this hack with caution!

Original template.css:
Line 97 .cbPosLeft, .cbPosGrid { float: left; text-align: left; }
Line 99 .cbPosRight { float: right; text-align: right; }
Note - the default width for both of these two elements is 49%.

Edited template.css:
Line 97 .cbPosLeft, .cbPosGrid { float: left; text-align: left; width: 25% !important; }
Line 99 .cbPosRight { float: right; text-align: right; width: 75% !important; }
Note - if you don't include "!important" then your new width settings will be overwritten by other css elsewhere - I nearly went crazy until I discovered this trick! :-)

**OR** as I later discovered...!... just go to your CB Comfiguration Manager - User Profile tab and set the '2 colums layout widths:' to 'Left: 25% Right: the rest!'

The learning curve can be a tough climb sometimes!

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum