Recent Topics

1 Dec 01, 2007 23:16    

http://wonderwinds.com/hackblog.php/2007/12/the-ultimate-visiglyphs-plugin

Admin selects to use or not: name, email, IP address. Admin selects a randomizer (seed) to further customize their visiglyphs, and you can set it to '' (nothing) if you want. Commenters (from the front end) get a little .png image added to their comment.

You can see it in action at my blog by leaving a comment. I selected name and email (figuring why not), and set a randomizer other than the default.

Note that if your blog is installed in a folder you will have to read the readme and edit a file.

2 Dec 03, 2007 18:48

I just updated the zip. Thanks to Afwas here in the forums, it now requires no hacking of anything ever. Cool eh? Plus it works when previewing a post. My view is there will be one more update of this ... some day. I really want to add a feature for showing the visiglyph you would get with your current settings and 10 random randomizers, but hey for now it's a straight-up plugin that does a cool thing with comments.

3 Feb 20, 2008 01:15

What about editing comments? :) Visiglyph image is there... and it doesn't validate (at least with my visiglyphs plugin, I added style with padding to make it display nicely), so you can't let it be there...

4 Feb 20, 2008 01:30

I'm not sure what you're saying. Per the readme, the comment is permanently altered upon adding it to the database, so yes it shows in the back office when you edit comments. Per the readme, adding comments via the back office will not generate a visiglyph.

The plugin provides a 1em padding to the glyph and validates xhtml 1.0 transitional, so perhaps whatever you've done is causing you a problem?

Got link to where it's not working?

5 Feb 20, 2008 01:53

Hi;

Oh, so it really adds that image tag to a post... yup, I altered the image (I needed more padding), that's why it doesn't validate.

Hmm, where can I alter the padding inside the plugin?
EDIT: nevermind, I found it. ^^ Now it validates. :)

Just one question: can I change the size of a visiglyph to operate in pixels, not em? I use a quite strict comment design (with a background image of a cloud, inside of which should be a visiglyph) and "em" will spoil the design in case of making the letters larger or smaller.

6 Feb 20, 2008 02:43

Yup. Easiest way is to change the bit that makes it make the img tag so that it doesn't use the classes provided with the plugin. Line 140 in an unmodified file, which should look something like this:

$visi_comment = '<img src="'.$plugins_url.'visiglyph_plugin/visiglyphs/'.$file_name.'.png" alt="" title="" class="'.$left_or_right.' '.$stylesize.'" />'.$comment;

There you can change the style selection by tweaking the tail end of it ...

... class="'.$left_or_right.' '.$stylesize.'" /> ...

is the bit that makes the 2-part class assignment, so tweak it as you see fit. You can then delete function SkinBeginHtmlHead() and function AdminEndHtmlHead() because they won't be used anymore, if you want to 'clean up' a bit.

7 Feb 22, 2008 01:03

Thanks, I'll do that :)

8 Mar 31, 2008 01:38

Minor update as I start working on the bigger problems: it now doesn't break the preview feature. It doesn't make a visiglyph for previews, but heck it didn't AND it broke the preview. Anyway now a commenter can preview.

Big ticket problem is that it breaks using the OpenID plugin. I'll get back to that one very soon, but first I gotta go make the donuts for a couple of days :(


Form is loading...