I'd installed Image Browser earlier today, and it was working fine. But then after some other tweaking, I'm now in a state where the images all show as broken links. Doing a View Source on the browser web page shows that the links are all empty, e.g. href="" and src="". However, it is finding the correct number of empty img tags to insert. This happens from the admin account, and I can see the same images in their posts, just not in the browser, so I don't think it's a permissions issue. I can upload an image, but it still won't appear in the browser. The main things I remember doing were tweaking the security/filtering options in both FCKeditor and Input Types, visiting imagebrowser/view/browser manually, and tweaking the view. But even after reverting the view, setting things back to the way they were, uninstalling and reinstalling the Image Browser module, I still get the same results. Somehow Image Browser is finding the correct images, but either not rendering the URLs properly (or else they're being filtered out).

Comments

jdelaune’s picture

Status: Active » Postponed (maintainer needs more info)

Try disabling the ImageBrowser module. The un-installing. Deleting the ib_browser view. Clearing the cache and re-enabling the ImageBrowser module.

Gary Feldman’s picture

I'd tried that with no luck, but I think I found the cause of the problem.

I'd copied the imagebrowser-thumbnail.tpl.php file into my theme's templates directory, in order to tweak it. That's what triggers the problem. If I delete that file and empty the caches, it goes back to normal.

I noticed that the theme path is hardwired in imagebrowser.views.inc. I don't know enough about views under the hood to even guess if that's right, or if there's some other approach I should be using. I realize now that the desire to load the browser in an unadorned frame forces you to bypass the regular theme, but I still need a way to customize things. For what it's worth, I was just trying to display the filenames below each thumbnail.

Gary Feldman’s picture

Status: Postponed (maintainer needs more info) » Active
jdelaune’s picture

It's a custom row view that's why I've linked the template to within the module folder. If you want to change it then you will have to customise the tpl file within the module directory and was the the theme.inc to pass the new variable into it.

jdelaune’s picture

Status: Active » Closed (fixed)