Hi

Thanks for this module, can you please provide any documentation about the technic using to make the drop shadowed or rounded corner boxes, any live example ?!

Comments

rhys’s picture

Status: Closed (fixed) » Active

To get it functional, copy the box.png and box-borders.png to the theme directory.
In the element for which you want themed borders, such as block.tpl.php, place this code at the start

drop_box_start( 'box', array( color => 0xFFFFF ) );

and at the end

drop_box_end('box');

The name at the start of the functions references the box.png and box-borders.png, so if you want multiple types, simply create new filenames as {$name}.png and {$name}-borders.png. Also, if you want the module to function with IE6 and hopefully before, you'll need to create box.gif, and box-borders.gif. This was done so that opacity would function for those browsers which allowed it, and simple transparency for those which could not.

To add a title for the box, simply add within array( 'color' => colorcode, 'title'=> 'Title here' ).

With this you should be able to do fancier drop boxes.

This is a very basic module right now. It would be possible to add more functions, but it couldn't think of them and really have a heavy time schedule right now which precludes me from adding much more. However, if you make suggestions, I can always add :).

rhys’s picture

Status: Active » Closed (fixed)

Documentation as listed here has been added to the README.txt, and should hopefully be the CVS.

Djamu’s picture

I'm getting :

Parse error: syntax error, unexpected '=', expecting ')' in /var/www/../block.tpl.php on line 2

on drupal 5.8, unfortunately my php skills are nill ... any suggestion ?
thx

rhys’s picture

Status: Active » Closed (fixed)

I fixed the error in the code written above.
The problem is in the array( 'color' = 0x000) ... it should be array('color' => 0x000).
I apologize for the problem, and hopefully this helps a bit more. Unfortunately I've been incredibly busy trying to stay alive. I will get to place this into the document for the module very soon.