coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Maximus-Sniper on April 21, 2005, 05:21:09 AM

Title: How to make a module for PHP-Nuke?
Post by: Maximus-Sniper on April 21, 2005, 05:21:09 AM
Hi all :)

I just install Coppermine 1.3.3 Standalone and work perfect :)

But only one thing, i like to make a module called coppermine. Because i like to have coppermine in same page, this standalone open a new page, how do i make that module?

A new module looks like this i think: index.php


<?php

if (!eregi("modules.php", $PHP_SELF)) {
   die ("You can't access this file directly...");

}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
//get_lang($module_name);
include("header.php");
$index = 0;
OpenTable();
echo";
CloseTable();
include("footer.php");

?>

but i need to put something more on it, somebody now what and how??? :)
Title: Re: How to make a module for PHP-Nuke?
Post by: Tranz on April 21, 2005, 05:23:24 AM
You might have better luck using http://cpgnuke.com

We can't help with the phpnuke port since we don't know it.
Title: Re: How to make a module for PHP-Nuke?
Post by: Maximus-Sniper on April 21, 2005, 08:18:37 AM
Hi :)

Ok, thx for the answare :) But maybe u know how i can make a linke to coppermine so i can add it under the General/Menu on my left side of my page? I mean if you put something in the /modules/ and activete in Admin - Modules, it will show in the menu on the left side. So how can i make a just a link in the menu? :)
Sorry for my bad english :p
Title: Re: How to make a module for PHP-Nuke?
Post by: Joachim Müller on April 21, 2005, 10:38:30 AM
Quote from: TranzNDance on April 21, 2005, 05:23:24 AM
We can't help with the phpnuke port since we don't know it.
Title: Re: How to make a module for PHP-Nuke?
Post by: Maximus-Sniper on April 22, 2005, 04:02:10 AM
Ok! Sorry, i found it out and it's works :)

I only made a emty folder in my /modules/blablabla/  

Than i login as Admin. And Modules, than you can edit and activate the new module (blablabla) and in the "Custom Module Name:" u only put this line:  <a href=http://yoursite.com/and coppermine folder/>and just a name of the new link</a>

Title: Re: How to make a module for PHP-Nuke?
Post by: Tranz on April 22, 2005, 04:43:06 AM
Thank you for coming back to share the solution you found.