Change the URL generated of the Image added via WYSIWYG

Permalink
OK, so I am adding images via the WYSIWYG Editor in the Simple News Addon. When I click on the add image button the code generated is the following:

<img src="/test3/index.php/download_file/view_inline/13/" alt="24-Yellow.png" width="37" height="34" />

With this code the images do not show up in the News List generated. Just the Alt name of the image.

However, when I manually remove the "/test3/" from the front of the URL in HTML view, the image shows up as it should in the News List.

How can I edit the PHP so that the "/test/" bit of the URL is left out automatically when the image is added via the button?

Cyberdave
 
Cyberdave replied on at Permalink Reply
Cyberdave
Anybody know how I can solve this? Thanks
jbx replied on at Permalink Reply
jbx
Is this happening in every content block where you use the WYSIWYG, or just in the Simple News Addon? Could you test and let me know?

Thanks,

Jon
Cyberdave replied on at Permalink Reply
Cyberdave
Hi John. It just happens on the Simple News content block. Thanks
jbx replied on at Permalink Reply
jbx
Ok, well you should first try the author of the block for support. It sounds like it isn't correctly picking up the base path of your site...

If you don't get any response from the author, let me know and I'll take a look at the block for you. Is it a free add on?

Jon
Cyberdave replied on at Permalink Reply
Cyberdave
Hi Jon. It isn's a free adon. I have tried contacting the author, but haven't got any response. I can send you files if that helps?
Cyberdave replied on at Permalink Reply
Cyberdave
Can anybody please help me with this?

I have been poking around the different PHP files for the last 4 evenings and I still don't know which file I need to change, to change the URL generated when the image is inserted via the WYSIWYG Editor. Please help...
Cyberdave replied on at Permalink Reply
Cyberdave
Can anyone please help me with this?

I have been trying to get this to work for the last week, with no success. I reckon I might only have to change something very small to get it to do what I want?

My Concrete5 site is saved in a sub-folder if this makes any difference. Please, Please help...