News:

Wondering if this will always be free?  See why free is better.

Main Menu

Need help with my template...

Started by Eldorian, March 15, 2004, 07:04:04 PM

Previous topic - Next topic

Eldorian

Converting from YABBSE to this is confusing me template wise. Before I just added in my code up top and was done... I understood how to change the CSS as I saw fit. But now when I try to do this on Simple Machines, it screws up my font style and makes the page wider so you have to side scroll. I just want to add this code as a header... where am I screwing up at?


<center><table width="100%" border="0" cellspacing="0" cellpadding="0" height="64">
    <tr>
      <td rowspan="2" width="46%"><font face="verdana" color="#FFFFFF"><img src="images/logo.jpg"></font></td>
      <td width="33%" height="24">&nbsp;</td>
      <td width="21%" height="24">
        <div align="right"></div>
      </td>
    </tr>
    <tr>
      <td colspan="2" height="2">
        <div align="right"><font face="verdana" color="#FFFFFF"><a href='http://www.buzzcomix.net/in.php?ID=normalguy' target="_blank"><img src='http://www.buzzcomix.net/vote/vote_rank_button.php?voteID=normalguy' border=0 align="top"></a><a href='http://www.buzzcomix.net/login.php?action=change_favs&confirm=true&fav_id=normalguy' target="_blank"><img src='http://www.buzzcomix.net/vote/add.gif' border=0 align="top"></a></font></div>
      </td>
    </tr>
  </table>
  <font face="verdana" color="#FFFFFF"></font> <br>
  <table width="67%" border="1" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
    <tr>
      <td width="12%"><a href="http://normalguy.net"><img src="images/home.gif" width="100" height="30" border="0"></a></td>
      <td width="12%"><a href="archive.html"><img src="images/archive.gif" width="100" height="30" border="0"></a></td>
      <td width="12%"><a href="http://normalguy.net/yabbse"><img src="images/forum.gif" width="100" height="30" border="0"></a></td>
      <td width="12%"><a href="features.html"><img src="images/features.gif" width="100" height="30" border="0"></a></td>
      <td width="12%"><a href="about.html"><img src="images/about.gif" width="100" height="30" border="0"></a></td>
      <td width="12%"><a href="studios.html"><img src="images/studios.gif" width="100" height="30" border="0"></a></td>
      <td width="7%"><a href="store.html"><img src="images/store.gif" width="100" height="30" border="0"></a></td>
      <td width="21%"><a href="contact.html"><img src="images/contact.gif" width="100" height="30" border="0"></a></td>
    </tr>
  </table>
</center>
<br>

[Unknown]

If you use any single quotes, change them to \' or just use double quotes, otherwise you should be able to paste it in fine.

-[Unknown]

Eldorian

Where do I paste it in at though?

I've pasted it above everything on the template page and it messes with the font of the forum and it also makes the page wider so you have to side scroll (even though the code I'm using is supposed to be width of 100%).

If I paste this code anywhere except for the top I get this error:
Unable to load the 'main_above' template.

Spaceman-Spiff

#3
some of your html code isn't using the proper quote sign:

<a href='http://www.buzzcomix.net/in.php?ID=normalguy' target="_blank"><img src='http://www.buzzcomix.net/vote/vote_rank_button.php?voteID=normalguy' border=0 align="top"></a><a href='http://www.buzzcomix.net/login.php?action=change_favs&confirm=true&fav_id=normalguy' target="_blank"><img src='http://www.buzzcomix.net/vote/add.gif' border=0 align="top"></a>


html attributes must be enclosed in double quotes, not single

if you can also paste the part of the template file and mark where you want it to be put, i can try doing the code for you
just paste something like this:
echo '
</form>

</td>
<td width="262" style="padding-left: 5px;" valign="top">';
############## <-- put the code here -> ################
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '

[Unknown]

Paste it where you want it, not at the very top.  Remember that even in an html page you do not just "paste stuff at the very top."

-[Unknown]

Eldorian

Ahhh, I figured it out now... yeah, that buzzcomix code I didn't realize was using single quotes (wasn't my code, it's banner code from another site) once I fixed that it works great :) Thanks a lot, you guys are awesome at answering questions quickly!

I do have one more question though and not sure if it's feasible or not.

On my website I have a small ad banner on top I would like to have implemented on my forums if at all possible, the code for the ad banner looks like this:


<?php include('topad.php'); ?>


If I put it in double quotes, nothing shows. If I keep it like it is, I get that error I was getting earlier.

[Unknown]

Instead of this:

<?php include('topad.php'); ?>

Use:

';

include('topad.php');

echo '


-[Unknown]

Eldorian


Advertisement: