1 of 4
1
New Module: Title Images
Posted: 22 January 2007 11:02 AM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  146
Joined  10-21-2005

Technically, this is an updated version of the first non-release release of my original title image module.  I never fully released it, as it was written quickly during sleep depravation.  Old thread about the module (after I had pulled it) is here.

 

What this module does:

  * Creates PHP-generated images for titles
  * Caches title images
  * Stores default values and settings in the database
  * Allows variations from the default settings by using tag parameters (which also makes it backwards compatible with the bass-ackwards first release of this module)

What you need to install this module:

  * Expression Engine (duh)
  * PHP (duh, if you’re using EE)
  * GD with FreeType support

 

The full description with installation instructions and examples for this module can be found here (my website).

A couple of notes:

1) Some servers won’t support all fonts, if you get errors or no images at all, you’ll probably have to find another font.
2) Some fonts don’t have all special characters (i.e. curly quotes), so if you see empty blocks from EE’s special character replacements, you’ll either have to a) find another font, b) hack ee core (or use an extension) to NOT replace text with special characters, or c) reword your titles to not use special characters.
3) Currently, the text image spits out in one long line.  I’ll need to research how to add line breaks at X width or X characters.  For now, until I can get that done, you’ll have to keep your titles short.

If anyone finds anything buggy or finds ways to improve on this, please let me know!

 Signature 

1.6.4 | 20080829 | business | pleasure

Profile
 
 
Posted: 22 January 2007 11:25 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32772
Joined  05-14-2004

I think it’s time to update to yours, now.  I assume you’ve fixed the issue with it exposing the system directory, or was that someone else’s? Hehe. =)

 Signature 
Profile
MSG
 
 
Posted: 22 January 2007 11:32 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  146
Joined  10-21-2005

Yes I have!  :-D Paths are specified by the user, and stored in the database.

 Signature 

1.6.4 | 20080829 | business | pleasure

Profile
 
 
Posted: 22 January 2007 11:36 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32772
Joined  05-14-2004

I just tried to get the settings for this going, and after entering the information in the Modules page and hitting submit, I got:

Fatal error: Call to undefined function: fatal_error() in /www/username/public_html/system/modules/titleimg/mcp.titleimg.php on line 448

Now when I try to visit the page again to modify the settings, I just get that error.

So.. help. =)

Edit to add - it did submit the details, the table is populated.  Just checked.

 Signature 
Profile
MSG
 
 
Posted: 22 January 2007 11:41 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  146
Joined  10-21-2005

Are you using shorthand hex for color (i.e. fff)?  Right now, it’s set to accept the full 6-digit hex…

...which begs the question…do I just edit the documentation to instruct users to insert the full 6 digits, or change it to check for 3, and risk people chopping off a digit and getting errors also?

 Signature 

1.6.4 | 20080829 | business | pleasure

Profile
 
 
Posted: 22 January 2007 11:42 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  146
Joined  10-21-2005

Oh crap!  Nevermind.  I forgot to add $this-> to the function….editing.

Well, if that’s the error that’s being produced, there’s likely a problem with the string length, also.

 Signature 

1.6.4 | 20080829 | business | pleasure

Profile
 
 
Posted: 22 January 2007 11:44 AM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32772
Joined  05-14-2004

Nope. Using the full 6 digits.  Have to for the colors I’m using it for. =)  Problem with what string length?

 Signature 
Profile
MSG
 
 
Posted: 22 January 2007 11:44 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  146
Joined  10-21-2005

Okay, updated that stupid typo.  Redownload module.  Sorry bout that.

I guess I didn’t catch it earlier, as I have been putting in 6-digit hex codes and the error was never called.

 Signature 

1.6.4 | 20080829 | business | pleasure

Profile
 
 
Posted: 22 January 2007 11:45 AM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32772
Joined  05-14-2004

Nevermind you’re right. One of the colors only has 5 digits. i thought I copy/pasted it from the color chooser ff extension, must have missed a digit!

 Signature 
