I can generate the proper link, but when I try to write the user function it doesn't want to work..
Code
function firstvisit_user_main()
{
$fvmod= pnModGetVar('firstvisit', 'module');
$fvfunc= pnModGetVar('firstvisit','function');
$fvargs= pnModGetVar('firstvisit','args');
$link= pnModURL($fvmod,$fvfunc,$fvargs);
$pnRender = new pnRender('firstvisit');
$pnRender->assign('fvmod', $fvmod);
$pnRender->assign('fvfunc',$fvfunc);
$pnRender->assign('fvargs',$fvargs);
$pnRender->assign('fvurl',$link);
return $pnRender->fetch('firstvisit_user_main.htm');
}
{
$fvmod= pnModGetVar('firstvisit', 'module');
$fvfunc= pnModGetVar('firstvisit','function');
$fvargs= pnModGetVar('firstvisit','args');
$link= pnModURL($fvmod,$fvfunc,$fvargs);
$pnRender = new pnRender('firstvisit');
$pnRender->assign('fvmod', $fvmod);
$pnRender->assign('fvfunc',$fvfunc);
$pnRender->assign('fvargs',$fvargs);
$pnRender->assign('fvurl',$link);
return $pnRender->fetch('firstvisit_user_main.htm');
}
That's my function in pnuser.php
the template is
Code
<!--[$link]-->
The function is basically, identical to the admin main function, which works fine.. The template of course is only outputing what I need.. But my site tells me ..
Quote
We're sorry. The page you requested, /index.php?module=FirstVisit, doesn't exist
and
Quote
Additional technical information
* In FirstVisit module, main function returned.
Once I get this done, it's just a matter of writing it as a redirect, and then figuring out how to do the hook...
--
Home Page | Find on Facebook | Follow on Twitter
