Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Try Vanilla Forums Cloud product

Feedback Issues Questions for Galleries Plugin

This discussion is related to the Galleries addon.
vrijvlindervrijvlinder Papillon-Sauvage MVP

Please post any feedback about this plugin here, I hope you enjoy it and is useful to you.

«134

Comments

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    This is the icon I ended up making I hope it does not violate any licenses ..

    If it does I made another and here it is too...

  • I have followed the instructions and enable the plugin, but nothing happens. My version is 2.0.18.8

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited April 2013

    Ok first tell me how you have installed the forum, is it called forum or is it in the root?

    If it is in the root, you need to change the parts that say forum to say / or home

    in the gallery.php .

    Please describe what does not work, you enable and it does not do what?

    Look in the uploads folder to see if the new album you made is there and if images were uploaded. If they were then the problem is with the links and path which needs to be changed to your set up.

    Also if you get a 404 not found, disable the plugin then enable again, sometimes the route does not stick on the first try.

    The most important thing is to change the parts that I mentioned if your forum is not in a directory called forum.

  • hi @vrijvlinder it's not working on v2.1

  • DenisSDenisS My brain hurts Buriram ✭✭

    I installed it checked permissions all ok, and when i went to upload a photo i got this message. Page Not Found
    The page you were looking for could not be found.

  • hi @vjijvlinder,
    Can you help me with the part you mention ''add the 'plugincontroller' to the array of places the fancy box will be used on'' please.
    Where do i start with this?
    Thanks in advance
    Starman

  • No luck here.. forum is just root / and I made all the necessary changes in gallery.php .. I'm noticing that the button on the site is going to the /gallery directory and there is none so it's just a blank page.

    Is there more to change / reroute?

    Thanks,
    -Steve

  • On 2.1 here

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited May 2013

    @BBSForum

    If you installed in the root, then you need to also change /gallery to gallery.

    in the default.php of the plugin

    
    class Galleries extends Gdn_Plugin {
    
        public function Base_Render_Before($Sender) {
            
    $Session = Gdn::Session();
    
           if ($Sender->Menu){
    $Sender->Menu->AddLink('Gallery', T('Gallery'),'gallery',array('Garden.SignIn.Allow'),array(), array('target' => '_blank')); 
        }
        
     }
    

    I believe that will work but no way of testing I don't have installed in the root .

    here is the file on github with annotation where to change the stuff.

    https://github.com/VrijVlinder/Galleries/commit/bc7cd3eccfcd75b2913081142dd2ccc0d7ff5031

    example:

    href="/forum/gallery/'.$vv.'"

    in order for the url to be correct this would have to be:

    href="gallery/'.$vv.'"

    so the url would end up :

    yoursite.com/gallery

    here it would also change but to / or home

    img src="/forum/'.$dir.$folder.'/'.$pg2[0].'"

    img src="/'.$dir.$folder.'/'.$pg2[0].'"

    so the url will look like :

    yoursite.com/uploads/picgal/name of album/image1.jpg

    to be certain you will have to play around with those paths and find the right one. I believe this is the correct format . I have a very buggy 2.1 install and it works well.

    I also got 404 and errors but due to having missed a couple of those changes. After fixing it it worked fine.

    The albums are made and stored in the uploads folder under picgal . There is where the images are called from their individual folder. It is one view but it changes depending on which album you choose to upload to.

    then the upload form and the small pics with names and edit buttons to delete or save a change comes up and uploads to that specific folder/album.

    They are then displayed in the galleries. After you upload or delete, you may need to refresh the page or go to the main galleries view to see the changes.

    Once you get past the path issues it is rather simple.

    You can view this instal on 2.1 here:

    http://www.fumamx.org/foro/gallery

    I had to change all the forums to foro....also check in the routes in the dashboard if the gallery route appears there...if not disable and enable again .

    hgtonightDavidShine
  • Sorry for the delay getting back to ya.. Appreciate the post.. I went through it all and What I'm basically ending up with is a blank page when I click on Gallery.

    http://bbs-forum.com/gallery

    For the routes I had 1 listed for gallery. and it went to plugin/gallery and I get a white page.
    ..If I change it to /plugins/Galleries (which is the actual path) I get a Page Not Found error.

    Banging my head still but I'm going to get it to work if it kills me!

  • So I decide to delete it all, start over.

    I re-upload and only make the one change of removing the / from default.php

    It works. Or at least so far it works. Setting it up now to make sure. Strange as hell.

  • Okay, needed to make the secondary changes to the gallery.php file as well since it was not displaying the previews, etc.. properly since it had that /forum stuck in all the wrong places for my setup.

    Still having issues but it's starting to work now at least. I was able to make an album, upload 1 image. Now when I go to 'View or upload more images for <album name' it gives me a page not found error..

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    ok don't worry I will help you as best I can I know it can be confusing trust me I made this and it was very confusing but after I figured it out.

    here is a version I made for you based on your installation, when you unzip remember to change the name to Galleries because it is called Galleries-1 . Hope that works

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    it had that /forum stuck in all the wrong places for my setup.

    yes that is because the set up I have is installed in a folder called forum a subdirectory. but to fix it all you need to do is remove all the fore slashes etc. like you have done to point to the root.

    it works quite well and you can style the gallery anyway you want.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited May 2013

    edited, there was no error... let me know how it goes.

  • is not support link utf8

  • DenisSDenisS My brain hurts Buriram ✭✭

    I have tried to sort this out about 5 or 6 times but i can't, because i'm stupid! This is where it is www.ubon-expatsforum.services-thai.com a sub dir "services-thai.com" is the main dir. The plugin is installed ok. I can make an Album but when i go to upload photos i get page cannot be found. I have looked at gallery.php and yes it's got forum in 10 places. But i don't know what to change it to.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    ok thanks for the screenshot,I can see that you need to remove the forum parts as you can see this will not work if you don't remove the word forum from the links. Remove the word forum from everywhere that it is and replace it with / or nothing. at all whatever works. I made a zip 4 comments above this one for people who have this installed in the root.

    Please see if that works for you, remember to change the name of it to Galleries instead of Galleries-1

    The place most important to change these is in the links.In the gallery.php

    < div class="pics" >< a class="fancybox" target="_blank" rel="group" href="/forum/'

    change the forum part to href="' or href="/'

    Whatever works.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited May 2013

    If you look at this link

    http://www.ubon-expatsforum.services-thai.com/gallery/Ubon_and_Around

    http://www.ubon-expatsforum.services-thai.com/uploads/picgal/Ubon_and_Around/image1.jpg

    your picture is there. In the folder you made. The only problem you are having is you need to remove the /forum/ part on all of them. Which is what I did in that zip file 4 comments above.

    That goes for the ones that say img src too. Once you get past this everything works as it should.

  • phreakphreak VanillaAPP - White label iOS and Android App MVP

    @vrijvlinder: You should definitly put the path forum/ out of the deployed plugin. Like @DenisS i also had the issue that the layout and original CSS for my forum is broken when i visit the "Galleries" page. Thanx for your work.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    I have explained what to do And added a zip with the changes you need , I can't test it the way you ask , everyone has a different set up and it is very easy to erase the word forum and replace with whatever works for you simply erase the word forum in the links

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited May 2013

    @phreak and @DenisS , I have not been able to log in here on the desk top until now.

    Here is a version of your type of set up which should work however I have no way of testing it so you must test it. Replace your gallery.php file with this one I have made all the necessary changes for you.

    Please let me know if this worked.

  • peregrineperegrine MVP
    edited May 2013

    I made this before I saw yours - @vrijvlinder - see if it works should work for forums in /forum /discuss, / , wherever.

    it should not need any changes - wherever the forum is located.
    (Assuming I did it correctly).

    possible replacement for gallery.php. i just made forum a variable and retrieve the forum location from URL

    I couldn't test on root. But it seemed to auto pick up locations if not root and will probably work with root.

    maybe @phreak will try it and provide feedback. - it might help someone else.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    vrijvlinder
  • DenisSDenisS My brain hurts Buriram ✭✭

    Yes it seems to work now except i can't up-load new photos, Unless i make a new Album I did have to make a new Album "test" and then it worked before i did this got page not found fault, and still do on the old Albums
    " http://www.ubon-expatsforum.services-thai.com/uploads/picgal/Ubon and Around/image1.jpg"
    This is no problem i'll just delete the old Albums, and make new ones.

    When click to view or upload new pictures, you go the the second screen and can only make a new Album. No where to click to upload . See snapshot

  • @DenisS

    which galleries.php are you using. give details.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • DenisSDenisS My brain hurts Buriram ✭✭

    vrijvlinder CSS Addict MVP May 28.
    This is the galleries.php i am using it's the zip file Vrijlinder provided. I still have a look today and trying to test it through. It's nearly there i think.

  • DenisSDenisS My brain hurts Buriram ✭✭

    I have tried them all now right from the beginning. Inc: peregrine ☯ MVP
    May 28 gallery.php but the Vrijvliner seems to work, and find the photo can view but can't upload without making a new Album but only one photo per Album.

  • DenisSDenisS My brain hurts Buriram ✭✭

    I have been through I cannot upload photos unless i make a new Album eg: Make new Album > upload Pictures so i do and it works and i can view the photo. But thats that, I cannot upload anymore photos to that or any other album. But can see the new albums. The choose File box does not appear only when making a new Album. So don't know how it's all works until i can upload many photos.

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    It seems that it does work, my fix or peregrines not sure ,but you need a couple fixes to the urls
    this is the upload form for that album

    http://www.ubon-expatsforum.services-thai.com/gallery/gallery/test2

    not sure why you got gallery twice there though in the link . Unless you installed this twice?

    the links to the images are missing a slash it should look like this

    img src="/uploads/picgal/test2/image1.jpg" alt="User Images"

    the image is stored here

    http://www.ubon-expatsforum.services-thai.com/uploads/picgal/test2/image1.jpg

    you can add images to the same album via ftp into that folder also to upload many at once. then you copy the names into the notes.dat in the folder for the album you uploaded the images .

  • DenisSDenisS My brain hurts Buriram ✭✭

    Ok thanks i'll try again today, i'll let you know how i get on.

«134
Sign In or Register to comment.