Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
Contact the Webmasters of RCFContact   Invite a friend to Join usRecommend   Chat in IRCChat   EZ Template Change OptionEZStyle   Listen to Internet Radio while you browse...iRadio   See your private message.Login for PMs   Important LinksLinks
Member Website LinksWeb Links   Play/View our GamesGames   Register.Register
calendar_open_closeCalendar 
Help wanted with my blank page template mod
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2, 3, 4  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Help wanted with my blank page template mod
PostPosted: 08/14/2006 9:14 PM Reply with quote
Citation
Glenn I
Citation
Posts 2152
Word Cnt. 78,257
BDay Jun 15
Sign Gemini
Sex Sex:Male
Joined: Apr 22, 2005
Local time: 5:24 AM
Location: Upside down
australC_1xa.gif
Not sure which mod I am using but I think it is - http://www.phpbb.com/phpBB/viewtopic.php?t=142506&highlight=blank

I've gone right through all the pages looking for help. I'll ask here first and if no luck I will ask over there, but they aren't too quick on replying there.

What I need help with is that I have this page and there are 2879 lines of HTML. The page I want looks like http://www.theaussieaviator.net/codes.htm but when I copy the code over it looks like this http://theaussieaviator.net/template.php?page=7&sid=9312e78424137e7311 2e32032b7dabe9 Notice at the bottom that it only goes down to the K and screws up the footer. Do you know of a code or something I can use to fit all this in on one page?

If not, I might have to split it over a couple pages.
Back to Top
View user's profile Find all posts by Glenn I Send private message   Visit poster's website Phoogle Map
Re: Help wanted with my blank page template mod
PostPosted: 08/15/2006 2:56 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30756
Word Cnt. 2,628,678
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:24 PM
Location: St Pete, FL
peace.gif
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...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Help wanted with my blank page template mod
PostPosted: 08/15/2006 5:53 PM Reply with quote
Citation
Glenn I
Citation
Posts 2152
Word Cnt. 78,257
BDay Jun 15
Sign Gemini
Sex Sex:Male
Joined: Apr 22, 2005
Local time: 5:24 AM
Location: Upside down
australC_1xa.gif
What do you mean text link to the template page. You don't mean this http://theaussieaviator.net/template.php?page=7&sid=9312e78424137e7311 2e32032b7dabe9

dontknow
Back to Top
View user's profile Find all posts by Glenn I Send private message   Visit poster's website Phoogle Map
Re: Help wanted with my blank page template mod
PostPosted: 08/15/2006 8:22 PM Reply with quote
Citation
Glenn I
Citation
Posts 2152
Word Cnt. 78,257
BDay Jun 15
Sign Gemini
Sex Sex:Male
Joined: Apr 22, 2005
Local time: 5:24 AM
Location: Upside down
australC_1xa.gif
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
View user's profile Find all posts by Glenn I Send private message   Visit poster's website Phoogle Map
Re: Help wanted with my blank page template mod
PostPosted: 08/15/2006 9:28 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30756
Word Cnt. 2,628,678
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:24 PM
Location: St Pete, FL
peace.gif
No, I need to see the code for the page you created.  It looks like you have an HTML error in the code...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Help wanted with my blank page template mod
PostPosted: 08/15/2006 10:06 PM Reply with quote
Citation
Glenn I
Citation
Posts 2152
Word Cnt. 78,257
BDay Jun 15
Sign Gemini
Sex Sex:Male
Joined: Apr 22, 2005
Local time: 5:24 AM
Location: Upside down
australC_1xa.gif
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
View user's profile Find all posts by Glenn I Send private message   Visit poster's website Phoogle Map
Re: Help wanted with my blank page template mod
PostPosted: 08/15/2006 10:16 PM Reply with quote
Citation
Glenn I
Citation
Posts 2152
Word Cnt. 78,257
BDay Jun 15
Sign Gemini
Sex Sex:Male
Joined: Apr 22, 2005
Local time: 5:24 AM
Location: Upside down
australC_1xa.gif
Take a look at http://www.theaussieaviator.net/html.txt It's doing the same thing

Will email you a .txt file as it won't display correctly between the code tags
Back to Top
View user's profile Find all posts by Glenn I Send private message   Visit poster's website Phoogle Map
Re: Help wanted with my blank page template mod
PostPosted: 08/15/2006 10:25 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30756
Word Cnt. 2,628,678
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:24 PM
Location: St Pete, FL
peace.gif
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...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Help wanted with my blank page template mod
PostPosted: 08/15/2006 10:28 PM Reply with quote
Citation
Glenn I
Citation
Posts 2152
Word Cnt. 78,257
BDay Jun 15
Sign Gemini
Sex Sex:Male
Joined: Apr 22, 2005
Local time: 5:24 AM
Location: Upside down
australC_1xa.gif
hmmm wonder why it chopped it off... Just ducking out to pick someone up so will try when I get back.
Back to Top
View user's profile Find all posts by Glenn I Send private message   Visit poster's website Phoogle Map
Re: Help wanted with my blank page template mod
PostPosted: 08/15/2006 10:42 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30756
Word Cnt. 2,628,678
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:24 PM
Location: St Pete, FL
peace.gif
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...

munky2
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2, 3, 4  Next
Page 1 of 4


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group
  ImageShack  
  Putfile  
  TinyURL  
  CommonDreams  
  Log in  

Page generation time: 0.1853s (PHP: 73% - SQL: 27%) - SQL queries: 61 - GZIP enabled - Debug on