Can someone help me please?

I"m not even sure if what I am doing is even possible. But if so, how can I make it work? PLease help. Ok, http://www.deansanford.com is the site. Click on gallery at the top. and *poo* you see my problem. This is what I am trying to do.

<?php
//################### menu include ###############
$center = $_GET['center'];
elseif ($center == "zenphoto/index.php") { include("$center"); }
else { echo "unknown include file.\n"; }
//###################### end menu #################
?>

So on the menu top the link is index1.php?center=zenphoto/index.php

SO you can see I want to insert the album within the space provided.

Cause this works http://www.deansanford.com/zenphoto/ But I don't really understand how to edit that theme. I am very new at this.

Any help is greatly appreciated.

Thank you in advance.

Heather

Comments

  • It looks to me like you have dueling PHP scripts. You can try settin `mod_rewrite=false` in your zp-config.php file. Might work.
  • Foxy Member
    nope, it didn't work. :(
  • Seems like a awfully complicated way to integrate the two. May I suggest theming Zenphoto to match the site and linking from there?

    We can help you get started with theming Zenphoto if you need help with that. It's really quite easy to get started.

    What are you using to do the main site? Doesn't look like Wordpress.
  • Foxy Member
    Unfortunatly I use hard code. EditPadLt. If you can help me that would be great. I need to get this done tonite. Just tell me what to do. By the way I am using default-dark theme right now.

    Thank you
    Heather
  • Nothing like a deadline, eh?

    Since your handcoding everything, just theme zenphoto to match your site. All the theme files you'll need (including the css) are located in the default-dark theme directory, and you can just change the headers and footers to the ones you're using for the rest of the site. Should be relatively straightforward. Just look at the code in the default-dark dir for an idea of how to lay out the css and html. Might take a bit of poking around in the code, but it shouldn't take long to adapt your site html/css to zenphoto's theming. Just remember to edit index.php, album.php, and image.php with your header/footer/css information, and make sure to take note of the zenphoto "loops" and other php declarations as you go through it.

    That way, when someone clicks on "gallery", you direct them to the /zenphoto folder and the zenphoto theme will take it from there. You're not having to mess with any sort of redirection tricks with code then. I would suggest getting it working without mod_rewrite first, and then you can mess with pretty URLs later.

    Let me know what you think from here, and we can proceed with any theme questions.
  • And also, in your current layout, you're "including" index.php, which looks like it's sending the DTD twice, which will cause errors, which is why I think doing as a separate set of pages and theming it to match is a better way to do it and get it done in your timeframe.
  • Foxy Member
    Ok right now I am trying to add my CSS from the main site to the css of the template. I'm afraid of messing it up.
  • Foxy Member
    now it is looking like this. http://www.deansanford.com/zenphoto/index.php I can't get the images to show, even though I copied the whole folder info the themed section of dark.
  • Foxy Member
    wait! holy crap i did it. I love you thank you so much. xoxo
  • See? It's not that hard.

    That's what we're here for. Glad to help.

    We're here if you have any questions.
  • It's looking more integrated every minute. I've been refreshing and watching the changes. Looks good.
  • thank you for the compliments. :)
Sign In or Register to comment.