Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

PHPnuke block code

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
cooper

Beginner
Beginner


Joined: Nov 10, 2007
Posts: 3

PostPosted: Sat Nov 10, 2007 7:22 pm    Post subject: PHPnuke block code Reply with quote

I am using the following code to put a block on my PHPnuke site to show a random image and have it link to the gallery when I click on the picture:

<?php
/************************************************************************/

/* Filename: block-randompicgallery2.php */

/* Author: DJB31st */

/* E-mail: PHP@djb31st.co.uk */

/* Thanks to Fosters, VK, Red Bull and Sambuca */

/* Visit www.maxxd.com */

/************************************************************************/

$url = 'test.vettesofcoastalmaine.org/gallery2';//change to the full URL of your gallery 2 install without the http
$nuke = '1'; //set to 1 for code to act as a PHPnuke block, or 0 as a

stand alone page

if($nuke==1)
{
if (eregi("block-randomdavepic.php",$PHP_SELF)) {

Header("Location: ../index.php");

die();
}
}

$file = file("http://$url/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title");
$content .= trim(substr($file[3],0,-4));
$content .= "\" target='_blank' >";
$content .= trim(substr($file[5],0,-3));
$content .= $file[6];

if($nuke==0)
echo $content;
?>


However, when I click on the picture nothing happens. How can I fix this?
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: PHPnuke block code  

Back to top
cooper

Beginner
Beginner


Joined: Nov 10, 2007
Posts: 3

PostPosted: Sun Nov 11, 2007 11:54 pm    Post subject: Re: PHPnuke block code Reply with quote

Anyone?
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Gallery 2 Integration View previous topicPrinter friendly versionView next topic

 
Jump to:  
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
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSEO Search Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaCheap Web Design

6th year online! 2003-2009
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia