In Shortest route block, arrows (images) and default avatar are not displayed (appear as a broken image reference. I have a drupal root as http://localhost/webserver/,

When I look at html source, the Only local images are allowed. is set as "sites/all/modules/buddylist2/buddy_api_shortestroute/arrow.jpg" -- that is, not respect for the "webserver" part of my drupal path.
It appears that you are using drupal_get_path, so I am not sure what is the problem...

CommentFileSizeAuthor
#2 pic.jpg52.82 KBnodestroy

Comments

nodestroy’s picture

Hi,

i have set up a new testing page on my local pc with url http://localhost/sr/

the arrows and default pictures are shown correctly, the pathes are:
http://localhost/sr/sites/all/modules/buddy_api_shortestroute/default_av...
http://localhost/sr/sites/all/modules/buddy_api_shortestroute/arrow.jpg

i think, the problem is, that you have the module under the buddylist2 folder.

i will try with buddylist/buddy_api_shortestroute configuration.

nodestroy’s picture

StatusFileSize
new52.82 KB

with /sites/all/modules/buddylist2/buddy_api_shortestroute it works also fine...

http://localhost/sr/sites/all/modules/buddylist2/buddy_api_shortestroute...

what is the exact path of your image references? (like in attachment)

bobdalob’s picture

Component: User interface » Buddy API Shortest Path

I see this too on a local server. Is this something to do with the image address being relative to the page viewed as opposed to the site root?

The "missing image address" I have is:
http://localhost/user/sites/all/modules/buddylist2/buddy_api_shortestroute/default_avatar.jpg
when viewing:
http://localhost/user/<profileXX>

NB /user

Whereas the actual image is at:
http://localhost/sites/all/modules/buddylist2/buddy_api_shortestroute/default_avatar.jpg

nodestroy’s picture

should be fixed now. please get the newest buddy_api_shortestroute.module file.

http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/buddylist2/...

please try and report :)

regards,
dominik

nodestroy’s picture

Version: » 5.x-1.x-dev
Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.