#_CATEGORY
-
Hi,
Using the latest version 5.3.8
Could you please confirm that :-
#_CATEGORY seems to have gone and replaced with #_CATEGORYNAMEThanks for a brilliant Plugin
-
you can used #_CATEGORYNAME for the category name –
Thanks
I was using just #_CATEGORY which worked up to the latest version this placeholder has now gone. #_CATEGORY now needs to be replaced with #_CATEGORYNAME worth a note if anybody else used the same placeholdercan I know your previous EM version?
I think that may have been a pretty old version of em… don’t remember depricating that anytime recently….
It wasn’t an old version.
http://www.paulcoles.co.uk/b/events/ (to see it working correctly)
EM Version 5.3.5
You can see the category correctly displayed, latest version displays #_CATEGORY
Doesn’t matter just worthy of note. I’m new to this and it took me a while to figure out what had happened. I’m just trying to save other people time if they get the same problem.Thanks again for a brilliant Plugin.
hi,
I downloaded version 5.3.5 and could not find #_CATEGORY both in em-classes/event.php and classes/em_category.php ?
It realy isnt a problem just worth a note!
Im not sure that this is the right part of the code but.
line 205-217 em_category.php version 5.3.5 (there it is on line 216!)
==================================================$replace = get_option(‘dbem_category_no_events_message’,”);
}
break;
default:
$replace = $full_result;
break;
}
$replace = apply_filters(’em_category_output_placeholder’, $replace, $this, $full_result, $target); //USE WITH CAUTION! THIS MIGHT GET RENAMED
$category_string = str_replace($full_result, $replace , $category_string );
}
$name_filter = ($target == “html”) ? ‘dbem_general’:’dbem_general_rss’; //TODO remove dbem_ filters
$category_string = str_replace(‘#_CATEGORY‘, apply_filters($name_filter, $this->name) , $category_string ); //Depreciated
return apply_filters(’em_category_output’, $category_string, $this, $format, $target);
}
line 208-223 em_category.php version 5.3.7 (there it is gone!)
=================================================
$replace = get_option(‘dbem_category_no_events_message’,”);
}
break;
case ‘#_CATEGORYNEXTEVENT’:
$events = EM_Events::get( array(‘category’=>$this->term_id, ‘scope’=>’future’, ‘limit’=>1, ‘orderby’=>’event_start_date,event_start_time’) );
$replace = get_option(‘dbem_category_no_event_message’);
foreach($events as $EM_Event){
$replace = $EM_Event->output(get_option(‘dbem_category_event_single_format’));
}
break;
default:
$replace = $full_result;
break;
}
$replaces[$full_result] = apply_filters(’em_category_output_placeholder’, $replace, $this, $full_result, $target);
}i see, well, since it is gone, let’s say it’s officially depricated now, so use #_CATEGORYNAME π
I’ll go with that π
The topic ‘#_CATEGORY’ is closed to new replies.