The file "macFFBgHack.png" is missing from ../sites/all/modules/photos/thickbox/macFFBgHack.png

Quick fix: Copy from Thickbox module to destination. Please include in next release.

Comments

eastcn’s picture

You enabled thickbox module?

If so, priority should be given to the use of its js. Please make changes:


// photos.module

 function photos_init() {
    drupal_add_js(drupal_get_path('module', 'photos').'/js/photos.js');
   drupal_add_js(drupal_get_path('module', 'photos').'/js/jquery.jeditable.pack.js');
-   drupal_add_js(drupal_get_path('module', 'photos').'/thickbox/thickbox-compressed.js');
-   drupal_add_css(drupal_get_path('module', 'photos').'/thickbox/thickbox.css');
+  if(!module_exists('thickbox')){
+     drupal_add_js(drupal_get_path('module', 'photos').'/thickbox/thickbox-compressed.js');
+     drupal_add_css(drupal_get_path('module', 'photos').'/thickbox/thickbox.css');
+  }
    drupal_add_css(drupal_get_path('module', 'photos').'/css/photos.css');
 }

Starminder’s picture

Version: 6.x-2.6-beta2 » 6.x-2.6-beta3

.png not included in latest beta 3.

I will try the thickbox patch as soon as I can get the module to work at all - at the moment it makes to where I cannot post a new blog entry.

Starminder’s picture

Status: Needs review » Active

setting status to active

Starminder’s picture

Thanks - I have the file, I think it needs to be included in the release. If not, then any new user of album photos will have this problem.

Starminder’s picture

I tried replacing the init hook with the thickbox code above, but got an error:

Parse error: syntax error, unexpected T_IF in /usr/home/hoslo/public_html/sites/all/modules/photos/photos.module on line 1197

Starminder’s picture

OK, tried again, no error, but I still don't see a thickbox view. Replaced code so it now looks like this:

//hook_init
function photos_init() {
	drupal_add_js(drupal_get_path('module', 'photos').'/js/photos.js');
  drupal_add_js(drupal_get_path('module', 'photos').'/js/jquery.jeditable.pack.js');
  if(!module_exists('thickbox')){
  if(!module_exists('thickbox')){
     drupal_add_js(drupal_get_path('module', 'photos').'/thickbox/thickbox-compressed.js');
     drupal_add_css(drupal_get_path('module', 'photos').'/thickbox/thickbox.css');
  }
  }
	drupal_add_css(drupal_get_path('module', 'photos').'/css/photos.css'); 
Starminder’s picture

Status: Active » Needs work
nathaniel’s picture

Status: Needs work » Closed (fixed)