Not signed in (Sign In)

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

  1.  
    How do i make the location depend what typed in the address bar, rather than forcing the url:

    http://domain.co.uk (works great) (external)
    http://domain.hopto.org (works great) (external)
    http://localhost (just text no images) (local)
    http://computername (just text no images) (local)
    http://IPaddress (just text no images) (local)

    i have a php forum which had the same problem, but there was a fix. can anyone help. :)
    •  
      CommentAuthorsidtheduck
    • CommentTimeJul 1st 2008
     
    darrensmith,

    The images are created using the "gallery_url" defined in the Admin -> Options tab and stored in the Plogger database. I'm not sure if that's where the problem lies, but it would probably be a good guess. If that's the issue, I'm not sure there would be a "blanket covereage" for both external and local paths. Are you creating a site that needs to be accessed both externally and locally (besides for testing purposes)?
    •  
      CommentAuthor_Eric_
    • CommentTimeJul 1st 2008 edited
     
    When installing Plogger locally, the default "gallery_url" is set to "http://<strong>www.</strong>localhost/". By changing this to "http://localhost/" in the admin panel, all paths are corrected.
    •  
      CommentAuthor_Eric_
    • CommentTimeJul 2nd 2008
     
    I'm running 550. It seems to be happening in lines 310-313 in install-functions.php.
  2.  
    it needs to be access both externally and internally. bloody networks who needs them!! i changed the gallery url to localhost then externally went down.

    any help... any Mods to fix this?
    •  
      CommentAuthorsidtheduck
    • CommentTimeJul 2nd 2008
     
    Posted By: _Eric_I'm running 550. It seems to be happening in lines 310-313 in install-functions.php.
    Yep, I did notice that. I'll commit the change back to the SVN trunk. That was in there related to forcing a 'www' for the mod_rewrite issues, but doesn't work if you are installing locally or with a subdomain. We'll have to add an option in the Admin section to allow users to force the 'www' or not. For now, I'll just comment it out.
  3.  
    hey sid,

    when will this be possible? is there anything i can do to change this?
  4.  
    sid, will this help with my problem at all:

  5.  
    http://plogger.org/forum/discussion/1827/solved-cruftfree-url-issue/#Item_7
    •  
      CommentAuthorryanduff
    • CommentTimeJul 4th 2008
     
    darrensmith,

    Most web applications use a site url defined in a database or config file somewhere because it is rather hard to decipher the actual url on the fly and adjust accordingly. What was the forum app that had a "fix" for this?
    •  
      CommentAuthorsidtheduck
    • CommentTimeJul 8th 2008
     
    darrensmith016,

    You can try this if you are using Plogger as a standalone installation (not embedded in a CMS and your index.php file being used is in the same folder as the Plogger install).
    Open plog-load_config.php and find the following line of code (Beta 3.0):$config = mysql_fetch_assoc($result);

    $config["basedir"] = $plog_basedir;
    and in between those two lines, try adding the following code:$config = mysql_fetch_assoc($result);

    $config["gallery_url"] = "http://".$_SERVER['HTTP_HOST']. substr($_SERVER['PHP_SELF'],0,strrpos($_SERVER['PHP_SELF'],"/")) . "/";

    $config["basedir"] = $plog_basedir;