Quote
smokeman wrote:
....
Have patience pls. ;)
....
function render_article2($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' class='news-footer'>\n";
echo articleposter2($info," ·").articlecat2($info," ·").articleopts2($info,"·").itemoptions2("A2",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
<?php
$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."articles2");
$result = dbquery("CREATE TABLE ".$db_prefix."articles2 (
article_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
article_cat MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
article_subject VARCHAR(200) NOT NULL DEFAULT '',
article_snippet TEXT NOT NULL,
article_article TEXT NOT NULL,
article_draft TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
article_breaks CHAR(1) NOT NULL DEFAULT '',
article_name MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '1',
article_datestamp INT(10) UNSIGNED NOT NULL DEFAULT '0',
article_reads MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT '0',
article_allow_comments TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
article_allow_ratings TINYINT(1) UNSIGNED NOT NULL DEFAULT '1',
PRIMARY KEY (article_id),
KEY article_datestamp (article_datestamp),
KEY article_reads (article_reads)
) TYPE=MyISAM;");
if (!$result) { $fail = true; }
$result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."article_cats2");
$result = dbquery("CREATE TABLE ".$db_prefix."article_cats2 (
article_cat_id MEDIUMINT(8) UNSIGNED NOT NULL AUTO_INCREMENT,
article_cat_name VARCHAR(100) NOT NULL DEFAULT '',
article_cat_description VARCHAR(200) NOT NULL DEFAULT '',
article_cat_sorting VARCHAR(50) NOT NULL DEFAULT 'article_subject ASC',
article_cat_access TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY (article_cat_id)
) TYPE=MyISAM;");
if (!$result) { $fail = true; }
$result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('AC2', 'article_cats2.gif', 'Article2 Categories', 'article_cats2.php', 1)");
$result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('A2', 'articles2.gif', 'Articles2', 'articles2.php', 1)");
$result = dbquery("UPDATE ".DB_USERS." SET user_rights = 'A.AC.A2.AC2.AD.B.BB.C.CP.DB.DC.D.FQ.F.FR.IM.I.IP.M.N.NC.P.PH.PI.PO.S.SL.S1.S2.S3.S4.S5.S6.S7.S8.S9.S10.S11.S12.SB.SM.SU.UF.UFC.UG.U.W.WC'
WHERE user_id='".$userdata['user_id']."'");
echo "<center><font color='#ff0000'>Tables succesfull created!</font></center>";
?>
Quote
Fangree_Craig wrote:
Is it ready yet? lol :P
Quote
Webmaster David Shelechi; Webmistress Sarah Neville | All images are © Viacom Inc. | AB.N © 2011 Airbender.net | Powered by PHPFusion
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
6 participants
Notifications
You are not receiving notifications from this thread.
Related Questions