@gaugau: Sorry, I won't be able to make it an admin settable option to put it on every page, because the content on main page tag does not control "thumbnails.php" or "displayimages.php". This is just like the toprated blocks, random blocks, etc won't show up in thumbnail view or picture view.I can only make an admin settable option to put it on all "index.php" pages, that is mainpage, category view, and album view. To make them appear in when viewing thumbnails and individual pictures the will have to add the code manually.
@sbpoole: OK, let's continue now that I can copy paste again..
If you altered the code as I posted earlier, you will have the anycontent block appearing now on all pages called from index.php: Main page, Category Listing, Album Listings.
Now, if you want it to appear when you are INSIDE an album, do this:
1. If you want the block to appear at the TOP of the page:
thumbnails.php:
Find
pageheader(isset($CURRENT_ALBUM_DATA) ? $CURRENT_ALBUM_DATA['title'] : $lang_meta_album_names[$album]);
add AFTER it:
$elements = preg_split("|/|", $CONFIG['main_page_layout'], -1, PREG_SPLIT_NO_EMPTY);
foreach ($elements as $element){
if (preg_match("/(\w+),*(\d+)*/", $element, $matches)) switch($matches[1]){
case 'anycontent':
include('anycontent.php');
break;
}
}
2. If you want the block to appear at the BOTTOM of the page:
place the same code BEFORE:
pagefooter();
ob_end_flush();
if you want the block to appear when you are looking at an INDIVIDUAL PICTURE:
1. TOP of the page:
displayimage.php:
Find
pageheader($album_name.'/'.$picture_title, '', false);
add AFTER it:
$elements = preg_split("|/|", $CONFIG['main_page_layout'], -1, PREG_SPLIT_NO_EMPTY);
foreach ($elements as $element){
if (preg_match("/(\w+),*(\d+)*/", $element, $matches)) switch($matches[1]){
case 'anycontent':
include('anycontent.php');
break;
}
}
2. If you want the block to appear at the BOTTOM of the page:
place the same code BEFORE:
pagefooter();
ob_end_flush();
OK thats all. Hope it works for you.