SlideShare a Scribd company logo
myFidgets
by
Bill Visser
Aim
To produce a Joomla component that
allows for the creation of 'give-a-way'
type of competition.
It must be 'front-end' only:
a 'public section' for members and a
'private section' for administration.
No Joomla backend
Members
• View all published and active competitions
• Enter a competition – only once per day
• View a member's prizes
• View all competitions
• Make a new competition
• Edit previous competitions
• Upload competition photo and prizes
• View winners
Administrators
Auto – cron job
• Make a draw
• Email results to members – include a pdf
• Set Title, Status, Description
• Show the number of Entrants
• Set the Keys per Draw, Draw Cycle, Days of Entry
before the 1st Draw, and the 1st Draw Date
Computer
Method
• Copy com_folio_v2.4.1.zip (Tim Plummer)
• Uncompress it
• Global search and replace –
• folio -> fidget
• Folio -> Fidget
• FOLIO -> FIDGET
• Replace folio in filenames to fidget
• Compress com_fidget to com_fidget_v1.zip
• Install
• com_fidget_v1.zip
• JCE – for ease of use
(Look at the component)
Next we will look at the code of 4 items –
• fidget/components/com_fidget/views/updfidget/tmpl/edit.php
• cron jobs
• fidget/components/com_fidget/cron_jobs/make_a_draw.php
• fidget/components/com_fidget/cron_jobs/send_emails.php
edit.php
Cron Jobs
make_a_draw.php
Once a day at 2:05am
send_emails.php
Every hour at 5 mins
past the hour
make_a_draw.php
send_emails.php
Developing a prize-giveaway style component
Developing a prize-giveaway style component
Developing a prize-giveaway style component
Developing a prize-giveaway style component

More Related Content

Similar to Developing a prize-giveaway style component

Joomla! Pizza Bugs and Fun 2014 pre-event Seminar
Joomla! Pizza Bugs and Fun 2014 pre-event SeminarJoomla! Pizza Bugs and Fun 2014 pre-event Seminar
Joomla! Pizza Bugs and Fun 2014 pre-event Seminar
Gunjan Patel
 
How I Built a Membership Site Using Joomla Components and without being a dev...
How I Built a Membership Site Using Joomla Components and without being a dev...How I Built a Membership Site Using Joomla Components and without being a dev...
How I Built a Membership Site Using Joomla Components and without being a dev...
jdaychi
 
Joget Workflow v6 Training Slides - 13 - Improving your Form Design and Prese...
Joget Workflow v6 Training Slides - 13 - Improving your Form Design and Prese...Joget Workflow v6 Training Slides - 13 - Improving your Form Design and Prese...
Joget Workflow v6 Training Slides - 13 - Improving your Form Design and Prese...
Joget Workflow
 
Bonitasoft BPMN Presentation
Bonitasoft BPMN PresentationBonitasoft BPMN Presentation
Bonitasoft BPMN Presentation
Kashif Captain
 
Git tutorial II
Git tutorial IIGit tutorial II
Git tutorial II
Jim Yeh
 
Sitecore Fxm presentation
Sitecore Fxm presentationSitecore Fxm presentation
Sitecore Fxm presentation
Liam Mepham
 
Microsoft dynamics gp training
Microsoft dynamics gp training Microsoft dynamics gp training
Microsoft dynamics gp training
magnificdynamics
 
Joget Workflow v6 Training Slides - 5 - Designing your First Form
Joget Workflow v6 Training Slides - 5 - Designing your First FormJoget Workflow v6 Training Slides - 5 - Designing your First Form
Joget Workflow v6 Training Slides - 5 - Designing your First Form
Joget Workflow
 
Microsoft dynamics gp 2010 training
Microsoft dynamics gp 2010 trainingMicrosoft dynamics gp 2010 training
Microsoft dynamics gp 2010 training
magnificdynamics
 
Microsoft dynamics training
Microsoft dynamics trainingMicrosoft dynamics training
Microsoft dynamics training
magnificdynamics
 
