Disable a plugin for some pages Disable a plugin for some pages
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Disable a plugin for some pages

Started by AvrilBoi, January 06, 2007, 04:07:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AvrilBoi

Hi!
I just wanted to know how to disable a plugin for specific pages... if it is a possibile thing to do... thanks

François Keller

Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

AvrilBoi

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

François Keller

SEF plugin is expérimental and buggy.
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

AvrilBoi

I know, but isn't there a way to disable any plugin on a coppermine php page?

Stramm

you'll need to modify core code for that...
include/init.inc.php
find
if ($CONFIG['enable_plugins'] == 1) {
    CPGPluginAPI::load();
}


replace with eg.
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.