Hi
I have thousands of screencaps from a TV show on my site, and I'm having trouble uploading them after a while, as my host does not allow scripts which need longer than 10 seconds.
I get the error running the searchnew.php, just browsing the files on the server, it seems with more than 8000 pictures, the script needs more than 10 seconds on my host ... and I'm not even halfway of the uploading right now ...
I tried differents solutions since Friday, did a lot of searches here, but as my host provides only one database, with as many tables I need, I'm running short on solutions - the last one being to install Coppermine outside phpnuke too, but I'd have to rebuild the theme :roll:
So here is my question : is there a way to install coppermine inside the modules twice, referring to different sql tables, ie cpg2_
Here is the link to the Coppermine module on my site
http://www.jag-en-ligne.com/modules.php?name=coppermine
Displaying of albums is just great and easy, only the uploading is not working any more
I'm not sure I made myself really clear, sorry :?
I can't see why not. As long as you are working in two seperate directories also. Then with a cpg_1 and a cpg_2 prefix to the tables, you should be able to. In fact, I know you can because I have a 1.1.0 and several 1.2 development installations all on the same machine.
But, this begs the question, "do we need to start looking at some stonger indexing?" :?:
ok, I'm going to rephrase my question :wink:
I just tried, and I'm still working with the first tables
This is what I did
- make a new coppermine.sql, changing all cpg_ in cpg2_
- change in the include/config.inc.php the table prefix from cpg_ to cpg2_
- upload coppermine in the module folder, creating a new module coppermine2
- activate the coppermine2 module
and it's not working, my new coppermine2 is still using the cpg_ tables ....... :?
I'm pretty new at all this php coding, and trying to figure out what to do next ... or what to make better for it to work .... :roll:
one of the first things coppermin does is
iinclude("header.php");
include('modules/coppermine/include/init.inc.php');
so you should go through each and every file in your second coppermine and search and replace all such code ....
Thanks
it's what I did , changing all ../coppermine/.. in ../coppermine2/.. but I do run now in a critical error : can't find template file, while my default directory is there, with changes made ....
any idea?
I've installed Coppermine outside phpnuke and will then have one part of my picutres inside phpnuke, and this other part outside ... :?
The script is probably looking for the nuke_user table which is not in the second db you'll have to code the second instance of coppermine to look in the other data base for the userdata...
Thanks a lot, I'll try this .... but I installed Coppermine outside phpnuke for one half of my pictures, made some changes to the theme to fit my site and it seems to be working just fine ...... and now, version 1.2 is out :wink: I guess I know how to spend my week end :wink:
Why not Dev. the CPG for nuke to use the global "$name" from phpNuke then you can have as many coppermine galleries as you want without a hassle in phpNuke?
{note by dev done but it's called $CONFIG[module_name] in the next version}
include('modules/'.$name.'/include/init.inc.php');
Or even configure it to a special init.inc.php file and albums directory which is described in the init.inc.php. for example:
/modules.php?name=coppermine&cfg=init2
index.php:
include('modules/'.$name.'/include/'.$cfg.'.inc.php');
no need for this it would be in a separate module seperate config file
$cfg.'.inc.php:
$CONFIG['fullpath'] = '/modules/'.$name.'/Albums2/';
$CONFIG['TABLE_PREFIX'] = "cpg2_";
But the last option is a lot of work since you need to edit all links to modules.php?name=coppermine and add: modules.php?name=coppermine&cfg=$cfg
OK i changed coppermine 1.1D so you can have many coppermine modules as you want.
It only has the modified "default" theme to intergrate more in phpNuke.
Also only dutch and english language are included.
download http://www.mp3tunes.nl/coppermine/coppermine.zip
extract to your phpNuke directory.
Copy the coppermine directory to something like modules/Coppermine2 or modules/Album2.
(You may use any name you want but be aware that also modules/coppermine exists or you get theme errors)
Edit config.inc.php param:
$CONFIG['TABLE_PREFIX'] = "cpg_";
To the new prefixed tables in your database like: cpg2_ or alb2_
Then go to module in webpage view and config the album and album/userpic paths. (ex. modules/Coppermine2/albums)
[size=18]WARNING![/size] It's almost fully tested so there could be a bug in it.