Sym Paradise
The Boxes Paradise
Home
  • My Menu
    • Log In
  • Contents
    • Discussion
    • Help
      • User Help
        • Installation
        • Others
      • Developer Help
        • Drupal
        • Others
      • Box Request
  • Library
    • Main Library
    • Search Boxes
  • Handbooks
    • User Handbook
    • Developer Handbook
    • Using This Site

Panels 3

ianr
18th Aug 2009, 07:19:38 PM
Tags:
  • User Help

Hi,

This all looks great. Just wondering if you'd made any progress on adapting for Panels 3, since that seems to be pretty stable now.

Thanks

Ian

  • Login or register to post comments
  • 4289 reads
Share

Brilliant

26th Aug 2009, 04:18:38 AM

Brilliant. Looking much better in Firefox (though Safari's not so keen on one of the boxes).

I can see I'll need to delve a bit further into CSS for some fine tuning.

Many thanks for all your help.

Ian

 

ianr
  • Login or register to post comments

The CSS rule got overwritten.

25th Aug 2009, 08:10:00 PM

Hi,

If you look under Firebug's style window, you will notice that our ".theboxesparadise_98 .pane-title" is 3 rules below. The 3rd rule (counting from the top) modifies the margin top to 0px, overwriting our magin top of -38px.

In another words, the css is working correctly, but there is another css statement that overwrites ours, and masks the correctness.

You can alter the line as follows:

.theboxesparadise_98 .pane-title { margin-top: -38px; }  //  modify this line to

.theboxesparadise_98 .pane-title { margin-top: -38px !important; }  //  this line

Update me again.

 

Additional Note: Your table seems to have an extra gray line at the top. This is caused by a

tbody {border: 1px solid #cccccc;}

This is found in system.css line 29. You might want to change this line. Alternatively, you can add the following to your theme's css file, so that you can overwrite it

tbody {border: 0;}

TBP
  • Login or register to post comments

That's very good of you. The

25th Aug 2009, 05:33:47 PM

That's very good of you. The page in question is at www.centreforjournalism.co.uk/mediablogs

You'll see there's various panels on there. The ones that use TBP30 are fine. But am still struggling to get TBP71 and TBP72 to work. Both .inc files for those have the additional css lines in that you suggested.

Thanks

Ian

ianr
  • Login or register to post comments

Can you point me to the URL?

24th Aug 2009, 11:13:00 PM

Hi,

I should take a look at your website. It might be faster for me to help you.

TBP
  • Login or register to post comments

Thanks - but still no joy

24th Aug 2009, 10:42:00 PM

Thanks for taking the time to look at this.

I've added the css lines you suggested into the .inc files for TBP 71 and TBP 72.

Unfortunately, it hasn't helped the display. I'm afraid I'm by no means a CSS expert. Using Firebug I can see that the -38px margin style is there - but it hasn't shifted the title upwards. See screengrab:

Ian

ianr
  • Login or register to post comments

Solution as below

21st Aug 2009, 09:18:00 PM

Yes, you are right about the Boxes with a Title background facing the issue.

I will present the problem background first, and the solution second.

 

Problem Background

In panels or panes, the title and the contents are rendered together. In our TBP Box's inc file, you will see the $content being printed in the Box's body. The pane's title AND contents are both sent to the $content variable.

function panels_theboxesparadise_98_box($content, $padding) {
    $padding .= 'px';   

  return <<<EOF
<div class="$idstr">
    ...
                    <div style="padding:$padding;">
                        $content // this is where the contents are rendered

 

But our Box has a Title background. Thus, as per your screenshot, the pane's title is not printed in the Box's Title area.

 

Solution

You can add an extra CSS statement as below:

function panels_theboxesparadise_98_css($display, $where = 'pane') {
  $idstr = empty($display->css_id) ? '.theboxesparadise' : "#$display->css_id";

  $url = panels_get_path('plugins/styles/res/98', TRUE);

  ...

  .theboxesparadise_98 .b { background: transparent url($url/b.png) repeat-x top left ;  font-size: 1px; line-height:1px;} // insert after this line

  .theboxesparadise_98 .pane-title {margin-top:-38px;} // add this line

What this does is basically to shift the title up into our Box Title background area.

 

The above will solve your TBP 71. For TBP 72 (red aqua), you do the same as above, but you have to add one more extra line:

.theboxesparadise_98 table {margin:0;} // add this line

This is because your Drupal theme has a css file style.css, which by default sets the margin of EVERY table with top and bottom 1em. We will overwrite that css style just for our Box.

 

Update me again with your findings. =)

TBP
  • Login or register to post comments

Update: some boxes working

21st Aug 2009, 08:25:38 PM

Update. The title problem only occurs on box styles where the title sits on a background. See additional screengrab below for one that works correctly using Panels 3. Still interested if there's a solution for the others. Thanks. This site is a great design aid.

 

ianr
  • Login or register to post comments

Getting closer... but title displaying wrong

21st Aug 2009, 07:32:54 PM

Thanks for the response. I'm nearly there. I've successfully installed three boxes that Panels 3 is seeing. But in each case, once I've changed the Panels settings appropriately, the title of the panel (or mini-panel) isn't displaying in the right place - it's showing up below the title area of the box. See screengrabs below. Any thoughts?

ianr
  • Login or register to post comments

Only one thing to change

20th Aug 2009, 10:55:00 PM

Hi,

Following the discussion here, which primarily discusses the change in the directory structure of the new Panels 3, there is only just one place in the inc file that you need to change. This code below is found at the bottom of the inc file.

function panels_theboxesparadise_21_css($display, $where = 'pane') {
  $idstr = empty($display->css_id) ? '.theboxesparadise' : "#$display->css_id";

  $url = panels_get_path('styles/res/21', TRUE);  // change this line

 

You should change this line to:

  $url = panels_get_path('plugins/styles/res/21', TRUE);  // to this line

 

You install the box in the panels directory as detailed here in the handbook, just that the styles directory is now located one level under plugins, under Panels 3. Thus the change above will point it to the right place. Let us know if you are still experiencing hiccups after trying this.

 

TBP
  • Login or register to post comments

Box Usage Statistics

Box Countersort icon
TBP 16 150514
TBP 50 120877
TBP 66 99802
TBP 36 93570
TBP 83 55350

Popular Boxes

  • TBP 72 (5,128)
  • TBP 66 (4,818)
  • TBP 3 (3,717)
  • TBP 71 (3,558)
  • TBP 30 (3,542)

Recent Box Requests

  • Blue response box
  • slightly embossed box that can be color filled to reqs
  • Panels 3 - Nice normal box
  • 3D Box, Bevel, Aqua-like

Recent Developer Help Posts

  • I have been unsuccessfully trying to create my client's design of a highly stylized box in Drupal 6 using Panels 3.

Recent User Help Posts

  • TBP for nice-menus?
  • Page load time
  • Where to put table when creating 3 boxes
  • print box for each content posted
  • $idstr empty?
  • Box Sizes
  • Can't find Javascript code on download
  • Panels 3
  • Can I customize the font or color, of the title and the contents inside the Box?
  • How can I embed a TBP Box on my web page?

User login

  • Create new account
  • Request new password
Copyright © 2009 Sym Paradise. All rights reserved. Terms of Use | Copyright Information