Was having trouble getting the Insert Image feature to work with my installation. When I took a look at the html source for the popup window, I observed that it was using the following for the base href setting:

<base href="http://www.thesmarts.ca/modules/htmlarea/plugins/UploadImage/popups/" />

After mucking around for a bit, I found the insert_image.php (perhaps not surprisingly in the very directory referenced above). If I edit line 21 from:

<base href="<?php print $base_url ?>/" />

to a hard-coded address:

<base href="http://www.thesmarts.ca/" />

everything works perfectly from then on. I attempted to add the $base_url variable as a global variable in the insert_image.php file, but ended up with the same results as before. Not sure why it's doing this, but I've at least managed a kludge fix that works well enough for me... Just thought I'd share my findings in case they may help someone else down the road.

Attached file has the html source for the popup window with the error.

-C

CommentFileSizeAuthor
htmlarea-insertimage-notworking.txt.txt7.98 KBagent86

Comments

gordon’s picture

Status: Active » Closed (won't fix)

Removing in favor of img_assist