{"id":10,"date":"2006-12-20T15:17:27","date_gmt":"2006-12-20T15:17:27","guid":{"rendered":"http:\/\/www.gurnaik.com\/blog\/?p=10"},"modified":"2006-12-21T11:07:04","modified_gmt":"2006-12-21T11:07:04","slug":"integrating-phpbb-and-gallery2","status":"publish","type":"post","link":"https:\/\/www.gurnaik.com\/blog\/2006\/12\/20\/integrating-phpbb-and-gallery2\/","title":{"rendered":"Integrating phpBB and gallery2"},"content":{"rendered":"<p><a target=\"_blank\" title=\"Nuked Gallery\" href=\"http:\/\/www.nukedgallery.net\/\">Nuked Gallery<\/a> has an excellent integration module for interfacing <a title=\"phpBB\" href=\"http:\/\/www.phpbb.com\/\">phpBB<\/a>, <em>et al.<\/em>, with the <a title=\"gallery 2\" href=\"http:\/\/gallery.menalto.com\/\">gallery2<\/a> image software. It was fairly straightforward to do this, but I had some trouble getting the phpBB header link bar working correctly when the gallery was being displayed. This <a title=\"DreamHost issue\" href=\"http:\/\/www.nukedgallery.net\/postt3176.html\">forum post<\/a> describes the problem and the solution.<\/p>\n<p>For reference, the solution is to comment out this code in the gallery2.php file:<\/p>\n<blockquote>\n<pre>\/*\r\n$template->assign_block_vars('switch_phpbb_base', array(\r\n'PHPBB_BASE' => strtolower(substr($_SERVER['SERVER_PROTOCOL'], 0,\r\nstrpos($_SERVER['SERVER_PROTOCOL'], '\/'))) . ':\/\/' . $_SERVER['HTTP_HOST'] .\r\nsubstr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '\/') + 1)) );\r\n*\/<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Nuked Gallery has an excellent integration module for interfacing phpBB, et al., with the gallery2 image software. It was fairly straightforward to do this, but I had some trouble getting the phpBB header link bar working correctly when the gallery was being displayed. This forum post describes the problem and the solution. For reference, the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-utilities"],"_links":{"self":[{"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":0,"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/posts\/10\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gurnaik.com\/blog\/wp-json\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}