Browse Source

added link to groupsnear you on signup success

master
memespring 16 years ago
parent
commit
32517716af
8 changed files with 45 additions and 17 deletions
  1. +1
    -1
      data/%%45^45E^45E480CD%%index.tpl.php
  2. +16
    -4
      data/%%80^80A^80A14535%%confirmed.tpl.php
  3. +1
    -1
      data/%%D2^D26^D26D8BFE%%xml.tpl.php
  4. +1
    -1
      data/%%F7^F7F^F7F34188%%header.tpl.php
  5. +5
    -1
      docs/css/main.css
  6. +5
    -5
      docs/include/scraper_support.php
  7. +15
    -3
      docs/templates/confirmed.tpl
  8. +1
    -1
      tools/application_mailer.php

+ 1
- 1
data/%%45^45E^45E480CD%%index.tpl.php View File

@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.16, created on 2007-07-21 09:09:29
<?php /* Smarty version 2.6.16, created on 2007-11-03 09:51:05
compiled from index.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));


+ 16
- 4
data/%%80^80A^80A14535%%confirmed.tpl.php View File

@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.16, created on 2006-12-29 16:27:29
<?php /* Smarty version 2.6.16, created on 2007-11-03 10:05:39
compiled from confirmed.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'upper', 'confirmed.tpl', 9, false),)), $this); ?>
@@ -20,9 +20,21 @@ unset($_smarty_tpl_vars);
m). If this alert doesn't cover everywhere you are interested in <span class="highlight"><a href="/">you can sign up for multiple alerts</a></span>
</p>

<p>
If you are interested in discussing local issues with your MP and other local people you can also join <a href="http://www.hearfromyourmp.com">HearFromYourMP.com</a>!
</p>
<!--
<p>
If you are interested in discussing local issues with your MP and other local people you can also join <a href="http://www.hearfromyourmp.com">HearFromYourMP.com</a>!
</p>
-->
<div class="ad">
<h4>Are you a member of a local community email group or forum?</h4>
<p>
Help your neighbours find the group using by adding it to our sister site
<a href="http://www.groupsnearyou.com/add/about/">GroupsNearYou.com</a>
</p>
</div>
</div>
</form>
<?php $_smarty_tpl_vars = $this->_tpl_vars;


+ 1
- 1
data/%%D2^D26^D26D8BFE%%xml.tpl.php View File

@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.16, created on 2007-07-21 12:08:53
<?php /* Smarty version 2.6.16, created on 2007-09-03 20:59:24
compiled from xml.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'xml.tpl', 6, false),)), $this); ?>


+ 1
- 1
data/%%F7^F7F^F7F34188%%header.tpl.php View File

@@ -1,4 +1,4 @@
<?php /* Smarty version 2.6.16, created on 2007-07-21 09:13:09
<?php /* Smarty version 2.6.16, created on 2007-11-03 10:05:39
compiled from header.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


+ 5
- 1
docs/css/main.css View File

@@ -95,4 +95,8 @@ a {color:#22579C;}
#divFooter ul {border-top:dotted 1px #808080;padding-top:8px;padding-bottom:20px;}

/* Buttons */
input.button {font-family:georgia, serif;}
input.button {font-family:georgia, serif;}

/* Ad box */
div.ad {border:solid 3px black;}
div.ad h4 {color:black;font-weight:bold;}

+ 5
- 5
docs/include/scraper_support.php View File

@@ -299,13 +299,13 @@ function scrape_applications_islington ($search_url, $info_url_base, $comment_ur

$url = "http://www.streetmap.co.uk/newsearch.srf?type=Postcode&name=" . $clean_postcode;

$headers = get_headers($url, 1);
$location = $headers["Location"];
$location_regex = "/x=(\d*)&y=(\d*)&/";
$headers = get_headers($url, 1);
$location = $headers["Location"];
$location_regex = "/x=(\d*)&y=(\d*)&/";

preg_match ($location_regex, $location, $matches);
preg_match ($location_regex, $location, $matches);

return array_slice ($matches, 1);
return array_slice ($matches, 1);
}


+ 15
- 3
docs/templates/confirmed.tpl View File

@@ -9,9 +9,21 @@
You will now receive email alerts for any planning applications we find near <strong>{$postcode|upper}</strong> (within approximately {$alert_area_size}m). If this alert doesn't cover everywhere you are interested in <span class="highlight"><a href="/">you can sign up for multiple alerts</a></span>
</p>

<p>
If you are interested in discussing local issues with your MP and other local people you can also join <a href="http://www.hearfromyourmp.com">HearFromYourMP.com</a>!
</p>
<!--
<p>
If you are interested in discussing local issues with your MP and other local people you can also join <a href="http://www.hearfromyourmp.com">HearFromYourMP.com</a>!
</p>
-->
<div class="ad">
<h4>Are you a member of a local community email group or forum?</h4>
<p>
Help your neighbours find the group using by adding it to our sister site
<a href="http://www.groupsnearyou.com/add/about/">GroupsNearYou.com</a>
</p>
</div>
</div>
</form>
{include file="footer.tpl"}

+ 1
- 1
tools/application_mailer.php View File

@@ -36,7 +36,7 @@
//Loop though users
for ($i=0; $i < sizeof($user_results); $i++){
//Find applications for that user
$sql = "select council_reference, address,
postcode, description, info_tinyurl,


Loading…
Cancel
Save