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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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.