Got Gallery 1.3.2/phpNuke6.0 and Random block working WITHOU
dmolavi
![]()
Joined: 2002-12-05
Posts: 573 |
![]() |
To save everyone from reading this whole thread, I've updated the initial posting: Go <!-- BBCode Start --><A HREF="http://www.yankeesinthesouth.org/modules.php?name=News&file=article&sid=8" TARGET="_blank">here</A><!-- BBCode End --> for how to get Gallery 1.3.3/phpNuke 6.0/random block to work and have the clicked image (and album name) open in the nuke context. It works perfectly :smile: ( http://www.yankeesinthesouth.org ). |
|
baloo
![]()
Joined: 2002-09-09
Posts: 19 |
![]() |
Hi, I'm getting the following errors: Parse error: parse error, expecting `','' or `';'' in /home/myurl/www/www/modules/gallery/block-random.php on line 83 I am obviously missing the obvious somewhere. Any pointers would be much appreciated. If it does end up being something really stupid, feel free to call me names :smile: Here is my modified code: if (isset($index)) { |
|
dmolavi
![]()
Joined: 2002-12-05
Posts: 573 |
![]() |
I apologise. You can grab my block-random.php file from <!-- BBCode Start --><A HREF="http://www.prism.gatech.edu/~dm168/block-random.php.gz" TARGET="_blank">here</A><!-- BBCode End --> |
|
baloo
![]()
Joined: 2002-09-09
Posts: 19 |
![]() |
ok, made the corrections. Now another error: Fatal error: Failed opening required 'errors/configure_instructions.php' (include_path='.:/usr/local/lib/php') in /home/myrul/www/www/modules/gallery/errors/reconfigure.php on line 10 I have updated this book to 1.3.2 and converted all the albums. I also deleted the Cahe but that didn't help either. |
|
dmolavi
![]()
Joined: 2002-12-05
Posts: 573 |
![]() |
hmmm..never got that error. you might want to add some debug echo statements to see if the directories are properly configured, etc. it's probably the GALLERY_BASEDIR value that's incorrect. try hardcoding it (similarly to the block-random.php file, and remember the trailing slash) |
|
flasher
Joined: 2002-11-13
Posts: 33 |
![]() |
Quote:
Warning: Invalid argument supplied for foreach() in /var/www/inflightpictures.com/html/modules/gallery/session.php on line 55 Here is the msg I got above the working pictures ... Dmolavi, I saw a msg of you, that you had exactly the same error, how did you fix it ? Whats wrong ? |
|
dmolavi
![]()
Joined: 2002-12-05
Posts: 573 |
![]() |
on that line (and one more line below it), change the HTTP_SESSION_VARS to _SESSION. |
|
flasher
Joined: 2002-11-13
Posts: 33 |
![]() |
All is working great now, thanks, but there is bug left, how to have the gallery to open inside PHPNuke like the random picture instead of the full screen gallery when you clic on the link bellow the random picture ? |
|
dmolavi
![]()
Joined: 2002-12-05
Posts: 573 |
![]() |
ok...go <!-- BBCode Start --><A HREF="http://www.prism.gatech.edu/~dm168/block-random.php.html" TARGET="_blank">here</A><!-- BBCode End --> for complete instructions for phpNuke 6.0/Gallery 1.3.2/random-block (including opening pic in nuke and not a new page.) |
|
dmolavi
![]()
Joined: 2002-12-05
Posts: 573 |
![]() |
ok...go <!-- BBCode Start --><A HREF="http://www.prism.gatech.edu/~dm168/block-random.php.html" TARGET="_blank">here</A><!-- BBCode End --> for complete instructions for phpNuke 6.0/Gallery 1.3.2/random-block (including opening pic in nuke and not a new page.) |
|
flasher
Joined: 2002-11-13
Posts: 33 |
![]() |
I've found your link and explanation about the random block, so far the clicked picture open in nuke, but what I would like to get is the link of the album from where the picture was taken, shown just below the picture, to open in nuke, and not in a new windows as it is on your site now. Do you see ? |
|
dmolavi
![]()
Joined: 2002-12-05
Posts: 573 |
![]() |
check out the revised code <!-- BBCode Start --><A HREF="http://www.prism.gatech.edu/~dm168/block-random.php.html" TARGET="_blank">here</A><!-- BBCode End -->. Note the addition of some extra code around the caption lines. |
|
DC_Xtreme
Joined: 2002-12-10
Posts: 8 |
![]() |
i get this error when i clcik on a picture in the block, goto my site to see for urself :sad: Quote:
Fatal error: Cannot redeclare fs_copy() (previously declared in /usr/home/roberts/public_html/modules/gallery/platform/fs_unix.php:22) in /usr/home/roberts/public_html/modules/gallery/platform/fs_unix.php on line 22 can you help ? :sad: |
|
DC_Xtreme
Joined: 2002-12-10
Posts: 8 |
![]() |
Oops double post..ignore this! |
|
DC_Xtreme
Joined: 2002-12-10
Posts: 8 |
![]() |
by the way the revised code you posted contained a parse error..u need a ";" after the album url bit <!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> change $albumURL = "http://www.thecribv3.co.uk/" $albumURL = "http://www.thecribv3.co.uk/"; |
|
dmolavi
![]()
Joined: 2002-12-05
Posts: 573 |
![]() |
Quote:
i get this error when i clcik on a picture in the block, goto my site to see for urself :sad: Sorry...unless you have two instances of fs_copy() in that file, i don't know what the problem might be. try "cat * | grep fs_copy" at the command prompt and see if you get any results that indicate multiple declarations. |
|
DC_Xtreme
Joined: 2002-12-10
Posts: 8 |
![]() |
is it because the gallery module + the actual random block are both trying to call it |
|
dmolavi
![]()
Joined: 2002-12-05
Posts: 573 |
![]() |
interesting...i'm not having that problem. how did you come to the conclusion that both modules are calling it? |
|
Warren
![]()
Joined: 2002-07-24
Posts: 794 |
![]() |
Quote:
is it because the gallery module + the actual random block are both trying to call it In a bit of unrelated, I use the Random_Block and also the Gallery_New block. I was sort of the alpha tester for Gallery_New and yes the two blocks clashed with this error or similar. See this thread: <!-- BBCode Start --><A HREF="http://gallery.menalto.com/modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=1430&10" TARGET="_blank">Latest Gallery Additions block</A><!-- BBCode End --> |
|
DC_Xtreme
Joined: 2002-12-10
Posts: 8 |
![]() |
i did some searching on the error message, i found someone who was having that problems when they had 2 galleries on the server..i know for a fact i only have one, but what iam thinking is that maybe they are both calling the same thing, as if i remove the random block the gallery works fine |
|
DC_Xtreme
Joined: 2002-12-10
Posts: 8 |
![]() |
Quote:
-------------------------------------------------------------------------------- i guess the error in the project and also the solution can be applied to this one? |
|
DC_Xtreme
Joined: 2002-12-10
Posts: 8 |
![]() |
omg fixed that error, changed: to <!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> and that got rid of the error i complained of, now i get <!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> Warning: fopen("/block-random.cache", "w") - Permission denied in /usr/home/roberts/public_html/modules/gallery/platform/fs_unix.php on line 53 i will investigate :smile: |
|
DC_Xtreme
Joined: 2002-12-10
Posts: 8 |
![]() |
ok i fixed that error too, well to a degree..its just a feedback error and doesnt effect the running of gallery or random block, so i echo'd out all error feeback in fs_unix.php by adding an at on the second line of each fnction call, after return function fs_file_exists($filename) { function fs_file_exists($filename) { do this for all if u have the same problem i did |
|
dmolavi
![]()
Joined: 2002-12-05
Posts: 573 |
![]() |
Quote:
and that got rid of the error i complained of, now i get you probably just need to chmod / chown the directory with the cache file to allow the user that the webserver runs at to have write permissions. |
|
Christoph
Joined: 2002-11-14
Posts: 3 |
![]() |
Thanks for your guide :smile: I think I found a small mistake in your guide. Your block-random.php starts with: I think it is supposed to look like this, or? Otherwise it won't work... Another small thing is that it took a while till i realized, that if got to replace Thanks for your work! CU |
|
gabi
Joined: 2002-11-22
Posts: 12 |
![]() |
Quote:
check out the revised code <!-- BBCode Start --><A HREF="http://www.prism.gatech.edu/~dm168/block-random.php.html" TARGET="_blank">here</A><!-- BBCode End -->. Note the addition of some extra code around the caption lines. Hi... thanks a lot, |
|
dmolavi
![]()
Joined: 2002-12-05
Posts: 573 |
![]() |
when i get into work today, i'll zip up the two php files that i have and make them available for download, so that you can see exactly what i have where. |
|
dmolavi
![]()
Joined: 2002-12-05
Posts: 573 |
![]() |
Ok...go <!-- BBCode Start --><A HREF="http://www.prism.gatech.edu/~dm168/block-random.php.html" TARGET="_blank">here</A><!-- BBCode End --> for the explanation of what I did, and download the code in a tarball from <!-- BBCode Start --><A HREF="http://www.prism.gatech.edu/~dm168/block-random.tar" TARGET="_blank">here</A><!-- BBCode End -->. This tarball comes directly from my installation. You will have to change appropriate variables as explained in the first link. The code, as it is provided, works to open both the clicked picture and it's album link in the nuke context. |
|