We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Module: Title Images

Development and Programming

atelier2's avatar
atelier2
181 posts
18 years ago
atelier2's avatar atelier2

I get an errormessage when I click on the module .

Table 'myname.exp_titleimg' doesn't exist

What did I wrong?

Thank you so much.

       
TechWench's avatar
TechWench
30 posts
18 years ago
TechWench's avatar TechWench

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).

       
TechWench's avatar
TechWench
30 posts
18 years ago
TechWench's avatar TechWench
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.

       
Sean C. Smith's avatar
Sean C. Smith
3,818 posts
18 years ago
Sean C. Smith's avatar Sean C. Smith

Working fine now, thank you.

       
TechWench's avatar
TechWench
30 posts
18 years ago
TechWench's avatar TechWench

Just updating the thread to say that I’ve made some changes to the module and cleaned some things up a bit.

Version 0.7 now available »

 

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
       
atelier2's avatar
atelier2
181 posts
18 years ago
atelier2's avatar atelier2

Works very well now here.

Thank you so much for this work.

       
atelier2's avatar
atelier2
181 posts
18 years ago
atelier2's avatar atelier2

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?

       
Boyink!'s avatar
Boyink!
5,011 posts
18 years ago
Boyink!'s avatar Boyink!

I think the DropCap plug-in would be a better idea for that.

       
TechWench's avatar
TechWench
30 posts
18 years ago
TechWench's avatar TechWench

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;" >';
       
atelier2's avatar
atelier2
181 posts
18 years ago
atelier2's avatar atelier2

thank you both…. 😊

This forum is so fantastic!

       
Ozmodiar's avatar
Ozmodiar
16 posts
18 years ago
Ozmodiar's avatar Ozmodiar

It would be cool if we could specify a character spacing value.

       
Lyubov Berezina's avatar
Lyubov Berezina
42 posts
18 years ago
Lyubov Berezina's avatar Lyubov Berezina

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? 😉

       
TechWench's avatar
TechWench
30 posts
18 years ago
TechWench's avatar TechWench
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. 😉

       
Lyubov Berezina's avatar
Lyubov Berezina
42 posts
18 years ago
Lyubov Berezina's avatar Lyubov Berezina
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!

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
17 years ago
Lisa Wess's avatar Lisa Wess

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 =)

       
1 2 3 4 5

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.