Before Asking:
- Search and see if you can find a similar problem with a solution.
In all things, preparation is the key to asking a well formed question, that we are able to deal with in a constructive manner - none of us like to come across as negative in asking that these points are addressed.
The Big Ask:
- Please choose an appropriate title for your post that best sums up the problem you're seeing - something that is descriptive as this helps members to determine if they could provide help and allows for better search results. Titles that are not suitable include "Help, I have a problem", "Quick, urgent help needed" or "wtf, my code isn't working".
As a guide to 'Best Practise' in posting code, these pointers represent the ideal, but do not feel that you have to follow them to the letter, they will however aid us in replying and earn you much respect and praise
:
- Strip everything from your code that doesn't affect the problem. That can be a job, sometimes. You will be amazed at the number of times, though, that the error is made obvious by this exercise.
- Do not use relative addressing for stylesheets (more, in a moment) or images. Instead of <img src="/images/pic.jpg" />, use the canonical address, <img src="http://mysite.com/images/pic.jpg" />. That includes url()s in the stylesheet. If someone decides to copy/paste the code, don't make them have to download your images, etc..
- Move your style rules (the ones that weren't stripped as not being part of the problem) into the head section. Why make us download and fool with an additional file?
- Now run the page through Tidy to strip out tabs and replace them with spaces, and to otherwise prettify the code. This will also double check validity of the html.
- Now, you can paste this stripped down problem code into your post, between [code] and [/code] bb tags.
- As a backup, and to show the page in all its glory, post the link to the actual page. It would be a kindness to replace relative addys and move the styles to the head, but not required.
That is best practice. Doing either is fine, but linked docs should not be altered. Apply fixes to a working copy and post a new link, so that versioning of the problem is maintained.
'Best Practise' prepared by KK5st.
.Double posts will be deleted straight away without notice.
After Your Ask:
- If one of the reply's to your problem provides an answer, mark it as the Best Reply. That way others will be able to find the solution to similar problems easily and the author of the reply will receive some recognition.
This allows the thread to be considered 'Resolved'.Techniques to Help Solve Problems:
- Make a copy of the page so you don't mess up all your hard work.
