Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > Programming Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[TIP] Debugging Your Code
mashby's Avatar
mashby
Join Date: Jan 2002
Posts: 736

Married, no kids yet, born in Louisiana and I'm hooked on the television show "24."

Nashville, TN - USA
Show Printable Version Email this Page Subscription
mashby mashby is offline 09-09-2002, 10:00 PM

We've all been there, you're working at 2AM and your page is just not working! What can you do? Well, hopefully some of the the other tips I've posted have helped, but there are some other things that you can do.

1. Learn HTML
A lot of people like using vBulletin because they don't have to know HTML. However, since you're reading this on vBulletintempates.com, that means that you're now beginning to "look under the hood" and that means that you're going to be playing around with HTML.

For the down and dirty, you can check out John Michael Pierobon's on-line tutorial "An Introduction to HTML" [link].

If you're really serious about learning HTML, then I highly recommend Layra Lemay's "Teach Yourself Web Publishing with HTML and XHTML in 21 Days" [link] Although the 864 pages may seem daunting, it's one of the best books on HTML that I've ever read.

But you need a fix right now and you don't have time to read a book do you? Well, all hope is not lost.


2. Use A Validator
Believe it or not, there is a group that is responsible for the specification on HTML (among other things). The name of this group is the W3C [link]. So, why are they important? Well, they have a free Validator service!

If you point your browser to http://validator.w3.org/ you can validate your code in any number of ways. If you're working on a specific template, then you may want to upload your file and have it validated that way. Regardless of HOW you do it, I've found using a Validator very helpful when I'm bleary eyed and can't find what's causing my code to bomb.

NOTE: vB uses a lot of code that does not comply with the HTML4.1 specification, so you will probably see a lot of weird errors that probably don't relate to your error. If you're new to HTML this can be very daunting. So, if you're not that familiar with HTML, then this may not be much help to you.
Reply With Quote
Reply


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 09:01 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.03453 seconds
  • Memory Usage 2,187KB
  • Queries Executed 16 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit_onlinestatus
  • (1)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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete