CubedHost Posted February 8, 2012 Share Posted February 8, 2012 Hey there. I've been following the Module documentation for how to create custom pages with absolutely no luck. What I'm trying to accomplish is to setup an extra page that displays within the client product details page. Here's an example of my current form for any action: <form action='/billing/clientarea.php?action=productdetails' method='POST'> <input type='hidden' name='id' value='113'> <input type='hidden' name='modop' value='custom'> <input type='hidden' name='a' value='ipv6'> <input type='image' src='/ovh/rdns_ipv6.gif'> </form> Obviously the form is autogenerated by a custom function that fills in the necessary values. Within my modules/servers/ovh/ovh.php file: function ovh_ipv6($params) { $pagearray = array( 'templatefile' => 'ipv6', 'breadcrumb' => ' > <a href="#">Reverse DNS Management (IPv6)</a>', 'vars' => array( ), ); return $pagearray; } Assuming that all of the above is correct, the template should be called from modules/servers/ovh/ipv6.tpl, which simply contains: Imma IPv6 reverse DNS management page. Sup. It doesn't even make an attempt at viewing that template file from what I can tell. Am I doing something wrong, even ever so slightly? Regards, Bill Ewing 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted February 8, 2012 Share Posted February 8, 2012 You need a _ClientAreaCustomButtonArray() function for that to work properly. Add the following code: function ovh_ClientAreaCustomButtonArray() { $buttonarray = array('IPv6' => 'ipv6'); return $buttonarray; } 0 Quote Link to comment Share on other sites More sharing options...
CubedHost Posted February 8, 2012 Author Share Posted February 8, 2012 Wow, that was rather simple to overlook... Thank you very much, Frank! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.