Implementing Drupalcamp sites
Implementing Drupalcamp sitesImplementing Drupalcamp sites
Implementing Drupalcamp sites
drupalcampest
 
Dexterity in the Wild
Dexterity in the WildDexterity in the Wild
Dexterity in the Wild
David Glick
 
Joget Workflow Training – Basic & Advance for v3.1 – Module 11 – A Revision -...
Joget Workflow Training – Basic & Advance for v3.1 – Module 11 – A Revision -...Joget Workflow Training – Basic & Advance for v3.1 – Module 11 – A Revision -...
Joget Workflow Training – Basic & Advance for v3.1 – Module 11 – A Revision -...
Joget Workflow
 
Git for joomla! development #JAB14
Git for joomla! development #JAB14Git for joomla! development #JAB14
Git for joomla! development #JAB14
Roberto Segura
 
Joget Workflow Training – Basic & Advance for v3.1 – Module 1 – Introduction
Joget Workflow Training – Basic & Advance for v3.1 – Module 1 – IntroductionJoget Workflow Training – Basic & Advance for v3.1 – Module 1 – Introduction
Joget Workflow Training – Basic & Advance for v3.1 – Module 1 – Introduction
Joget Workflow
 
UiPath REFramework Modify the Framework -Add States, Remove States - Develope...
UiPath REFramework Modify the Framework -Add States, Remove States - Develope...UiPath REFramework Modify the Framework -Add States, Remove States - Develope...
UiPath REFramework Modify the Framework -Add States, Remove States - Develope...
Diana Gray, MBA
 
WordCamp Boston 2012 - Creating Content With Shortcodes
WordCamp Boston 2012 - Creating Content With ShortcodesWordCamp Boston 2012 - Creating Content With Shortcodes
WordCamp Boston 2012 - Creating Content With Shortcodes
Jon Bishop
 
Beyond Gravity Forms: Form Plugins for WordPress
Beyond Gravity Forms: Form Plugins for WordPressBeyond Gravity Forms: Form Plugins for WordPress
Beyond Gravity Forms: Form Plugins for WordPress
East Bay WordPress Meetup
 
RAD CRUD
RAD CRUDRAD CRUD
RAD CRUD
Eugene Lazutkin
 
Ibm jbpm online training in bangalore
Ibm jbpm online training in bangaloreIbm jbpm online training in bangalore
Ibm jbpm online training in bangalore
GoLogica Technologies
 

Similar to Developing a prize-giveaway style component (20)

Joomla! Pizza Bugs and Fun 2014 pre-event Seminar
Joomla! Pizza Bugs and Fun 2014 pre-event SeminarJoomla! Pizza Bugs and Fun 2014 pre-event Seminar
Joomla! Pizza Bugs and Fun 2014 pre-event Seminar
 
How I Built a Membership Site Using Joomla Components and without being a dev...
How I Built a Membership Site Using Joomla Components and without being a dev...How I Built a Membership Site Using Joomla Components and without being a dev...
How I Built a Membership Site Using Joomla Components and without being a dev...
 
Joget Workflow v6 Training Slides - 13 - Improving your Form Design and Prese...
Joget Workflow v6 Training Slides - 13 - Improving your Form Design and Prese...Joget Workflow v6 Training Slides - 13 - Improving your Form Design and Prese...
Joget Workflow v6 Training Slides - 13 - Improving your Form Design and Prese...
 
Bonitasoft BPMN Presentation
Bonitasoft BPMN PresentationBonitasoft BPMN Presentation
Bonitasoft BPMN Presentation
 
Git tutorial II
Git tutorial IIGit tutorial II
Git tutorial II
 
Sitecore Fxm presentation
Sitecore Fxm presentationSitecore Fxm presentation
Sitecore Fxm presentation
 
Microsoft dynamics gp training
Microsoft dynamics gp training Microsoft dynamics gp training
Microsoft dynamics gp training
 
