- Posts: 33
Contact details in Walk Program summary
- Ian Hobson
-
Topic Author
- Offline
- Junior Member
-
Less
More
05 Apr 2016 15:11 #1
by Ian Hobson
Contact details in Walk Program summary was created by Ian Hobson
I dont know if other groups would find this useful but our members like to see the contact name and telephone number in the summary line of the walk program. I have amended our site to include this by adding the following code to Fulldetails.php - extra line in bold text:
private function displayWalkSummary($walk) {
$text = "<b>" . $walk->walkDate->format('l, jS F Y') . "</b>";
$text .= ", " . $walk->title;
if ($walk->distanceMiles > 0) {
$text .= ", " . $walk->distanceMiles . "mile / " . $walk->distanceKm . "km";
$text .= ", " . $walk->contactName . ", " . $walk->telephone1;
}
This all works well but whenever we have an update to the json code I have to redo the edit. Could you include this functionality or, alternatively, is there a way around this?
Thanks
Ian
private function displayWalkSummary($walk) {
$text = "<b>" . $walk->walkDate->format('l, jS F Y') . "</b>";
$text .= ", " . $walk->title;
if ($walk->distanceMiles > 0) {
$text .= ", " . $walk->distanceMiles . "mile / " . $walk->distanceKm . "km";
$text .= ", " . $walk->contactName . ", " . $walk->telephone1;
}
This all works well but whenever we have an update to the json code I have to redo the edit. Could you include this functionality or, alternatively, is there a way around this?
Thanks
Ian
Please Log in or Create an account to join the conversation.
- Ruby Tuesday
-
- Offline
- Administrator
-
Less
More
- Posts: 933
05 Apr 2016 18:01 #2
by Ruby Tuesday
Replied by Ruby Tuesday on topic Contact details in Walk Program summary
Please login to view the answers
The following user(s) said Thank You: Ian Hobson
Please Log in or Create an account to join the conversation.
- Ian Hobson
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 33
06 Apr 2016 11:32 #3
by Ian Hobson
Replied by Ian Hobson on topic Contact details in Walk Program summary
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Ruby Tuesday
-
- Offline
- Administrator
-
Less
More
- Posts: 933
06 Apr 2016 20:22 #4
by Ruby Tuesday
Replied by Ruby Tuesday on topic Contact details in Walk Program summary
Please login to view the answers
The following user(s) said Thank You: Ian Hobson
Please Log in or Create an account to join the conversation.
- Ian Hobson
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 33
06 Apr 2016 22:00 #5
by Ian Hobson
Replied by Ian Hobson on topic Contact details in Walk Program summary
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Alan Worsley
-
- Offline
- Premium Member
-
Less
More
- Posts: 110
12 Apr 2016 20:39 #6
by Alan Worsley
Replied by Alan Worsley on topic Contact details in Walk Program summary
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Ruby Tuesday
-
- Offline
- Administrator
-
Less
More
- Posts: 933
13 Apr 2016 08:14 #7
by Ruby Tuesday
Replied by Ruby Tuesday on topic Contact details in Walk Program summary
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Alan Worsley
-
- Offline
- Premium Member
-
Less
More
- Posts: 110
13 Apr 2016 17:38 #8
by Alan Worsley
Replied by Alan Worsley on topic Contact details in Walk Program summary
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Ruby Tuesday
-
- Offline
- Administrator
-
Less
More
- Posts: 933
14 Apr 2016 07:40 #9
by Ruby Tuesday
Replied by Ruby Tuesday on topic Contact details in Walk Program summary
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Alan Worsley
-
- Offline
- Premium Member
-
Less
More
- Posts: 110
14 Apr 2016 09:08 #10
by Alan Worsley
Replied by Alan Worsley on topic Contact details in Walk Program summary
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Ruby Tuesday
-
- Offline
- Administrator
-
Less
More
- Posts: 933
14 Apr 2016 09:37 #11
by Ruby Tuesday
Replied by Ruby Tuesday on topic Contact details in Walk Program summary
Please login to view the answers
Please Log in or Create an account to join the conversation.
- Alan Worsley
-
- Offline
- Premium Member
-
Less
More
- Posts: 110
14 Apr 2016 14:32 #12
by Alan Worsley
Replied by Alan Worsley on topic Contact details in Walk Program summary
Please login to view the answers
Please Log in or Create an account to join the conversation.
Time to create page: 0.765 seconds
