Closed (fixed)
Project:
Blogger
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2006 at 10:02 UTC
Updated:
2 Apr 2007 at 06:40 UTC
I installed the latest blogger module, I enabled the "bloggers" block,
But, the "bloggers" block shows no pictures of the users.
I viewed the html source for the block, it shows-
<h2 class="title">Bloggers</h2>
<div class="content"><table><tr><td><img src='//files/pictures/picture-2.jpg' align='center' ></></td><td><a href="/blog/venkatesh">venkatesh (15)</a></td></tr>
The image path should be like, www.mysite.com/files/pictures/picture-2.jpg, not
//files/pictures/picture-2.jpg, as you see above,
Comments
Comment #1
csc4 commentedI hit the same problem and the fix for me was to change
$blogger_path = base_path();to
$blogger_path = $base_path;on lines 93 and 289
Comment #2
drupalnesia commented$blogger_path = $base_path;
above line will now help if you run on local site with this url: http://localhost/drupal
another solution is add:
$base_url = 'http://www.example.com';
I will try to find if we can solve this problem by not entering $base_url.
Comment #3
brianlongest commentedAfter setting the module to include avatars and then viewing the page source as described above I do not have img src tag at all. So i do not even have the wrong image path. Any ideas why this may be? I tried all the suggetions and viewed source and never received any image path. Thanks for any help you can give.
Comment #4
Copywriter-1 commentedHi,
It looks it works if we delete blogger_path from path to avatar pictures at all (lines 97 and 290 in blogger.module).
Regards, Alexander.
Comment #5
Copywriter-1 commentedhm, my mistake.
It's enough to delete extra "\"
- between $blogger_path and $data->picture in line 97 (should be src='$blogger_path$data->picture')
- between $blogger_path and $node->picture in line 290 (should be src='$blogger_path$node->picture')
Nothing more. Now it works in all cases.
Thanks for module.
Regards, Alexander
Comment #6
drupalnesia commentedClosed.