| Author |
Message |
alpha1172
Beginner


Joined: Dec 27, 2004 Posts: 2
|
Posted: Thu Feb 16, 2006 1:41 pm Post subject: Random block incorrect links |
|
|
i have the random photo and the newest photo blocks installed on my site. the thumbnails show up ok but when you click on one of them it goes to "the this page cannot be found". the thumnails are going to http://www.eleventy72.org/modules.php?s ... _photo.php
instead of
http://www.eleventy72.org/V2/modules.php?set_albumName=General&id=dtsd&op=modload&name=gallery&file=index&include=view_photo.php
the actual gallery still works ok though.
im using Gallery v1.5.2 Code: › global $gallery, $GALLERY_EMBEDDED_INSIDE, $GALLERY_EMBEDDED_INSIDE_TYPE, $GALLERY_MODULENAME, $Version_Num;
/*******************************************************************/
/* Full path to your Gallery, don't forget the trailing / */
/*******************************************************************/
$GALLERY_BASEDIR = "/var/www/html/V2/modules/gallery/";
/*******************************************************************/
/* The module name of your Gallery, default is "gallery" */
/*******************************************************************/
$GALLERY_MODULENAME = "gallery";
/*******************************************************************/
/* Time, in seconds, to refresh random photo cache. Default is */
/* 86400 (check it daily) */
/*******************************************************************/
define(CACHE_EXPIRED, 10);
/*******************************************************************/
/* Full path to your albums directory, don't forget the trailing / */
/*******************************************************************/
define(ALBUM_DIRECTORY,"/var/www/html/Albums/");
/*******************************************************************/
/* STOP!! DO NOT EDIT ANYTHING BELOW THIS POINT */
/*******************************************************************/
---- |
|
| Back to top |
|
|
AdBot
|
| Post subject: Random block incorrect links |
|
|
|
|
|
| Back to top |
|
 |
tazzen
Beginner


Joined: May 21, 2005 Posts: 16
|
Posted: Tue Sep 11, 2007 9:24 pm Post subject: Re: Random block incorrect links |
|
|
| any fix for this?? |
|
| Back to top |
|
|
SEOVivian
Beginner


Joined: Oct 27, 2007 Posts: 2
|
Posted: Mon Oct 29, 2007 7:40 pm Post subject: Re: Random block incorrect links |
|
|
sorry but i couldn't see the photos.
are you sure your link is working? or i came too late?
well anyway if you can post them again i would appreciate it, thank you
Vivicita |
|
| Back to top |
|
|
Hobbs
Beginner


Joined: Mar 12, 2007 Posts: 6
|
Posted: Fri Mar 21, 2008 3:20 pm Post subject: Re: Random block incorrect links |
|
|
I have the same problem. I'm guessing there isn't going to be a reply since the original message was posted back in October.
anyway, it didn't seem to be an issue with gallery 1.5, when I upgraded to the latest version the links stopped working.
The issue seems to be that it is not adding /PHP after the url.
So the link is now... www.firingsuqad.us/modules?
When it needs to be... www.firingsquad.us/PHP/modules?
My site for anyone that wants to take a look.
www.firingsquad.us/PHP/index.php |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6241 Location: Washington Township, NJ, USA
|
Posted: Thu Apr 24, 2008 8:42 am Post subject: Re: Random block incorrect links |
|
|
sorry, it's been crazy here. so it's linking to the root, instead of the subdirectory that it should be linking to? i'll see if i can find a reason. _________________
 |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6241 Location: Washington Township, NJ, USA
|
Posted: Thu Apr 24, 2008 9:17 am Post subject: Re: Random block incorrect links |
|
|
in NG-RandomPhoto.php can you find the following:
Code: ›
$PHOTO_URL = makeAlbumUrl($album->fields['name'], $id);
$ALBUM_URL = makeAlbumUrl($album->fields['name']);
and change it to:
Code: ›
$PHOTO_URL = makeAlbumUrl($album->fields['name'], $id);
echo $PHOTO_URL;
$ALBUM_URL = makeAlbumUrl($album->fields['name']);
echo $ALBUM_URL;
and let me know what the outputs are? _________________
 |
|
| Back to top |
|
|
Hobbs
Beginner


Joined: Mar 12, 2007 Posts: 6
|
Posted: Tue May 13, 2008 3:18 pm Post subject: Re: Random block incorrect links |
|
|
Hey Dari, thanks for getting back to me on this one.
This is what i'm receiving as an output...
/modules.php?set_albumName=Floydian1&id=ScreenShot11548&op=modload&name=gallery&file=index&include=view_photo.php
/modules.php?set_albumName=Floydian1&op=modload&name=gallery&file=index&include=view_album.php |
|
| Back to top |
|
|
Hobbs
Beginner


Joined: Mar 12, 2007 Posts: 6
|
Posted: Tue Jun 10, 2008 2:03 pm Post subject: Re: Random block incorrect links |
|
|
| Any word on possibly getting a fix for this Dari? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6241 Location: Washington Township, NJ, USA
|
Posted: Tue Jun 10, 2008 2:28 pm Post subject: Re: Random block incorrect links |
|
|
i see the problem...it's got the "modload" portion in the wrong spot, it should be right after modules.php.
what version of gallery 1 are you using?
this seems to be a gallery issue, not a problem w/ the block, as the block is using a built-in gallery call to create that URL. _________________
 |
|
| Back to top |
|
|
Hobbs
Beginner


Joined: Mar 12, 2007 Posts: 6
|
Posted: Wed Jun 11, 2008 9:10 am Post subject: Re: Random block incorrect links |
|
|
I'm using 1.5.7 Dari.
Are you sure that is the issue though?
If I add the sub-directory PHP/ before the url the link works fine.
Example...
http://www.firingsquad.us/PHP/modules.p ... _photo.php |
|
| Back to top |
|
|
Hobbs
Beginner


Joined: Mar 12, 2007 Posts: 6
|
Posted: Tue Jun 17, 2008 8:05 am Post subject: Re: Random block incorrect links |
|
|
| So... anyway to fix this? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6241 Location: Washington Township, NJ, USA
|
Posted: Tue Jun 17, 2008 4:46 pm Post subject: Re: Random block incorrect links |
|
|
yeah, i'm pretty sure that's the issue...the url generator should automatically prepend that to the URL and form the proper URL. is gallery installed in your modules directory?
i've left several emails for the g1 dev, but haven't heard anything back. if you want, you can drop him a note on #gallery on IRC, referencing this thread. _________________
 |
|
| Back to top |
|
|
Hobbs
Beginner


Joined: Mar 12, 2007 Posts: 6
|
Posted: Wed Jun 18, 2008 11:52 am Post subject: Re: Random block incorrect links |
|
|
I left several PM's for Tim and he hasn't responded in awhile.
In the mean time I got a friend of mine to code a work-around.
Code: ›
$PHOTO_URL = makeAlbumUrl($album->fields['name'], $id);
$PHOTO_URL_TEMP = parse_url($PHOTO_URL);
$PHOTO_URL = "http://".$PHOTO_URL_TEMP['host']."/PHP".$PHOTO_URL_TEMP['path']."?".$PHOTO_URL_TEMP['query'];
$ALBUM_URL = makeAlbumUrl($album->fields['name']);
$ALBUM_URL_TEMP = parse_url($ALBUM_URL);
$ALBUM_URL = "http://".$ALBUM_URL_TEMP['host']."/PHP".$ALBUM_URL_TEMP['path']."?".$ALBUM_URL_TEMP['query'];
If you are having this issue you can replace the "/PHP" part with the name of your sub-directory. |
|
| Back to top |
|
|
|
|
|
|
|