TKServer
TKServer
Welcome, Guest
Please Login or Register.    Lost Password?
Turn off plugin for selected Articles!
(1 viewing) 1 Guest
Go to bottom
TOPIC: Turn off plugin for selected Articles!
#183
marxx (User)
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Turn off plugin for selected Articles! 5 Months ago  
Is this not possible? Can a piece of code be added to this plugin? please help! I dont want the "author" on certain pages (here: uncategorized ones). What can i do? would be perfect to see a field in the settings: "Exclude the following Item IDs" and even section/categories...what can we do?
thanks a lot
 
Logged Logged  
  The administrator has disabled public write access.
#184
admin (Admin)
Administrator
Posts: 236
graph
User Offline Click here to see the profile of this user
Re:Turn off plugin for selected Articles! 5 Months ago  
This is definitely possible. Ultimately it would be nice to have a setting in each article preferences, but the easier thing would be to have a CB Author Plug preference which allowed exclusion of certain item ID's.

I'll add this to the suggestion list.
 
Logged Logged  
  The administrator has disabled public write access.
#186
marxx (User)
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:Turn off plugin for selected Articles! 5 Months ago  
thank you, thank you. this is really something that should be in there. it will enhance your plugin. sad i have to wait for it, i need that feature badly. No other plugin comes near to this one. A quick solution is not possible at this point? If i would just know where to add what code..i would do it myself...argh...
 
Logged Logged  
  The administrator has disabled public write access.
#188
admin (Admin)
Administrator
Posts: 236
graph
User Offline Click here to see the profile of this user
Re:Turn off plugin for selected Articles! 5 Months ago  
If you know php you could modify the code to do what you want:

if ($category = 'uncategorised'){

execute no code

}

That's the concept.
 
Logged Logged  
  The administrator has disabled public write access.
#189
marxx (User)
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:Turn off plugin for selected Articles! 5 Months ago  
Not really...i played around with a piece of code i saw on another plugin who has an exclusion option for articles but i had no success. i have no idea:

function onAfterDisplayContent( &$article, &$params, $limitstart ) {

// Retrieve parameters

$excluded_articles = $this->_params->get( 'excludedarticles', '');

$arr_excluded_articles = split(',', $excluded_articles);

// Check for exclusion

if (in_array( $article->id, $arr_excluded_articles )) {

// This article is excluded...

return '';

}


well. i have to wait then. this is the only reason i cannot use this plugin
 
Logged Logged  
  The administrator has disabled public write access.
#190
admin (Admin)
Administrator
Posts: 236
graph
User Offline Click here to see the profile of this user
Re:Turn off plugin for selected Articles! 5 Months ago  
Ok well good luck. I am available for custom work if you want it bad enough to hire the work done...
 
Logged Logged  
  The administrator has disabled public write access.
Go to top