Author Topic: Show tab if downloads > 0  (Read 882 times)

0 Members and 1 Guest are viewing this topic.

Offline todeli

  • SobiPro Silver Club Member
  • Sobi Hero
  • *
  • Posts: 1098
  • Reviews:

    What is it?

Show tab if downloads > 0
« on: 18. April 2010, 13:44:50 »
Hello,

I would like to show tab "Doks" only if documents from download are > 0

https://www.kinderhilfe-netzwerk.de/index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=34&sobi2Id=1&Itemid=442

Code: [Select]
<?php $myTabs->startTab("Dokumente","FünfterTab"); ?>
  <?php echo $plugins['download']; ?>
<?php $myTabs->endTab(); ?> 

 

<?php $downloads countglob"$config->livesite/sobi2_downloads/$mySobi->id/{*.pdf}"GLOB_BRACE ) );
if (
$downloads 0) { ?>

<?php  $myTabs->startTab("Doks","SechsterTab"); ?><br/><br/>
<?php  echo $plugins['download']; ?><br/><br/>
<?php  $myTabs->endTab(); ?>
<?php ?>

Thanks for help and sorry for my english  :whistling:

Regards, Thomas.

Solution (in german):

http://www.sigsiu.net/forum/index.php/topic,23752.msg79679.html#msg79679
« Last Edit: 24. April 2010, 05:00:08 by todeli »
1) Bei Problemen bitte diese Checkliste abarbeiten. 2) Firebug ist eine große Unterstützung. 3) Bei Änderungen an Dateien immer vorher ein Backup durchführen bzw. das SOBI2 Import und Backup Plugin nutzen. 4) Wenn ein Thema erledigt ist, bitte im ersten Artikel das Nachrichten Icon auf "Topic Solved" setzen.
Country: Germany Germany |  OS: Windows Vista/Server 2008 Windows Vista/Server 2008 |  Browser: Firefox 3.6.3 Firefox 3.6.3 | View Profile Das Kinderhilfe-Netzwerk

Tags: