12-13-2008, 09:53 AM
I'm also working on a paid plugin, but I need some help.
Now I have this:
But I have some questions
-How do you get the variables from the forms?
with:
-what's the acpBox, acpPage,...
-how do you display things on the client/admin pages?
Now I have this:
PHP Code:
<?
if(THT != 1){die();}
//Create the class
class paid {
public $acpForm = array(), $orderForm = array(), $acpNav = array(), $acpSubNav = array(); # The HTML Forms arrays
public $signup = true; # Does this type have a signup function?
public $cron = true; # Do we have a cron?
public $acpBox = true; # Want to show a box thing?
public $clientBox = true; # Show a box in client cp
public function __construct() { # Assign stuff to variables on creation
global $main, $db;
$this->orderForm[] = array("Cycle", '<select name="cycle" id="cycle"> <option value="annual">Annualy</option> <option value="monthly">Monthly</option></select>', "cycle");
$this->orderForm[] = array("Paypal email", '<input name="test" type="text" id="test" />', 'ppemail');
$this->acpForm[] = array("Monthly cost:", '<input name="monthly" type="text" id="monthly" size="5" onkeypress="return onlyNumbers();" />', "cycle");
$this->acpForm[] = array("Annualy cost:", '<input name="annualy" type="text" id="monthly" size="5" onkeypress="return onlyNumbers();" />', 'annualy');
$this->acpNav[] = array("Paid", "paid", "lightning.png", "paid");
$this->acpSubNav[] = array("test", "paid", "lightning.png", "test");
}
public function acpPage() {
}
...
}
//End Paid
?>-How do you get the variables from the forms?
with:
PHP Code:
$fuser = $main->getvar['type_fuser'];
-how do you display things on the client/admin pages?
