Profile Page - Breaking Template (Width)

18 years 4 months ago #2515 by edenapple
Profile Page - Breaking Template (Width) was created by edenapple
Hello,

Could someone point me to which table line related to the overall width of a CB profile page?

I've installed CB RC2 on a new site and its width is breaking the page...Screenshot below of what I would like to change the width of.

Thanks


Attachments:

Please Log in to join the conversation.

18 years 4 months ago #2516 by edenapple
Replied by edenapple on topic Re:Profile Page - Breaking Template (Width)
Ok I think I have fixed it, but unsure why or how this has worked.

I found (in the "Dark" theme template css file):

.dynamic-tab-pane-control .tab-page {
clear: both;
border: 1px solid #FF0000;
background: #000;
z-index: 2;
position: relative;
top: -2px;
color: #FFF;
font: Message-Box;
width: 100%;

I changed: width: 100%;
to
width: 100; (took away the %)

This has fixed it fine now, no physical changes that I can see on the frontend other than my main menu (which was disjointed and set UNDER the profile due to the page being broken by the width of the profile block) is now where it should be back over on the left and aligned properly.

Could someone possibly clarify if that is the right line to be changed? It seems to have worked but I dont want to find any negative effects later down the line.

Thanks

Post edited by: edenapple, at: 2005/12/20 04:48

Please Log in to join the conversation.

18 years 3 months ago #3437 by seven
I am having the same issue but your fix did not work for me :(

Please Log in to join the conversation.

18 years 3 months ago #3448 by seven
nevermind, got it to work using your method, forgot to chmod the file so I could edit it. :P

Please Log in to join the conversation.

17 years 9 months ago #16467 by namradi
Replied by namradi on topic Re:Profile Page - Breaking Template (Width)
HI Guys,

The width did fix the menus but still things are not exactly displaying in IE as they are in firefox. I am not sure if the profile tabs need to be inside a div or td.

If anyone finds any more info please post.

In my case the main menu and user menu are displaying in right position but one of the profile tabs is displayed below the other profile tabs. And it only does when in click on the wider tab.

Thanks,
Nav

Please Log in to join the conversation.

17 years 9 months ago #16550 by namradi
Replied by namradi on topic Re:Profile Page - Breaking Template (Width)
Changing the width didnt exactly fix my problem with the display in IE. So after digging a little bit more i found this.
I had to change the width in the following files and lines for userstatus tab and another custom tab.

Changed width:95% in the following line to width:95
$return = "\n\t\t\t<table class=\"cbFields\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:95\">";
The above line is in the file
administrator/components/com_comprofiler/comprofiler.class.php:

And for the userstatus tab here is the fix
changed width=100% to width=100
had to do above width change in two places of the following file
components/com_comprofiler/plugin/user/plug_cbmenu/cb.menu.php
and the line is (search for cbStatusList and two similar lines should be in the file)
$return .= '<table cellpadding="5" cellspacing="0" border="0" width="100" class="cbStatusList">';

I am still checking with different browsers to see if these changes messed anything else so far didnt find anything.

nav

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.284 seconds

Facebook Twitter LinkedIn