Closed (fixed)
Project:
Textimage
Version:
5.x-2.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Mar 2008 at 02:34 UTC
Updated:
5 Feb 2009 at 22:30 UTC
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
tag?
Thank you.
Comments
Comment #1
decipheredHi 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
tag with a valid Textimage URL, you could certainly wrap anything else around that
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.
Comment #2
deciphered