Posted: Wed Apr 12, 2006 10:22 am Post subject: News and Gallery Problems
I am having a couple od big problems with my phpnuke install. One is that no link show sup to delete news articles which means that the same news is gonna stay on my site forever.
The seconds is with my gallery integration, but I am afraid to ask for help in the gallery forums, because it seems that the first thing that support team says is "this has already been answered. Well I have search forever and cannot find my answer, but I do not have time to go through 1000 different posts. I have gallery integrated and working as a module, but none of the blocks work for me. The page loads up until the gallery block is supposed to load and then it stops!
www.bethanystudents.com
Here is my code if you can help me.
<?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.
*
* Coded by Dariush Molavi
* dari@nukedgallery.net
* http://www.nukedgallery.net
* (c) 2003 Dariush Molavi
* You may redistribute this block as long as this entire header
* remains unaltered.
*/
if (eregi("block-NG-newAlbums.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
global $gallery, $admin;
/* CHANGE THESE VARIABLES */
$GALLERY_BASEDIR = "/domains/bethanystudents.com/public_html/home/modules/gallery/";
define(PHPNUKE_ADDR,"http://www.bethanystudents.com/home/");
define(GALLERY_DIR_NAME,"gallery");
define(USE_THUMBS,0); // Set to 1 to show thumbnails, 0 to just list albums.
define(HOROZONTAL,1); //Set to 1 to list horozontally, 0 for vertically. If USE_THUMBS is 0,
//this is ignored, and albums will be listed vertically.
define(ALBUM_DIRECTORY,"/domains/bethanystudents.com/public_html/albums/");
define(MAX_NEW_ALBUMS,4); // Set this to the number of albums you want displayed.
define(PIC_SCALE,0); // Leave at 0 to use the Gallery default; or set to the width you want thumbnails
define(PIC_BORDER,0); // Leave at 0 for no border, or enter border thickness here.
define(ALBUM_CACHE_EXPIRE_TIME,86400);
/* DON"T CHANGE ANYTHING BELOW HERE */
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