forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 plugins => Topic started by: AvrilBoi on January 06, 2007, 04:07:09 pm

Title: Disable a plugin for some pages
Post by: AvrilBoi on January 06, 2007, 04:07:09 pm
Hi!
I just wanted to know how to disable a plugin for specific pages... if it is a possibile thing to do... thanks
Title: Re: Disable a plugin for some pages
Post by: François Keller on January 06, 2007, 04:25:59 pm
Hi,

You must give us more détails
Title: Re: Disable a plugin for some pages
Post by: AvrilBoi on January 06, 2007, 07:14:40 pm
Ok, sorry.
I'm talking about the SEF urls plugin.
If you check someone's last uploads, because of the SEF plugin, image links are like this:
dislplayimage-lastupby-0-72.html
and image pages are also rewritten ... and, if clicked, don't show anything... 
Should I modify it, I've even made a file for the last uploads which is "lastupby.php" and is identical to "thumbnails.php".
How to disable the plugin there? Thanks
Title: Re: Disable a plugin for some pages
Post by: François Keller on January 06, 2007, 07:46:31 pm
SEF plugin is expérimental and buggy.
Title: Re: Disable a plugin for some pages
Post by: AvrilBoi on January 06, 2007, 07:56:48 pm
I know, but isn't there a way to disable any plugin on a coppermine php page?
Title: Re: Disable a plugin for some pages
Post by: Stramm on January 13, 2007, 10:11:56 am
you'll need to modify core code for that...
include/init.inc.php
find
Code: [Select]
if ($CONFIG['enable_plugins'] == 1) {
    CPGPluginAPI::load();
}

replace with eg.
Code: [Select]
if ($CONFIG['enable_plugins'] == 1 && $_REQUEST['album'] != 10) {
    CPGPluginAPI::load();
}
to disable plugins within the album with the id (aid) 10

there are several other ways to disable plugins.