I'm new to joomla and doing some changes to an existing website designed using Joomla.
Given below is a line that I've inserted to an existing article
<img SRC="images/myimages/demo/IM-0002-0025.jpg" class="highlighted" data-value="image_value"/>
but it does not display the image when I view it on website. When I view the source of the image in the webpage it shows below
<img src="http://xxxxxxx.cloudfront.net/images/myimages/demo/IM-0002-0025.jpg" class="highlighted mTSThumb" data-value="image_value">
My JPATH_BASE is http://localhost/mywebsitename/
but still it appends "http://xxxxxxx.cloudfront.net/" to the image path
I've even enabled the URL rewrite as mentioned in the joomla prepends to 'path'
But still it didn't change anything. Please help
It's been a while since I've used joomla but I'm sure you have to begin the line with a forward slash to before images.
<img src="/images/"
This makes it relational to the site.
I'm not sure whether this is a hack or not. but I've managed to fix the issue by specifying the image path followed by a ./
So now the image path looks like this and it works fine.
<img SRC="./images/myimages/demo/IM-0002-0025.jpg" class="highlighted" data-value="image_value"/>
Yes that looks right. Mark your answer as complete
Related
I deleted the pictures through the Joomla panel and I get such an error on the page as you can see in the picture. How to deal with this?
How to add redirection but without domain?
Your first issue about the pictures seems to be an issue with the component you're using, which is com_joomgallery in your case. When you delete the picture, it gets deleted but somehow its showing up in your JoomGallery image listing and so is the error.
Can you let me know from where you've deleted the photos? Was it from JoomGallery or from somewhere else?
If you haven't deleted them from JoomGallery then that's the reason for your issue, because JoomGallery database table still have those records and when it tries to list them its unable to find the thumbnails/images that you've deleted.
About your second question, how are you redirecting to external URL? If you're trying to open the external URL from an anchor tag try doing it like
Link
But you're using Route::_ to open the external URL, then don't. As Route::_ isn't used for external links but is meant only for internal URLs. If you want to open or redirect using Joomla, then try like this
$url = Uri::getInstance("//www.facebook.com");
$url->setScheme("https");
$externalURL = $url->toString();
echo "<a href='$externalURL'>Link</a><br>";
I hope this helps.
I created a Category Blog on my Joomla site but there's a problem. Joomla is adding /blog automatically to urls and as a result, images aren't displayed since blog/images/ doesn't exist. Is there a way to either remove blog/ from urls or correct image links to display /images instead of /blog/images? These are the links:
http://www.gambitchessacademy.com/blog
http://www.gambitchessacademy.com/blog/10-using-time-efficiently-during-a-tournament-game
Thanks very much.
Fist, your real problem is about Relative VS Absolute URLs. See http://kb.iu.edu/data/abwp.html for example.
For example a javascript file on js/jquery.js is a relative URL. If you are on site.com/blog/article.html it will try http://example.com/blog/js/jquery.js. But if you use /js/jquery.js or http://example.com/js/jquery.js you will have your real problem solved.
Note the "/" at start of paths. They make a lot of diference.
On my wordpress site all my images are showing up as broken links. They are also showing up as broken links in the media gallery in the wordpress backend.
I inspected the images using Google chrome and saw that they all show up like this:
<img src="http://firouzeh.co.uk/frouzeh/frouzeh/wp-content/uploads/sites/3/2013/04/Granulated-Persepolis-Ring-230x160.jpg">
there is a duplication of a file name in the path and to get the images to work I need the path to look like this:
<img src="http://firouzeh.co.uk/frouzeh/wp-content/uploads/sites/3/2013/04/Granulated-Persepolis-Ring-230x160.jpg">
I have searched through the database and cannot find where to change the path to my images, specifically I think there must be a field somewhere that is directing everything to www.firouzeh.co.uk/frouzeh where it should just be sending it to www.firouzeh.co.uk.
Does anyone know where to change the path?
If your URL settings are correct under Settings > General, then you could try using a Search and Replace plugin to update every occurrence in your database.
http://wordpress.org/plugins/search-and-replace/
Search for firouzeh.co.uk/frouzeh/frouzeh
Replace it with firouzeh.co.uk/frouzeh
Back up your site first :)
If you did just move your site from another location, I suggest using the Duplicator plugin, which handles all of the replacing.
http://wordpress.org/plugins/duplicator/
Use the same solution I wrote for here: https://stackoverflow.com/a/18023214/1946078
It is as follows:
When you move a Wordpress install, you need to also edit two fields in the database. Run this against your database in order to find the values that need to be edited:
SELECT * FROM `wp_options` WHERE option_name IN('siteurl', 'home');
If database access is not an option, another way to do this is by editing your wp-config.php file to include the following two lines:
define('WP_HOME','http://yoursite.com');
define('WP_SITEURL','http://yoursite.com');
Straight from http://codex.wordpress.org/Changing_The_Site_URL
The "Home" setting is the address you want people to type in their browser to reach your WordPress blog.
The "Site URL" setting is the address where your WordPress core files reside.
I used the solution from this article:
UPDATE wp_options SET option_value = replace(option_value, 'oldurl.com', 'newurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'oldurl.com','newurl.com');
UPDATE wp_posts SET post_content = replace(post_content, 'oldurl.com', 'newurl.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'oldurl.com','newurl.com');
After changing the Site URL and WP home in the admin panel.
I'm hoping that someone in this forum can help with finding a specific JavaScript file in a Magento shopping cart.
I'm working on fixing SSL non secure items messages and I've found and fixed all of them except for one.
The image I'm looking for is called "pager_arrow_right.gif" and it's on a customer account page generated from:
app\design\frontend\default\our_theme\template\sales\order\history.phtml
The image src code is not in this file though, it looks like the image src is in a JavaScript file generated from that history.phtml file:
<script type="text/javascript">decorateTable('my-orders-table')</script>
Does anyone have any idea where the JavaScript file for the above code is located?
I just can't seem to find it..
Thank You !!
Janet
The function decorateTable is in js/varien/js.js but it only applies some class names. Normally that image is used in pagers for collections. The line following your javascript is:
<?php echo $this->getPagerHtml(); ?>
...which seems more relevant. Look at the file template/page/html/pager.phtml instead.
I use a template with 3 columns in homepage, in my file right_col.phtml I use "$this->getSkinUrl()" and that returns me the wrong theme: /default/default/ instead of /default/my_second_theme, but it works good in all other pages.
How can I fix this problem to get the good theme??
Thanks a lot.
Also make sure that the asset actually exists (or that you specify an existing path). If an asset is not found in any theme, Magento will always use default/default as the resulting skin path.
Check the CMS page for the home page, go to the Design tab, and make sure that you didn't set the "Custom Theme" to something that is overriding the theme that you want to use.
Check the $argument you are passing and verify that the target file actually exists. getSkinUrl() does more than just generate the proper URL, it also verifies that the file exists. If it doesn’t find the file within the store’s /default/my_second_theme folder, it will revert to /default.
Refer to: http://www.nvncbl.com/2009/10/magento-this-getskinurl-wrong-template/
I have used this to solve it :
if (Mage::app()->getStore()->getCode()=='deutsch') {
Mage::getDesign()->setTheme('deutsch');
}
It works good now ;)