Blank page

Forum
Last Post
Threads / Messages

LilPixie

Member
Member
Joined
Jan 5, 2009
Messages
75
Points
0
Mysidian Dollar
6,489
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.
 
Just take the file extrapage.php and make a copy. Then open the file and find:

PHP:
// 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:

PHP:
$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
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top