restricting plugin to certain albums only restricting plugin to certain albums only
 

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

restricting plugin to certain albums only

Started by badmi, September 06, 2007, 02:59:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

badmi

Hello,

I want to use the image link plugin that shows text below the intermediate image (bbcode).

How do I restrict the plugin that it only is executed in certain albums, and not in all albums, as it does by default?

Thank you very much for your help!

Regards, badmi

PirateZipp

i'm in with this.. will be cool if you can have a chekbox in the album promitions :D

- PirateZipp
.

Stramm

No checkbox but a lil code modif. Add within the function bbcode_add_data right after
global $CONFIG;
that code
$forbidden = array(2,3,4,5,6,7,8);
if (in_array($pic_data['aid'],$forbidden)) {
return $pic_data;
}


In the forbidden array place the album ids of the albums you do not want to show the bbcode data for.

PirateZipp

ohh thx..


i hope som1 come up with a checkbox befor me.. (i'm new in php so it gonna take me som time.. but i got the idea of how)
.

badmi

Hi stramm,

thanks a lot, I will try this!

Regards, badmi