Topic: I need help!

Good morning!

I need your help, I just installed CuteNews on my website and it is really great but I have a problem. ".handle_img_tag($matches[1].$matches[3], false)."

I need to put images into a template label.

Can you help? ".handle_img_tag($matches[1].$matches[3], false)."



To clarify ...

This is my template and I need to put the image where it says {IMAGEEEEEE}:

$matches[1]


The problem is that when I create a new news no way to put an image and placed in {IMAGEEEEE}

Is there a plugin that implements it?

I need it as in the {title} that when you put the title in the field when you create a new word is placed directly on the label.

Thank you,
regards  ".handle_img_tag($matches[1].$matches[3], false)."

2 (edited by 2013-06-11 07:35:56)

Re: I need help!

1.) Options > Additional fields: Create new field "image"

2.) Options > Edit Templates: Add tag {image} where you want. E.g:

[img]{image}[/img]

In the Edit News and Add News modules, a link under "Title" appears saying "Additional fields." Click on it to display the new image field.

Unfortunately, it is currently impossible to show the image field immediately (without the "Additional fields" link), but I'm sure that's close enough. ^^

Edit: As FUNimations kindly pointed out in the post below, adding the full path to the image in the templates will solve a lot of potential path problems. Something like the code below should do the trick:

[img]http://example.org/cutenews/uploads/{image}[/img]

Re: I need help!

Or the problem is as easy as, use using a correct path.
If you're images are located at www.domain.com$matches[1]
you would use
[img]$matches[1][/img]