Categories > TinyButStrong general >

navdel not working

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: shapan
Date: 2006-08-21
Time: 23:35

navdel not working

hi i am using latest bersion of TBS

my php code
$RecCnt=$TBS->MergeBlock('VIEWCAT',$connect, "select * from article where catid=$catid order by id desc limit 20");
$TBS->PlugIn(TBS_NAVBAR,'nv',array('navdel' => 'nv0'),$PageNum,$RecCnt,$PageSize);

Html side is
<table border="0" align="center" bgcolor="#B1C27E" style="font-family:tahoma; font-size:0.7em; font-weight:bold; color:#999999" cellpadding="2" cellspacing="1">

  <tr align="center" valign="middle">
    <td width="16" bgcolor="#F4FAF1"><a href="[var..script_name]?PageNum=[nv.first;endpoint;magnet=a;mtype=m+m]&category=[var.catid]">|«</a></td>
    <td width="16" bgcolor="#F4FAF1"><a href="[var..script_name]?PageNum=[nv.prev;endpoint;magnet=a;mtype=m+m]&category=[var.catid]">«</a></td>
    <td width="16" bgcolor="#F4FAF1"><a href="[var..script_name]?PageNum=[nv.page;block=td;navsize=3;navpos=centred;navdel=nv0]&category=[var.catid]">[nv.page][nv0;block=table]</a></td>
    <td width="16" bgcolor="#B1C27E" style="color:#000000"><strong>[nv.page;block=td;currpage]</strong></td>
    <td width="16" bgcolor="#F4FAF1"><a href="[var..script_name]?PageNum=[nv.next;endpoint;magnet=a;mtype=m+m]&category=[var.catid]">»</a></td>
    <td width="16" bgcolor="#F4FAF1"><a href="[var..script_name]?PageNum=[nv.last;endpoint;magnet=a;mtype=m+m]&category=[var.catid]">»|</a></td>
  </tr>
</table>

but navdel is not working. Any one can help me?
By: Skrol29
Date: 2006-08-22
Time: 01:27

Re: navdel not working

"navdel" is not supported with the NavBar plug-in, use "bmagnet" instead.
By: shapan
Date: 2006-08-22
Time: 17:41

Re: navdel not working

please help me, where to use bmagnet?

please give me sample code. i want to delete entire html table (my previous code) when VIEWCAT has value 0

thanks
By: Skrol29
Date: 2006-08-22
Time: 20:17

Re: navdel not working

In the HTML template, replace "navdel=nv0" by "bmagnet=table",
delete tag "[nv0;block=table]",

And in the PHP script, replace "array('navdel' => 'nv0')" by "''" (empty string)

And check that you have the last NavBar plug-in version which version 1.0.2.