Joined: Aug 04, 2004 Posts: 37 Location: Valhalla, NY, USA
Posted: Fri Apr 29, 2005 3:03 pm Post subject: Re: [TESTING] Selectable Album Random Block
Hmmm.... that's odd - I don't think it's related (since the page closes out, and does not end abruptly like the Block does), but it's worth noting. It's not as important to me as the Image Block, though. (We have a HUGE Gallery, and want to filter out some of the suff that just doesn't work in the block.) _________________ Geoffrey J. Schaller
Knight Realms, Technical Officer
http://www.knightrealms.com
Joined: Aug 04, 2004 Posts: 37 Location: Valhalla, NY, USA
Posted: Fri Apr 29, 2005 3:10 pm Post subject: Re: [TESTING] Selectable Album Random Block
It's Admin Only for testing, since it wa ssupposed ot generate error codes - but since it's not, I can turn it back on for everyone now.
I just ran Sentinels' DB checks recently, woudl that work? Are you referring to runing the repair & optimize form Nuke's CP, or from another source such as phpMyAdmin? _________________ Geoffrey J. Schaller
Knight Realms, Technical Officer
http://www.knightrealms.com
Joined: Mar 20, 2005 Posts: 232 Location: Charlotte, NC
Posted: Fri Apr 29, 2005 3:13 pm Post subject: Re: [TESTING] Selectable Album Random Block
GJSchaller wrote: › phpMyAdmin?
phpMyAdmin. The optimize you can use from PHPNuke's backend as well but I'd run a repair on it as well. Usually when blocks go missing, it's an issue with a corrupt database. At least that was what my expereince was when I modded on phpnuke.org.
I have the original, non-selectable ones there as well for comparison. _________________ Geoffrey J. Schaller
Knight Realms, Technical Officer
http://www.knightrealms.com
Posted: Thu May 05, 2005 11:53 pm Post subject: Re: [TESTING] Selectable Album Random Block
dari wrote: › ah, add $admin to the global list up top...
Evidently I'm just thick, because no one else seemed confused by this bit of information, but I have no idea where you mean by "up top." If you mean in the global variables listing at the top of one or more of the three files that make up the selectable block, I've done that (on all three files), and I still only see the random images when I'm logged in as Admin, not the ability to select albums. If you meant to add $admin to a global variables list somewhere else other than at the top of the block files, then I have no idea where I'm supposed to add it. Can anyone clarify?
Posted: Fri May 06, 2005 12:47 am Post subject: Re: [TESTING] Selectable Album Random Block
SpecialEd wrote: › I see this in the block and nothing else
Quote: › Please create your cache file.
how do I create a cache file?
Actually, I'm now having the problem above. I deleted the cache file, hoping that would help me start fresh, and now I'm getting the "Please create your cache file" message. Was the question above about how to create the cache file ever answered?
Posted: Fri May 06, 2005 11:19 pm Post subject: Re: [TESTING] Selectable Album Random Block
whitefantom wrote: ›
dari wrote: › ah, add $admin to the global list up top...
Evidently I'm just thick, because no one else seemed confused by this bit of information, but I have no idea where you mean by "up top." If you mean in the global variables listing at the top of one or more of the three files that make up the selectable block, I've done that (on all three files), and I still only see the random images when I'm logged in as Admin, not the ability to select albums. If you meant to add $admin to a global variables list somewhere else other than at the top of the block files, then I have no idea where I'm supposed to add it. Can anyone clarify?
--Jennifer
And now I'm back to this again. I tried simply creating a blank document and naming it block-random.cache, but doing that caused the block to crash with errors (I don't remember what the errors were at the moment, but I can easily recreate the problem and generate the errors again if necessary).
So instead of trying to manually create the file, I re-enabled the old random images block (the one without the album select option, which I had installed previous to installing the selectable version), and by displaying the old block, the cache file was re-created automatically, though with all albums present because it was generated by the old random images block. This caused the selectable images block to display images again (because it was working from the same cache file the non-selectable block had just generated), but as before, I don't get any album selection options when logged into PHPNuke as admin. All I see is the block randomly displaying images. I've added $admin to every global variables list I can find in the three files associated with this block, but it makes no difference. What am I doing--or not doing--that's preventing me from getting the album selection options, and how do I fix it?
Posted: Tue Jun 28, 2005 7:26 pm Post subject: Re: [TESTING] Selectable Album Random Block
Warning: main(public_html/blocks/block-NG-RandomPhotoSelectTest_functions.php): failed to open stream: No such file or directory in /home/xxxx/public_html/block-NG-AutoPhoto.php on line 6
Warning: main(public_html/blocks/block-NG-RandomPhotoSelectTest_functions.php): failed to open stream: No such file or directory in /home/xxxx/public_html/block-NG-AutoPhoto.php on line 6
Warning: main(): Failed opening 'public_html/blocks/block-NG-RandomPhotoSelectTest_functions.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/xxxx/public_html/block-NG-AutoPhoto.php on line 6
Fatal error: Call to undefined function: get_photo() in /home/xxxx/public_html/block-NG-AutoPhoto.php on line 18
Dari,
When in admin mode I can see the box as it was designed to do, but when I log out and login normally(non admin mode) the block where the pics suppose to be shows this error ...any ideas? I could pm you the files again if need be.
Posted: Tue Oct 11, 2005 2:25 am Post subject: Re: [TESTING] Selectable Album Random Block
Hi Guys,
I have the following error message in the block on the our site
Please create your cache file. - The site www.unp-df.com
Below is the code from our block I have checked the paths' with Analyzer to be sure but other than that quite puzzled.
Any ideas would be great
Using PHP 4.3.11, Nuke 7.5 Patched, Gallery 1.5
Anything else please let me know.
Thx
Code: › <?php
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* Developed by Dariush Molavi at NukedGallery.net
* Version 2.0
* 13 December 2003
*/
if (eregi("NG-RandomPhotoSelectTest_functions.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
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 = "/home/keller/public_html/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, 86400);
/*******************************************************************/
/* Full path to your albums directory, don't forget the trailing / */
/*******************************************************************/
define(ALBUM_DIRECTORY,"/home/keller/public_html/albums/");
/*******************************************************************/
/* STOP!! DO NOT EDIT ANYTHING BELOW THIS POINT */
/*******************************************************************/
define(CACHE_FILE, ALBUM_DIRECTORY."block-random.cache");
function createBlockContent($album,$index,$scale,$auto=0) {
global $gallery, $GALLERY_EMBEDDED_INSIDE, $GALLERY_EMBEDDED_INSIDE_TYPE, $GALLERY_MODULENAME;
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