Two formatting questions please?
|
daryl.com
Joined: 2004-01-07
Posts: 43 |
Posted: Sun, 2004-01-11 02:46
|
|
1. After someone clicks on one of my albums and gets inside, i want them to still be able to click on my year layout, 2002, 2003, and 2004 to have them be able to(at all times) go to those years. I have it on the front page of my gallery but dont know which page to put it on for the rest. 2. If I want to reformat the text and color of www.daryl.com/gallery/years.php what can i do that with and where should i place it. Also, will any text reformatting mess up the calendar? Ok, so it was 3 questions. Thanks for your help. :D |
|

Posts: 25944
1. I would edit gallery.header.default and call it gallery.header. See PixelPoet for some great tutorial at: http://www.eclecticpixels.com/tutorials/gallerytips/part3.php This would allow you to have a consistant header on every page.
2. You could use CSS for this. I am new CSS stuff :wink: but is very powerfull. On your calender give some formating. You are part way there you have a class of class="calendarHeader" already and in a CSS you could give that some formatting etc.
In the head of your page place this code:
<link rel="stylesheet" type="text/css" href="http://www.daryl.com/gallery/css/standalone_style.css.default">Then you could edit this CSS by adding a calenderHeader class. Look at you defalt and see how text and links etc are formated for each class.There is LOTS of CSS info on Google but like learning html it will take some time as well. :o
Good luck.
Dave
Posts: 43
<?php // This is the default gallery header (for the main gallery // page: albums.php). It's companion is gallery.footer.default. // // To override this header, create a file called gallery.header // in this directory. // // NOTE: This header cets inserted below the <body> tag. // // Some tips: // * Some application variables: // - Gallery Title: $gallery->app->galleryTitle // // $Id: gallery.header.default,v 1.13 2003/10/05 00:53:42 beckettmw Exp $ ?> <?php includeHtmlWrap("wrapper.header"); ?> <table width="100%" border="0"> <tr> <td> <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" class="mod_headliner"> <tr valign="middle"> <td class="leftspacer"> <td> <table cellspacing="0" cellpadding="0" class="mod_toplight_bg"> <tr> <td class="mod_toplight_left" align="right"></td> <td nowrap class="head" align="left"> &<?php // echo $gallery->app->galleryTitle ?> <img src="../watkinsworld5.jpg"> <br> <font face="Arial" size="2">&&&&&&<a href="http://www.daryl.com/">home</a> - <a href="mailto:daryl@daryl.com">email Logan</a> - <a href="http://www.daryl.com/gallery/years.php">calendar</a> ( <a href="http://www.daryl.com/gallery/years.php?month=0&year=2002">2002</a> - <a href="http://www.daryl.com/gallery/years.php?month=0&year=2003">2003</a> - <a href="http://www.daryl.com/gallery/years.php">2004</a> )</font></td> <td class="mod_toplight_right" align="left"></td> </tr> </table> </td> </tr> </table> <table width="100%" cellpadding="0" cellspacing="0"> <tr> <td class="mod_under_hl"></td> </tr> </table> </td> </tr> <tr> <td valign="top">Here is my gallery.header and it is set up the way you mention it. However, inside my gallery the links arent there. Also, regarding CSS and my formatting, you say to look at my default(default what?) and that i am part of the way there, not sure what you mean...can you give more details on which files to edit....ill figure out the CSS stuff, just need to know where to begin editing. Thanks,
:D
Posts: 25944
Q2. If you look at the source of your calender page you have
class="calendarHeader" for the days of the week: SMTWTFS
With this class you can change the font color, size, spacing etc. in a CSS.
Your stsyle sheet will have link properties as well so it will mach the rest of the site.
Since the rest of your site uses this CSS:
<link rel="stylesheet" type="text/css" href="http://www.daryl.com/gallery/css/standalone_style.css.default">
start by editing it. Remember to remove the .default in case you mess up as much as I do. :D
So to summ up:
a. You need to add a CSS to the head of the page. (<link rel="stylesheet" type="text/css" href="http://www.daryl.com/gallery/css/standalone_style.css">
b. Edit the CSS to have a calendarHeader class.
c. Edit the class to the size and color you want.
d. Add more classes to the CSS
e. Add more classes to the calender page.
As for Q1 I will look and see what I can find on your site.
Dave
Posts: 25944
Q2. Sorry my mistake.
If you want to have the same info on every page you can look at my site the this is the code that I used in the wrapper.header:
<!-- THIS IS THE ROW FOR THE HEADER GRAPHIC OR HEADER TEXT wrapper.header -->
<tr><td><? include("http://langleycom.com/dmoore/include/sub-top.php"); ?>
</td></tr>
<!-- THIS ROW COULD BE FOR A HORIZONTAL NAVBAR ACROSS THE TOP OF THE PAGE -->
<tr><td><? include("http://langleycom.com/dmoore/include/menu.php"); ?></td>
</tr>
So Edit the wraper.header in the html_wrap directory and you will have the same header info on every page. You can add any html or, as in my case, I use the same header and navigation bar on many pages, so I use an include.
Dave