vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Programming Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=188)
-   -   [TIP] Debugging Your Code (https://vborg.vbsupport.ru/showthread.php?t=84530)

mashby 09-09-2002 10:00 PM

[TIP] Debugging Your Code
 
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.


All times are GMT. The time now is 02:11 PM.

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.01072 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete