Go Back   vb.org Archive > Community Central > Community Lounge
  #1  
Old 01-03-2014, 01:26 AM
Bryan Ex's Avatar
Bryan Ex Bryan Ex is offline
 
Join Date: Feb 2004
Location: Canada
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Best way to learn php?

There are a bunch of folks on vb.org that have obviously taken formal computer programming training yet others have no understanding on how php works at all. For those of us that are (possibly) serious hobby website admins... what is the best way to pick up on php skills? HTML wasn't that hard for me. It was very similar to the DOS version of Word Perfect and a For Dummies book was all I needed to get going. Later I started tinkering with easy CSS files and that has since evolved. I still can't write advanced CSS files but can edit existing ones without too much trouble. Enter php and the added sql, java script, and Ajax and... how does a hobby webmaster learn more about this stuff? It seems beyond what a "For Dummies" book can handle but few hobby webmasters want to earn a degree to run their site efficiently. Is there an excellent book? Will a few evening courses do? Does it really require a college or university degree to alter your own vBulletin install beyond what the mod list offers? There are lots of folks here doing their own modifications and alterations... how did you get to know what you know?

- Bryan
Reply With Quote
  #2  
Old 01-03-2014, 01:35 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no tutorial, basically you have to know, php, html, css, and have a understanding of how vBulletin works. Then take it and put it all together.

PHP, basic guide: PHP 5 Tutorial

HTML basic guide: HTML Tutorial - (HTML5 Compliant)

CSS basic guide: CSS Tutorial

vBulletin basic mod guide: Creating a Product
Reply With Quote
2 благодарности(ей) от:
Lynne, RichieBoy67
  #3  
Old 01-03-2014, 01:48 AM
Bryan Ex's Avatar
Bryan Ex Bryan Ex is offline
 
Join Date: Feb 2004
Location: Canada
Posts: 233
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's good... but not quite what I'm asking I think. With HTML I started with the very basics and added on. I learned how to bold, font, and change colour. Later I added tables, links, and images, etc. It seems with php I'm not following that process. I'm learning little clips of how to do stuff, none of which seem to connect together. I might want to list something in a different order in a mod so I find the query and edit it a bit. No big deal and far from adding a feature. How do I best go from these small edits to understanding enough to actually edit code? Do I start with echo Hello World and build on that?
Reply With Quote
  #4  
Old 01-03-2014, 01:59 AM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Read the tutorial on PHP, it will give you the basics, and study other mods to see how they did what they are doing, that is how I learned, I did not go to school for this stuff, I was self taught.
Reply With Quote
  #5  
Old 01-03-2014, 03:47 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I knew basic, fortran and pascal and picked up PHP just by looking at the code and trying (although I'm just a basic programmer, not anything fancy! I'm very much a trial and error coder.). For vBulletin, I'd suggest downloading a modification that does something interesting to you and then see how it works. Then tweak it to do something a bit different and see if you can understand how to do that.
Reply With Quote
2 благодарности(ей) от:
ozzy47, RichieBoy67
  #6  
Old 01-03-2014, 10:40 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I initially learned basics of PHP years ago by reading some of those "Teach yourself PHP in 24 Hours" books. Same for MySQL.
Reply With Quote
4 благодарности(ей) от:
Bryan Ex, Lynne, ozzy47, RichieBoy67
  #7  
Old 01-03-2014, 11:03 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bryan Ex View Post
... Does it really require a college or university degree to alter your own vBulletin install beyond what the mod list offers? ...
As someone with a computer science degree, I'd say it definitely does not. I think programming is the kind of thing that some people just "get" easier than others (like everything, I guess), but I've known a lot of people who were professional programmers who taught themselves, and I don't think I even use anything I learned in school. I think if you figured out how to write your own html and you're motivated to learn php, you'll be able to do it on your own. Like others have said, find some tutorials, and there are lots of places to ask (including this forum) if you don't understand something.
Reply With Quote
4 благодарности(ей) от:
Bryan Ex, Lynne, ozzy47, RichieBoy67
  #8  
Old 01-03-2014, 10:16 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this site was well thought out, it's great for those just now learning coding so give it a try .

http://www.codecademy.com
Reply With Quote
Благодарность от:
RichieBoy67
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11936 seconds
  • Memory Usage 2,241KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (13)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete