WordPress.org

Ready to get started?Download WordPress

Forums

Plugin Req: Dynamic Text Replacement (19 posts)

  1. Mark (podz)
    Support Maven
    Posted 10 years ago #

    This would be a neat plugin ..........
    http://www.alistapart.com/articles/dynatext/

  2. NuclearMoose
    Member
    Posted 10 years ago #

    Podz,
    If I read that right, you are in luck, because Jaykul over at HuddledMasses.org has just created that very thing for WP.

  3. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Cheers NM :)

  4. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Got this working :)
    I had some trouble, but it was me getting server paths wrong, so if, when you hard refresh, you see a brief glimpse of where the image should be, then your normal title appears, check your server paths.

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    when i get evrything configured, everything is gone except the header. Whats wrong?

  6. dss
    Member
    Posted 10 years ago #

    i'm confused at the first hurdle...
    the $before variable...
    the language used to explain it sadly goes well over my head.
    "• The $before variable is a special string which will allow you to make sure your titles are only replaced when you want them to be.
    For instance, if you set $before = "[image]", then, in your index.php template, your call to the_title should be the_title("[image]"); when you want the title to be replaced with the image. Doing this takes advantage of a built-in parameter of the_title which will be prepended to the actual title. Of course, this plugin will strip that text off again, so the net-result is: the title is replaced with an image of the title in the font of your choice!"
    so the "call" to the title should be: the_title("-image-")
    and i'm supposed to put this into my index.php?
    doesn't matter how many times i read this... i am just too stupid to figure out where i am supposed to but the code the_title("-image-")
    can anyone help?
    dss

  7. dss
    Member
    Posted 10 years ago #

    oh phooey...
    Warning: Cannot modify header information - headers already sent by (output started at /home/site/public_html/dss/wp-content/plugins/headimagegen.php:172) in /home/site/public_html/dss/wp-admin/index.php on line 13
    seems somethings looping up wrongly...
    bummer.

  8. Mark (podz)
    Support Maven
    Posted 10 years ago #

    Do a search for 'whitespace issue'.

  9. dss
    Member
    Posted 10 years ago #

    It's the whitespace issue again.
    Reason and Solution :
    It is usually because there are spaces, newlines, or other garbage
    before an opening '<?php' tag or after a closing '?>' tag, typically in
    wp-config.php. This could be true about some other file too, so please check the file that gave you the error too (mentioned in the error message).

    check!
    interesting problem.
    the plug here was an html document, not a downloadable file, but i retyped it myself, checked and double checked it.
    i suppose it'll tripple check it, and then have a look at my wp-config.php too.
    interesting.
    thanks!
    dss

  10. Mark (podz)
    Support Maven
    Posted 10 years ago #

    The plugin is displayed in a manner similar to several others.
    Just highlight the code you want - in this case starting from <?php and ending at ?> - then copy and paste into Notepad.
    Much easier than typing !

  11. dss
    Member
    Posted 10 years ago #

    Parse error: parse error in /home/imperial/public_html/dss/wp-content/plugins/headimagegenerate.php on line 145
    and errors in the admin section too.
    bummer...
    i seem to always run into this sort of thing... must be me.
    dss

  12. Jaykul
    Member
    Posted 10 years ago #

    In the admin section!? Yikes. Uhm.... It sounds like you either cut-n-pasted too much, or too little ...
    http://huddledmasses.org/wp-content/plugins/source.php?file=image-headlines.php&justcode=true
    If you copy from below the <hr> to the end, that *should* work, and without affecting the admin section at all... I guess I *should* consider offering these for download, since the plugins are supposed to be drag-n-drop ... but THIS plugin requires the user to edit it (at the bottom there, to set the values, as you've no doubt read about on my home page already: http://huddledmasses.org-automatic-images-for-headlines/ ), so I figure cut-n-paste isn't that big of a deal ;-)
    Incidentally, this version has more logging in place to try to help diagnose errors (as well as the new features mentioned in the edit to the post)

  13. Beel
    Member
    Posted 10 years ago #

    Dang, decisions decisions. Once I got this working it worked very nicely. However, I miss the drop shadow in Matt's image titles. Any chance something like that could be added to this plugin??

  14. Jaykul
    Member
    Posted 10 years ago #

    Sure, why not. Actually, I meant to do that last night when I made the other change, but I ran out of time and forgot about it.
    Speaking of Matt's, did he release it? If so, why are so many people hitting mine? What's better about it?

  15. Beel
    Member
    Posted 10 years ago #

    Yes, he released it but "search" is not a word bandied about around here, much less used ;-).
    As for "better", I don't know that it is better per se, just dif'rent. His has a shadow effect, but then one has to set the width of the image which may cause some people problems. For grins, I put both on my page (just for this evening) if you want to check them out together. I set the font both to black and plain jane georgia, as well as used the image his generates as a background on yours, so it'll be more "apples to apples".
    An "advantage" to his is that it is not specific to WP and titles but can be used just about anywhere.
    <img src="titles.php?letters=pass_whatever_here" alt="" /> but a disadvantage: no caching.

  16. TechGnome
    Moderator
    Posted 10 years ago #

    Beel, there is a away to get the width dynamically.... that's what I did for my menu that uses php to dynamically create images. It's not all that difficult really, took some tweaking and playing around, but ti works quite nicely.
    TG

  17. Beel
    Member
    Posted 10 years ago #

    Yes, thanks, TechGnome - I realize there is a way, just that Matt's "titles" does not incorporate it and I know a goodly number of people will not be able to "tweak" it.
    I am only posting this because I don't want to sound like I am dissing it, I'm not. In fact, I use it.

  18. Beel
    Member
    Posted 10 years ago #

    Jaykul: Did you ever look into adding a drop shadow capability to Image Headline Generator?

  19. Anonymous
    Unregistered
    Posted 9 years ago #

    Yes, he released it but "search" is not a word bandied about around here, much less used ;-).
    As for "better", I don't know that it is better per se, just dif'rent. His has a shadow effect, but then one has to set the width of the image which may cause some people problems. For grins, I put both on my page (just for this evening) if you want to check them out together. I set the font both to black and plain jane georgia, as well as used the image his generates as a background on yours, so it'll be more "apples to apples".
    An "advantage" to his is that it is not specific to WP and titles but can be used just about anywhere.
    <img src="titles.php?letters=pass_whatever_here" alt="" /> but a disadvantage: no caching.

    Where can i find this? I can't find it. Help

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.