PDA

View Full Version : Blank page


LilPixie
02-20-2009, 02:03 PM
I would like to create a blank page on the site (it doesn't have to show up in the nav bar) with the template in it and all the login stuff. I tried to copypasta the coding of another page and take out all the content and replace the "article_content" section with what I wanted on the oage, but I ended up taking out too much. Does anyone know the base codes for any given page? I can just use that and then put in my own stuff.

BMR777
02-20-2009, 04:19 PM
Just take the file extrapage.php and make a copy. Then open the file and find:

// Get our content for the index page

$query = "SELECT * FROM article_content WHERE page = 'extra'";
$result = mysql_query($query);
$num = mysql_numrows($result);

//Loop out code
$i=0;
while ($i < 1) {

$article_title=mysql_result($result,$i,"title");
$article_date=mysql_result($result,$i,"date");
$article_content=mysql_result($result,$i,"content");

$i++;
}

$article_title = stripslashes($article_title);
$article_content = stripslashes($article_content);

$article_content = $bbcode->Parse($article_content);

// Run the BBCODE parser on the content


Go ahead and delete the above code.

Then where the code above was previously, you can add your content. You need to add it in the following format for it to work:

$article_title = "Your page title";
$article_content = "The content of your page goes here. You may paste in HTML too but only use single quotes ' in the HTML instead of double quotes.";

Hope it helps,
Brandon

LilPixie
02-20-2009, 09:59 PM
thank you! ^^