Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2011-10-22 22:03:38

sidekarsten
Member
From: Netherlands
Registered: 2011-08-11
Posts: 34
Website

Re: Find the right Doctype

@ Guguser, well, I posted this because I thought something was wrong with the doctype, this was not the case, in fact there were many errors on my part. Several were indicated by the helpful comments above, and I learned from them.

However, following your argument, you say one should only make a website when one fully and completely understands everything there is to know about webprogramming… well, that may be your opinion, but I would suggest the opposite. I would recommend to everyone to get involved, to try things out, and learn while you go along. Also, if we only do things we fully understand, there would be no use for any forum, would there?

Also you accusations are simply wrong. I do not copy paste things without being willing to understand how they work, in fact, I do understand pretty much most of what I did, that’s why the website works in the first place… there are just a few elements that I don’t really understand yet and for which I humbly ask your help. Whether or not you or others want to provide that help is entirely up to you, that’s how a forum works. You may simply ignore me. Luckily others provided valuable comments which I gratefully took notice of, learned from, and used to improve my site.

@philwareham thanks for the tips, I’ll go to work!

Offline

#17 2011-10-22 22:07:03

sidekarsten
Member
From: Netherlands
Registered: 2011-08-11
Posts: 34
Website

Re: Find the right Doctype

@ maruchan, there are many books on XHTML, is there any one in particular you (or others) would recommend?

Offline

#18 2011-10-23 00:49:48

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,477

Re: Find the right Doctype

sidekarsten schrieb:

(…) you say one should only make a website when one fully and completely understands everything there is to know about webprogramming.

That’s what I said? When? Where?

That’s not what I think! … ;-)

Also you accusations are simply wrong.

Accusations? I don’t accusing you. This here isn’t a war. I found and mentioned that you’ve copied large parts of the fancybox website and reused it. I mentioned as an example: “The code between the lines 81-340 is taken from there and does not make sense for your site.” Or where you have id="example2" or id="example3" etc.?

Your answer was: “When I need these things, I copy paste and hope that it works … I know that there is a lot that is probably not used or is incorrect, but so far the website does what I want it to do, cross-browser above all, so hey, I’m happy with that.” You said that you “hope” and that you are “happy” if it works. At that moment I didn’t get the impression that you wrote something in the sense to “be interested to learn”. If it had not been the startling result of the W3C Validation … I think you would have been satisfied with your work.

And by the way: If you want to enhance your knowledge, then I suggest you familiarize yourself with HTML 5 instead of XHTML.

Offline

#19 2011-10-23 08:42:35

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,566
Website GitHub Mastodon

Re: Find the right Doctype

@Karsten

As also mentioned by GugUser, don’t concentrate too much on XHTML – get a book on HTML in general (of which XHTML is a subset). HTML5 in particular is the latest iteration and the code has been simplified somewhat from previous versions. Any of the O’Reilly books should be of high standard.

Offline

#20 2011-10-23 11:15:46

sidekarsten
Member
From: Netherlands
Registered: 2011-08-11
Posts: 34
Website

Re: Find the right Doctype

Ok Great, will look into that… /

@ Guguser, ok I Will… suppose we were a bit lost in translation. The code you mention by the way is indeed something I don’t use at the moment, but as it was there already I just left it there so I can easily use it if I want to, as a sort of library. Perhaps better to get it out, but I thought I would just leave it there and call on it when I want to use it. I was planning to use these things for some image galleries in the near future.

I was indeed quite happy that everything seemed to work properly (even in IE!!), but then the W3C validation indeed showed that there were some errors. I couldn’t quite work out what was exactly was wrong, so I posted this thread… as I wanted to learn and improve :)

6 months ago I didn’t even know XHTML or HTML5 existed, so I’m on a steep learning curve, which is not easy when you have a full-time job which focusses on research on Stone Age burial rituals and in the mean time also try to run a publishing house aimed at providing free global access to scientific books… :) We didn’t have money to hire a proper web designer, so I’m quite happy with what I could do myself, as everything does seem to work, despite the W3C errors :)

@ Phil, thanks, will have a look at those books! Just ordered the one you suggested!

For now the site is running and is in the air. I will read up on (X)HTML and try to improve the coding as we go along. Any further tips are of course always appreciated.

Offline

#21 2011-10-23 11:44:16

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,397
Website GitHub Mastodon Twitter

