LOL - yeah - he says it's even out of his league - so what chance to little peons like me have? :) (But I do so love a challenge!)
Yes, I am trying to achieve a "look" :)
Basically, I need to add a div to enclose comment replies. I want my comments to be displayed - but if there's a reply to a comment (or a bunch of replies to a specific comment) I want the replies to be inside a grouped outer containing element.
I actually *did* pull it off, but I had to hack the core to make it happen. I'd rather not leave it this way, for obvious reasons. But the *reason* for it is so I can use jQuery to expand the replies. So my comments layout would be such that only the topmost level of comments will show, and if said comment has a reply, then a link will appear to "click to open and view replies".
I found *where* I need to insert said piece of code - but like I said, the only way I've managed to pull it off right now is by hacking core. If I could just figure out a way to add in a line to that start_lvl() and end_lvl() functions in the Walker class, then I'd be set. But basically, I just need to add a line so they look like so:
function start_lvl(&$output, $depth, $args) {
$GLOBALS['comment_depth'] = $depth + 1;
switch ( $args['style'] ) {
case 'div':
echo "<div id="children">\n";
echo "<div>\n";
break;
case 'ol':
echo "<ol class='children'>\n";
break;
default:
case 'ul':
echo "<ul class='children'>\n";
break;
}
}
You can see, I only need to add one line. So I wasn't sure if this was even possible to do, because it seems fairly deeply embedded into the core files. I'm thinking I may just have to write a plugin to pull off the effect, but that seems like overkill for just the addition of a single line of code. So if it's not possible, that's fine (and may the plugin writing commence! LOL) but if it's possible to "inject" a line in that section, then I think it would be more simplistic to do so, rather than take the long road around.
Does that make more sense?