I'm using the script that is found at: <!-- BBCode Start --><A HREF="http://www.prism.gatech.edu/~dm168/block-random.php.html" TARGET="_blank">This Page</A><!-- BBCode End -->. I am using Nuke 6 and Gallery 1.3.3 and am getting the picture to display and the text to display with it.. only problem is this error:
Warning: Invalid argument supplied for foreach() in /usr/home/v1/a0019576/html/modules/photos/session.php on line 55
Any ideas on what might be causing it and how I might go about fixing it?
Thanks!!
--Jerad :grin:
Posts: 4
Took out this code in session.php to get it to work:
/* Start a new session, or resume our current one */
session_start();
/* emulate register_globals for sessions */
/*if (!$gallery->register_globals) {
* foreach($HTTP_SESSION_VARS as $key => $value) {
* eval("$$key = & $HTTP_SESSION_VARS["$key"];");
* }
*}
*/
Now, however, when I click on the picture from the block, it gives me this error:
Sorry, this Module isn't active!
http://www.sigepcadelta.com
Posts: 573
look at step 2 (or 3) of the code I posted on that page, it tells you to remove the $HTTP_SESSION_VARS and replace it with just $_SESSION (this is for new versions of PHP...all $HTTP_xxx_VARS have been replaced by simply $_xxxx, where xxxx could be COOKIE, SERVER, SESSION, GET, POST, ENV, FILES). you need to add that chunk of code back in the session.php file for proper operation.
also, make sure you activate the module from the admin section of PHPNuke..
Posts: 4
Actually I found that and changed it around, fixed that minor problem. Yet now when I go to click on the link on the site it goes to the directory "gallery" rather than "photos." I believe this is built into the code somewhere, and I found a line with the string: &op=modload&name=gallery&file=index&include=view_photo.php and tried changing &name=photos, yet it still isn't pointing to the "photos" directory. Any ideas?
Posts: 573
the op command tells PHP what operation to execute, in this case, "modload" (ie load a module), the "name" command gives the name of the module to load (for me, it was "gallery"). if your gallery module name is different, rename it to yours (i.e. "mycoolgallery", etc).
-dm