Re: Find the right Doctype

but I thought I would just leave it there and call on it when I want to use it.

Karsten,

You could enclose unused code using the hide tag ie

<txp:hide> code to hide </txp:hide>

Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#22 2011-10-23 11:59:51

sidekarsten
Member
From: Netherlands
Registered: 2011-08-11
Posts: 34
Website

Re: Find the right Doctype

@ Colak, Haha, that’s right! Will do that, didn’t think about that, that’s ideal! Much of the unused java is now hidden, thanks!

I now have some of the java in a separate form, so I can easily adjust parameters directly from Textpattern. I learned that you can also put the java in “styles” and call it in from there as you would a style-sheet, but didn’t really get that to work. In either case I suppose it is not what you should really do (put in in a separate file which you upload with FTP, which I did with most other that do not constantly need adjusting/tweaking).

This would perhaps be a nice addition to TXP, a form/style type of tab where you can put all “external” files such as java.

Last edited by sidekarsten (2011-10-23 12:19:36)

Offline

#23 2011-10-23 14:53:29

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,566
Website GitHub Mastodon

Re: Find the right Doctype

sidekarsten wrote:

6 months ago I didn’t even know XHTML or HTML5 existed, so I’m on a steep learning curve

Well, that’s very impressive work for such a short amount of time, keep at it! FWIW I’ve been doing HTML/CSS stuff for about 12 years now and I’m still learning.

Offline

#24 2011-10-23 17:11:13

sidekarsten
Member
From: Netherlands
Registered: 2011-08-11
Posts: 34
Website

Re: Find the right Doctype

@ Phill, where is the “like” button in this forum? :)

had some basic knowledge about HTML and CSS but not properly. Also am a newbie to Textpattern, so current site is my first TXP project. Now planning a new one by the way, but will perhaps first look through the HTML5 book I just ordered. However, for the time being I suppose we cannot really use HTML5 as the older browser will probably not support it? Work at Leiden University and we’ve just had a University-wide ICT upgrade, we now all use IE7 !! AAAARRGGH WHY???? But so do many companies unfortunately, so CSS3 is also not really an option for at least some years to come.

Offline

#25 2011-10-23 17:28:31

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Find the right Doctype

Java does not equal JavaScript. They are two completely different things. (Sorry,that’s just one of my pet peeves)


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#26 2011-10-23 18:00:49

sidekarsten
Member
From: Netherlands
Registered: 2011-08-11
Posts: 34
Website

Re: Find the right Doctype

@ Matt, you’re right (obviously), knew that, mean script.

In any case, to me HTML/CSS is the basis, getting the usual stuff in order, images, text… and JavaScript is to do magic, make things happen. So people who know about JavaScript are wizards. Us normal HTML-speaking persons can let images appear, but the JavaScript wizards can make them blink and fly around, or chase your mouse… :)

Last edited by sidekarsten (2011-10-23 18:01:31)

Offline

#27 2011-10-23 18:10:58

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,566
Website GitHub Mastodon

Re: Find the right Doctype

@Karsten

You can use HTML5 just fine with older browsers (including IE7), as long as you use a JavaScript shiv to make them behave. I personally use Modernizr which has the aforementioned shiv built in amongst other useful features (progressive enhancement is a word you’ll probably hear more and more as you read up on CSS).

As for CSS 3, a lot of the most useful selectors can be ‘shivved’ into old IE browsers using Selectivizr and if you really want some of the more aesthetic selectors then maybe use CSS 3 Pie too (I tend to not use that one as those are mostly just decorative extras – nice to have but not essential).

Don’t let old browsers stop you from designing how you want.

Offline

#28 2011-10-23 19:41:51

sidekarsten
Member
From: Netherlands
Registered: 2011-08-11
Posts: 34
Website

Re: Find the right Doctype

@ Phil, haha, this is amazing stuff, didn’t know that existed!! I use several CSS3 things already, things that look nice in modern browsers but basically crappy in <IE9. With CSS3 Pie I should be able to get those elements fixed in IE 6-8 too! That will probably be my first mission :) Then HTML5 and the other above mentioned goodies.

Can’t wait now for my HTML5 book to come in!

Thanks for all the tips and help guys, if I one day can return a favour, please let me know (or if you are in need of a publisher :) )

Offline

Board footer

Powered by FluxBB