Posts filed under ‘wp hacks’
Multi-more plugin
August 16th, 2004
Dodo’s multi-more plugin based on Scott Reilly’s Hide/Cut Post Text plugin
wp plugin: for <code>
August 16th, 2004
this plugin is deleted because i coded a code button which is a more ideal way to handle the code.
multimore won’t validate
August 15th, 2004
tried working on the multimore hack, refer this - i finally figured it out how to write a plugin but i just can not get it to validate xhtml strict
the problem is it cuts in between <p> and </p> so you will have something like
<p>this is before and
<div>read more link
</p> - p got closed in the display: none div and then
another <p> starts in the display: none div and after
the div, there goes another </p>
that clearly violates xhtml rule. the only possible way to get around it would be to strip all the p tags in the message and replace them with line breaks. but that really screws up the format of the entry.
if only i could write some kind of function that’d fix mismatching p tags in the entry, then it will be more perfect. i based my hack completely on this exisiting hack. if i ever think it’s good enough to be released, i will. here’s a little demo
- this is a test for list
- this is a test for list
blah blah
it’s based on this hack so the syntax is no longer <!–more–> <!–endmore–> it’s now <!–cut=with unique read more text allowed–> and <!–/cut–> much like lj style
some more blah blah
not done
August 15th, 2004
pure essence is far from done. but i don’t really want to keep it inaccessible so here it is. at least the front page is validated xhtml 1.0 strict. i haven’t even started the rest of the site yet. most of the time was dedicated converting b2 to wp, installing hacks and thinking about how i can make the themes better. i added various functions to enhance future theme adding. here’s one to share. it basically gives you a little more control over your links. not necessarily useful for everyone but definitely handy if you have themes ^_^
btw for those who have been using wp. remember my special read more hack for b2? has someone written one for wp yet? i didn’t find one. i might need to do it myself. i’m not sure i can make it validate xhtml strict tho
we will see. i certainly love that hack.

