Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Apr 2008
    Posts
    62
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Smile Best Way To Learn

    I just started working with Drupal and want to develop my own themes. What is the least complicated way to learn enough PHP to do this?
    Thanks so much-

  • #2
    Regular Coder
    Join Date
    May 2008
    Location
    Ohio
    Posts
    231
    Thanks
    3
    Thanked 21 Times in 21 Posts
    As I recall, Drupal themes have very little PHP in them - mostly XML. I mean, it couldn't hurt to know a lot of php, but I don't think you need to know much aside from how to interface with their template class. Check out this guide: http://tips.webdesign10.com/how-to-make-a-drupal-theme

    To answer your question, though: Download someone else's theme - a simple one. Look at all the code and maybe even make some changes to see how it effects things on the site. Maybe try a few themes - some that are more sophisticated. After you've learned to edit someone else's code, it's pretty easy to design a very basic template to go off of when making your own code. The best way to learn is through experience.
    zok@zoklet:~$ whereis zok
    zok: http://zoklet.net | http://zoklet.net/otg | /derzok/at/gmail/dot/com

  • #3
    New Coder
    Join Date
    Apr 2008
    Posts
    62
    Thanks
    1
    Thanked 3 Times in 3 Posts
    Thanks. I have not seen that link as yet. Do you have any recommendations for learning PHP as well.
    Best regards-

  • #4
    Regular Coder
    Join Date
    May 2008
    Location
    Ohio
    Posts
    231
    Thanks
    3
    Thanked 21 Times in 21 Posts
    Quote Originally Posted by savantcreative View Post
    Thanks. I have not seen that link as yet. Do you have any recommendations for learning PHP as well.
    Best regards-
    Well, that depends - are you familiar with any other programming language(s) at this point? Being familiar with one language of that schema makes it very easy to learn another. My first language was Perl - which provided a smooth transition into other scripting languages. Since I knew how to program in general, I just searched on the google for example scripts and language documentation. However when I went to learn Assembly it was unlike anything I'd seen before and I needed an actual guide to explain new concepts. So if you're familiar with programming already, I highly suggest "winging it" - that is, try making something simple from example scripts. Edit them, hack them, make them your own. If you're entirely new to web programming or even programming in general, I would suggest an actual guide - there are some things that it's very difficult to pick up from example.

    In any case, this guide should have enough info for you to make a Drupal theme with: http://us3.php.net/tut.php

    And a good source for code snippets and reference is: http://www.w3schools.com/PHP/DEfaULT.asP http://www.tizag.com/phpT/ - I use those two sites all the time - even if it's just to look up something simple that I just forgot how to do.

    Good luck, my friend! Let us know if you make anything cool or need any help with the code itself
    Last edited by derzok; 07-29-2008 at 07:13 PM.
    zok@zoklet:~$ whereis zok
    zok: http://zoklet.net | http://zoklet.net/otg | /derzok/at/gmail/dot/com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •