| Help wanted with my blank page template mod | |
Posted: 08/14/2006 9:14 PM |
|
|
|
|
Citation |
Posts |
2152 |
Word Cnt. |
78,257 |
BDay |
Jun 15 |
Sign |
Gemini |
Sex |
|
|
|
|
Joined: Apr 22, 2005
Local time: 8:50 PM
Location: Upside down
|
|
|
|
|
|
|
|
|
|
Back to Top |
|
|
| Re: Help wanted with my blank page template mod | |
Posted: 08/15/2006 2:56 PM |
|
|
|
|
Site Admin |
Posts |
30756 |
Word Cnt. |
2,628,678 |
BDay |
Jul 28 |
Sign |
Leo |
Sex |
|
|
|
|
Joined: Sep 25, 2004
Local time: 6:50 AM
Location: St Pete, FL
|
|
|
|
|
|
Can you provide a text link to the template page for this? It appears that you might have introduced a bug that might cause this...
|
|
|
|
|
Back to Top |
|
|
| Re: Help wanted with my blank page template mod | |
Posted: 08/15/2006 5:53 PM |
|
|
|
|
Citation |
Posts |
2152 |
Word Cnt. |
78,257 |
BDay |
Jun 15 |
Sign |
Gemini |
Sex |
|
|
|
|
Joined: Apr 22, 2005
Local time: 8:50 PM
Location: Upside down
|
|
|
|
|
|
|
|
|
|
Back to Top |
|
|
| Re: Help wanted with my blank page template mod | |
Posted: 08/15/2006 8:22 PM |
|
|
|
|
Citation |
Posts |
2152 |
Word Cnt. |
78,257 |
BDay |
Jun 15 |
Sign |
Gemini |
Sex |
|
|
|
|
Joined: Apr 22, 2005
Local time: 8:50 PM
Location: Upside down
|
|
|
|
|
|
This is my template.php file located in public_html. Is this what you mean?
Code:
|
<?php
/********************************************************************* ******
* template.php [ Blank Template MOD ]
* -------------------
* Début : 08-08-2004
* Auteur : Poupoune < >
* Contact : http://php-tools.org/poupoune/
*
********************************************************************* ******/
// standard hack prevent
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
// standard session management
$page_template = - (intval($HTTP_GET_VARS['page']) + PAGE_TEMPLATE);
$userdata = session_pagestart($user_ip, $page_template);
init_userprefs($userdata);
// On récupère les données
if( $HTTP_GET_VARS['page'] )
{
$sql = "SELECT * FROM ". ADD_PAGES_TABLE ."
WHERE page_id = ". intval($HTTP_GET_VARS['page']);
if( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Couldn't delete forum information!", "", __LINE__, __FILE__, $sql);
}
if( $row = $db->sql_fetchrow($result) )
{
if( $userdata['session_logged_in'] )
{
if( ( $userdata['user_level'] == ADMIN ) || ( $userdata['user_level'] >= $row['page_auth'] ) )
{
// set page title
$page_title = $row['page_name'];
$page_content = $row['page_content'];
}
else
{
$message = sprintf($lang['Not_auth'], $lang['Moderators']);
message_die(GENERAL_MESSAGE, $message, '', '', '', '');
}
}
else
{
if ( !$userdata['session_logged_in'] && $row['page_auth'] == -1)
{
// set page title
$page_title = $row['page_name'];
$page_content = $row['page_content'];
}
else if( $row['user_auth'] != ANONYMOUS )
{
$message = sprintf($lang['Not_auth'], $lang['Users']);
message_die(GENERAL_MESSAGE, $message, '', '', '', '');
}
}
}
else
{
$page_content = '';
message_die(GENERAL_MESSAGE, $lang['No_page_exists'], '', '', '', '');
}
}
else
{
$page_content = '';
message_die(GENERAL_MESSAGE, $lang['No_page_exists'], '', '', '', '');
}
// standard page header
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
// assign template
$template->set_filenames(array(
'body' => 'template.tpl')
);
$template->assign_vars( array(
'PAGE_TITLE' => $page_title,
'PAGE_CONTENT' => $page_content
));
$template->pparse('body');
// standard page footer
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
|
|
|
|
|
|
Back to Top |
|
|
| Re: Help wanted with my blank page template mod | |
Posted: 08/15/2006 9:28 PM |
|
|
|
|
Site Admin |
Posts |
30756 |
Word Cnt. |
2,628,678 |
BDay |
Jul 28 |
Sign |
Leo |
Sex |
|
|
|
|
Joined: Sep 25, 2004
Local time: 6:50 AM
Location: St Pete, FL
|
|
|
|
|
|
No, I need to see the code for the page you created. It looks like you have an HTML error in the code...
|
|
|
|
|
Back to Top |
|
|
| Re: Help wanted with my blank page template mod | |
Posted: 08/15/2006 10:06 PM |
|
|
|
|
Citation |
Posts |
2152 |
Word Cnt. |
78,257 |
BDay |
Jun 15 |
Sign |
Gemini |
Sex |
|
|
|
|
Joined: Apr 22, 2005
Local time: 8:50 PM
Location: Upside down
|
|
|
|
|
|
I doubt there is an error in the because it is displaying ok at http://www.theaussieaviator.net/codes.htm I think it is probably due to the fact that the page is too long. Anyway code is below.
Edit- will provide a link in a sec |
|
|
|
|
Back to Top |
|
|
| Re: Help wanted with my blank page template mod | |
Posted: 08/15/2006 10:16 PM |
|
|
|
|
Citation |
Posts |
2152 |
Word Cnt. |
78,257 |
BDay |
Jun 15 |
Sign |
Gemini |
Sex |
|
|
|
|
Joined: Apr 22, 2005
Local time: 8:50 PM
Location: Upside down
|
|
|
|
|
|
|
|
|
|
Back to Top |
|
|
| Re: Help wanted with my blank page template mod | |
Posted: 08/15/2006 10:25 PM |
|
|
|
|
Site Admin |
Posts |
30756 |
Word Cnt. |
2,628,678 |
BDay |
Jul 28 |
Sign |
Leo |
Sex |
|
|
|
|
Joined: Sep 25, 2004
Local time: 6:50 AM
Location: St Pete, FL
|
|
|
|
|
|
Well there's your problem A lot of the file is missing. The last line ends with Kingscote and the HTML code is never properly terminated. If you add the missing code, I imagine that the page will display properly...
|
|
|
|
|
Back to Top |
|
|
| Re: Help wanted with my blank page template mod | |
Posted: 08/15/2006 10:28 PM |
|
|
|
|
Citation |
Posts |
2152 |
Word Cnt. |
78,257 |
BDay |
Jun 15 |
Sign |
Gemini |
Sex |
|
|
|
|
Joined: Apr 22, 2005
Local time: 8:50 PM
Location: Upside down
|
|
|
|
|
|
hmmm wonder why it chopped it off... Just ducking out to pick someone up so will try when I get back. |
|
|
|
|
Back to Top |
|
|
| Re: Help wanted with my blank page template mod | |
Posted: 08/15/2006 10:42 PM |
|
|
|
|
Site Admin |
Posts |
30756 |
Word Cnt. |
2,628,678 |
BDay |
Jul 28 |
Sign |
Leo |
Sex |
|
|
|
|
Joined: Sep 25, 2004
Local time: 6:50 AM
Location: St Pete, FL
|
|
|
|
|
|
When you copied and pasted it into your template, I imagine that not all of the code got highlighted, so not all was copied over. That's happened to me when I did a copy on a page that hadn't finished loading in my browser...
|
|
|
|
|
Back to Top |
|
|
| Information | |
|