Re: Adding 'Search for Events' on the homepage
So where do I get the form from? giftreg.php? and if so what part of the code do I copy into welcome.tpl
require "./auth.php";
if (empty($active_modules["Gift_Registry"]))
func_header_location("error_message.php?page_not_f ound");
x_session_register("access_status", array());
if ($mode == "preview") {
$html_content = func_query_first_cell("SELECT html_content FROM $sql_tbl[giftreg_events] WHERE event_id='$eventid'");
if (!empty($html_content))
echo $html_content;
else
echo "<br /><br /><br /><br /><h3 align=\"center\">".func_get_langvar_by_name("lbl_n o_html_content",false,false,true)."</h3>";
exit;
}
include $xcart_dir."/include/categories.php";
if($active_modules["Manufacturers"])
include $xcart_dir."/modules/Manufacturers/customer_manufacturers.php";
if (!empty($cc)) {
#
# Confirm/Decline the participation by recipient
# $cc - is a confirmation code passed via GET request
#
include $xcart_dir."/modules/Gift_Registry/giftreg_confirm.php";
}
if (!empty($eventid)) {
if (!empty($wlid)) {
if (func_query_first_cell("SELECT COUNT(*) FROM $sql_tbl[giftreg_events] WHERE MD5(login)='$wlid' AND event_id='$eventid'")) {
x_session_register("wlid_eventid");
$wlid_eventid = $eventid;
x_session_save("wlid_eventid");
}
}
include $xcart_dir."/modules/Gift_Registry/event_guestbook.php";
include $xcart_dir."/modules/Gift_Registry/giftreg_display.php";
}
else
include $xcart_dir."/modules/Gift_Registry/giftreg_search.php";
# Assign the current location line
$smarty->assign("location", $location);
func_display("customer/home.tpl",$smarty);
?>
__________________
4.1.9
|