Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am using url check to deteremine language
mysite.net/tr/ and seo checker module is not able show passed.gif since the absolute url of gif:
mysite.net/tr/sites/all/modules/seo_checker....
instead of
mysite.net/sites/all/modules/seo_checker...
I solved this problem by a simple method, giving full url of image on seo_checker.module line 115
'passed' => '<img src="/sites/all/modules/seo_checker/img/passed.gif" alt="' . $passed . '" />',
The original.
'passed' => '<img src="/' . url(drupal_get_path('module', 'seo_checker') . '/img/' . $passed) . '.gif" alt="' . $passed . '" />',
Comment | File | Size | Author |
---|---|---|---|
a.patch | 259 bytes | Anonymous (not verified) |
Comments
Comment #1
miruoss CreditAttribution: miruoss commentedHi there
I cannot apply your solution. First of all I don't know if the module is in sites/all, sites/default or somewhere else. That's why I use drupal_get_path(). Furthermore, the base URL of Drupal might be http://www.yourdomain.com/drupal/.
Using a relative path, the gif would be loaded as
http://www.yourdomain.com/sites/all/module/seo_checker/img/passed.gif
instead of
http://www.yourdomain.com/drupal/sites/all/module/seo_checker/img/passed.gif.
Comment #2
miruoss CreditAttribution: miruoss commentedI will use file_create_url() to generate the URL. Please check the next dev release.
Comment #4
dedisoft CreditAttribution: dedisoft commentedA little bit later...
file_create_url fix the problem.
Thanks !
Comment #5
miruoss CreditAttribution: miruoss commentedFixed in version 7.x-1.6
Comment #5.0
miruoss CreditAttribution: miruoss commentedi have to put a line of code to in code tag because of code contains a img url