Support » Fixing WordPress » [Plugin: WP Sentry] Using images in place of Private: prefix

  • Resolved xdreamwalker

    (@xdreamwalker)


    I am using WordPress 2.7 and wp-sentry 0.6.6
    In the WP Sentry General Options I tried to put an <img> tag in place of the Private: that is pre-filled. After I hit update the code is replaced with just <img src= and then ” /> shows up after the text box.
    The post title then displays [post title]”> [image][post title]

    Any clues?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Yes. I didn’t think to escape the quotes, apparently. I would guess that if you checked it out, it would be working as expected right now, even though the display in the admin is wonky.

    I’ll push an update to fix that issue in the next day or so.

    Thread Starter xdreamwalker

    (@xdreamwalker)

    Not only is the admin page wonky, but the actual post has a wonky title. It shows The post title then displays [post title]”> [image][post title]

    Do you think this is the plugin or my theme not knowing what to do with the plugin?

    I don’t really understand what you’re saying it’s displaying.

    Either way, I’d guess the issue is the plugin, unless your theme is doing some really bizarre stuff.

    Thread Starter xdreamwalker

    (@xdreamwalker)

    I installed the update that was released today. I am now at WP-Sentry 0.6.7

    This is the code that I put in the text box before the word Here on the General Options Page.<img src="http://www.xdreamwalker.com/files/images/padlockicon.gif" width="30" height="30" /> Image here: http://is.gd/g6xJ

    This is what I get on the post page: http://is.gd/g6yd

    I hope this helps.

    Ahh. Yes, your theme is to blame for this one, and it’s not really doing anything that bizarre. It looks like the theme is trying to populate the “Title” attribute of the anchor tag and is choking on the nested HTML. Two possible solutions to that:

    First, somewhere you probably have a line like this:

    <a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title(); ?>"><?php the_title(); ?></a>

    This is a bug in the theme. The title attribute should be using, not surprisingly, the_title_attribute(), which strips HTML and encodes quotes.

    So something like this, instead:

    <a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>

    Let me know if that solves your problem. (This code might appear on any number of pages within your theme)

    Thread Starter xdreamwalker

    (@xdreamwalker)

    Fantastic! This is now resolved my problem. Thank you for your help with fixing that theme bug. Sdding _attribute fixed it. Now it shows the image then the title: http://is.gd/g8dY

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: WP Sentry] Using images in place of Private: prefix’ is closed to new replies.