Blog It graphics not displaying (Fixed through news_page.module alteration)

bstrange - March 24, 2008 - 10:29
Project:News Page
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I installed News Page and it worked great except the blogit blog.png was not showing up. It was registering a path of http:///misc/blog.png.

I fixed it by altering line 431 from:

if ($blogit) {
  $blog_icon = '<a href="' . url('node/add/blog', "iid=$item->iid") . '"><img src="'. base_path() .'/misc/blog.png" alt="'. t('Blog this') . '" title="' . t('blog it') . '" class="blog-it"/></a>' ;
}

to:

if ($blogit) {
  $blog_icon = '<a href="' . url('node/add/blog', "iid=$item->iid") . '"><img src="'. base_path() .'../misc/blog.png" alt="'. t('Blog this') . '" title="' . t('blog it') . '" class="blog-it"/></a>' ;
}

Just figured I'd post it so the issue (and fix) are known

 
 

Drupal is a registered trademark of Dries Buytaert.