| Author |
Message |
Vermyndax
Beginner


Joined: Apr 09, 2003 Posts: 6
|
Posted: Wed Apr 09, 2003 8:52 pm Post subject: What did I miss? |
|
|
| 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 |
|
|
AdBot
|
| Post subject: What did I miss? |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed Apr 09, 2003 8:58 pm Post subject: |
|
|
| try the one here. it's not the same as the one at phpnuke. |
|
| Back to top |
|
|
Vermyndax
Beginner


Joined: Apr 09, 2003 Posts: 6
|
Posted: Wed Apr 09, 2003 9:27 pm Post subject: Okie... |
|
|
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 |
|
|
Vermyndax
Beginner


Joined: Apr 09, 2003 Posts: 6
|
Posted: Wed Apr 09, 2003 9:35 pm Post subject: Oh... |
|
|
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 |
|
|
Vermyndax
Beginner


Joined: Apr 09, 2003 Posts: 6
|
Posted: Wed Apr 09, 2003 9:58 pm Post subject: Fixed... |
|
|
| When moving the block to the right side, everything works now. Thanks. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Apr 10, 2003 7:22 am Post subject: |
|
|
| 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 |
|
|
Vermyndax
Beginner


Joined: Apr 09, 2003 Posts: 6
|
Posted: Thu Apr 10, 2003 7:37 am Post subject: It would seem... |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Apr 10, 2003 9:01 am Post subject: |
|
|
| 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 |
|
|
Vermyndax
Beginner


Joined: Apr 09, 2003 Posts: 6
|
Posted: Thu Apr 10, 2003 9:09 am Post subject: Hmmm... |
|
|
| 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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Thu Apr 10, 2003 9:13 am Post subject: |
|
|
| 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 |
|
|
bummie
Beginner


Joined: Apr 14, 2003 Posts: 4
|
Posted: Tue Jun 24, 2003 5:40 am Post subject: |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Tue Jun 24, 2003 5:52 am Post subject: Re: What did I miss? |
|
|
| 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 |
|
|
|
|
|
|
|