Support Forums | Demo Gallery [1.x] [2.x] | 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  

What did I miss?

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

Beginner
Beginner


Joined: Apr 09, 2003
Posts: 6

PostPosted: Wed Apr 09, 2003 8:52 pm    Post subject: What did I miss? Reply with quote

What did I miss? I downloaded the Random Photo block from phpnuke.com and it simply just says "No photo selected." PHPNuke 6.5, clean install.
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: What did I miss?  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Wed Apr 09, 2003 8:58 pm    Post subject: Reply with quote

try the one here. it's not the same as the one at phpnuke.
Back to top
Offline View user's profile Send private message Visit poster's website
Vermyndax

Beginner
Beginner


Joined: Apr 09, 2003
Posts: 6

PostPosted: Wed Apr 09, 2003 9:27 pm    Post subject: Okie... Reply with quote

Okie, now I'm trying it with the copy from this website. I have modified /Gallery/block-random.php with my site URL, and I changed the /gallery to /Gallery (I use a capital G in mine) in /blocks/block-random.php. I still get "No photo chosen." on all pages except for the Gallery page itself. Now when I click on the link for the page, the server halts when rendering the random photo block and only displays the left blocks (since I have random photo at the bottom of the left block).

What'd I miss this time?
Back to top
Offline View user's profile Send private message
Vermyndax

Beginner
Beginner


Joined: Apr 09, 2003
Posts: 6

PostPosted: Wed Apr 09, 2003 9:35 pm    Post subject: Oh... Reply with quote

Oh... now I see what the problem is... I had my albums locked down to registered members only, and apparently your block requires the albums to be public. Sigh... don't know if I can use it then.

However, the site still halts rendering the page when I click the link to go to the photo album gallery while the block is enabled.
Back to top
Offline View user's profile Send private message
Vermyndax

Beginner
Beginner


Joined: Apr 09, 2003
Posts: 6

PostPosted: Wed Apr 09, 2003 9:58 pm    Post subject: Fixed... Reply with quote

When moving the block to the right side, everything works now. Thanks.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Thu Apr 10, 2003 7:22 am    Post subject: Reply with quote

hey, glad to hear that it works. You might be able to make the block visible to just registered members to avoid the problem, or to make one album visible to everyone, and have the random block pull the pic from there (that would require a minor tweak of the code where the album name is). i've also noticed moving the block to the right hand side of the page corrects some errors; I don't know why this is, though (is it a phpNuke thing, or a block thing?).
Back to top
Offline View user's profile Send private message Visit poster's website
Vermyndax

Beginner
Beginner


Joined: Apr 09, 2003
Posts: 6

PostPosted: Thu Apr 10, 2003 7:37 am    Post subject: It would seem... Reply with quote

It would seem to me to be a pathing problem, but I'm no PHP expert. Matter of fact, the site I'm working on is my first PHP adventure. (I normally do ASP.NET/IIS). In /blocks/block-random.php, it directly references /modules/Gallery/block-random.php. If you click the link for Photo Gallery and enter that directory, it seems like /blocks/block-random.php is crashing when it tries to find the Gallery because of that path statement.

Moving the block to the right side effectively disables it when you enter the gallery since the right side disappears completely, thereby avoiding the problem. That's just my observation and I'm probably completely wrong, but that's how it seems.

As for permissions, since the Galleries are configurable by the album owner (excellent move on their part), I just made a few albums public... since they were public before anyway.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Thu Apr 10, 2003 9:01 am    Post subject: Reply with quote

actually, if you're getting the "redeclare fs_copy()" error, you're right...the random block code requires fs_copy, as does the image gallery itself, thus the redeclaration when it's on the left side and the random block is visible during normal gallery viewing.
Back to top
Offline View user's profile Send private message Visit poster's website
Vermyndax

Beginner
Beginner


Joined: Apr 09, 2003
Posts: 6

PostPosted: Thu Apr 10, 2003 9:09 am    Post subject: Hmmm... Reply with quote

Nope, that's not what happens. I don't get any error - it just stops rendering the page when it hits the Random Photo block, resulting in the entire left block being on the right side and a blank screen other than that.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Thu Apr 10, 2003 9:13 am    Post subject: Reply with quote

odd...but i'm assuming your basic hypothesis is correct, that both the random block and the gallery itself call upon common functions, causing nuke to puke.
Back to top
Offline View user's profile Send private message Visit poster's website
bummie

Beginner
Beginner


Joined: Apr 14, 2003
Posts: 4

PostPosted: Tue Jun 24, 2003 5:40 am    Post subject: Reply with quote

i got an error for sth like fetch row error when the block is on the left hand side and it called from include/sql_layer.php line...
Code: ›
    case "MySQL":
        $dbi=@mysql_connect($host, $user, $password);
   mysql_select_db($db);
        return $dbi;
    break;;


the block is showing the picture fine but there's a problem with topics (the error shows the topic admin) that is the image icons are not shown on the first page. when clicking "read more", it brings back to index.php.

anyway, moving the block to the right side corrected the error. weird, isn't it?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Tue Jun 24, 2003 5:52 am    Post subject: Re: What did I miss? Reply with quote

in the random block file, change any include and/or require statements at the top to "require_once". this should let you put it anywhere on your page.
Back to top
Offline View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » 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: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filter

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