Add A Blank Page


Subject: Add A Blank Page
I want to add a blank page: http://www.icyphoenix.com/viewtopic...&p=11376#p11376

But I have this error:

Code: [Download] [Hide] [Select]
Could not query posts table

DEBUG MODE

SQL Error : 1146 Table 'Sql16333_1.CONSTANT_WITH_THE_NAME_OF_THE_TABLE' doesn't exist

SELECT column_name FROM CONSTANT_WITH_THE_NAME_OF_THE_TABLE WHERE column_operator_value

Line : 26
File : _blankpage.php

Last edited by Gianni PB on Thu 13 Dec, 2007 15:55; edited 1 time in total
Subject: Re: Add A Blank Page
That's an old tutorial, the best way to add pages it's using CMS's power :D

Subject: Re: Add A Blank Page
I know, but I don't like it.... :P

Subject: Re: Add A Blank Page
So you can try to use this

Code: [Download] [Hide]
  1. <?php  
  2. define('IN_PHPBB', true);  
  3.  
  4. $phpbb_root_path = './'; // <--  
  5. include($phpbb_root_path . 'extension.inc');  
  6. include($phpbb_root_path . 'common.'.$phpEx);  
  7.  
  8. $userdata = session_pagestart($user_ip, PAGE_INDEX);  
  9. init_userprefs($userdata);  
  10.  
  11. include($phpbb_root_path . 'includes/page_header.'.$phpEx);  
  12. ?>  
  13.  
  14. html code here  
  15.  
  16. <?  
  17. include($phpbb_root_path . 'includes/page_tail.'.$phpEx);  
  18. ?> 


Save it as a .php file, and place it on the root of tour forum

Subject: Re: Add A Blank Page
yes yes thanks...but I want to use template. How can I do it?

Subject: Re: Add A Blank Page
Gianni PB wrote: [View Post]
yes yes thanks...but I want to use template. How can I do it?


You can use template using Cms or this way, style it's parsed since page_header it's included

Subject: Re: Add A Blank Page
if i use CMS, my pages will save on DB?
how does it work?

Subject: Re: Add A Blank Page
yes , inside db

Subject: Re: Add A Blank Page
i have to add 500 pages....I think my db will not very happy... :mricy:

is there an other way to add pages with template inside a table?

Last edited by Gianni PB on Wed 12 Dec, 2007 16:36; edited 1 time in total
Subject: Re: Add A Blank Page
Zuker wrote: [View Post]
So you can try to use this

Code: [Download] [Hide]
  1. <?php  
  2. define('IN_PHPBB', true);  
  3.  
  4. $phpbb_root_path = './'; // <--  
  5. include($phpbb_root_path . 'extension.inc');  
  6. include($phpbb_root_path . 'common.'.$phpEx);  
  7.  
  8. $userdata = session_pagestart($user_ip, PAGE_INDEX);  
  9. init_userprefs($userdata);  
  10.  
  11. include($phpbb_root_path . 'includes/page_header.'.$phpEx);  
  12. ?>  
  13.  
  14. html code here  
  15.  
  16. <?  
  17. include($phpbb_root_path . 'includes/page_tail.'.$phpEx);  
  18. ?> 


Save it as a .php file, and place it on the root of tour forum



ok, i'll use this..thanks!

Last edited by Gianni PB on Thu 13 Dec, 2007 16:04; edited 1 time in total

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.0981s (PHP: 19% SQL: 81%)
SQL queries: 10 - Debug Off - GZIP Enabled