/* Follow the instructions that are in this form*/
/* Change clone of Template named {Competition} to the name of the competition adhering to the following naming convention:
a. Name of chapter or International
b. Competition year eg 2013/14
c. Round number
d. General location eg Purrumbete or say Adaminaby */
/* You can change content directly within the post or you can change it in Notepad++. To change it in Notepad++ .
a. Select Edit to open the post in edit mode
b. control A whilst your curser is over the body of the post the full content of the post will be highlighted.
c. Then control C
d. Open new Tab in Notepad++ and past the full post into Notepad++.
e. Select Language>P>PHP the post will be marked up with the instructions in green. If you build your post in Notepad++ and enter content in conflict with .PHP then it will highlight in black so that you can see your mistake.
/* Category=national, international or one of the states */
/* Tag=competitions */
/* For national and international competitions un-tick Show Title on Single Page which is located at the bottom of the RH publish column. This adds yyyy to the system generated name of the competition as it is shown in the competition blocks on the home and competition page*/
/* Note that an x after a $ will render that field inactive. */
$xsponsorsblock =0;
/* These are posts of standards that effect all competitions. Each of the numbers is a post numbers that you want to list in the “Standard” block on the competition post. Posts in this field can be either posts with content or posts showing a .pdf file. Mark both types of posts with category Standard, then the chapter, national or International and No Tags. The post number of a .pdf that is located in its form documents*/
$standards = array(494,474,2808,5388);
/* These are posts of information that effect all competitions. Each of the numbers is a post numbers that you want to list in the “Important Information” block on the competition post. Posts in this field can be either posts with content or posts showing a .pdf file. Mark both types of posts with category Standard, then the chapter, national or International and No Tags. The post number of a .pdf that is located in its form documents*/
$info = array(1085,9656);
/* Remove x if you want to show year for nationals or international competition. */
$xinternationalyear = 2013;
/* use either rego = ‘NATIONAL’ or rego = ‘NSW-ACT’ or rego = “VIC” or rego = “off” to show or hide the register now image */
$rego = ‘off’;
/* use ‘Description’ to include content at the top of page. The information has to be set out in HTML format
headings
,
paragraph
,
etc */
$paragraphs = array(
‘Description’ =>
‘
2 Sessions on either Arthurs or Woods Lake and a session on Little Pine and Penstock.
‘,
/* Add 1 to 3 photos – delete lines for photo2 and photo3 if not required. */
‘Photo/s’ =>
‘
![]() |
‘,
/* add additional fields by copy and past or remove these 2 example fields. Examples of field headings are Meals, accommodation, closed waters, Transport, Annual general meeting etc */
‘Photographs & Video Footage’ =>
‘
By registering for this competition you are consenting to your inclusion in photographs and/or video footage of the competition being taken and used by Fly Fish Australia Inc , by its Sponsors and Supporters and /or media organisations.
‘,
); $competition = array(
/* Inserting an x in front of Comp year removes yyyy/yy from the generated post name. But if you want to generate a comp name you have to tick the name box on th RH side.*/
‘CompName’ => ‘FFA Tasmania Round Two’,
‘CompYear’ => ’2015/16′, /* format must be yyyy/yy */
‘Location’ => ‘Tasmania’,
‘Dates’ => ’16-01-2016|17-01-2016′,
/* format must be dd-mm-yyyy and | deliminated eg 12-11-2011|13-11-2011|14-11-2011 */
); $googlemaps = array(
/* 1. Open Google Maps then put in say Lake Jindabyne the map of Jindabyne then comes up.
2. Down the bottom Rh side of the map page is a “cog” settings icon.Click on that.
3. Select share link and do not tick short URL.
4. Within the URL shown you will see the longitude and latitude for the map.
5. Cut that and post it into the array on the competition post.
6. Change “z” up or down to get the map to the size you require.
7. Change Location of staging venue+Statehttps://www.google.com.au/maps/@-41.9340162,146.6163286,9z-41.9824795,146.8022536,11.81z
*/
‘hnear’ => ‘Tasmania+Australia’,
‘ll’ => ‘-41.9824795,146.8022536′,
‘z’ => ’9′,
‘t’ => ‘z’,
‘height’ => ’400′
); $contactDetails = array(
/* Put contact details for the competition organiser here in this format. */
‘Name’ => ‘John Fordham’,
‘Mobile’ => ’0438013218′,
‘Email’ => ‘chrisfordham@bigpond.com‘
/* When you have finished building the array using CompAgendaArrayBuilder, line by line, in Open Office copy the generated PHP coded (that is in green) copy the PHP code from open office and post that over the words “CompAgendaArray” below. if you want to add some text eg must uses buses not own car to get to each sector do that in HTML format directly after the opening ‘once the PHP code has been pasted into the competition post. */
); $titles = array(”,’Start’,'End’,'Location’);
$agenda = array(
CompAgendaArray
#### STOP HERE! #### #### STOP HERE! #### #### STOP HERE! #### #### STOP HERE! #### #### STOP HERE! ####
);
$leftsponsor = $_GET["leftsponsor"];
if (!isset($leftsponsor) && isset($sponsorsblock2)) echo ‘‘;
?>
if (isset($internationalyear)) {
echo $internationalyear.' '.$competition[CompName];
} else {
foreach((get_the_category()) as $category) {
echo $category->cat_name.’ ‘;
} echo ”.$competition[CompYear].’ ‘.$competition[CompName];
} ?>
‘; ?>$value) echo ‘‘.$paragraph.’
‘.$value.’
‘; ?>
$cell = 'class="cell small" style="padding: 5px 0px;';
unset($location); $permalink = get_permalink($standard); $slug = basename($permalink);
$postTitle = get_the_title($standard);
$dirs = array('documents', 'forms', 'attachments'); $filetype = 'pdf';
foreach ($dirs as $dir) {
$filename = "/cms/wp-content/$dir/$slug.$filetype";
if(file_exists( $_SERVER{'DOCUMENT_ROOT'} . $filename)) {
$location = "location.href='$filename';";
$icon = $filetype.'.png';
break;
}
}
if(!file_exists( $_SERVER{'DOCUMENT_ROOT'} . $filename)) {
$location = "location.href='$permalink';";
$icon = 'page.png';
}
echo '
‘;
} ?>
Please direct all competition correspondence to:
echo $value.’
‘;
} ?>
if (isset($competition[Eventzilla])) {
$values = explode('|', $competition[Eventzilla]);
echo do_shortcode('[eventzilla id="'.$values[0].'" height="'.$values[1].'"]');
}
if (isset($competition[Registration])) { ?>
Registration / Ticket Information
$icon = $filetype.'.png';
echo '
‘;
} ?>
Competition Agenda
‘;
} ?>
foreach ($agendaitem as $event) { ?>
‘; $i++;
$values = explode(‘|’, $event); $width=(1/(count($values)+3))*100;
foreach ($values as $value) {
echo ‘
‘;
} ?>
} ?>
} ?>
Facebook
