Home | Support Forums | Your Account | Gallery [2] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Random block incorrect links

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic
Author Message
alpha1172

Beginner
Beginner


Joined: Dec 27, 2004
Posts: 2

PostPosted: Thu Feb 16, 2006 1:41 pm    Post subject: Random block incorrect links Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: Random block incorrect links  

Back to top
tazzen

Beginner
Beginner


Joined: May 21, 2005
Posts: 16

PostPosted: Tue Sep 11, 2007 9:24 pm    Post subject: Re: Random block incorrect links Reply with quote

any fix for this??
Back to top
Offline View user's profile Send private message
SEOVivian

Beginner
Beginner


Joined: Oct 27, 2007
Posts: 2

PostPosted: Mon Oct 29, 2007 7:40 pm    Post subject: Re: Random block incorrect links Reply with quote

sorry but i couldn't see the photos.
are you sure your link is working? or i came too late? Rolling Eyes
well anyway if you can post them again i would appreciate it, thank you

Vivicita
Back to top
Offline View user's profile Send private message
Hobbs

Beginner
Beginner


Joined: Mar 12, 2007
Posts: 6

PostPosted: Fri Mar 21, 2008 3:20 pm    Post subject: Re: Random block incorrect links Reply with quote

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. Rolling Eyes

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6199
Location: Washington Township, NJ, USA

PostPosted: Thu Apr 24, 2008 8:42 am    Post subject: Re: Random block incorrect links Reply with quote

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
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6199
Location: Washington Township, NJ, USA

PostPosted: Thu Apr 24, 2008 9:17 am    Post subject: Re: Random block incorrect links Reply with quote

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
Offline View user's profile Send private message Visit poster's website
Hobbs

Beginner
Beginner


Joined: Mar 12, 2007
Posts: 6

PostPosted: Tue May 13, 2008 3:18 pm    Post subject: Re: Random block incorrect links Reply with quote

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
Offline View user's profile Send private message
Hobbs

Beginner
Beginner


Joined: Mar 12, 2007
Posts: 6

PostPosted: Tue Jun 10, 2008 2:03 pm    Post subject: Re: Random block incorrect links Reply with quote

Any word on possibly getting a fix for this Dari?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6199
Location: Washington Township, NJ, USA

PostPosted: Tue Jun 10, 2008 2:28 pm    Post subject: Re: Random block incorrect links Reply with quote

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
Offline View user's profile Send private message Visit poster's website
Hobbs

Beginner
Beginner


Joined: Mar 12, 2007
Posts: 6

PostPosted: Wed Jun 11, 2008 9:10 am    Post subject: Re: Random block incorrect links Reply with quote

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
Offline View user's profile Send private message
Hobbs

Beginner
Beginner


Joined: Mar 12, 2007
Posts: 6

PostPosted: Tue Jun 17, 2008 8:05 am    Post subject: Re: Random block incorrect links Reply with quote

So... anyway to fix this?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6199
Location: Washington Township, NJ, USA

PostPosted: Tue Jun 17, 2008 4:46 pm    Post subject: Re: Random block incorrect links Reply with quote

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
Offline View user's profile Send private message Visit poster's website
Hobbs

Beginner
Beginner


Joined: Mar 12, 2007
Posts: 6

PostPosted: Wed Jun 18, 2008 11:52 am    Post subject: Re: Random block incorrect links Reply with quote

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
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDomain NamesDedicated ServersDedicated Web HostingDomain Name RegistrationWeb hosting AustraliaSEO Web DesignWeb Design New YorkSearch Engine OptimizationSearch Engine Optimisation

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia