Hi,
ive made a news mod(workin great) 1 prob, it wont show me form in admin panel, heres my code:
any help????????
ive made a news mod(workin great) 1 prob, it wont show me form in admin panel, heres my code:
Code:
<?php
/*BEGIN_INFO
News mod by Chris2009.
END_INFO*/
if(!defined("WCDDL_GUTS"))
exit;
$modEnabled = true; //Change to false if don't use
if($modEnabled) { //start of $modenabled
$add = array("news" => "News",);
$core->admin_links = array_merge($core->admin_links, $add);
function news() {
global $core;
if ($_POST['post'])
{
//Switch the data to variables.
$title = $_POST['title'];
}
$html .= '<form name="post-news" method="POST">
</form>
<hr />';
return $html;
}
} //end
$core->attachHook("adminFunctions","news");
?>
any help????????