24 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
wetwilly92 says

Alrighty,

So I’m getting to at the point of development where I begin building the custom admin panel (Save the best for last eh..) . This being my first Wordpress skinning I find this part of the process incredibly intimidating (mostly because I can’t find any sort of guide). To get to my questions I was wondering:

1) Do any of you Wordpress Veterans have used a guide to get you started in the past?

2) Do you make your own forms and pass data using your own php scripts?

3) Does Wordpress provide any sort of help or documentation on this subject?

The most I know right now is that the functions.php file is what I’m going to be using. I have very little – some knowledge of php, but I’m willing to learn what I need to to get this done.

Thanks a ton for any help,

Jordan

250 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 50+ items on Envato Market
+3 more
simnor says

Hey, when I started to create options pages I followed this tutorial: http://theundersigned.net/2006/06/wordpress-how-to-theme-options/

Helped a great deal, hopefully it will help you.

Simon

352 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $10,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+6 more
danharper says

I used the same tutorial posted by simnor. Just take a while to look through the final code from it, and it should become pretty clear as to what to do.

250 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 50+ items on Envato Market
+3 more
simnor says

Yeah when I first looked at it I was overwhelmed but studying it made me realise that it actually wasn’t that difficult. As Dan Harper said take your time and read through it carefully.

24 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
wetwilly92 says

Alrighty, So Here we go.

After following the Tutorial, I’ve got some questions.

I’ve set up my arrays to include The checkbox input type. I tried adding the following code and it doesn’t seem to work at all.

Secondly, Do I add This inside the Head Tags or inside the body of my header?

Finally, If all goes well, I should be able to just echo my variable names straight into my html as long this is pasted correctly, correct?

Thanks so much for all the help so far!

Jordan

352 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $10,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+6 more
danharper says

Well, I modified the main code slightly to a way I prefer.

In the code, I replaced the ‘foreach’, ‘if’, ‘else’ if parts for each type (this code) to this

I’ve found that to be a lot easier rather than using a load of ‘if’ statements.

As for referencing the options in your templates code, you can use this

(where ‘cocoa_custom_header’ is the option’s ID you included in the array).

Hope that helped.

24 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
wetwilly92 says

Thanks Dan.

I’ve looked at it every which way and I’m just stumped.

This is the code I’ve ended up with this and it still gives me the

Parse error: syntax error, unexpected $end in C:\wamp\www\wordpress\wp-content\themes\DeepBlue Theme\functions.php (template directory) on line 266 (the last line of my code)

I’ve counted all my brackets and it seems like valid code..

352 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $10,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+6 more
danharper says

You’re missing a curly-bracket after THIS line (194).

Full Working Code <—Just tried it, and it works :)

24 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $100+ on Envato Market
  • Has collected 1+ items on Envato Market
wetwilly92 says

Thanks Dan.

Now, I’ve no idea why, but even the fully working code from you still give me the same parse error as if I’m missing a bracket.

I tried randomly placing brackets in different places, and there was only one area where I could put a bracket without it giving me the unexpected “}” error. Even then, it would put the forms on the from page of my theme.

I’m fairly lost, is it a problem with my code, am I missing code snippets?

Any help is deeply appreciated.

Jordan

352 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $10,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+6 more
danharper says

When are you getting the error? Since I can replace my code with the complete code I gave you, and it displays fine. (Before, the Index page would error out and the Options not display in the Dashboard).

See

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by