Log in | Register | Lost password

Bottom
plugin getpub help...
  • Posted: 21.01.2006, 16:54
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I'm dying here... what is wrong with this code... the plugin returns teh array but it's empty!! The publication exists but for the life of me I can't get the info!

    Code

    <?php

    function smarty_function_pagesetter_pubinfo($args, &$smarty)

    {

    extract($args);

    unset($args['pid']);

    unset($args['tid']);



    $pubinfo = pnModAPIFunc ( 'pagesetter', 'user', 'getPub',

    array( 'tid' => $tid,

    'pid' => $pid ) );

    $smarty->assign($assign, $pubinfo);

    }

    ?>


    In my template I have

    Code

    <!--[pagesetter_pubinfo tid=4 pid=$name assign="results"]-->

    <!--[$results[0]]-->/<!--[$results[1]]-->/<!--[$results[2]]-->/<!--[$results[3]]-->/<!--[$results[4]]-->

Template courtesy of Designs By Darren.