I am using PHPNke 6.8 and am trrying to add Coppermine gallery to it with the php port. I copied the modules dir to my webserver the is hosted and set the permissions on the alblums dir. I have modified the config.inc.php file with my database information and imported the sql tables into my MySql server. I activated the module in PHPNuke and it shows up but when I call any of the links from this point I get a blank page "no errors nothing" I have provided a link to my site. Please let me know if I have missed anything.
http://jaxracquetball.baaka.com/modules.php?name=coppermine
Hmm you did somethin wrong..
Is the folder coppermine in the modules dir?
Did you make sure to use the For phpnuke6.5 folder?
are the cpg_ tables in your nuke db?
Is the folder coppermine in the modules dir? Yes I placed the coppermine modules folder under modules as you can see in the link
Did you make sure to use the For phpnuke6.5 folder? Yes I used the 6.5
are the cpg_ tables in your nuke db? and I verified that the tables are in my mysql database.
Quote from: "baaka"and I verified that the tables are in my mysql database.
mysql database and nuke database are 2 seperate things.
MySQL contains databases which contain tables.
The database that contains "nuke_*" also needs to have the "cpg_*" tables.
So create a test.php file in your main nuke folder including:
<?php
require_once("config.php");
require_once("db/db.php");
$sql = "SELECT * FROM cpg_config";
$result = $db->sql_query($sql);
if (!$result) die(mysql_error());
else {
echo "<html><body><table border=1>";
while($row = $db->sql_fetchrow($result)) {
echo "<tr>";
foreach ($row as $value) {
echo "<td>".$value."</td>";
}
echo "</tr>";
}
echo "</table></body></html>";
}
?>And open in your browser http://jaxracquetball.baaka.com/test.php
Thanks for the code I created the php file and ran the code and here is the results
You can't access this file directly...
Ok put test.php in the coppermine folder and got the above results! After putting it in my main PHPNuke folder I got some output you can view it at the link provided
http://jaxracquetball.baaka.com/test.php