Somehow I must have messed this up, but I can't figure out how.
Running the 2nd version of the plugin in CPG 1.4.9 - Hardwired
http://www.aeronauticpictures.com/royalty-free-stock-footage/When I ran it with the default code it worked as expected. Then I removed the block of the home page part for guests and added the other blocks I wanted out for guests.
FYI: I only have admin and guests - nobody else will register and use the gallery.
My goal is for guests to see home, custom, search and album.
Any ideas where I went wrong? It is showing blocks to guests instead of hiding them. Yes, the plugin is enabled and installed. I tried uninstalling, unenabling and back again too.
Is this the "<!-- BEGIN block --> <!-- END block -->" issue from theme.php?
Edit: It was this tag block issue. Changes made to hardwired/theme.php to add block tags. Now working at link above.
function final_extract_page_html($html)
{
$user_group=USER_ID;
//define the user group
switch ($user_group){
case 1://admin show all menus
return $html;
break;
case 2://registred
//repeat the next line for each block you would like removed
final_extract_block($html, 'login');
final_extract_block($html, 'home');
return $html;
break;
case 3://guest
//repeat the next line for each block you would like removed
final_extract_block($html, 'lastup');
final_extract_block($html, 'toprated');
final_extract_block($html, 'favpics');
final_extract_block($html, 'lastcom');
final_extract_block($html, 'topn');
return $html;
default://all othe cases
//repeat the next line for each block you would like removed
final_extract_block($html, 'lastup');
final_extract_block($html, 'toprated');
final_extract_block($html, 'favpics');
final_extract_block($html, 'lastcom');
final_extract_block($html, 'topn');
return $html;
}
Thank you for the plugin and the help!
Edit: Found this post:
http://forum.coppermine-gallery.net/index.php?topic=26893.msg160551#msg160551Looks like it could be the call out in Hardwired. Will test and update.