Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS/SSI + PHP = Gallery (but I'm lost)

Status
Not open for further replies.

skunkboynet

Programmer
Joined
Apr 26, 2004
Messages
4
Location
US
I've posted elsewhere asking for help but nobody seems to be able to figure it out; so, why not go to the source...

What I've got:

Existing code is a page with my migration toward CSS/SSI but the images are coded the long way.

This script in a new directory... with the images from the dylan.html page copied into it.

I know I "should be able to take a basic page and put the script in the middle. But, changing the code to cooperate is what I'm not sure of. My meager attempt (currently experimenting trying to figure it out so I wouldn't pull the code from here if you were going to help) is at this garbled mess of a page.

Barebones.html is a copy of the main code used on all of my pages.

Yes, I do have .htaccess access and the following lines are in it:
AddHandler application/x-httpd-php .php .htm .html
AddHandler server-parsed .html
Options +Includes
AddHandler server-parsed .htm
Options +Includes

I'd like to limit the height of the thumbnails to 100 and understand where this is at. I see in there where the limit is on how many images per page but I would like to limit it to five columns per row. I would assume that once I put it into my table,it will display as I would like. I'd like the large image it pulls up to be whatever the actual image is but the way I'm reading it, I have to use a preset dimension. The problem is, not all my pictures have a dimension in common. And of course, in my existing code is a title section for the page. I was wanting to keep this controlled by the html instead of the script so that I can point to profile images and give the person's name and location at the top.

If anybody can get this script to work with my code, that would greatly appreciated. Sure, I'll keep working at trying it myself but I've been trying for more than a few days. Of course, if someone is kind enough, I'll make sure I give credit where credit is due and then I'll also use it to try learning from.

Thank you ahead of time for any help,
skunkboy
webmaster of skunkboy.net
- my site's contact page
 
hmmm I never thought of that. I was just trying to run everything inline. - we'll see what happens that way.
 
<<-- grabs cast iron skillet and bashes self over head.


Okay... so that's that little bit of it... now I just need to tweak the settings for display.


hmmm, I was already using SSI to call pages, why didn't I think to call the php.
 
I was trying to mix both my basic file for all of my pages with the php script code... I was trying to put it all into one file. I'm already using CSS/SSI... why didn't I think to just pull up the php as another SSI? I wasn't thinking... and I've wasted at least four days trying to figure it out. -such an obvious answer. Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top