Loading...
 
Skip to main content

Features / Usability



Thanks for the quick answer:

I had previously reached that docs and I have:

<img SRC="http://www.eba-stats.com/images/libros/barkley_charles_a_black_man.jpg" BORDER="0" ALIGN="left" HSPACE="10" VSPACE="10" ALT="Who's Afraid of a Large Black Man?">

allowing html, and doesn't works....

Hmm... looks like a bug. I tested it here:

This wiki code:

Copy to clipboard
{img src=http://www.eba-stats.com/images/libros/barkley_charles_a_black_man.jpg hspace=100"}My text here

{img src=http://www.eba-stats.com/images/libros/barkley_charles_a_black_man.jpg hspace=100"}My text here

produces:

Copy to clipboard
&lt;span class="img">&lt;img alt="" src="http://www.eba-stats.com/images/libros/barkley_charles_a_black_man.jpg" border="0" />&lt;/span>My text here



It is, indeed, missing the hspace parameter.


-RickQuestion

There is a way. If something is missing from the basic wiki syntax, one solution is to use a plugin. A few years ago, like you, I wanted more styling control over images on wiki pages, so I made an "IMGSTYLED" plugin (adapted from an existing plugin but I can't remember now which). Please see http://zukakakina.com/wikiplugin_imgstyledQuestion where this is demonstrated and available to download. This plugin is just one solution; if I did something similar again, I would do it differently. But it shows the possibilities.

My Tiki sites don't have HTML enabled; kind of as a principle, everything is done with wiki syntax and plugins.

Another method which could be a solution is to add a margin property to images in wikitext in the theme's stylesheet, like

.wikitext img {margin: 6px}

Of course, this will affect every image in the wikitext div, even smileys, etc., so may not be practical if you use those.

-- Gary

Anything is possible.

If, as Gary suggests, you don't want to make your own plugin, I can think of at least 3 other ways:

1. Use the SPLIT plugin:

Copy to clipboard
{SPLIT(joincols=>n,fixedsize=>y,colsize=>120)} {img src=http://www.eba-stats.com/images/libros/barkley_charles_a_black_man.jpg hspace=100"} --- My text here. {SPLIT}

{img src=http://www.eba-stats.com/images/libros/barkley_charles_a_black_man.jpg hspace=100"}
My text here.


2. Use a DIV:

Copy to clipboard
{DIV(float=>left, width=>120px)}{img src=http://www.eba-stats.com/images/libros/barkley_charles_a_black_man.jpg} {DIV} My text here

Image

My text here


3. Edit your image and add a transparent border.

I'm sure that other folks could up with even better solutions.

HTH,

-RickQuestion

Hi !
I downloaded the pugin, which works fine, I uploaded the picture to Wiki, now I succeeded to insert the picture address once, changed something (the pixels....), and the page went away.... and now I don't remember HOW I DID it...

How I insert this picture address in the plugin code ? Thanks

Copy to clipboard
{img src="img/wiki_up/barkley_charles_a_black_man.jpg" }

Copy to clipboard
{IMGSTYLED(margin=>6px, float=>left, clear=>none, border=>1px solid #aaa, width=>141px, height=>163px, title=>Stanley_Kubrick, alt=>Stanley_Kubrick_portrait)} show_image.php?id=3&thumb=1{IMGSTYLED}


I thank you all for your work...
Roberto

> Hi !
> I downloaded the pugin, which works fine, I uploaded the picture to Wiki, now I succeeded to insert the picture address once, changed something (the pixels....), and the page went away.... and now I don't remember HOW I DID it...
>
> How I insert this picture address in the plugin code ? Thanks
>

>
Copy to clipboard
{img src="img/wiki_up/barkley_charles_a_black_man.jpg" }

>

>
Copy to clipboard
> {IMGSTYLED(margin=>6px, float=>left, clear=>none, border=>1px solid #aaa, > width=>141px, height=>163px, title=>Stanley_Kubrick, alt=>Stanley_Kubrick_portrait)} > show_image.php?id=3&thumb=1{IMGSTYLED}

>
> I thank you all for your work...
> Roberto
>


SPLIT plugin proposal doesn't work: gives only one line on the right... the first...! (in the example: "My text here")

>
>
> SPLIT plugin proposal doesn't work: gives only one line on the right... the first...! (in the example: "My text here")

It will include as many lines as you have...

Copy to clipboard
{SPLIT(joincols=>n,fixedsize=>y,colsize=>120)} {img src=http://www.eba-stats.com/images/libros/barkley_charles_a_black_man.jpg hspace=100"} --- My text here. And more text here. And even more text. {SPLIT}
{img src=http://www.eba-stats.com/images/libros/barkley_charles_a_black_man.jpg hspace=100"}
My text here.
And more text here.
And even more text.


But you need to realize that the SPLIT plugin works by creating a table. So your text will not free flow around the picture. Using a DIV may produce more of the result that you want.

HTH,

-RickQuestion

OK! but I am trying to succed with the pugin IMGSTYLED.....
Where to put the address in the plugin code ? Thanks

Please look again at the syntax example on the Zukakakina.com page. The url is between the {IMGSTYLED()} and {IMGSTYLED} parts.

-- Gary

Thank You, but I have seen it:
show_image.php?id=3&thumb=1
is not
img src="img/wiki_up/barkley_charles_a_black_man.jpg"

If I put the img portion instead del show_image portion, give me the picture into the text....
if I put the img portion instead the "3".... i don't receive nothing...

I DID IT once BY CHANCE, but I don't REMEMBER HOW... simply....!

Use whatever the URL is for your image: "http://www.eba-stats.com/images/libros/barkley_charles_a_black_man.jpg", or just the part from the Tiki root, like "/images/libros/barkley_charles_a_black_man.jpg".

-- Gary

This doesn't give me nothing....

Copy to clipboard
{IMGSTYLED(margin=>6px, float=>left, clear=>none, border=>1px solid #aaa, width=>141px, height=>163px, title=>Stanley_Kubrick, alt=>Stanley_Kubrick_portrait)} http://www.eba-stats.com/images/libros/barkley_charles_a_black_man.jpg{IMGSTYLED}


nor this way...

Copy to clipboard
{IMGSTYLED(margin=>6px, float=>left, clear=>none, border=>1px solid #aaa, width=>141px, height=>163px, title=>Stanley_Kubrick, alt=>Stanley_Kubrick_portrait)} show_image.php?id=/images/libros/barkley_charles_a_black_man.jpg{IMGSTYLED}


and the Tiki root is

Copy to clipboard
{img src="img/wiki_up/barkley_charles_a_black_man.jpg" }

The URL in your first code example does work. See my Zukakakina.com page again. One thing I didn't compare is if the plugin works when HTML is enabled. Zukakakina.com doesn't have HTML enabled for wiki pages. Otherwise, I don't know why the plugin isn't working for you. As you can see, it works at my site with your image URL. I assume you uploaded wikiplugin_imgstyled.php to your libs/wiki-plugins/ directory as is necessary for any new plugin.

-- Gary

Hi, Gary !

From your appreciated live example in your site Zukakakina.comQuestion we may understand that:

1) I need urgently a brain transplant (the answer to my first question was at your first answer....);

2) your plugin works fine, INCLUSIVE WITH "Allow HTML" enabled, as in http://www.ebawords.com/tiki-index.php?page=Barkley%2C+CharlesQuestion;

3) the example at your site works, but no that "first code" of mine from above...

4) the difference and all the problem of this thread was that (newbies as me, read it): I cut the plugin in two when I "inserted forcibly" the URL address (without editing it... spaces and lines...), simply... that's means NO PLUGIN !

5) you can delete your example from your site... if you want !

Thank You a lot for your appreciated work and nearly exhausted patience !!

Roberto

http://www.eba-stats.comQuestion

PS: a little question of style= is there any possibility of writing the title and the alt without the ugly "_" in the middle of the words ?

> PS: a little question of style= is there any possibility of writing the title and the alt without the ugly "_" in the middle of the words ?

If text is enclosed in single quotation marks works, like title='Stanley Kubrick', it can contain spaces and won't be cut off after the first word.

-- Gary

GREAT ! Thanks AGAIN !
Roberto



> > PS: a little question of style= is there any possibility of writing the title and the alt without the ugly "_" in the middle of the words ?
>
> If text is enclosed in single quotation marks works, like title='Stanley Kubrick', it can contain spaces and won't be cut off after the first word.
>
> — Gary
>