1
Anonymous
SmartSection 2.13.... adding image to article
  • 2007/5/18 16:10

  • Anonymous

  • Posts: 0

  • Since:


Hi all,

I'm sure that this is really simple but I'm stumped

I have a SS article and all I want to do is add an image after some text and then use that image to link to another file...... something like:

article text [img] <----- click on image to open MP3 file



I have uploaded the image via the image manager but when I try to insert the image nothing happens. Is what I want to do possible?

TIA

2
McDonald
Re: SmartSection 2.13.... adding image to article
  • 2007/5/18 16:42

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Try this if you use the standard DHTML editor:

url=https://xoops.org ] [ img ]https://xoops.org/themes/xooriginalnew/logo.png[ /img ][ /url ]


Remove the blanks after [ and before ].

3
raygauci
Re: SmartSection 2.13.... adding image to article
  • 2007/5/18 17:02

  • raygauci

  • Just popping in

  • Posts: 64

  • Since: 2004/12/16


try this for all images that you insert between text in the paragraph:

<a href="http://www.yourname.com/moduls/smarsection/..."><img src="http://www.yourname.com/uploads/filename.jpg"></a>

Also you can insert this align="right" or align="left" so you can have the image aligned to your text

<a href="http://www.yourname.com/moduls/smarsection/..."><img src="http://www.yourname.com/uploads/filename.jpg align="right""></a>

4
skenow
Re: SmartSection 2.13.... adding image to article
  • 2007/5/18 17:05

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Which editor are you using?

5
Anonymous
Re: SmartSection 2.13.... adding image to article
  • 2007/5/18 17:24

  • Anonymous

  • Posts: 0

  • Since:


Thanks chaps..... I know I can add the html code but was hoping to avoid that as there's a few places that I need to insert the image/links

Quote:
skenow wrote:

Which editor are you using?


Koivi

Like I may have said, clicking on Image Manager brings up the window and I can select the image I want, but clicking on one of the buttons (left, centre, right) isn't inserting it.

6
Anonymous
Re: SmartSection 2.13.... adding image to article
  • 2007/5/18 17:57

  • Anonymous

  • Posts: 0

  • Since:


Thanks everyone - wasn't sure if it was me being stupid or if it was a bug/design fact.

I don't mind if it's not supposed to work just so long as I know......

Thanks too, David, for checking this out. SmartSection 2.14 eh? Can't wait - fantastic module

7
Anonymous
Re: SmartSection 2.13.... adding image to article
  • 2007/5/18 18:16

  • Anonymous

  • Posts: 0

  • Since:


I've narrowed it down...... it is only the image addition that doesn't work with what I'm trying to do.

If I check the HTML box, add the image code manually and then uncheck the HTML box to return to the Koivi editor then I can select the image and set a hyperlink from it just fine.

Question:
Is this a SmartSection 2.13 or Koivi bug?

8
skenow
Re: SmartSection 2.13.... adding image to article
  • 2007/5/18 18:27

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Quote:

JAVesey wrote:
Thanks chaps..... I know I can add the html code but was hoping to avoid that as there's a few places that I need to insert the image/links

Quote:
skenow wrote:

Which editor are you using?


Koivi

Like I may have said, clicking on Image Manager brings up the window and I can select the image I want, but clicking on one of the buttons (left, centre, right) isn't inserting it.


When you click on the Imagemanager icon in Koivi, do you have 3 buttons (left, center, right) or 4 (left, center, right, insert into wysiwyg)? Koivi requires a different system_imagemanager.html (provided in the standalone download)

It add this to the script section at the beginning of the file
function InsertWysiwygImage(src)
{
    
window.opener.XK_InsertImage('<{$target}>',src,'');
    
window.close();
    return;
};


And this is the changed code where the images and butttons are drawn -
<{section name=i loop=$images}>
    <
tr align="center">
      <
td><input type="hidden" name="image_id[]" value="<{$images[i].id}>" /><{$images[i].nicename}></td>
      <
td><img src="<{$images[i].src}>" alt="" /></td>
      <
td><{$images[i].mimetype}></td>
      <
td><a href="#" onclick="javascript:appendCode('<{$images[i].lxcode}>');"><img src="<{$xoops_url}>/images/alignleft.gif" alt="Left" /></a> <a href="#" onclick="javascript:appendCode('<{$images[i].xcode}>');"><img src="<{$xoops_url}>/images/aligncenter.gif" alt="Center" /></a> <a href="#" onclick="javascript:appendCode('<{$images[i].rxcode}>');"><img src="<{$xoops_url}>/images/alignright.gif" alt="Right" /></a>
      [
color=ff0000]<br /><a href="#" onclick="javascript:InsertWysiwygImage('<{$images[i].src}>');"><img src="<{$xoops_url}>/images/imgsrc.gif" title="Insert Into Wysiwyg" alt="Insert Into Wysiwyg" /></a>[/color]
      </
td>
    </
tr>
    <{/
section}>

9
Anonymous
Re: SmartSection 2.13.... adding image to article
  • 2007/5/18 18:33

  • Anonymous

  • Posts: 0

  • Since:


Quote:
skenow wrote:

When you click on the Imagemanager icon in Koivi, do you have 3 buttons (left, center, right) or 4 (left, center, right, insert into wysiwyg)? Koivi requires a different system_imagemanager.html (provided in the standalone download)


Three buttons.

Where can I get a copy of this system_imagemanager.html and will it work as a straight swap?

10
skenow
Re: SmartSection 2.13.... adding image to article
  • 2007/5/18 18:36

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


I posted the changes above as you were posting. You will need to update your templates for the change to take effect.

Link to Koivi standalone

Login

Who's Online

64 user(s) are online (35 user(s) are browsing Support Forums)


Members: 0


Guests: 64


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits