Author |
Message |
24/10/2004 18:57:00
|
TomH
Beginner
Joined: 21/10/2004 12:42:38
Messages: 33
Offline
|
I have incorporated the advanced guestbook into my own web page by editing the header after reading a post from carbonize, all has worked out well, except the font sizes are a little too big now, if I try to change them in Admin styles nothing happens. If I look in the header php I also cannot see a way to change it, I do have a style sheet in there for the link styles but the other css in there is for other parts of the site. Could this be whats screwing it up, this is the header php,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Fellglint Pugs</title>
<style type="text/css">
<!--
body {
background-image: url(img/background.gif);
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #FFFFFF;
}
-->
</style>
<style type="text/css">
<!--
.style3 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
.style6 {
font-size:16px;
color: #660000;
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
.style7 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #660000; }
.style9 {color: #000066}
.style10 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #000066; }
.style11 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: #000066; }
-->
</style>
<link href="mystyles.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#9DB5FF"><img src="img/ella.jpg" width="209" height="150"></td>
<td bgcolor="#9DB5FF"><div align="right"><img src="img/mountain.jpg" width="541" height="150" align="right"></div></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" height="636" valign="top"><table width="180" border="0" cellpadding="12" cellspacing="5" bgcolor="#9DB5FF">
<tr>
<td width="160"><div align="center"><a href="http://www.fellglintpugs.co.uk/index.htm" class="style3">Home</a></div></td>
</tr>
<tr>
<td><div align="center" class="style3"><a href="http://www.fellglintpugs.co.uk/about.htm"class="style3">About Us</a> </div></td>
</tr>
<tr>
<td><div align="center"><a href="http://www.fellglintpugs.co.uk/dogs.htm" class="style3">Our Dogs </a></div></td>
</tr>
<tr>
<td><div align="center"><a href="http://www.fellglintpugs.co.uk/puppies.htm"class="style3">Puppies</a></div></td>
</tr>
<tr>
<td><div align="center"><a href="http://www.fellglintpugs.co.uk/photos.htm" class="style3">Photos</a></div></td>
</tr>
<tr>
<td><div align="center"><a href="http://www.fellglintpugs.co.uk/links.htm" class="style3">Links</a></div></td>
</tr>
<tr>
<td><div align="center" class="style3"><a href="http://www.fellglintpugs.co.uk/contact.htm">Contact Us </a></div></td>
</tr>
<tr>
<td class="style3"><div align="center"><a href="http://cgi.fellglint.plus.com/guestbook/">Guest Book </a></div></td>
</tr>
</table>
<p align="center"> </p>
</td>
<td width="80%" valign="top"><p align="center">
and this is alink to the guestbook http://cgi.fellglint.plus.com/guestbook/
Thanks for any help
Tom
|
|
24/10/2004 19:05:13
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
The guestbok's font sizing worked by putting the sizes you set in the admin area into a css block. I dealt with this problem by editting the entry template and replacing the class attributes with as taken from the header.php.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
24/10/2004 19:29:01
|
TomH
Beginner
Joined: 21/10/2004 12:42:38
Messages: 33
Offline
|
Thanks for your reply carbonize, I'll give it a try and see how it goes on.
Tom
|
|
24/10/2004 19:52:05
|
TomH
Beginner
Joined: 21/10/2004 12:42:38
Messages: 33
Offline
|
Is this where I need to paste the code in the entry php, <td class="font2" valign="top" width="8%"><b>$id)</b></td>, if so what about the font 1 size? Just a bit confused.
Thanks
|
|
24/10/2004 21:14:47
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
thats just an example. You'd have to use tb_font_1 for font1 and tb_font_2 for font2 or add them to the style sheet you are alread using.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
24/10/2004 21:50:21
|
TomH
Beginner
Joined: 21/10/2004 12:42:38
Messages: 33
Offline
|
Thanks for your reply, I have tried what you said but the text size doesn't change, do you have any other ideas that I could try? must be my style sheet screwing things up, but I need to keep the links on the page the same size.
Thanks
|
|
24/10/2004 21:55:44
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Did you edit the entry.php template? Other than that just add the font1, font2 entries to your CSS.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
24/10/2004 22:08:35
|
TomH
Beginner
Joined: 21/10/2004 12:42:38
Messages: 33
Offline
|
I haven't added them to the style sheet, the only external style sheet I have is the one for the link styles, this is the entry php
<tr bgcolor="$bgcolor">
<td width="32%" valign="top">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td style="font-family: $VARS[font_face]; font-size: $VARS[tb_font_2]; color: $VARS[text_color]" valign="top" width="8%"><b>$id)</b></td>
<td width="92%"> <img src="$GB_PG[base_url]/img/ip.gif" width="14" height="14" alt="$LANG[AltIP]"> <img src="$GB_PG[base_url]/img/browser.gif" width="16" height="16" alt="$row[browser]">
$URL
$ICQ
$AIM
</td>
</tr>
<tr>
<td colspan="2" class="font1"><b>$row[name]</b> $GENDER</td>
</tr>
<tr>
<td colspan="2" class="font1">$row[email]</td>
</tr>
<tr>
<td colspan="2" class="font2">$LANG[FormLoc]:<br>$row[location]</td>
</tr>
</table>
</td>
<td width="68%" class="font1" valign="top">
<div align="left" class="font3"><img src="$GB_PG[base_url]/img/post.gif" width="9" height="9">$DATE $HOST
<a href="$GB_COMMENT"><img src="$GB_PG[base_url]/img/edit.gif" width="18" height="13" border="0" alt="$LANG[AltCom]"></a>
$EMAIL
</div>
<hr size="1"><div align="left">
$USER_PIC $MESSAGE
</div>
$COMMENT
</td>
</tr>
could you point me in the right direction where to edit it, and what to place where. Sorry to sound so dumb.
Tom
|
|
25/10/2004 01:11:27
|
TomH
Beginner
Joined: 21/10/2004 12:42:38
Messages: 33
Offline
|
Sorted, I just pasted the required code from the original header php into the modified one and removed the css.
Thanks for your help Carbonize.
|
|
|