Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    Hey there,

    First off like to say I love this software.

    Now I'm having a certain problem. I have sort of a unique setup and I want to change the way locations work.

    This is what I'm trying to accomplish, see my plogger config is located in:

    /public_html/pictures - which is fine all images are located in /public_html/pictures/images/GALLERY NAME/

    Now on my website when I go to click on an Collection --- > Album ----> Pictures ----> when I go to select a picture to show the enlarged version it has a line like this:

    http://website_url.com/images/albumname/samantha/7.jpg ---- YES I know it's not located in /pictures/images which is fine

    However is there a way to tell the script to NOT use the picture name when I click on the link? Further more is it possible when somebody clicks on a picture to "enlarge" it, it instead redirects them to another page?

    Thanks for your help!
    •  
      CommentAuthorsidtheduck
    • CommentTimeMar 9th 2009
     
    Hi switchblade,

    Some answers and clarifications:

    Posted By: switchbladeHowever is there a way to tell the script to NOT use the picture name when I click on the link?
    You will need to have something for the image name, otherwise you are hoping to have the same URL link to the album AND each individual picture within that album. It's not possible. The new codebase for the next release removes the file extension from the URL, so hopefully that will satisfy your needs. I can direct you to the link if you wanted to try it out.

    Posted By: switchbladeFurther more is it possible when somebody clicks on a picture to "enlarge" it, it instead redirects them to another page?
    Do you just want it to open in a new window? If so, just add a target="_blank" in the <a> tag in the picture.php file in the theme you are using. This won't validate as XHTML 1.0 strict, but it will open the link in a new window for you (otherwise, you have to use javascript to get it to open AND validate at the same time if that's the way you want to go).
  2.  
    Hey there,

    Thanks for the message.

    Really all I basically want to do is when somebody goes to view the large picture of any model, they instead get redirected to an affiliate page specific for that model.

    Being able to specify the place to redirect for each model is crucial.

    Thanks for your help!
    •  
      CommentAuthorsidtheduck
    • CommentTimeMar 9th 2009
     
    Okay, I think I'm starting to understand what you are wanting. However, your directory structure confuses me a little. In addition, is there any relationship between the image name or image caption and the redirection site you are trying to redirect to? In your example above "7.jpg" does not necessarily strike me as relevant to the redirection site.

    Probably the easiest way to accomplish this is to use the caption tag of the image to link to the redirection site. For example, you would enter the caption "http://www.site2.com/redirection" for image 7.jpg. Then in the 'album.php' theme file for the theme you are using, you would edit the code from:
    print '<li class="thumbnail"><div class="tag"><a href="' . plogger_get_picture_url() . '">' . $imgtag . "</a><br />";
    to:
    print '<li class="thumbnail"><div class="tag"><a href="' . plogger_get_picture_caption() . '" target="_blank">' . $imgtag . "</a><br />";

    That should redirect you to the new site specified in the caption in a new window (or tab).
    Thankful People: switchblade
  3.  
    Hey there,

    Not gonna try anything just yet until I know it's exactly what I need.

    To answer your question, each gallery has pictures number 1 - 20.jpg, these are pictures of girls. So the collection name is "Sexy Girls" then it goes to "Girl Name" then the pictures for each girl are numbered 1 - 20.

    Basically when somebody clicks a picture to view "Full Size", it instead redirects them to an affiliate page, not with the matching picture number, just a bunch of pictures for that 1 particular girl.

    And reason why I need to modify WHERE each picture being clicked is going is because I have 120 female gallerys, each female has a gallery with the affiliate.

    I can't have all pictures redirecting to the same girl.

    So for example if I'm clicking a picture in

    "Sexy Girls" ---> "Girl Name 1" I want it to redirect to that girl names affiliate page.

    If I click on

    "Sexy Girls" ---> "Girl Name 4" I do NOT want it to go to the same page as the girl above, instead I want her to go to her own affiliate page.


    Thanks!
    •  
      CommentAuthorsidtheduck
    • CommentTimeMar 10th 2009
     
    Yep, I think I understand all that. See the second half of my post above using "Captions" (or even "Descriptions") to enter in the affiliate page link and modify your theme file accordingly. You can specify a separate link for each picture and the users will go to the affiliate page on clicking the thumbnail image.

    Let us know if you need any additional help.
  4.  
    Hey there,

    Thanks for the help, you are very close. I tried that and it's basically what I want however it's in the wrong section.

    It's not the Thumbnails I want it to do this function, it's the next picture after you click the thumbnails.

    So I believe it's some where in Picture.php ?

    I've tried to figure it out on my own but haven't been able to figure it out!

    Thanks!
  5.  
    Bumping topic :)

    Been trying to figure it out still, haven't come up with a solution, or is there no solution currently?
    •  
      CommentAuthorsidtheduck
    • CommentTimeMar 17th 2009
     
    switchblade,

    Same thing, different file. Open picture.php and edit the following code:
    print '
    <div id="picture-holder">
    <a accesskey="v" href="'.plogger_get_source_picture_url().'">'.$imgtag.'</a>
    </div>';

    to be:
    print '
    <div id="picture-holder">
    <a accesskey="v" href="'.plogger_get_picture_caption().'">'.$imgtag.'</a>
    </div>';
  6.  
    Wonderful!

    Why couldn't I figure that out?

    Thanks so much!