Viewing 15 replies - 1 through 15 (of 18 total)
  • Podz,
    If I read that right, you are in luck, because Jaykul over at HuddledMasses.org has just created that very thing for WP.

    Thread Starter Mark (podz)

    (@podz)

    Cheers NM ??

    Thread Starter Mark (podz)

    (@podz)

    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.

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

    i’m confused at the first hurdle…
    the $before variable…
    the language used to explain it sadly goes well over my head.
    “a€¢ 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

    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.

    Thread Starter Mark (podz)

    (@podz)

    Do a search for ‘whitespace issue’.

    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

    Thread Starter Mark (podz)

    (@podz)

    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 !

    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

    In the admin section!? Yikes. Uhm…. It sounds like you either cut-n-pasted too much, or too little …
    https://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: https://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)

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

    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?

    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.

    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

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Plugin Req: Dynamic Text Replacement’ is closed to new replies.