2013-05-02, 11:17 AM
Right so I have finished the back-end of my tipping competition and am now moving onto the front-end.
The back-end is a new module under admin.
Now the new tipping competition page is going to have the following features
- List of available comps
- Leaderboard
- Enter-tips
- Sign-up
- edit tips
and a few others. Normally in the past when I have written this sort of stuff I just add a new page, as this is more or less a new functionality.
However I figure I could write the plugin file, hook into something like misc_start and then use that to display the above as needed using whatever flags.
Benefits of that are that there is less new clutter being added to peoples sites.
Down side, is that everything gets fed through misc.php. I personally prefer to have my URL's something like mysite.com/tipping-competition.php
or better still mysite.com/tipping-comps/NRL-tipping-comp/ladder (i.e. the competition name
That way it keeps my content well described etc.
Just wondering what the school of thought on this is?
Dan
The back-end is a new module under admin.
Now the new tipping competition page is going to have the following features
- List of available comps
- Leaderboard
- Enter-tips
- Sign-up
- edit tips
and a few others. Normally in the past when I have written this sort of stuff I just add a new page, as this is more or less a new functionality.
However I figure I could write the plugin file, hook into something like misc_start and then use that to display the above as needed using whatever flags.
Benefits of that are that there is less new clutter being added to peoples sites.
Down side, is that everything gets fed through misc.php. I personally prefer to have my URL's something like mysite.com/tipping-competition.php
or better still mysite.com/tipping-comps/NRL-tipping-comp/ladder (i.e. the competition name
That way it keeps my content well described etc.
Just wondering what the school of thought on this is?
Dan