okay, so per my other post, i copied the structure and set up for the terms of use and privacy statement code (put a new page in the content folder called advanced.php for the new content_main_advanced.php page which includes the google coop code such that the results can be displayed inside the page/site)
the link finds the right place (that's edited from inside the google account - you simply tell it to go to /content/advanced.php) - but the page is blank!
for the new advanced.php page, i've coped the code but replaced with 'advanced' as follows:
<?php
// Run includes
define("context","external");
require_once(dirname(dirname(__FILE__))."/includes.php");
templates_page_setup();
// Draw page
echo templates_page_draw( array(
sprintf(__gettext("%s Advanced Search"),sitename),
templates_draw(array(
'body' => run("content:advanced"),
'name' => sprintf(__gettext("%s Advanced Search"),sitename),
'context' => 'contentholder'
)
)
)
);
?>
...and then for the new main_content_advanced page, i've used the page structure and simply inserted the google code - but can't figure out if i need to name these variables someplace else??? any thoughts????
<?php
$sitename = sitename;
$run_result .= <<< END
<p><b>Advanced search for $sitename searches every single word on the site, beyond the tags.</b></p>
<p>
<!-- Google Search Result Snippet Begins -->
<div id="results_006070410556938526964:p-9etxee0sa"></div>
<script type="text/javascript">
var googleSearchIframeName = "results_006070410556938526964:p-9etxee0sa";
var googleSearchFormName = "searchbox_006070410556938526964:p-9etxee0sa";
var googleSearchFrameWidth = 600;
var googleSearchFrameborder = 0;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<!-- Google Search Result Snippet Ends --></p>
END;
?>
Keywords: advanced search, google coop