PDA

View Full Version : Collapse quick reply


demoniavbh
11-06-2008, 02:58 PM
Hello

I'd like to know if there's some way to make that quick reply is always collapsed.

In SHOWTREAD template there is this code

<if condition="$show['quickreply_collapse']"><a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('quickreply');"><img id="collapseimg_quickreply" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_quickreply].gif" alt="" border="0" /></a></if>

so it can be collapsed by user, but I want it the other way, to be always collapsed but let the user expand it.
Is it possible?

Lynne
11-06-2008, 03:26 PM
toggle_collapse is a javascript function and it only has one parameter - the id of what to collapse - so you can't pass something to say it starts collapsed. You may be able to 'run' the script to have it start collapsed - put <script type='text/javascript'> toggle_collapse('quickreply');</script> right after the line.