Select auhor instead of category
Posted: Tue Jul 27, 2010 3:43 pm
The mimbo template uses this piece of code in the config.inc.php to select a category in a dropdown list:
I'm looking for a similar solution to select authors instead of categories, but as usual, my PHP knowledge leaves me hanging. Any help appreciated 
YL
Code: Select all
if ($serendipity['GET']['adminModule'] == 'templates') {
$all_cats = serendipity_fetchCategories('all');
$categories = serendipity_walkRecursive($categories, 'categoryid', 'parentid', VIEWMODE_THREADED);
$catsel = array();
foreach($all_cats AS $cat) {
$catsel[$cat['categoryid']] = str_repeat(' ', $cat['depth']) . $cat['category_name'];
}
}
YL