Atelier2,
I (through you) caught a spot where I wasn’t using the $DB class for a query, and just using a normal query, so if you have changed the default database prefix (from “exp_”), then it’ll query the wrong db table. I will have a fix posted later today.
Update: fix for the db tables posted (v0.5).
THis module has caused site malfunctions for me. On my personal site (secret domain) but available by pm if necessary, all my categories started redirecting to the index page rather than the categories or months. Once I removed the titleimg code everything was back to normal.
Linguist - I think I fixed the redirect problem. I was using a header: location, to force a refresh of the page if the cached image didn’t exist. I got rid of the redirect completely. Updated module is on my site. 😊
Boyink - still looking at the box/dip issue with fonts, will also have to grab the image size to output width/height in the <img> tag on the next release.
Just updating the thread to say that I’ve made some changes to the module and cleaned some things up a bit.
Changelog:
Title Images - 0.7 - Added check for module updates option - Added visual feedback on successful updates - Added visual feedback on (common) errors - Added check for empty values - Added check for existing server paths - Added check for writable cache directory - Added check for existing font files - Added lines to language file, re-upload of language file rquired - Cleaned up functions a bit Title Images - 0.6 - Added clear cache option in CP - Added clear cache on uninstall - Added width/height attributes in <img> output - Added lines to language file, re-upload of language file rquired Title Images - 0.5 - Added version check to update version # in main modules tab - Added path detect (aka: we guess) for relative and absolute paths in settings on first install - Added lines to language file, re-upload of language file rquired - Fixed bug where blank page shows if cache file doesn't exist TO DO LIST: =========== - Word wrap/line break after user-specified width
One question though…
Naturally I tried to push my own limits a bit 😊 by trying to embed a png generated by your module inside a block of text. (I want to have the first character in my text to be a .gif or a png. My bodytext should flow around that image. What I did was to add an extra entry field called “Capital”, and I take away manually the first character in the body text entryform. The module generates this one character from “Capital”. Maybe not so advanced, but I cannot write code….
Unfortunally my methode does not give the wanted result. What the plug in generates is this:
http://www.site.com/images/titles/86948f73ad401930ec8a101cb261905f.png
but I need this:
Can we reach this?
I’m not gonna add the baseline style to the output (but I will add border=”0”…eventually).
You can edit mod.titleimg.php, if you have 0.7, it should be on line 63.
Line 63, replace this:
$this->return_data = '' . $web_dir.$cached_img . tagdata . '" >';
With this:
$this->return_data = '' . $web_dir.$cached_img . tagdata . '" style="vertical-align: baseline;" >';
Sorry, any chance to download the plugin? All the links lead to the System Offline message on the http://www.shittycode.com/entry/ee-module-title-images/ Any ideas where to get it? 😉
Send me an email .(JavaScript must be enabled to view this email address) and I’ll send the plugin to you.
I had to move to a new server, and while I was already moving stuff, I thought, “gee, this would be a good time to completely restructure my ee”…
…well, that was a week ago…and I’m still working on it. 😉
Send me an email .(JavaScript must be enabled to view this email address) and I’ll send the plugin to you.
Thank you very much! Emailed you just now 😊
I had to move to a new server, and while I was already moving stuff, I thought, “gee, this would be a good time to completely restructure my ee”…
You can say no word about it to me 😊) I’m trying not to delete anything in order to re-organize everything 😊
They say, if it DOES work - do not try to improve it 😊
Yhank you very much once more!
Hey, I just wanted to comment that the title images module is dumping the cached png files into the cache directory - this would be really more appropriately written to a directory created for the module, such as title_img_cache or some such. You can see how most other modules and plugins handle that.
Thanks =)
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.