Gallery2 Embedding Notes ------------------------ 2005-10-10 Thanks to Steve Lineberry for help with this! 1. get gallery2embedded.php and place in /gallery2/ http://gallery.menalto.com/node/36918 2. put your header and footer around this section: Mine happens to be placed just before my footer is included and for me mine is wrapped in a
tag. 3. If you don't want the login link to show, set login to false 4. If you don't want the album owner to show, set showOwner to false in the template file album.tpl file of your theme (this may be a bug and can be fixed in a later update to Gallery2) 5. If you didn't setup embedded mode from the beginning, edit /gallery2/.htaccess change all instances of "main" to "gallery2embedded" Gallery2 Random Thumbnails Outside of Gallery2 ---------------------------------------------- 2005-10-10 1. Setup Image Block module in Gallery2 2. Determine the album name you want to have random thumbnails from. (it can be a top level album that contains sub albums if you like) 3. Search the table g2_FileSystemEntity in your database for the name of that album in column g_pathComponent. The result you are looking for is the corresponding g_id which you will place that value in g2_itemId in the URL below. 4. Take the code from image block in Site Admin area and paste it where you want your random image to appear 5. Notice I added g2_itemId=1 to this URL and changed g2_show=none. All I needed was the image itself (which nicely gives you a link directly to that image inside your Gallery2 as well!)