TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 692
  • Total: 693
  • lurkalot

How to Make a Page at a different URL Yet, Keeping the TPish effect.

Started by Megaforum, November 15, 2007, 04:44:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dragooon

xD
All the part in your <head></head> tags in your template.html(Excluding the tags itself), copy them and put them before your </head> tag of your index.template.php
Now Remove the <head></head> part(including the stuff between them) and remove the <body></body> tags(Only tags not the stuff between them).
And then try and see what happens.

wilsy

Hi Dragooon,

Thanks once again.

I tried that and it produced a template parse error. Can you check the code and see if I screwed up? I've attached the files  :)

Regards,

Wilsy.

Dragooon

I forgot to tell you,
Any single quote ( ' ) Must be escaped with a backslash ( \ ).

wilsy


wilsy

Still no joy  :'(

This is the relevant part of the index.php code, am I missing something?

<script language="javascript1.3" src="importer/js/emailvalidation.js" ></script>
<script language="javascript1.3" src="importer/js/ahah.js" ></script>
<script>

//Check all radio/check buttons script- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use 


function checkall(thestate){
var el_collection = document.forms['/form_results'/].elements['/list[]'/];
for (var c=0;c<el_collection.length;c++)
el_collection[c].checked=thestate
}

</script>
<style type="text/css">

td.off {
background: #A4A4A4;
}

</style>


echo '
</head>
<body>';


Regards,

Wilsy.

Dragooon


wilsy

Hi Dragooon,

No errors this time, the script seems to be working ok, but still no blocks and no footer.

http://www.rewindlancs.com/forum/importer/myhotmail.php

It's crazy isn't it  :(

Thanks again for your help and patience.

Regards,

Wilsy.

Dragooon

Blocks aren't there because you used tphidebars, it hides them :P
And what is your template.html, post it in a Code box.

wilsy

Lol, you're right re the blocks. I've removed that code now from index.php but they're still not showing.

Thanks for helping Dragooon, it really is appreciated. The code in template.html is as below.

<div align="center">
  <center>

            <div align="center">

            <TABLE cellSpacing=0 cellPadding=5 width=720
            bgColor=#ffffff border=0 height="1" id="table16">
              <TBODY>
              <TR>
                <TD vAlign=top height=20 width="141"><IMG src="images/[var.img]">
                <TD width=467 height="20">
                  <p align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<font color="#5B5B5B">
</font>
<p>
<font color="#5B5B5B" face="Verdana" size="2">It's easy to invite friends to RWL - It's also fun and a great way to make sure your friends can join in. We do not store your email address, password, your friends emails or any other details at all so rest assured this is the only time we will contact them!<p>
</font></TD></TR>
              <TR>
                <TD vAlign=top width=618 colspan="2" height="0">
<div align="center">
                    <center>
                  <table border="0" width="720" cellspacing="0" cellpadding="0" id="table17">
                    <tr>
                      <td width="100%">
                        <table border="0" width="100%" cellspacing="1" cellpadding="0" height="22" id="table18">
                          <tr>
                            <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" width="7%" bgcolor="#CCCCCC" align="center">
<font face="Arial">
<a href="index.php?domain=myyahoo&tbl=1">
<font color="#FFFFFF" style="font-size: 9pt">Yahoo</font></a></font></td>
                            <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" width="7%" bgcolor="#CCCCCC" align="center">
<font face="Arial">
<a href="index.php?domain=mygmail&tbl=1">
<font color="#FFFFFF" style="font-size: 9pt">Gmail</font></a></font></td>
                            <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" width="8%" bgcolor="#CCCCCC" align="center">
<font face="Arial">
<a href="index.php?domain=myhotmail&tbl=1">
<font color="#FFFFFF" style="font-size: 9pt">Hotmail</font></a></font></td>
                            <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" width="5%" bgcolor="#CCCCCC" align="center">
<font face="Arial">
<a href="index.php?domain=myaol&tbl=1">
<font color="#FFFFFF" style="font-size: 9pt">AOL</font></a></font></td>
                            <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" width="7%" bgcolor="#CCCCCC" align="center">
<a href="index.php?domain=mylycos&tbl=1">
<font face="Arial" color="#FFFFFF" style="font-size: 9pt">
Lycos</font></a></td>
                            <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" width="6%" bgcolor="#CCCCCC" align="center">
<a href="index.php?domain=myrediffmail&tbl=1">
<font face="Arial" color="#FFFFFF" style="font-size: 9pt">
Rediff</font></a></td>
                            <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" width="8%" bgcolor="#CCCCCC" align="center">
<a href="index.php?domain=mymail&tbl=1">
<font face="Arial" color="#FFFFFF" style="font-size: 9pt">
Mail.com</font></a></td>
                            <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" width="8%" bgcolor="#CCCCCC" align="center">
<font face="Arial" style="font-size: 9pt">
<a href="index.php?domain=myoutlook&tbl=2"><font color="#FFFFFF">
Outlook</font></a></font></td>
                            <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" width="8%" bgcolor="#CCCCCC" align="center">
<font face="Arial" style="font-size: 9pt">
<a href="index.php?domain=myexpress&tbl=2">
<font color="#FFFFFF">Express</font></a><font color="#FFFFFF">
</font></font></td>
                            <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" width="12%" bgcolor="#CCCCCC" align="center">
<font face="Arial" style="font-size: 9pt">
<a href="index.php?domain=mythunderbird&tbl=2">
<font color="#FFFFFF">Thunder Bird</font></a></font></td>
                            <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" width="5%" bgcolor="#CCCCCC" align="center">
<a href="index2.php">
<font face="Arial" style="font-size: 9pt" color="#FFFFFF">
I</font></a><font face="Arial" style="font-size: 9pt"><a href="index.php?domain=myicq&tbl=1"><font color="#FFFFFF">CQ</font></a></font></td>
                            <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" width="9%" bgcolor="#CCCCCC" align="center">
<font face="Arial" style="font-size: 9pt" color="#FFFFFF">
<a href="index.php?domain=mykatamail&tbl=1">
<font color="#FFFFFF">Katamail</font></a></font></td>
                            <td class="off" onmouseover="this.className='on'" onmouseout="this.className='off'" width="8%" bgcolor="#CCCCCC" align="center">
<font face="Arial" style="font-size: 9pt" color="#FFFFFF">
<a href="index.php?domain=myemailit&tbl=1">
<font color="#FFFFFF">Email.it</font></a></font></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td width="100%" bgcolor="#FFFFFF" height="0">

<div align="center">
  <center>
  <hr color="#FFFFFF">
  <table border="0" width="500" id="table19" style="border: 1px solid #D8D8D8; " cellspacing="0" cellpadding="0">
  <form name=emailform action="[var.script]"  method="post" onSubmit="return emailCheck(this.username.value);">
    <tr>
      <td width="88%" bgcolor="#FFFFFF">
        <div align="center">
          <table border="0" width="100%" id="table20" cellspacing="0" cellpadding="0">
            </center>
                    </center>

  </center>
            <tr>
    <td align="right" width="176" height="43" bgcolor="#FFFFFF">
      <b>
      <font face="Arial" size="2" color="#333333">Email address&nbsp; </font>
    </b>
    </td>
  <center>
                    <center>
  <center>
    <td align="right" width="5" height="43">
    <p align="left">&nbsp;</td>
    <td align="right" width="350" height="43">
<input name="username" size="34" style="float: left"></td>
            </tr>
            <tr>
    <td align="right" width="176" height="43" bgcolor="#FFFFFF" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px">
      <b>
      <font face="Arial" size="2" color="#333333">Password&nbsp; </font>
    </b>
    </td>
    <td width="5" height="43" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px">&nbsp;</td>
    <td width="350" height="43" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: solid; border-bottom-width: 1px"> <input type="password" name="password" size="34"></td>
            </tr>
            <tr>
    <td align="right" width="176" height="40" bgcolor="#F2F2F2">
      <font face="Arial" size="2" color="#333333">No details are stored&nbsp;
</font>
    </td>
    <td width="5" height="40" bgcolor="#F2F2F2">
&nbsp;
</td>
    <td width="350" height="40" bgcolor="#F2F2F2">
<input type="submit" value="Invite My Friends" style="background-color: #FFFFFF; border: 1px solid #A4A4A4; ; font-family:Arial; font-size:10pt; color:#5B5B5B"></td>
            </tr>
          </table>
        </div>
      </center></center></center>
      </td>
    </tr>
    </form>
    <!--[onload_11;block=table;when [var.which]=1;comm]-->
  </table>
</div>
</td>

                    </tr>
                    <tr>
                      <td width="100%" bgcolor="#FFFFFF" height="0">

<div align="center">

<table border="0" width="500" id="table21" cellspacing="0" cellpadding="0" style="border: 1px solid #D8D8D8">
<form name="emailform2" enctype="multipart/form-data" action="[var.script]"  method="post">
    <tr>
      <td width="91%">
        <div align="center">
          <table border="0" width="100%" id="table22" cellspacing="0" cellpadding="0">
            </center>
                    </center>

  </center>
            <tr>
    <td align="right" width="526" colspan="2" bgcolor="#F9F9F9">
      <p align="center">
</td>
  <center>
                    <center>
  <center>
            </tr>
            <tr>
    <td align="right" width="192" height="40">
<font face="Arial" size="1">&nbsp; </font></td>
    <td width="382" height="40">
<font face="Arial" size="2" color="#333333">Email CSV <strong style="font-weight: 400">&nbsp;(Limit file size 2MB)</strong></font></td>
            </tr>
            <tr>
    <td align="right" width="192" height="40" bgcolor="#FFFFFF">
<p><font face="Arial" size="2" color="#333333">&nbsp;&nbsp;&nbsp;&nbsp; Select File&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></p>
</td>
    <td width="382" height="40" bgcolor="#FFFFFF">
<input name="ufile" type="file" id="ufile" size="28" /></td>
            </tr>
            <tr>
    <td align="right" width="192" height="40" bgcolor="#F2F2F2" style="border-top: 1px solid #C0C0C0">
  <font face="Arial" size="2" color="#333333">No details are stored&nbsp;
</font>
    &nbsp;&nbsp;
    </td>
    <td width="382" height="40" bgcolor="#F2F2F2" style="border-top: 1px solid #C0C0C0">
<input type="submit" value="Invite My Friends" style="background-color: #FFFFFF; border: 1px solid #A4A4A4; ; font-family:Arial; font-size:10pt; color:#5B5B5B"></td>
            </tr>
            </table>
        </div>
      </center></center></center>
      </td>
    </tr>
  </form>
  <!--[onload_12;block=table;when [var.which]=2;comm]-->
  </table>
</div>
</td>
                    </tr>
                  </table>
                  </div>
                </TD>
              </TR>
              </TBODY></TABLE>
</div>
<p>
      <div id='target'>
      </div>
</p>
&nbsp;&nbsp;
<!--[var.poweredby_top;htmlconv=no;comm]-->
</div>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" width="500" id="table3" style="border: 1px solid #D8D8D8">
<!--[onload_13;block=table;when [var.show_result]=1;comm]-->
<form name="form_results" action="postage.php" method="post">
<tr>
<td bgcolor="#F2F2F2" height="27" width="27%">
<b><font face="Arial" color="#3366CC">
<p align="center"><font face="Arial" style="font-size: 9pt"><a href="javascript:checkall(true)">
<font color="#333333">Check All</font></a></font></font><font face="Arial" style="font-size: 9pt"><font face="Arial" color="#333333"> | </font><font face="Arial" color="#3366CC">
<a href="javascript:checkall(false)"><font color="#333333">Uncheck All</font></a></font></font><font face="Arial" size="1" color="#333333">&nbsp; </font></b></td>
<td bgcolor="#F2F2F2" height="27" width="73%">
<b><font face="Arial" size="2" color="#333333">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MY CONTACTS</font></b></td>
</tr>
<tr>
<td height="25" colspan="2">
<div align="center">
<table cellpadding="0" cellspacing="0" width="100%" id="table4" style="border-top: 1px solid #D8D8D8; ">
<tr>
<td width="34" bgcolor="#FFFFFF" style="border-left-width: 1px; border-right: 1px solid #D8D8D8; border-top-width: 1px; border-bottom-width: 1px">
<p align="center">
<input type="checkbox" name="list[]" value="[blk1.contacts_email;block=table]x22z[blk1.contacts_name;block=table]" checked></td>
<td height="25" bgcolor="#FFFFFF" width="212" style="border-left-width: 1px; border-right: 1px solid #D8D8D8; border-top-width: 1px; border-bottom-width: 1px">
<p align="center">
<font face="Arial" size="2" color="#333333">[blk1.contacts_name;block=table]</font></td>
<td height="25" bgcolor="#FFFFFF">
<p align="center">
<font face="Arial" size="2" color="#333333">[blk1.contacts_email;block=table;ope=max:35]<font color="#333333"></font></font></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td height="42" style="border-left-width: 1px; border-right-width: 1px; border-top: 1px solid #D8D8D8; border-bottom-width: 1px" bgcolor="#F2F2F2" colspan="2">
<p align="center">
<input type="hidden" name = "sendersemail" value="[var.sendersemail]">
<input type="submit" value="  Invite friends  " name="B1" style="font-family: Arial; font-size: 10pt; font-weight: bold; color: #5B5B5B; border: 1px solid #D8D8D8; background-color: #FFFFFF"></td>
</tr>
</form>
</table>
</div>
<div id="notfound" align="center">
&nbsp;&nbsp;
<table border="0" cellpadding="0" cellspacing="0" width="499" id="table5" style="border: 1px solid #D8D8D8">
<!--[onload_2;block=table;when [var.show]=1;comm]-->
<tr>
<td bgcolor="#FFFFFF" height="80">
<p align="center"><b><font face="Arial" size="2" color="#3366CC">!Error
- No contacts were found, please check your logins.</font></b></td>
</tr>
</table>
<p align="center">&nbsp;</div>
<div align="center">
<!--[var.poweredby_bottom;htmlconv=no;comm]-->
</div>


Regards,

Wilsy.

Dragooon


This website is proudly hosted on Crocweb Cloud Website Hosting.