1
poxom
problems with wrapping html
  • 2005/1/11 19:20

  • poxom

  • Just popping in

  • Posts: 4

  • Since: 2005/1/11


I tried to insert one html page, using FAQ
include("path/to/mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>
The content of your original html file goes here!!
include(XOOPS_ROOT_PATH."/footer.php");
?>


I put the page into xoopsdir\test.php. So when I request it, headers and footers are shown and the content of my page is shown too, but only partly... I can see only text and pictures. Background, table columns, everything is white. I tried different pages.
What's wrong?

2
tjnemez
Re: problems with wrapping html
  • 2005/1/11 19:25

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


can you provide a link so we can have a look at it?

3
carnuke
Re: problems with wrapping html
  • 2005/1/11 21:15

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Your site theme will be inhereted in your included page unless you have used other style directives. Maybe your text/table content needs matching to your theme.

Post a link as Terry said, he will see what it is.

4
poxom
Re: problems with wrapping html
  • 2005/1/12 19:48

  • poxom

  • Just popping in

  • Posts: 4

  • Since: 2005/1/11


can you provide a link so we can have a look at it?
Unfortunately, I can't :( This site is in a local network.
But I can post its code here.

unless you have used other style directives
I tried to wrap pages without any style sheets.

Maybe your text/table content needs matching to your theme. How to check this?

5
tjnemez
Re: problems with wrapping html
  • 2005/1/12 20:19

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


yes, can you post the code?

6
poxom
Re: problems with wrapping html
  • 2005/1/15 13:20

  • poxom

  • Just popping in

  • Posts: 4

  • Since: 2005/1/11


I think, I solved my problem :)
It was tag defined by XOOPS css, my html page's was ignored. So, I simlpy had to create one more table, set its bgcolor and put all the content into it.
Am I right? Here is one test page.

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<
head>
<
meta http-equiv="content-type" content="text/html; charset=windows-1251" />
<
meta http-equiv="content-language" content="ru" />
<
meta name="robots" content="index,follow" />
<
meta name="keywords" content="news, technology, headlines, xoops, xoop" />
<
meta name="description" content="XOOPS is a dynamic Object Oriented based open source portal 

script written in PHP." 
/>
<
meta name="rating" content="general" />
<
meta name="author" content="XOOPS" />
<
meta name="copyright" content="Copyright © 2001-2003" />
<
meta name="generator" content="XOOPS" />
<
title>My site Just Use it!title>
<
link href="http://192.168.77.103/html/favicon.ico" rel="SHORTCUT ICON" />
<
link rel="stylesheet" type="text/css" media="screen" href="http://192.168.77.103/html/xoops.css" />
<
link rel="stylesheet" type="text/css" media="screen" 

href="http://192.168.77.103/html/themes/default/style.css" />


<
script type="text/javascript">

src="http://192.168.77.103/html/include/xoops.js">script><script type="text/javascript">
script>
head>
<
body>
  <
table cellspacing="0">
    <
tr id="header">
      <
td id="headerlogo"><a href="http://192.168.77.103/html/"><img 

src
="http://192.168.77.103/html/themes/default/logo.gif" width="150" height="80" alt="" />a>td>
      <
td id="headerbanner">&nbsp;td>
    tr>
    <
tr>
      <
td id="headerbar" colspan="2">&nbsp;td>
    tr>
  table>

  <
table cellspacing="0">
    <
tr>
      <
td id="leftcolumn">
        
                  <
div class="blockTitle">&#1054;сновное меню

<div class="blockContent"><table cellspacing="0">
  <
tr>
    <
td id="mainmenu">
      <
class="menuTop" href="http://192.168.77.103/html/">&#1043;лавная
      

            <
class="menuMain" href="http://192.168.77.103/html/modules/mylinks/">&#1057;сылки
                    
<class="menuMain" href="http://192.168.77.103/html/modules/news/">&#1053;овости
                    
<class="menuMain" 

href="http://192.168.77.103/html/modules/wfdownloads/">&#1060;айлы
                    

    td>
  tr>
table>div>                  <div class="blockTitle">&#1057;вежие файлы

<div class="blockContent"><ul>
      <
li><

href
="http://192.168.77.103/html/modules/wfdownloads/singlefile.php?cid=4&lid=5">1111a

(
Thu30-Dec-2004)li>
  ul>div>                  <div class="blockTitle">&#1051;учшее

<div class="blockContent"><ul>
      <
li><

href
="http://192.168.77.103/html/modules/wfdownloads/singlefile.php?cid=4&lid=5">1111a

(
0)li>
  ul>div>                  <div class="blockTitle">&#1042;ход пользователей

<div class="blockContent"><form style="margin-top: 0px;" 

action="http://192.168.77.103/html/user.php" method="post">
    &
#1055;ользователь: 
    
<input type="text" name="uname" size="12" value="" maxlength="25" /><br />
    &
#1055;ароль: 
    
<input type="password" name="pass" size="12" maxlength="32" /><br />
    
    
<input type="hidden" name="xoops_redirect" value="/html/ixbt.php" />
    <
input type="hidden" name="op" value="login" />
    <
input type="submit" value="Вход" /><br />
    
form>
<
a href="http://192.168.77.103/html/user.php#lost">&#1047;абыли пароль?
<br /><br />
<
a href="http://192.168.77.103/html/register.php">&#1056;егистрация
                

      td>

      <
td id="centercolumn">

        
                

        <
div id="content">
          <
html>
<
head>
<
title>Untitled Documenttitle>
<
meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
head>

<
body bgcolor="#0066CC">
<
p><font color="#CCCCCC">test font>p>
<
p><font color="#CCCCCC"><a href="http://link">testa>fontp>
<
p><font color="#FF0000">testfont>p>
<
table width="100%" border="4" bordercolor="#FF0000">
  <
tr>
    <
td bgcolor="#99FFFF"><font color="#00CC33">testfont>td>
  tr>
table>
<
p>&nbsp;p>
<
p>&nbsp;p>
<
p>testp>
body>
html>
        div>
      td>
      
    tr>
  table>

  <
table cellspacing="0">
    <
tr id="footerbar">
      <
td><a href="https://xoops.org/" target="_blank"><img 

src
="http://192.168.77.103/html/themes/default/poweredby.gif" alt="" />a>td>
    tr>
  table>
body>
html>

7
tjnemez
Re: problems with wrapping html
  • 2005/1/15 20:28

  • tjnemez

  • Home away from home

  • Posts: 1594

  • Since: 2003/9/21


include("path/to/mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
?>
The content of your original html file goes here!!
include(XOOPS_ROOT_PATH."/footer.php");
?>

could you just post the code you added to the above please.

Login

Who's Online

318 user(s) are online (255 user(s) are browsing Support Forums)


Members: 0


Guests: 318


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits