The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Images with absolute url
PostPosted: Wed Apr 25, 2012 3:56 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 08, 2009 6:01 am
Posts: 12
Hi,
I'm having a small problem with Joomla (v. 1.5.24). Currently I have it installed as an intranet. Just an information website for a company. It has been installed on the local server and also on the internet. Database is on the internet.

Small problem comes out when users post images on articles. All images are uploaded and pulled from the file browser and all addresses' for images are turned to /images/img.jpg instead of using the absolute path. Now it works fine online (internet) but locally it doesn't because the physical images are located on the internet ftp server and the local server can't get the address because the <img src=""> points only to /images instead of the absolute url.

How can I change the filebrowser or the editor to add the address automatically on the <img src=""> tag, because there is no way the users themselves will remember to do this no matter how many times I might repeat it to them. I'm using Joomla CKEditor on the articles. I have already set the $live_site variable on configuration.php to the address the site is located in, but it doesn't affect this. I also tried adding the absolute path on the plugin itself, by turning the address images/ to http://www.address.com/images/ but it only broke the filebrowser claiming it has no right to access that folder although it has 0777 permissions.


Top
 Profile  
 
PostPosted: Wed Apr 25, 2012 4:31 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 13, 2008 2:57 am
Posts: 20414
Location: Chennai, India
Probably you could think an out of the box solutions such as the following:

It is not clear as to what the address.com refers to. I assume that it is referring to the image server.

You could change the string http://address.com/images to point to the image server by replacing the string on the fly while the page is rendering, using the extension ReReplacer (http://extensions.joomla.org/extensions/edition/replace/4336).

_________________
- Ilagnayeru (MIG) Manickam
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged


Top
 Profile  
 
PostPosted: Wed Apr 25, 2012 4:36 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 08, 2009 6:01 am
Posts: 12
I actually solved this 10 minutes ago with much more ease. plugins/editors/jckeditor/plugins/jfilebrowser
and config.php. There is a variable $base_url. Just add the http:// address there and it adds it automatically on the file browser url input field.

Thank you anyway!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 



Who is online

Users browsing this forum: No registered users and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group