Joget Workflow v6 Training Slides - 5 - Designing your First Form
Joget Workflow v6 Training Slides - 5 - Designing your First FormJoget Workflow v6 Training Slides - 5 - Designing your First Form
Joget Workflow v6 Training Slides - 5 - Designing your First Form
 
Microsoft dynamics gp 2010 training
Microsoft dynamics gp 2010 trainingMicrosoft dynamics gp 2010 training
Microsoft dynamics gp 2010 training
 
Microsoft dynamics training
Microsoft dynamics trainingMicrosoft dynamics training
Microsoft dynamics training
 
Implementing Drupalcamp sites
Implementing Drupalcamp sitesImplementing Drupalcamp sites
Implementing Drupalcamp sites
 
Dexterity in the Wild
Dexterity in the WildDexterity in the Wild
Dexterity in the Wild
 
Joget Workflow Training – Basic & Advance for v3.1 – Module 11 – A Revision -...
Joget Workflow Training – Basic & Advance for v3.1 – Module 11 – A Revision -...Joget Workflow Training – Basic & Advance for v3.1 – Module 11 – A Revision -...
Joget Workflow Training – Basic & Advance for v3.1 – Module 11 – A Revision -...
 
Git for joomla! development #JAB14
Git for joomla! development #JAB14Git for joomla! development #JAB14
Git for joomla! development #JAB14
 
Joget Workflow Training – Basic & Advance for v3.1 – Module 1 – Introduction
Joget Workflow Training – Basic & Advance for v3.1 – Module 1 – IntroductionJoget Workflow Training – Basic & Advance for v3.1 – Module 1 – Introduction
Joget Workflow Training – Basic & Advance for v3.1 – Module 1 – Introduction
 
UiPath REFramework Modify the Framework -Add States, Remove States - Develope...
UiPath REFramework Modify the Framework -Add States, Remove States - Develope...UiPath REFramework Modify the Framework -Add States, Remove States - Develope...
UiPath REFramework Modify the Framework -Add States, Remove States - Develope...
 
WordCamp Boston 2012 - Creating Content With Shortcodes
WordCamp Boston 2012 - Creating Content With ShortcodesWordCamp Boston 2012 - Creating Content With Shortcodes
WordCamp Boston 2012 - Creating Content With Shortcodes
 
Beyond Gravity Forms: Form Plugins for WordPress
Beyond Gravity Forms: Form Plugins for WordPressBeyond Gravity Forms: Form Plugins for WordPress
Beyond Gravity Forms: Form Plugins for WordPress
 
RAD CRUD
RAD CRUDRAD CRUD
RAD CRUD
 
Ibm jbpm online training in bangalore
Ibm jbpm online training in bangaloreIbm jbpm online training in bangalore
Ibm jbpm online training in bangalore
 

More from JoomlaDay Australia

Accessibility, SEO and Joomla
Accessibility, SEO and Joomla Accessibility, SEO and Joomla
Accessibility, SEO and Joomla
JoomlaDay Australia
 
Top tips from what we've learned from our 10 years experience
Top tips from what we've learned from our 10 years experienceTop tips from what we've learned from our 10 years experience
Top tips from what we've learned from our 10 years experience
JoomlaDay Australia
 
Building Templates for Joomla
Building Templates for JoomlaBuilding Templates for Joomla
Building Templates for Joomla
JoomlaDay Australia
 
Generate Leads and Sales with a Sales Funnel
Generate Leads and Sales with a Sales FunnelGenerate Leads and Sales with a Sales Funnel
Generate Leads and Sales with a Sales Funnel
JoomlaDay Australia
 
The integration of joomla with the internet of things concept
The integration of joomla with the  internet of things conceptThe integration of joomla with the  internet of things concept
The integration of joomla with the internet of things concept
JoomlaDay Australia
 
A tale of two sites
A tale of two sitesA tale of two sites
A tale of two sites
JoomlaDay Australia
 
Ecwid: shopping cart solution to meet business need
Ecwid: shopping cart solution to meet business needEcwid: shopping cart solution to meet business need
Ecwid: shopping cart solution to meet business need
JoomlaDay Australia
 
