PDA


View Full Version : Simple Collapse Bug


socals
09-06-2004, 06:17 PM
I noticed that if you collapse the "Newest X Links" window, leave the page, then come back it would memorize the collapse, but it wouldn't draw the collapse image correctly.

My simple fix, in the template vBadvanced Links Templates, ADV_LINKS find:


<img alt="" border="0" id="collapseimg_newlinks" src="$stylevar[imgdir_button]/collapse_tcat.gif" />


Make the following change within the text:
Add: $collapseimg_newlinks
Between: collapse_tcat.gif

So it looks like:
collapse_tcat$collapseimg_newlinks.gif

Then in your links\index.php file


if ($_REQUEST['do'] == 'home')
{

$collapseobj_newlinks = $vbcollapse['collapseobj_newlinks'];
$collapseimg_newlinks = $vbcollapse['collapseimg_newlinks'];


Add the collapse statements. It was already memorizing the collapse, so I don't think all this is necessary, but it does fix it.

Anyone else know the correct way or better way to fix this simple problem?


Well, it looks like it applies to all of the windows which you can collapse...