dont need the album...can I redirect to the pictures?

Hey guys I just downloaded the script and it seems like it will do exactly what i need it too but there are a few adjustments I would like to make and I was hoping that some one could help me out or if this is a repost atleast point me to the info.

I would like to know if there was a way to bypass the "albums" and just go straight to the pictures inside the album as I wont be using more then one and it is pointless to have visitors click on an album. for example I have it setup in http://www.beyondrandom.com/shirttest but I want it to go directly to http://www.beyondrandom.com/shirttest/test/

Did I explain that right? lol sorry if its a little off but I hope someone can help me out. Thanks.

Comments

  • acrylian Administrator, Developer
    Yes, you can. Locale the album link within the `next_album()` loop on index.php and change it like this:
    ` <?php $firstimage = $_zp_current_album->getImages(); // get the first image of the current album in the loop?>



    " title="View album: <?php echo getAlbumTitle();?>"><?php printAlbumThumbImage(getAlbumTitle()); ?>`

    But note that this will be problematic if you plan to use subalbums, because they would be displayed on album.php and skipped too.
  • I really appreciate your comment back! I used the code that you supplied me with but it still shows the album on the homepage. I'm trying to get it to go directly to what you would see after clicking the album as I will only have one album so there is no need for it to first show the album then require people to click the only option you know?
  • acrylian Administrator, Developer
    I did understand that you wanted to skip the thumbnail view. The code I posted is for that. You say you will have only one album, so do you probably plan to use Zenphoto as a kind of photoblog? It would be possible to modify zenphoto to do that. A way would be to show the first image on the index.php page and then "fake" the next image link to jump to image.php with the second image of that album. You use and modify the code I posted for that.

    Mod_rewrite redirection as you asked on your other thread would be a possiblity as would be a html redirection.

    Do you use Zenphoto in combination with another site? If so you could try a static link, too.

    PS: If you are really trying to setup a pure photoblog, you might try www.pixelpost.org, too, that works exactly that way (not that I really like to suggest one of our opponents...:-))
  • Yea I wanted to skip the album thumbnail view and just go straight to a gallery view of the album since it would be a straight forward photo blog. I love the script because of its simplicity of uploading and editing of the captions and all. The default layout fit my initial idea of what I want my site to look like. My site is right now running along side my already established site just because I wanted to test it out and get it to where I like it before hosting it all on its own. My plan is to run it integrated with wordpress but so far that plugin has given me problems as well!! lol I really appreciate your help and the fact that you linked me to a competitor is nice but I think i'll see you guys through! lol

    If I made a screen cast of what exactly I want, would you be willing to customize it for me? with compensation of course :) Because there are a few other custom dealings I would like done that I know would be easy for someone with coding experience like your self such as adding more thumbnails across...like instead of default 3 change it to 5 or 6 and then actually integrating it into a wordpress for me.

    If so let me know, Thanks again!
  • acrylian Administrator, Developer
    I sadly currently do not have the time to do that for you. But you could post a link to the screenshot if you like and we'll see if we can guide you to do it yourself. Maybe we already have the functions for the things you want to do.

    As to the above code, you could simply remove the next_album loop, then the album would not be shown anymore.
  • heres a screencast of me putting in the code. This is my first screen cast so I hope you can understand me and it was done well enough lol Thanks again for your help.

    http://screencast.com/t/S5ZHlhzmd
  • acrylian Administrator, Developer
    Ok, I think now got what you want to do. There are actually two solutions for that:

    1. a simple html meta redirection:
    `

    /">

    `

    2. htaccess redirection:
    `Redirect /zenphoto http://www.yoursite.com/zenphoto/`
  • im going to get a new domain just for the site. at that point ill do a clean install then start from scratch. the meta redirection should go in the themes index.php correct? and the htaccess....should that just be put any where within there? I know you said that you were too busy to do this for me but is there any other developers here that you think would be able to do it for me for alittle donation through paypal? thanks again
  • acrylian Administrator, Developer
    You can really do that yourself. Just add the meta line within the <head></head> part of the theme's index.php (be sure to make a blank page out of it, since it may be displayed shortly).
    Just use the album url you see when browse your only album. If you use the meta redirection you don't need the htaccess redirection of course.
  • oh forgot to inform ya that I got it!! I appreciate your help! keep a look out because Im sure I'll be asking some more questions soon enough lol thanks again
  • Hi Acrylian. I am also trying to redirect from the index page to the album page. I have tried to do it by posting your code into the head of the index page but to no avail. Below is the code I am using

    <head>
    <?php zenJavascript(); ?>
    <title><?php echo getBareGalleryTitle(); ?></title>
    <link rel="stylesheet" href="<?php echo $zenCSS ?>" type="text/css" />
    <?php printRSSHeaderLink('Gallery',gettext('Gallery RSS')); ?>
    <meta http-equiv="refresh" content="5; URL=<http://www.hedshot.co.uk/index.php?album=cartoons>/">
    </head>

    As a result the page goes to my index page, waits a few seconds and then tells me that the url can not be found on the server. Can you tell me exactly where I am going wrong.

    If it is easier could you tell me how to implement the htaccess redirection. I dont seem to have a .htaccess file in the folder!

    Please help. Zen photo seems to be a brilliant product but I am sadly not!

    Thanks
  • acrylian Administrator, Developer
    The htaccess file is probably invisible on your system since its name starts with a period. I am not an expert of htaccess actually, so I just add the third method of redirecting I forgot above:

    Place on top of your index.php file before everything else:
    `<?php header("Location: ttp://www.hedshot.co.uk/index.php?album=cartoons"); ?>`
  • That's done the trick. Thank you
Sign In or Register to comment.