Welcome, Guest. Please Login or Register.
April 27, 2025, 02:21:25 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Graphics and Templates  |  Adding links on the side of the Template « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Adding links on the side of the Template  (Read 1154 times)
Victor
Full Member
***
Posts: 105


I'm a llama!

Adding links on the side of the Template
« on: July 17, 2002, 07:18:14 PM »
Reply with quote

How do I create links the same way this board has?

Links on the left hand side.  I guess I can create a frame without a border.  I want to add IMG's and links for advertisers on the side.  
« Last Edit: July 18, 2002, 08:38:54 PM by Victor » Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:Adding links on the side of the Template
« Reply #1 on: July 17, 2002, 07:21:28 PM »
Reply with quote

In your template just create some nested tables.
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:Adding links on the side of the Template
« Reply #2 on: July 17, 2002, 07:51:17 PM »
Reply with quote

Here's what I did before I installed YaPP....

I created a second html/php page with just a top (my logo stuff), and a left-hand table. I then INCLUDE that file into template.

However, make sure the left-hand table is set with align=left and then put a "<div align=left>" before the table and a "</div>" after the table. That should float it to the left of all the tables in the template.php file.

Or install YaPP (or other CMS) like I finally did and have the entire site integrated into one package.

Good luck, Mad Moya

Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
Victor
Full Member
***
Posts: 105


I'm a llama!

Re:Adding links on the side of the Template
« Reply #3 on: July 18, 2002, 06:01:42 PM »
Reply with quote

Mad,

I'll try that.  Good Idea.
Logged
Victor
Full Member
***
Posts: 105


I'm a llama!

Re:Adding links on the side of the Template
« Reply #4 on: July 18, 2002, 08:38:16 PM »
Reply with quote

Anyone have code that I can add to my template that will add the links.  I just tried using a table and made a mess of it.  Thank goodness for backing up the template beforehand.

Logged
Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:Adding links on the side of the Template
« Reply #5 on: July 20, 2002, 06:03:10 AM »
Reply with quote

Put the links in a table and save them to another file (left.htm or left.php if it has php in it). Then just below the body tag in the template, put something like this:

<? include ("http://mysite/left.htm") ?>
Mine added a top and a left, and I simply called it banner.htm. :) But those div tags are what keeps it to the left of everything in the template file, so don't forget them around your links table.

Ok, found a copy of my banner.htm:

<body>
<div align="left">
  <table width="100%" bgcolor="#000000">
    <tr>
      <td width="129" valign="bottom"><img border="0" src="images/prod_turbine.jpg" width="127" height="121"></td>
      <td width="668" valign="bottom">
        <h3 align="center">Mad Moya's<br>
        <img border="0" src="images/ac2mlogoS.JPG" width="428" height="87">        
        </h3>
      </td>
      <td valign="bottom" width="82"><img border="0" src="images/girl.jpg" width="80" height="80"></td>
    </tr>
  </table>
</div>
       
<div align="left">
  <table bgcolor="#330033" align="left" width="12%" border="0" cellspacing="3" >
    <tr>
      <td valign="top" align="left" >
        <h6>&nbsp;</h6>
        <h6>
        <nobr><a href="http://ac2m.computers4gaming.com/index.php" >
        Latest News</a><br>
        <a href="http://ac2m.computers4gaming.com/lore.php">Information</a><br>
        <a href="http://ac2m.computers4gaming.com/forums/index.php?action=calendar">Calendar<br>
        </a>
        <a href="http://ac2m.computers4gaming.com/AC2DevChat.php" >Dev Chat Logs<br>
        </a><a href="http://ac2m.computers4gaming.com/Multimedia.php" >Screenshots</a><br>
        <a href="http://ac2m.computers4gaming.com/creatures.php">
        Creatures</a></nobr>
        </h6>
        <h6>
        <nobr>
        Fiction<br>
        &nbsp; <a href="http://ac2m.computers4gaming.com/cataclysm.php">Cataclysm</a><br>
        &nbsp; <a href="http://ac2m.computers4gaming.com/forums/index.php?board=2;action=display;threadid=54">Osprey</a></nobr>
        </h6>
        <h6>
        <nobr>
        <a href="http://www.computers4gaming.com" >Computers4Gaming</a></nobr></h6>
        <h6>
        <nobr>
        <a href="http://ac2m.computers4gaming.com/forums/index.php">
        Forums</a><br>
        &nbsp;&nbsp; <a href="http://ac2m.computers4gaming.com/forums/index.php?board=4">AC²
        News</a><br>
        &nbsp;&nbsp; <a href="http://ac2m.computers4gaming.com/forums/index.php?board=5">Site Info</a><br>
        &nbsp;&nbsp; <a href="http://ac2m.computers4gaming.com/forums/index.php?board=2">AC²
        Roundtable</a><br>
        &nbsp;&nbsp; <a href="http://ac2m.computers4gaming.com/forums/index.php?board=1">Cragstone
        Diner</a><br>
        &nbsp;&nbsp; <a href="http://ac2m.computers4gaming.com/forums/index.php?board=3" >AC¹
        Roundtable</a></nobr>
        </h6>
        <h6>
        <nobr>
        <a href="http://ac2m.computers4gaming.com/AC2Links.php" target="">Links</a></nobr></h6>
        <p>&nbsp; </p>
      </td>
    </tr>

  </table>
</div>

You'll have to remove my oh so lovely color scheme, and remember to change my links to yours, and then tweak it anyway you want. Save that as a file, then use the INCLUDE statement in the template.php file.

Good luck, MM
Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
Victor
Full Member
***
Posts: 105


I'm a llama!

Re:Adding links on the side of the Template
« Reply #6 on: July 21, 2002, 05:02:22 PM »
Reply with quote

Thanks,

I managed to change the links and colors.  Problem is, doesn't my server have to support SSI (Server Side Includes) in order to use the #INCLUDE command?

I tried it but it wasn't working.  I'm not 100% familiar with that though.
Logged
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Adding links on the side of the Template
« Reply #7 on: July 21, 2002, 08:45:44 PM »
Reply with quote

if u cant do it with shtml ssi, u can do it with php include like in mad moya's example
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Victor
Full Member
***
Posts: 105


I'm a llama!

Re:Adding links on the side of the Template
« Reply #8 on: July 22, 2002, 05:44:48 PM »
Reply with quote

PhP include?  I'm not familiar with that.

Where in the code is that?
Logged
Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:Adding links on the side of the Template
« Reply #9 on: July 22, 2002, 07:33:24 PM »
Reply with quote

That first bit of CODE at the top of my first message above. Just put the INCLUDE() statement just below the <BODY> tag in template.php and change the file name and path to your banner (or left side, or whatever).

HTH, MM
Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Graphics and Templates  |  Adding links on the side of the Template « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.030 seconds with 16 queries.