PDA

View Full Version : Collapse with array


kiril_cvetkov
05-07-2008, 06:05 PM
Hay... i am using array function and i am wondering how to get work ->the collapsing
I have problem with the quotes.. i have error when i am using thisonclick="return toggle_collapse('proba')" and when i using
without the quotesonclick="return toggle_collapse(proba)" dont want make collapse ... can someone help me :)


global $vbulletin;

if (preg_match('/youtube|media2/',$parsedtext))
{
$parsedtext = str_replace('watch?v=','v/',$parsedtext);
$prom = array(
'',''
);
$repr = array(
'<table class="tborder" border="0" cellpadding="6" cellspacing="1" width="425" >
<thead>
<tr>
<td class="tcat" colspan="5">
<a style="float: right;" href="#top" onclick="return toggle_collapse(proba)"><img id="" src="images/buttons/collapse_thead.gif" alt="" border="0"></a>

<center><div>Ocd Radio Media player</div></center>
</td>

</tr>

</thead>

<tbody id=collapseobj_pola style="">
<tr>
<td class="alt1" width="100%">
<div class="smallfont">
<div style="white-space: nowrap;">
<object width="425" height="350"><param name="movie" value=""></param><embed src=',' type="application/x-shockwave-flash" width="425" height="350"></embed></object> </td>
</div><div></div>
</div>
</tr></tbody>
</table>');
}
$parsedtext= str_replace($prom,$repr,$parsedtext);

i want to learn how to do that :) i will be very happy if i know that.
cheers ... kiril :)
all the best

MoT3rror
05-07-2008, 07:33 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=119931&highlight=collapse" target="_blank">https://vborg.vbsupport.ru/showt...light=collapse</a>

kiril_cvetkov
05-07-2008, 08:03 PM
i know that.. but how to make collapse when i am using array :erm: