Hmmm. On first glance, I don't fully approve of how Boltwire has
chosen to handle css-like behaviour, but I think I see the benefits.
The page you should add
------------
div.tright {
clear: right;
float: right;
border-width: .5em 0 .8em 1.4em;
}
div.tleft {
float: left;
clear: left;
margin-right: .5em;
border-width: .5em 1.4em .8em 0;
}
--------
to seems to be code.style.
On Aug 30, 7:11 pm, DrunkenMonk <[email protected]> wrote:
> Second question first:
>
> Boltwire doesn't have a built in way to do this, as it is something
> that is done with html - as such, use a stylesheet (.css) and specify
> the following:
>
> -------------------------------------------
>
> div.tright {
> clear: right;
> float: right;
> border-width: .5em 0 .8em 1.4em;}
>
> div.tleft {
> float: left;
> clear: left;
> margin-right: .5em;
> border-width: .5em 1.4em .8em 0;
>
> }
>
> -------------------
>
> (Taken from wikipedias default
> stylesheet,http://en.wikipedia.org/skins-1.5/monobook/main.css)
>
> Then, you need to make sure that images you wish to float to the left
> or right are placed in the correct type of div. This seems slightly
> trickier, so lets look at some boltwire nuts and bolts:
>
> Boltwire places images directly on a page without an enclosing div.
> This is a shame. We will have to make a plugin function that encloses
> an image in a div:
>
> ----------------
>
> $FLOATDIV = '<div class="t%s">%s</div>';
> function BOLTFfloat($args, $field) {
> $side = 'right';
> $link = '';
>
> if( isset($args['side']) ) $side = $args['side'];
> if( !in_array($side, array('left', 'right')) ) return "error:
> illegal side argument";
>
> if( isset($args['link'] ) $link = $args['link'];
> elseif( isset($args[1]) ) $link = $args[1];
>
> return sprintf($FLOATDIV, $side, BOLTMuploads("img:$link"));
>
> }
>
> --------------
>
> Put this function in a file in your plugins directory, then enable it.
> Put the .css commands in your css file (your skin), and then use the
> command:
>
> [(float side=right myimage.png)]
>
> wee! You're done. I would make this into a plugin but I haven't looked
> at the boltwire skins yet, so I'm unsure how to include the .css
> commands via the plugin.
>
> On Aug 30, 5:08 am, Kevin <[email protected]> wrote:
>
> > * Is there a way to specify in an External link that it needs to open
> > in a new window? I saw where you could change the behavior of all
> > links. I know the pros and cons for this but I need the user to stay
> > on the support site while looking at remote links.
>
> > * Is there a way to display an image like a float (like float right or
> > float left) where the text flows around the image rather than being
> > above or below it. This is more cosmetic than anything else,
>
> > Something like:
>
> > XXXXXXXXXXX ! Header
> > XX IMAGE XX
> > XXXXXXXXXXX Text starts right of the (float left) image and
> > continues under it... rather than...
>
> > ! Header
> > XXXXXXXXXXX
> > XX IMAGE XX
> > XXXXXXXXXXX
> > This as it apears to only do now...
>
> > Just started working with this wiki after looking at a number of them,
> > MediaWiki, TWiki, TRAC, MoinMoin to name a few. This was by far one
> > of the easyest to setup and it hasn't been too hard to figure out.
> > I've not really used a Wiki before (been using forums for a long long
> > time).
>
> > Many of the other ones had "issues" that many times I couldn't figure
> > out if it was my configuration or just a bug. Found that in some it
> > was a bug. Some of them in the very area that I had a requirement
> > for.
>
> > While I know Perl pretty good, I found PHP based systems easier to
> > use, modify and setup.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---