Hey,
My plugin needs a file to be in the root directory of coppermine, the plugin manager uploads the files to .../plugins/plugin_name can you specify where to upload the file to in the codebase, or will i need to use a php copy() in the codebase?
$file = 'plugin.php';
$newfile = '' . $CONFIG['site_url'] .'/plugin.php';
if (!copy($file, $newfile)) {
echo "Plugin error";
}
Thanks!
It would be better to copy it manually by user (You can describe it under installation doc of plugin as well)
using file system function of PHP could create permission problem under badly configured servers
ok, thanks, while im at it is there a restrictions to urls accessing profile.php? the page wont load.
Thanks for your help.
Almost finished plugin ;D. However i need a hand with the plugin syntax, i have a section of code that needs to be inserted into changethumb.php how is this done?
Also, for a language file do you do this?
add this to the lang file
$jsg_plugin = 'Text here';
then on a file you would say:
$jsg_plugin ="Text here" to call up the text.
example: <a href="http://www.google.com"> $jsg_plugin <a />
Correct?
Thanks,
Solved, thanks.