Ok i got a website is in Php nuke and i want to add my own sections and i dont know how to add the sections.. can some 1 help me out and tell me wat to do if u have php nuke.... Ok i copied this from another form in one of the section can come 1 tell me where can i put the html so i can add my page or some 1 give me the code
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* <!-- m --><a class="postlink" href="http://phpnuke.org">http://phpnuke.org</a><!-- m --> */
/* */
/* Based on php Addon Feedback 1.0 */
/* Copyright (c) 2001 by Jack Kozbial */
/* <!-- m --><a class="postlink" href="http://www.InternetIntl.com">http://www.InternetIntl.com</a><!-- m --> */
/* <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
/**********************************/
/* Configuration */
/* */
/* You can change this: */
/* $index = 0; (right side off) */
/**********************************/
$index = 1;
$subject = "$sitename "._FEEDBACK."";
/**********************************/
include("header.php");
if ($cookie[1] != "") {
$sql = "SELECT name, username, user_email FROM ".$user_prefix."_users WHERE user_id='$cookie[0]'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if ($row[name] != "") {
$sender_name = $row[name];
} else {
$sender_name = $row[username];
}
$sender_email = $row[user_email];
}
$form_block = "
<center><font class=\"title\"><b>$sitename: "._FEEDBACKTITLE."</b></font>
<br><br><font class=\"content\">"._FEEDBACKNOTE."</font>
<FORM METHOD=\"post\" ACTION=\"modules.php?name=$module_name\">
<P><strong>"._YOURNAME.":</strong><br>
<INPUT type=\"text\" NAME=\"sender_name\" VALUE=\"$sender_name\" SIZE=30></p>
<P><strong>"._YOUREMAIL.":</strong><br>
<INPUT type=\"text\" NAME=\"sender_email\" VALUE=\"$sender_email\" SIZE=30></p>
<P><strong>"._MESSAGE.":</strong><br>
<TEXTAREA NAME=\"message\" COLS=30 ROWS=5 WRAP=virtual>$message</TEXTAREA></p>
<INPUT type=\"hidden\" name=\"opi\" value=\"ds\">
<P><INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\""._SEND."\"></p>
</FORM></center>
";
OpenTable();
if ($opi != "ds") {
echo "$form_block";
} elseif ($opi == "ds") {
if ($sender_name == "") {
$name_err = "<center><font class=\"option\"><b><i>"._FBENTERNAME."</i></b></font></center><br>";
$send = "no";
}
if ($sender_email == "") {
$email_err = "<center><font class=\"option\"><b><i>"._FBENTEREMAIL."</i></b></font></center><br>";
$send = "no";
}
if ($message == "") {
$message_err = "<center><font class=\"option\"><b><i>"._FBENTERMESSAGE."</i></b></font></center><br>";
$send = "no";
}
if ($send != "no") {
$sender_name = removecrlf($sender_name);
$sender_email = removecrlf($sender_email);
$msg = "$sitename\n\n";
$msg .= ""._SENDERNAME.": $sender_name\n";
$msg .= ""._SENDEREMAIL.": $sender_email\n";
$msg .= ""._MESSAGE.": $message\n\n";
$to = $adminmail;
$mailheaders = "From: $sender_name <$sender_email>\n";
$mailheaders .= "Reply-To: $sender_email\n\n";
mail($to, $subject, $msg, $mailheaders);
echo "<P><center>"._FBMAILSENT."</center></p>";
echo "<P><center>"._FBTHANKSFORCONTACT."</center></p>";
} elseif ($send == "no") {
OpenTable2();
echo "$name_err";
echo "$email_err";
echo "$message_err";
CloseTable2();
echo "<br><br>";
echo "$form_block";
}
}
CloseTable();
include("footer.php");
?>You have to do it from the administration menu and choose content.
Please read this thread also;
<!-- m --><a class="postlink" href="http://htmlforums.com/showthread.php?s=&threadid=27091Oppps">http://htmlforums.com/showthread.php?s= ... 27091Oppps</a><!-- m --> sorry for the Help thing my bad sorry guys but nope u cant do it from the admin panel.... Wat version do u use??well then what do you mean by your own sections? You can add pages by going to content.How do i add like the link like to the main think so u can click it and go to it wen i go to content it juss says it added it how do i see it??Do i make a module linking to that????I'm not all that familiar with phpnuke, but it should add it automatically when you create a new section, just make sure activate section is checked.Oh ok tanx but i need 1 more question can some 1 give me the php code to link some where.. plzPHP code to link somewhere?
It's html...
<a href=http://www.htmlforums.com/archive/index.php/"link.com">click here</a>
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* <!-- m --><a class="postlink" href="http://phpnuke.org">http://phpnuke.org</a><!-- m --> */
/* */
/* Based on php Addon Feedback 1.0 */
/* Copyright (c) 2001 by Jack Kozbial */
/* <!-- m --><a class="postlink" href="http://www.InternetIntl.com">http://www.InternetIntl.com</a><!-- m --> */
/* <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
/**********************************/
/* Configuration */
/* */
/* You can change this: */
/* $index = 0; (right side off) */
/**********************************/
$index = 1;
$subject = "$sitename "._FEEDBACK."";
/**********************************/
include("header.php");
if ($cookie[1] != "") {
$sql = "SELECT name, username, user_email FROM ".$user_prefix."_users WHERE user_id='$cookie[0]'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if ($row[name] != "") {
$sender_name = $row[name];
} else {
$sender_name = $row[username];
}
$sender_email = $row[user_email];
}
$form_block = "
<center><font class=\"title\"><b>$sitename: "._FEEDBACKTITLE."</b></font>
<br><br><font class=\"content\">"._FEEDBACKNOTE."</font>
<FORM METHOD=\"post\" ACTION=\"modules.php?name=$module_name\">
<P><strong>"._YOURNAME.":</strong><br>
<INPUT type=\"text\" NAME=\"sender_name\" VALUE=\"$sender_name\" SIZE=30></p>
<P><strong>"._YOUREMAIL.":</strong><br>
<INPUT type=\"text\" NAME=\"sender_email\" VALUE=\"$sender_email\" SIZE=30></p>
<P><strong>"._MESSAGE.":</strong><br>
<TEXTAREA NAME=\"message\" COLS=30 ROWS=5 WRAP=virtual>$message</TEXTAREA></p>
<INPUT type=\"hidden\" name=\"opi\" value=\"ds\">
<P><INPUT TYPE=\"submit\" NAME=\"submit\" VALUE=\""._SEND."\"></p>
</FORM></center>
";
OpenTable();
if ($opi != "ds") {
echo "$form_block";
} elseif ($opi == "ds") {
if ($sender_name == "") {
$name_err = "<center><font class=\"option\"><b><i>"._FBENTERNAME."</i></b></font></center><br>";
$send = "no";
}
if ($sender_email == "") {
$email_err = "<center><font class=\"option\"><b><i>"._FBENTEREMAIL."</i></b></font></center><br>";
$send = "no";
}
if ($message == "") {
$message_err = "<center><font class=\"option\"><b><i>"._FBENTERMESSAGE."</i></b></font></center><br>";
$send = "no";
}
if ($send != "no") {
$sender_name = removecrlf($sender_name);
$sender_email = removecrlf($sender_email);
$msg = "$sitename\n\n";
$msg .= ""._SENDERNAME.": $sender_name\n";
$msg .= ""._SENDEREMAIL.": $sender_email\n";
$msg .= ""._MESSAGE.": $message\n\n";
$to = $adminmail;
$mailheaders = "From: $sender_name <$sender_email>\n";
$mailheaders .= "Reply-To: $sender_email\n\n";
mail($to, $subject, $msg, $mailheaders);
echo "<P><center>"._FBMAILSENT."</center></p>";
echo "<P><center>"._FBTHANKSFORCONTACT."</center></p>";
} elseif ($send == "no") {
OpenTable2();
echo "$name_err";
echo "$email_err";
echo "$message_err";
CloseTable2();
echo "<br><br>";
echo "$form_block";
}
}
CloseTable();
include("footer.php");
?>You have to do it from the administration menu and choose content.
Please read this thread also;
<!-- m --><a class="postlink" href="http://htmlforums.com/showthread.php?s=&threadid=27091Oppps">http://htmlforums.com/showthread.php?s= ... 27091Oppps</a><!-- m --> sorry for the Help thing my bad sorry guys but nope u cant do it from the admin panel.... Wat version do u use??well then what do you mean by your own sections? You can add pages by going to content.How do i add like the link like to the main think so u can click it and go to it wen i go to content it juss says it added it how do i see it??Do i make a module linking to that????I'm not all that familiar with phpnuke, but it should add it automatically when you create a new section, just make sure activate section is checked.Oh ok tanx but i need 1 more question can some 1 give me the php code to link some where.. plzPHP code to link somewhere?
It's html...
<a href=http://www.htmlforums.com/archive/index.php/"link.com">click here</a>