|
Re: This one will never fly but here it is anyway. [message #13099 is a reply to message #13097] |
Mon, 22 September 2003 14:22 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
User can already 'mess' with the stylesheet without touching other templates and the stylesheet has not changed in many versions so people just modifying forum.css.tmpl were not affected.
FUDforum Core Developer
|
|
|
|
|
|
Re: This one will never fly but here it is anyway. [message #13116 is a reply to message #13109] |
Mon, 22 September 2003 18:57 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Wrong.
First of all in most cases you should edit header.tmpl & footer.tmpl. That will allow you to add HTML & PHP code to the top & bottom of all your pages.
Then if you want to modify the forum's color theme to fit your site's design you modify forum.css.tmpl. The 3 files I've mentioned very rarely change and are not affected by upgrades.
FUDforum Core Developer
|
|
|
|
Re: This one will never fly but here it is anyway. [message #13133 is a reply to message #13127] |
Tue, 23 September 2003 00:22 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
The example site once you take away the dynamic news really becomes a side bar and a small piece of content at the top. It would trivial for anyone who knows HTML to simply copy & paste that into forum's header.tmpl rebuilt the template and go for a beer to celebrate their accomplishments.
Where is the difficulty?
FUDforum Core Developer
|
|
|
Re: This one will never fly but here it is anyway. [message #13134 is a reply to message #13127] |
Tue, 23 September 2003 00:33 |
|
esm2002
Messages: 339 Registered: May 2002 Location: Atlanta Georgia
Karma: 0
|
Senior Member |
|
|
I'm not sure that I have anything to add to this discussion but I think many folks want to integrate FF to their site.
Having done HTML pages the hard way I finally adopted a 5 column template (using tables, ugh!) which I recently reduced to 3 columns by removing the 2nd and 4th columns (both of which just provided separation from center column and the columns on the outside).
And I recently came across a site that had a 3 column format using just the DIV tag for its structure. So I'll spend some time learning it. Until then, here is what I did. For my site I removed the left and right columns since I didn't use anything on the sides but I have added them back in the below presentation ( so if I made a mistake, please forgive me, but you get the idea ).
go into the Admin Control Panel and edit the header.tmpl file thru the Template Editor. I saved the original header to a file and replaced it with the following:
code |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Your title here</title>
<meta name="DESCRIPTION" content="all the meta stuff here">
<style type="text/css">
.tbl_caption {
font-family: tahoma, verdana, myriad web, syntax, sans-serif;
background-color: #0084B5;
color: white;
font-size: 11px;
font-weight : bold;
}
</style>
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<!-- from ff except for the ih.css-->
<script language="javascript" src="lib.js" type="text/javascript"></script>
<link rel="StyleSheet" href="/ff.css" type="text/css">
<!-- from ff -->
</head>
<body text=#000000 vLink=black aLink=#ff0000 link=black leftmargin=0 topmargin=0>
<br>
<div align=center>
<!-- logo goes here -->
<img src="http://www.your_site.com/images/banners/logo3.jpg" width="150" height="100" border=0 alt="">
<br><br>
<table border=1 cellspacing=0 cellpadding=4 width="886" bordercolor="#ffffff" bordercolorlight="#000000">
<tbody>
<tr class="tbl_caption">
<td>
<p align=right>
I put a menu here across the top
</p>
</td>
</tr>
</tbody>
</table>
<br>
<!-- header.html -->
<!-- START of content table -->
<table>
<tr>
<td>left menu/content here</td>
<td>
<!-- this will be the TOP of the center content - in this case - FUDFORUM -->
<!-- from ff -->
<table width="90%" border="0" cellspacing="3" cellpadding="5">
<tr><td class="ForumBackground">
<!-- from ff -->
|
I then did the following to the footer.tmpl after saving the original:
Quote: |
<!-- from ff -->
</td></tr></table>
<table width="90%" border="0" cellspacing="3" cellpadding="5"><tr><td class="ForumBackground" align="center">
<b>.::</b> <a href="mailto:{GVAR: ADMIN_EMAIL}">{MSG: forum_contact}</a> <b>::</b> <a href="{ROOT}?t=index&{DEF: _rsid}">{MSG: forum_home}</a> <b>::.</b>
<p>
<span class="SmallText">Powered by: FUDforum {GVAR: FORUM_VERSION}<br />Copyright ©2001-2003 <a href="http://fud.prohost.org/" class="GenLink">Advanced Internet Designs Inc.</a></span>
</td></tr></table>
<!-- from ff -->
<!-- footer.html -->
<!-- this will be the BOTTOM of the center content - in this case - FUDFORUM -->
</td>
<td>right menu/content goes here</td>
</tr>
</table>
<!-- END of content table -->
<br><br>
<table width="100%">
<tr>
<td>
<div align="center">
<p class=copyright>Copyright ©2003 <a href=#>your_site.com</a><br>
</div>
</td>
</tr>
</table>
</body>
</html>
|
I tried to add some comments to show what I did. Basically, what I did was to wrap my standard template around FUDForum by taking my 3 column template and splitting it at the top of the 2nd (the middle ) column and putting the top half into the header.tmpl (with some adjustments for including the FF code needed there) and putting the bottom half of my template into the footer.tmpl.
The key to what I did, I think, was to have a standard 3 column template which I could spit and wrap around FUDForum. My early templates, years ago, were not set up that way and I doubt that I could "wrap" them around FUDForum.
Obviously, you don't need to use the 1st or 3rd column but they are there if you need them. You could use jus the 1st column ( for say a menu or ads ) and 2nd column for FUDForum.
I also created a new css to move it out of the "protected" area. Just made it easier to edit.
Hope I am not addressing some other problem...
Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
|
|
|
|
|