Here's a few snippets of what I did. It was a while ago, so expect some less-than-great code. Anyway, I think this is most of the code I modified to get this to work.
In "Content/index.php":
Code:
$index = 1;
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
$sql = "SELECT * FROM ".$prefix."_pages WHERE pid='$pid'";
$result = $db->sql_query($sql);
$mypage = $db->sql_fetchrow($result);
$pagetitle = "$mypage[title] ::";
$keywords = "$mypage[keywords]";
$metadescription = "$mypage[metadescription]";
In "includes/meta.php":
Code:
if ($keywords == "") {
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset="._CHARSET."\">\n";
echo "<META NAME=\"RESOURCE-TYPE\" CONTENT=\"DOCUMENT\">\n";
echo "<META NAME=\"KEYWORDS\" CONTENT=\"Divergent Lines website design ecommerce internet consulting\">\n";
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"Divergent Lines owns and operates eCommerce sites, offers custom website design, and provides consulting to internet-based businesses.\">\n";
echo "<META NAME=\"RATING\" CONTENT=\"GENERAL\">\n";
} else {
echo "<META HTTP-EQUIV=\"Content-Type\" CONTENT=\"text/html; charset="._CHARSET."\">\n";
echo "<META NAME=\"RESOURCE-TYPE\" CONTENT=\"DOCUMENT\">\n";
echo "<META NAME=\"KEYWORDS\" CONTENT=\"$keywords $pagetitle\">\n";
echo "<META NAME=\"DESCRIPTION\" CONTENT=\"$metadescription\">\n";
echo "<META NAME=\"RATING\" CONTENT=\"GENERAL\">\n";
}
In "admin/modules/content.php
Code:
echo ""._CSUBTITLE.":
"
."<input type=\"text\" name=\"subtitle\" size=\"50\">
"
.""._HEADERTEXT.":
"
."<textarea name=\"page_header\" cols=\"60\" rows=\"10\"></textarea>
"
.""._PAGETEXT.":
"
."<font class=\"tiny\">"._PAGEBREAK."</font>
"
."<textarea name=\"text\" cols=\"60\" rows=\"40\"></textarea>
"
.""._FOOTERTEXT.":
"
."<textarea name=\"page_footer\" cols=\"60\" rows=\"10\"></textarea>
"
.""._SIGNATURE.":
"
."<textarea name=\"signature\" cols=\"60\" rows=\"5\"></textarea>
"
."Meta KeyWords:
"
."<textarea name=\"keywords\" cols=\"60\" rows=\"5\"></textarea>
"
."Meta Description:
"
."<textarea name=\"metadescription\" cols=\"60\" rows=\"5\"></textarea>
";
and
Code:
echo ""._CSUBTITLE.":
"
."<input type=\"text\" name=\"subtitle\" size=\"50\" value='$mypages[subtitle]'>
"
.""._HEADERTEXT.":
"
."<textarea name=\"page_header\" cols=\"60\" rows=\"10\">$mypages[page_header]</textarea>
"
.""._PAGETEXT.":
"
."<font class=\"tiny\">"._PAGEBREAK."</font>
"
."<textarea name=\"text\" cols=\"60\" rows=\"40\">$mypages[text]</textarea>
"
.""._FOOTERTEXT.":
"
."<textarea name=\"page_footer\" cols=\"60\" rows=\"10\">$mypages[page_footer]</textarea>
"
.""._SIGNATURE.":
"
."<textarea name=\"signature\" cols=\"60\" rows=\"5\">$mypages[signature]</textarea>
"
."Meta KeyWords:
"
."<textarea name=\"keywords\" cols=\"60\" rows=\"5\">$mypages[keywords]</textarea>
"
."Meta Description:
"
."<textarea name=\"metadescription\" cols=\"60\" rows=\"5\">$mypages[metadescription]</textarea>
";
and
Code:
function content_save($title, $subtitle, $page_header, $text, $page_footer, $signature, $keywords, $metadescription, $clanguage, $active, $cid) {
global $prefix, $dbi;
$text = stripslashes(FixQuotes($text));
$title = stripslashes(FixQuotes($title));
$subtitle = stripslashes(FixQuotes($subtitle));
sql_query("insert into ".$prefix."_pages values (NULL, '$cid', '$title', '$subtitle', '$active', '$page_header', '$text', '$page_footer', '$signature', '$keywords', '$metadescription', now(), '0', '$clanguage')", $dbi);
Header("Location: admin.php?op=content");
}
and
Code:
function content_save_edit($pid, $title, $subtitle, $page_header, $text, $page_footer, $signature, $keywords, $metadescription, $clanguage, $active, $cid) {
global $prefix, $dbi;
$text = stripslashes(FixQuotes($text));
$title = stripslashes(FixQuotes($title));
$subtitle = stripslashes(FixQuotes($subtitle));
sql_query("update ".$prefix."_pages set cid='$cid', title='$title', subtitle='$subtitle', active='$active', page_header='$page_header', text='$text', page_footer='$page_footer', signature='$signature', keywords='$keywords', metadescription='$metadescription', clanguage='$clanguage' where pid='$pid'", $dbi);
Header("Location: admin.php?op=content");
}
Then I added "keyword" and "metadescription" fields to nuke_pages in the database.
Also on non-content modules I added modded the respective "index.php"'s like this:
Code:
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
$pagetitle = "Estimate :: ";
get_lang($module_name);
The site is based on Nuke 6.5. Again, you can see it at www.new.divergentlines.com the site was just uprooted and moved so expect some broken images and links.
I hope that is what you were looking for.