Loading...
 
About themes.t.o.

About themes.t.o.


BOX plug in

posts: 18

Hi,

I have updated tikiwiki and tikipedia theme to 2.0 release.
Now the BOX plug-in doesn't work fine.
It seems to ignore width and align, so I view the BOX large as the page and only on the left side.

Can someone help me?

Thanks
Laetitia

posts: 254 Japan

Hi Laetitia,

I'm not sure what might be causing the problem. I tried the BOX plugin at Zukakakina.com, which is using 2.0 (well, 2.1 now), and it works as before. Please see http://zukakakina.com/tiki-index.php?page=Tikipedia_box_test. If your site is public, I will take a look at the page with Firefox and the Firebug add-on, to try to find what the problem is.

-- Gary


posts: 18

Thanks a lot Gary, it works!!

By your example, I have found the difference.
In 1.9 I used this:

BOX(bg=>#f8f8f8,width=>130, align=>rigth)}

In 2.0 I have used this:
BOX(bg=>#f8f8f8,width=>130, align=>center, float=>right)}

Can you explain me why I need the float?


I've the same problem with the Category plug-in.

Here the code I used in 1.9:

CATEGORY(id=7, types=wiki, sort=name_asc, sub=>y, split=>y, and=n)}

posts: 254 Japan

Align actually should refer to the content inside the box, and float is needed to position the box itself (if the pattern for other objects is followed). But I don't see align having any effect in this plugin in 2.0, now that you mention it. This is probably a bug, and I'll report it.

tikipedia.css regarding these box details didn't change from 1.9 to 2.0. I didn't compare the plugin file versions, but if the plugin has changed (and apparently it has), the reason might be to have better compliance with standards. I think "align" as applied as a tag is deprecated (supposed to be replaced by a newer method). But in the DIV plugin (and probably also in BOX), the "align" parameter is used as the text-align property, which is good CSS practice, along with float to control its position relative to its parent.

-- Gary


Switch Theme

Layout

Subscribe to Tiki Newsletters!

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other big news!
Contribute to Tiki

Site Config