[theme-reviewers] Theme Options Page

Pritam P Hans pritam.hans at gmail.com
Fri Jan 7 12:05:03 UTC 2011


I believe a WP theme should also have an option to delete the database
entries made by it so that there is no data left by a theme when the user
wants to remove it completely. I have tried to incorporate it in Shaan WP
theme.

Maybe, this should be made mandatory to help users keep their databases
tidy.

Rgds,
Pritam

On Fri, Jan 7, 2011 at 5:30 PM, <theme-reviewers-request at lists.wordpress.org
> wrote:

> Send theme-reviewers mailing list submissions to
>        theme-reviewers at lists.wordpress.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.wordpress.org/mailman/listinfo/theme-reviewers
> or, via email, send a message with subject or body 'help' to
>        theme-reviewers-request at lists.wordpress.org
>
> You can reach the person managing the list at
>        theme-reviewers-owner at lists.wordpress.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of theme-reviewers digest..."
>
>
> Today's Topics:
>
>   1. Re: Article on how to create a Theme Options Page for
>      WordPress (Chip Bennett)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 7 Jan 2011 05:42:08 -0600
> From: Chip Bennett <chip at chipbennett.net>
> Subject: Re: [theme-reviewers] Article on how to create a Theme
>        Options Page for WordPress
> To: theme-reviewers at lists.wordpress.org
> Message-ID:
>        <AANLkTinZ5toprc8-MtcB8+GUQEwH7F3gtgHOH7EWUc1J at mail.gmail.com<AANLkTinZ5toprc8-MtcB8%2BGUQEwH7F3gtgHOH7EWUc1J at mail.gmail.com>
> >
> Content-Type: text/plain; charset="windows-1252"
>
> Best practice (and most importantly, the *accepted* best practice with
> respect to WordPress Themes) is to put all options in an array:
>
> 1) It protects your options from potential conflict (which is another
> point:
> you didn't prefix your options names with "theme-slug")
> 2) It makes white-listing much easier
> 3) It makes manipulating options much easier
> 4) It makes removing options from the DB much easier
> 5) It makes reading the DB much easier
>
> (I'm sure there are more.)
>
> *Any* tutorials put out by the Theme Review Team should be consistent on
> matters of guidelines and best practices. There are some conventions that I
> don't personally like, either - but for the sake of standardization (and
> not
> creating confusion), I put aside my personal preferences.
>
> Chip
>
> On Fri, Jan 7, 2011 at 1:26 AM, Daniel Tara <contact at onedesigns.com>
> wrote:
>
> > By the way, I personally don?t like having all the options in a single
> > registered array. It?s ugly to call for a global variable?s array key
> > instead of the option directly and it?s confusing to give the name for a
> > HTML input field arrayname[arraykey]. Just my 2 cents on this.
> >
> >
> >
> > Daniel
> >
> >
> >
> > *From:* theme-reviewers-bounces at lists.wordpress.org [mailto:
> > theme-reviewers-bounces at lists.wordpress.org] *On Behalf Of *Daniel Tara
> > *Sent:* Friday, January 07, 2011 9:22 AM
> >
> > *To:* theme-reviewers at lists.wordpress.org
> > *Subject:* Re: [theme-reviewers] Article on how to create a Theme Options
> > Page for WordPress
> >
> >
> >
> > Thanks for the feedback,
> >
> >
> >
> > I corrected the grammar errors, changed the capability to
> > ?edit_theme_options?, rewritten some portions where I omitted things and
> > bundled the entire code into a child theme for Twenty Ten, which I tested
> > and is working.
> >
> >
> >
> > Daniel
> >
> >
> >
> > *From:* theme-reviewers-bounces at lists.wordpress.org [mailto:
> > theme-reviewers-bounces at lists.wordpress.org] *On Behalf Of *Edward
> Caissie
> > *Sent:* Thursday, January 06, 2011 3:42 PM
> > *To:* theme-reviewers at lists.wordpress.org
> > *Subject:* Re: [theme-reviewers] Article on how to create a Theme Options
> > Page for WordPress
> >
> >
> >
> > There are a few minor typos and a grammar issue or two, otherwise ... I
> > believe the capability should be 'edit_theme_options' versus
> > 'manage_options' based on Justin Tadlock's discussions.
> >
> > Good Read! Definitely adds more insight into the Settings API.
> >
> >
> >
> > Cais.
> >
> > PS: The first time I clicked on the link it took me to the page, every
> > other time I click or use the URL (copy&paste) it wants to open my feed
> > reader ... EAC
> >
> > On Wed, Jan 5, 2011 at 11:12 PM, Daniel Tara <contact at onedesigns.com>
> > wrote:
> >
> > Thought I make this public,
> >
> >
> >
> > Here?s an article on how to create options pages for WordPress themes
> using
> > the Settings API
> >
> >
> >
> >
> >
> http://www.onedesigns.com/tutorials/how-to-create-a-wordpress-theme-options-page
> >
> >
> >
> > I would appreciate any feedback as I probably missed some things out.
> >
> >
> >
> > Daniel
> >
> >
> > _______________________________________________
> > theme-reviewers mailing list
> > theme-reviewers at lists.wordpress.org
> > http://lists.wordpress.org/mailman/listinfo/theme-reviewers
> >
> >
> >
> > _______________________________________________
> > theme-reviewers mailing list
> > theme-reviewers at lists.wordpress.org
> > http://lists.wordpress.org/mailman/listinfo/theme-reviewers
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110107/7c4d1a32/attachment-0001.htm
> >
>
> ------------------------------
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
> End of theme-reviewers Digest, Vol 8, Issue 28
> **********************************************
>



-- 
Regards,
Pritam
98103-98014
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110107/d8c33d86/attachment.htm>


More information about the theme-reviewers mailing list