Hi folks, thought I'd better separate this question from my other topic.
I'm editing another module to create something that will display a simple facebook facepile in the sidebar. I actually have a number of different facebook pages so I would like to have each specific facebook page's facepile only appear on the relevant Pligg categories. ie having the Drummer's facebook page showing it's facepile on the Pligg "drums" category. Hopefully this makes sense!
I noticed this part of code in the module that will allow me to set which specific pages the module would appear on but what I'm after is that it only displays when viewing one specific category.
Also, is it wise to create separate individual facepile modules for each post category like this or would there be a simpler way of doing it all within a single one?
PHP Code:
<?php
include_once('sidebar_facepile_settings.php');
// tell pligg what pages this modules should be included in
// pages are <script name> minus .php
// index.php becomes 'index' and upcoming.php becomes 'upcoming'
$do_not_include_in_pages = array();
$include_in_pages = array('all');
if( do_we_load_module() ) {
if(is_object($main_smarty)){
$main_smarty->plugins_dir[] = sidebar_facepile_plugins_path;
module_add_action_tpl('tpl_pligg_sidebar_start', sidebar_facepile_tpl_path . 'sidebar_facepile_index.tpl');
module_add_action_tpl('tpl_pligg_story_tools_end', sidebar_facepile_tpl_path . 'sidebar_facepile_link.tpl');
}
// module_add_action_tpl('tpl_pligg_below_center', sidebar_facepile_tpl_path . '<your tpl name>.tpl');
}
?>
Thanks for your time. And please excuse my ignorance! I'm trying to learn all this as I go 
D