Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Redirect if 'not' logged in

2

Answers

  • Here it is, thanks!

  • ok there is a couple places you need to add oachegroup instead of home. Home represents the forum, normally it would say forum instead of home so just change the two that say home to oachegroup. That should do it.

    switch($show){

    case 'home':

    to

    switch($show){

    case 'oachegroup':

  • Changed these two with no change:

    $ex = explode('/', $path);
    $show = 'oachegroup';
    if(isset($ex[2])){
    
    // first check if it is a directory
    
    if(is_dir($dir.$ex[2])){
            $show = 'gallery';
            $doi = str_replace(array('-','_'),'x', $ex[2]);
            $folder = $ex[2];
        } 
    }
    
    switch($show){
    
    case 'oachegroup':
    
  • This is the location of the one existing image http://oachegroup.org/oachegroup/gallery/graduation2013

  • ForceRedirect - Disabled.

    Gallery still Page Not Found at http://oachegroup.org/oachegroup/gallery/graduation2013 when I click on View or Upload More Pictures at http://oachegroup.org/gallery

  • It seems odd that I can view the full image when I click on the thumbnail but I cannot get to the same location when I choose View or Upload More Pictures

  • I just right-clicked and looked at Properties and discovered that the thumbnail is located at http://oachegroup.org/uploads/picgal/graduation2013/image1.jpg then when I click on the thumbnail it displays the image from http://oachegroup.org/uploads/picgal/graduation2013/image1.jpg

    Does that help at all?

  • yes the images are stored in uploads/picgal

    that is where they get uploaded then they render in the gallery page .

    so it is there just need to see why it is not working . Probably a small detail ...with the links

  • So it's somewhere in the zipped file I sent?
    I need to run an errand so will look for your reply a little later.
    Sure appreciate the assist!

  • edited July 2013

    ok I think I know where the problem is ....

    this editor is not working ...

    That link needs to have oachegroup instead of the / like I added it here

    Please look for that part and change the / for oachegroup

    I will zip you one with the changes made ok hold on ..

  • edited July 2013

    @DavidColburn Here is your gallery.php with the changes let me know if that fixed it

  • I just realized something .... your forum is http://oachegroup.org/ ?

    then you installed in the root and need to change those links again with a / instead of oachegroup

  • Here is a zip of the gallery.php for installations in the root.

    I installed a new forum in the root of one of my domains and tested it and it works

  • edited July 2013

    I'm back ... will give your file a quick test ... thanks!

  • edited July 2013

    hey I found some issues with that so I tested further and I think this one is the one that will work for you .

    because your forum is in the root I made some changes on the parts that say show.

    Also when you click view or upload and it takes you to the album page you will need to click the view or upload again so the form shows up.

  • I don't get the error but it doesn't provide a place to add new pictures to the existing Album.

    This is what I see:

    Picture Galleries
    graduation2013
    User Images

    Here you can add new Albums to the Gallery

    Create new Album, Please Pick a Name - No Spaces

    NOTE1: It is unclear on the Gallery window how one returns to the Home page.
    NOTE2: It is unclear on the Gallery window what is the purpose of the "GO" button.
    NOTE3: When one clicks on a Thumbnail it opens a new Window - that's kind of a dead end - perhaps it might contain instructions explaining that to return to the Gallery one must click on the task bar below to go to the previous window (the Back arrow won't work).

  • If you added the second zip with some changes , you would click the view and upload then you would click it again on that page and the form to upload will appear.

    I know it's not elegant but that is the best I could do. The way the upload form works is it creates a virtual page.

    Because your forum is in the root, when you click the link again to view or upload the link will look like this

    http://www.yoursite.org/gallery/gallery/album

    Because gallery is the main gallery, then there is another directory from that particular gallery. I will continue to get this better but for now that is the best I can do.

    So basically you ned to replace the gallery.php with the last one here that I uploaded.

    To add pics you will need to click the link again so the form shows up. And also the thumbs so you can delete or edit the caption.

    NOTE1: It is unclear on the Gallery window how one returns to the Home page.

    This all happens in one page but it changes based on whether we are in the main gallery or in the upload area.

    gallery is the main page gallery/album is where it uploads in this case it is
    gallery/gallery/album

    NOTE2: It is unclear on the Gallery window what is the purpose of the "GO" button.

    The go back to main gallery button refreshes the page and returns to the add album status.

    NOTE3: When one clicks on a Thumbnail it opens a new Window - that's kind of a dead end

    I made the links to the images open in a new window so as to not have to click back.

    You can use the fancy box plugin to make them come up in a lightbox type thing, a little window.

    If you do not want the images to open in a new window, you can change target="_blank" to

    target="_self".

  • If you change this

    echo '<  div class="clr" >< /div >< div class="linkBar" >< a class="Button" href="gallery/'.$vv.'" >View or Upload More Pictures From '.$title.'< /a >< /div >
    
    

    to this then you don't have to click the link twice.

    echo '< div class="clr" >< /div >< div class="linkBar" >< a class="Button" href="gallery/gallery/'.$vv.'">View or Upload More Pictures From '.$title.'< /a >< /div >
    
  • I need to remember to Refresh the screen every time I look at this Forum else I miss new posts other than my own.
    I just uploaded your newest gallery.php and as you say, it's a kludge, but does work.
    Is there a way to upload a bunch of pictures? Doing these one at a time can get tedious.

Sign In or Register to comment.