I took a sample Php code for doing dynamic text replacement and made a module for Drupal.
Here is the original code:
http://artypapers.com/csshelppile/pcdtr/#demo
It works really nice since you don't have to change your content to use it. All you have to do is enable the module and all your headings turn into nice looking images.
Unfortunatelly you also have to make some modifications to your template to use it. Just a few lines in the template.php
Actually, it is kind of hard to decide if this functionality really belongs into a module or should it all be inside a template.
I think as a module it makes it easy for people to integrate it with their existing templates.
Anyone interested in it? I'm new to Drupal so I haven't read the instructions on how to post a module.
BTW, I'm writing a xoops migration module as well. I got the users moving (no groups). Right now I'm working on the forums.
Juan
Comments
Nice but..
I looked into the idea of DTR awhile ago, but settled on sIFR, not just because [plug] www.shauninman.com is a friend, but also because it does several things that DTR can't. Since the text is still there, just being hidden, it is fully searchable, and search engine friendly. Something an image isn't.
It also produces a much better text rendering result. As is evident on many sites, including AT&T. It also allows the ability to do several replacements at once. I use it on my site www.matthewedmunds.com to do replacements of the menu/module text, the title text and the page title text. Because it is rendering the font from a flash file, you can use any font (within reason, and legal please, that you have.)
More info can be found at www.mikeindustries.com, but its currently being used on several drupal sites and it's just a template include of a javascript file basically.
Interesting...
Actually the way this module is implemented, the text is still there so is search engine friendly. But the css file sets the offet off the visible range so you see the image instead.
I'll check sIFR out and check what's different/better/etc.
Thanks.
how about a link
Hi there, i actually was looking for, well exactly that. Sounds very nice for me to integrate this feature as module. I'm kinda new to Drupal too, so i can't help you on how to post a module, but, until we find out, why don't just provide a download link here. I'd really appreciate this module being downloadable in near future. This seams to be the first thread about this issue on Drupal. Strange, because this is nothing new in web developing, tools like wordpress have got such nice and designer friendly plugins for a log time.