Mobile First Development by Shayne Bartlett
Mobile First Development by Shayne BartlettMobile First Development by Shayne Bartlett
Mobile First Development by Shayne Bartlett
JoomlaDay Australia
 
Responsive design
Responsive designResponsive design
Responsive design
JoomlaDay Australia
 
20 common mistakes you should avoid while handling an e-marketing campaign
20 common mistakes you should avoid while handling an e-marketing campaign20 common mistakes you should avoid while handling an e-marketing campaign
20 common mistakes you should avoid while handling an e-marketing campaign
JoomlaDay Australia
 
Speed up Your Joomla Site for Ultimate Performance
Speed up Your Joomla Site for Ultimate PerformanceSpeed up Your Joomla Site for Ultimate Performance
Speed up Your Joomla Site for Ultimate Performance
JoomlaDay Australia
 
Rapid application development using Akeeba FOF and Joomla 3.2
Rapid application development using Akeeba FOF and Joomla 3.2Rapid application development using Akeeba FOF and Joomla 3.2
Rapid application development using Akeeba FOF and Joomla 3.2
JoomlaDay Australia
 

More from JoomlaDay Australia (12)

Accessibility, SEO and Joomla
Accessibility, SEO and Joomla Accessibility, SEO and Joomla
Accessibility, SEO and Joomla
 
Top tips from what we've learned from our 10 years experience
Top tips from what we've learned from our 10 years experienceTop tips from what we've learned from our 10 years experience
Top tips from what we've learned from our 10 years experience
 
Building Templates for Joomla
Building Templates for JoomlaBuilding Templates for Joomla
Building Templates for Joomla
 
Generate Leads and Sales with a Sales Funnel
Generate Leads and Sales with a Sales FunnelGenerate Leads and Sales with a Sales Funnel
Generate Leads and Sales with a Sales Funnel
 
The integration of joomla with the internet of things concept
The integration of joomla with the  internet of things conceptThe integration of joomla with the  internet of things concept
The integration of joomla with the internet of things concept
 
A tale of two sites
A tale of two sitesA tale of two sites
A tale of two sites
 
Ecwid: shopping cart solution to meet business need
Ecwid: shopping cart solution to meet business needEcwid: shopping cart solution to meet business need
Ecwid: shopping cart solution to meet business need
 
Mobile First Development by Shayne Bartlett
Mobile First Development by Shayne BartlettMobile First Development by Shayne Bartlett
Mobile First Development by Shayne Bartlett
 
Responsive design
Responsive designResponsive design
Responsive design
 
20 common mistakes you should avoid while handling an e-marketing campaign
20 common mistakes you should avoid while handling an e-marketing campaign20 common mistakes you should avoid while handling an e-marketing campaign
20 common mistakes you should avoid while handling an e-marketing campaign
 
Speed up Your Joomla Site for Ultimate Performance
Speed up Your Joomla Site for Ultimate PerformanceSpeed up Your Joomla Site for Ultimate Performance
Speed up Your Joomla Site for Ultimate Performance
 
Rapid application development using Akeeba FOF and Joomla 3.2
Rapid application development using Akeeba FOF and Joomla 3.2Rapid application development using Akeeba FOF and Joomla 3.2
Rapid application development using Akeeba FOF and Joomla 3.2
 

Recently uploaded

UI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design SystemUI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design System
Peter Muessig
 
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
safelyiotech
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
ToXSL Technologies
 
SQL Accounting Software Brochure Malaysia
SQL Accounting Software Brochure MalaysiaSQL Accounting Software Brochure Malaysia
SQL Accounting Software Brochure Malaysia
GohKiangHock
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
rodomar2
 
Webinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for EmbeddedWebinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for Embedded
ICS
 
What next after learning python programming basics
What next after learning python programming basicsWhat next after learning python programming basics
What next after learning python programming basics
Rakesh Kumar R
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
Green Software Development
 
