Interesting. For grins I applied the code tweak as provided but there is no change in display behavior.
I'm pretty sure it's initializing a Display attribute as "none" somewhere and the following code in that basecmtsview file simply toggles display to "block" or "none" (firing off the function show/hide replies in BxDolCmts.js):
$sContentShow = _t((isset($a['cmt_type']) && $a['cmt_type'] == 'comment' ? '_Show N comments' : '_Show N replies'), $a['cmt_replies']);
$sContentHide = _t((isset($a['cmt_type']) && $a['cmt_type'] == 'comment' ? '_Hide N comments' : '_Hide N replies'), $a['cmt_replies']);
$sRet = '';
$sRet .= '<a class="cmt-replies-show" href="javascript:void(0)" onclick="' . $this->_sJsObjName . '.toggleCmts(this, \'' . $a['cmt_id'] . '\'); return false;">' . $sContentShow . '</a>';
$sRet .= '<a class="cmt-replies-hide" href="javascript:void(0)" onclick="' . $this->_sJsObjName . '.toggleCmts(this, \'' . $a['cmt_id'] . '\'); return false;">' . $sContentHide . '</a>';
Right? It's just where is initializing the display:none? I guess I could cheat and put in my own OnLoad function call to set the toggle to display:block but since I'm using this as a learning tool, I'd rather try to figure out how it was done as shipped.
Then again, maybe displaying all comments on load is much more complex. :) My next goal is to count the number of comments posted on a given topic and if they exceed let's say 10, then those older comments from #11 on would collapse and could only be seen if someone clicked on that toggle code.
But first, I really would like to know how to set the Reply section to show all on page load.
I'll take a closer look at the code tweak you sent so I can try to learn what you are trying to teach me. heh heh.
-g