Profile
MSG
 
 
Posted: 22 January 2007 11:46 AM   [ Ignore ]   [ # 9 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32772
Joined  05-14-2004

It’s still erroring out, same error after uploading the new files. So I can’t fix the color code.

 Signature 
Profile
MSG
 
 
Posted: 22 January 2007 12:11 PM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  146
Joined  10-21-2005

Okay, I’m gonna have to fix the error reporting to…um…display ON TOP of the settings page, so the settings can still be changed.  For now, you can edit the db directly to change the hex.

This is exactly why I need other people to test this stuff out, because this is stuff (I don’t know about you, but) I overlook sometimes!  wink

 Signature 

1.6.4 | 20080829 | business | pleasure

Profile
 
 
Posted: 22 January 2007 12:16 PM   [ Ignore ]   [ # 11 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32772
Joined  05-14-2004

Edit the db? I haven’t edited a database directly in over a year.  How about a quick query to set it to 000000? It’s the font color I screwed up, the rest is ok. =)

 Signature 
Profile
MSG
 
 
Posted: 22 January 2007 12:26 PM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32772
Joined  05-14-2004

Nevermind.  I just dropped the module and re-installed it. Working now, it seems. =)

 Signature 
Profile
MSG
 
 
Posted: 22 January 2007 12:39 PM   [ Ignore ]   [ # 13 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32772
Joined  05-14-2004

I’m going to have to try this again later. It looked like it utterly tanked my load times, especially after first loading the new titles.  But I’m not sure if it’s the module or just general issues, so I’ll test it later tonight. Thanks for making it available.  =)

 Signature 
Profile
MSG
 
 
Posted: 22 January 2007 12:54 PM   [ Ignore ]   [ # 14 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  146
Joined  10-21-2005

Okay, I didn’t change the error reporting to be included *with* the settings form, BUT…I figured out why you’re still erroring out.  It turns out, when I uploaded the new files, they didn’t actually upload.  I was working with the files locally, and everything looked right.  However, when I redownloaded the zip, there were no changes *grumble brumble*.

So, I re-uploaded…and re-downloaded to doublecheck the changes, and changes are there now.

Attaching the mcp.titleimg.php file, so you don’t have to redownload the zip again.

EDIT: didn’t notice you posted until after I hit submit.  wink

File Attachments
mcp.titleimg.zip  (File Size: 5KB - Downloads: 286)
 Signature 

1.6.4 | 20080829 | business | pleasure

Profile
 
 
Posted: 22 January 2007 01:07 PM   [ Ignore ]   [ # 15 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  716
Joined  05-14-2004

I am way excited about this. The other method I’ve been using was so taxing.  I can’t wait to try it out. Thanks! wink

 Signature 

Moxie Design Studios™ • Top Shelf Blog & Website Design by The Moxie Girls™
EE ProNetwork • (EE 1.6.5, build 20081024)

Profile
 
 
Posted: 23 January 2007 09:11 AM   [ Ignore ]   [ # 16 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  146
Joined  10-21-2005

Hey Joelle, if you try it out, lemme know how it goes for you.

PS: When the heck is your blog coming back???

 Signature 

1.6.4 | 20080829 | business | pleasure

Profile
 
 
Posted: 23 January 2007 02:51 PM   [ Ignore ]   [ # 17 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  324
Joined  02-06-2004

wench, job well done. it works perfectly for me on my site. Nice work!

I’m not having much issues with load time, but I’ve also got nothing on my site either. raspberry

I’m such a slacker…/sigh

 Signature 

hello! yoshi
hello! food |

Profile
 
 
Posted: 23 January 2007 06:39 PM   [ Ignore ]   [ # 18 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  173
Joined  07-13-2006

I dropped it on my friends site and it looks to be working just fine. Thanks for the update smile

 Signature 

..// misguided satellite, circle by habit, can’t find my orbit to save my life \\..
[ Kat Scratch Fever | KSF To-Go | 2007: AYIPR ]

Profile
 
 
   
1 of 4
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64503 Total Logged-in Users: 37
Total Topics: 81060 Total Anonymous Users: 13
Total Replies: 436242 Total Guests: 157
Total Posts: 517302    
Members ( View Memberlist )