zOS Mainframe JES2-JES3 JCL-JECL Differences
zOS Mainframe JES2-JES3 JCL-JECL DifferenceszOS Mainframe JES2-JES3 JCL-JECL Differences
zOS Mainframe JES2-JES3 JCL-JECL Differences
YousufSait3
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
Green Software Development
 
fiscal year variant fiscal year variant.
fiscal year variant fiscal year variant.fiscal year variant fiscal year variant.
fiscal year variant fiscal year variant.
AnkitaPandya11
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
Remote DBA Services
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
Alberto Brandolini
 
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
kalichargn70th171
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
Lecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptxLecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptx
TaghreedAltamimi
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
gapen1
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
Hornet Dynamics
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
Patrick Weigel
 

Recently uploaded (20)

UI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design SystemUI5con 2024 - Bring Your Own Design System
UI5con 2024 - Bring Your Own Design System
 
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
Safelyio Toolbox Talk Softwate & App (How To Digitize Safety Meetings)
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
 
SQL Accounting Software Brochure Malaysia
SQL Accounting Software Brochure MalaysiaSQL Accounting Software Brochure Malaysia
SQL Accounting Software Brochure Malaysia
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CDKuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
KuberTENes Birthday Bash Guadalajara - Introducción a Argo CD
 
Webinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for EmbeddedWebinar On-Demand: Using Flutter for Embedded
Webinar On-Demand: Using Flutter for Embedded
 
What next after learning python programming basics
What next after learning python programming basicsWhat next after learning python programming basics
What next after learning python programming basics
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
 
zOS Mainframe JES2-JES3 JCL-JECL Differences
zOS Mainframe JES2-JES3 JCL-JECL DifferenceszOS Mainframe JES2-JES3 JCL-JECL Differences
zOS Mainframe JES2-JES3 JCL-JECL Differences
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
 
fiscal year variant fiscal year variant.
fiscal year variant fiscal year variant.fiscal year variant fiscal year variant.
fiscal year variant fiscal year variant.
 
Oracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptxOracle Database 19c New Features for DBAs and Developers.pptx
Oracle Database 19c New Features for DBAs and Developers.pptx
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
 
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
The Key to Digital Success_ A Comprehensive Guide to Continuous Testing Integ...
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
Lecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptxLecture 2 - software testing SE 412.pptx
Lecture 2 - software testing SE 412.pptx
 
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
如何办理(hull学位证书)英国赫尔大学毕业证硕士文凭原版一模一样
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
 

Developing a prize-giveaway style component

  • 2. Aim To produce a Joomla component that allows for the creation of 'give-a-way' type of competition. It must be 'front-end' only: a 'public section' for members and a 'private section' for administration. No Joomla backend
  • 3. Members • View all published and active competitions • Enter a competition – only once per day • View a member's prizes • View all competitions • Make a new competition • Edit previous competitions • Upload competition photo and prizes • View winners Administrators
  • 4. Auto – cron job • Make a draw • Email results to members – include a pdf • Set Title, Status, Description • Show the number of Entrants • Set the Keys per Draw, Draw Cycle, Days of Entry before the 1st Draw, and the 1st Draw Date Computer
  • 5. Method • Copy com_folio_v2.4.1.zip (Tim Plummer) • Uncompress it • Global search and replace – • folio -> fidget • Folio -> Fidget • FOLIO -> FIDGET • Replace folio in filenames to fidget • Compress com_fidget to com_fidget_v1.zip • Install • com_fidget_v1.zip • JCE – for ease of use
  • 6. (Look at the component) Next we will look at the code of 4 items – • fidget/components/com_fidget/views/updfidget/tmpl/edit.php • cron jobs • fidget/components/com_fidget/cron_jobs/make_a_draw.php • fidget/components/com_fidget/cron_jobs/send_emails.php
  • 8.
  • 9. Cron Jobs make_a_draw.php Once a day at 2:05am send_emails.php Every hour at 5 mins past the hour
  • 11.
  • 12.
  • 13.
  • 14.