Hi,
I am trying to implement inline title images for blocks. I am modifying block.tpl.php file as following:

<h2><?php print '<img src="http://www.sitename.com.au/sites/sitename.com.au/files/textimage/purple_white/'. $block->subject . '.gif />'; ?></h2>

but this doesn't seem to be working. The URL for the image brings the proper image, the actual HTML has proper URL as well - in my case $block->subject = 'search';

I also couldn't find a path on the server (but it could be the case that the module doesn't create a folder for images and using Menu Hook instead to generate images each time).

Is it possible to wrap the textimage with Only local images are allowed. tag?

Thank you.

Comments

deciphered’s picture

Status: Active » Postponed (maintainer needs more info)

Hi ivan,

I think I'm missing something here, you've said that the URL shows the image, so what exactly isn't working?
As for the path on the server, once the image has been created, it will be saved to the path you called it from (/sites/sitename.com.au/files/textimage/purple_white/). If that path doesn't exist, the file hasn't been saved and it's likely there is a permission or other issue preventing it from saving.

As for wrapping the Textimage with a tag, as generating a Textimage only requires output a Only local images are allowed. tag with a valid Textimage URL, you could certainly wrap anything else around that Only local images are allowed. tag that you wanted.

Please let me know what the issue is, or if you are still having the issue and I will do the best to help you out.

Cheers,
Deciphered.

deciphered’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)