Not signed in (Sign In)

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

    • CommentAuthordrlarry15
    • CommentTimeOct 6th 2007 edited
     
    I have searched the forums like crazy to find the answer to this. The problem is when you incorporate the include tags to a file in the main directory with the rest of your pages such as your /public_html/ folder, It will all work fine until you go to click to enlarge the image to full screen and then you get this url error:

    http://www.yoursite.com/yourpage.phpimages/pictures/pics/picture.jpg

    instead of

    http://www.yoursite.com/gallery/images/pictures/pics/picture.jpg

    After playing around for an hour or so I figured out the main solution using some other posts to troubleshoot the main problem. Other posts include fixes but the problem is you can get it work on www.yoursite.com/gallery.php but then it will no longer work with www.yoursite.com/gallery/index.php. This should fix it so it works no matter what directory you wish to use.

    1) open up plog-functions.php
    2) find the line: return (!empty($config['allow_fullpic'])) ? $config["baseurl"].'images/'.SmartStripSlashes($GLOBALS["current_picture"]["path"]) : "#"; .... (mine was line 1966).
    3) change the line to: return (!empty($config['allow_fullpic'])) ? '../gallery/images/'.SmartStripSlashes($GLOBALS["current_picture"]["path"]) : "#"; .... (being that gallery is the name of your plogger directory. If it is something different like plogger then it would be '../plogger/images/' )

    I hope this helps a lot of people out that are trying to embed the gallery into a main directory page instead of using the gallery directory.
    Thankful People: justin1186
  1.  
    this has been solved before, you want to use $config["gallery_url"] instead of $config["baseurl"] instead of hard coding your path into plogger..