Page 1 of 2 12 LastLast
Results 1 to 15 of 20

Thread: Templates

  1. #1
    Join Date
    Jul 2003
    Posts
    60

    Angry Templates

    How do I easily modify templates and how do I know which are loaded where?

    If I try t oload a template in DreamWeaverMX... It doesn't give me the WSYWIG view... I really didn't want to have to hand code all of my templates...


  2. #2
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    For which template file to load and what variables you can use, please refer to user manual in template section.

    We do not use Dreamweaver to design templates, but it's done by hand using HTMLKit. It could be our fault, it's rendered perfectly in IE and opera, but not in mozilla. The html code for the table may not completely closed.

  3. #3
    Join Date
    Jul 2003
    Posts
    60

    Default

    Yeah... I played a bit yesterday with index.html in HTMLKit and there are a few unclosed tags...

    Guess Job #1 is RTFM , #2 is work out wihich tenplates I'm interested in, #3 is validate their HTNL #4 is amend as required....

    Was hoping it was going to be a bit simpler

    Thanks for the quick response

  4. #4
    Join Date
    Jul 2003
    Posts
    60

    Default Manual

    I'm struggling with the manual... was it written in Spanish and translated??

    "It can't be do it using..."
    "Have no any variables...."
    "You can disable header and footer by write no text..."


  5. #5
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default Re: Templates

    Originally posted by richhead
    How do I easily modify templates and how do I know which are loaded where?

    If I try t oload a template in DreamWeaverMX... It doesn't give me the WSYWIG view... I really didn't want to have to hand code all of my templates...

    the reason they may not load in dreamweaver is because the templates don' t contain the following:
    Code:
    <html>
    <head>
    </head>
    
    <body>
    
    </body>
    </html>
    if you wanted to preview them, you mihgt get away with just a <html><body> at the top of the page. just remember to remove it when you are finished.

    as for templates, yep, you will need to edit every last one of them. look in the themes/default folder. all of those will need to be edited plus the ones in the cp and mail folder.

    Also edit the titles.inc.php in the main folder. Then look in the msg.php file in the themes/default folder. There are some places there that may require editing. And some of the coding is in the class files in the lib folder but not very much.

    The good news is that the main look and feel of your site is controlled in just five files: the header.html, the cat_header.html (used only for the category page in browse) and the footer.html files in the default folder and the header.html and footer.html files in the cp folder.

    Finally, you will edit all those files in default and cp. But it is not too bad. you will want to delete or substitute your own image that is located in most of them. And look at the css in the header files. Particularly, the .tbl_ ones. And if you remove the background color form the .tbl_border, then your page background color will show thru.

    Or you could purchase Veg's template: see http://www.nicecoder.com/community/s...threadid=1402. It may be worth it just to get a clean set of templates and the css file.

    Because in the final analysis, no matter what templates you start out with, you WILL end up spending some time customizing each and every one of them.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  6. #6
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default Re: Manual

    Originally posted by richhead
    I'm struggling with the manual... was it written in Spanish and translated??

    "It can't be do it using..."
    "Have no any variables...."
    "You can disable header and footer by write no text..."

    I think dody, the Core Developer of INDEXU, is from Indonesia and English is his second language.

    The syntax is a little convoluted sometimes but can be figured out most of the time. If not I sure a post here at the forum will clear it up.

    We have many different languages represented here and so someone will be able to help if you have a question
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  7. #7
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Originally posted by richhead
    Yeah... I played a bit yesterday with index.html in HTMLKit and there are a few unclosed tags...

    Guess Job #1 is RTFM , #2 is work out wihich tenplates I'm interested in, #3 is validate their HTNL #4 is amend as required....

    Was hoping it was going to be a bit simpler

    Thanks for the quick response
    and for you add #5 run thru spell checker

    but that's ok, my typing is pretty bad too.

    yep, there are a few unclosed tags. Font tags, especially.

    To locate what does what, open the php file and search for the file extension html. Also, search for msg as some stuff is in the msg.php file.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  8. #8
    Join Date
    Jul 2003
    Posts
    60

    Default

    Many thanks esm....

    I'm hand coding the first one now... I think the difficulty arise from the fact that the header (in isolation) is invalid - lots of 'unclosed' table tags and no </body> or </html>.. in fact it even starts wrong, no valid !DOCYTYPE statement... which might explain my Mozilla struggles... I'm assuming Header + some content + footer = complete page?

    I can see this is going to take me forever

  9. #9
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    the </body> or </html> are in the footer.

    The header and footer take a while ( I use the same header and footer in the cp and the cat_header is the same as the header except for the title ( i think ). I could probably just reference the header/footer in default but I haven't gotten around to that. it was just easy to copy them.

    Sounds like we have found us an HTML expert! That is good!!!

    Originally posted by richhead
    I'm assuming Header + some content + footer = complete page?

    I can see this is going to take me forever
    yep, the content is all the other templates.

    But they only took me about an hour. the header/footer will take a few hours.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  10. #10
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Originally posted by richhead
    in fact it even starts wrong, no valid !DOCYTYPE statement... which might explain my Mozilla struggles
    so what is the significance of DOCTYPE?

    About 94% of my visitors use IE. about half of the remaining use browsers so old, probably nothing looks right to them.
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  11. #11
    Join Date
    Jul 2003
    Posts
    60

    Default

    Doctype is short for "document type declaration" (or DTD). Any (X)HTML web page needs to define a Doctype : it is used to declare which version of (X)HTML the webpage conforms to.

    Since different versions of (X)HTML mean different markup, browsers may not behave correctly if you don't set a proper Doctype... and your page will not be valid (X)HTML, even if the rest of your markup is perfect..

    Modern broswers (NS6, IE6, Mozilla, Opera and that one for the Mac (Jav??) are all becoming less tolerant of poor HTML (not closing tags for example), I'd rather invest the effort once (up front) to make the templates valid, than revisit it each time I get a complaint (by which time I will have forgotten how it all hanges together

  12. #12
    Join Date
    Jul 2003
    Posts
    60

    Default

    OK... I took header + index + footer and created one file, there were loads of unclosed tags and loads of unecessary closing tags (or prhaps they were the missing ones - just in the wrong place). I know have a new file that's valid and can be seen in DWMX... which I'll now use to play about and create my desired layout before decomposing back into the three separate files.

    Product seems pretty good (what I've seen), but the templates are not so good.... I'd love to see how some of these directories look in certain browsers!

    Once I have something ready for my client, I'll let you know... I'd welcome feedback on my installation of Indexu

  13. #13
    Join Date
    Jul 2003
    Posts
    60

    Default

    It took me over an hour to get the template to validate in W3C (which is the only guarantee it'll be future proof).

    If header & footer are the worst two... this be a doddle

  14. #14
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Originally posted by richhead
    OK... I took header + index + footer and created one file, there were loads of unclosed tags and loads of unecessary closing tags (or prhaps they were the missing ones - just in the wrong place). I know have a new file that's valid and can be seen in DWMX... which I'll now use to play about and create my desired layout before decomposing back into the three separate files.
    that is how I did it, except for the validation thing...although I did run it thru TIDY to clean it up.

    Originally posted by richhead
    Product seems pretty good (what I've seen), but the templates are not so good.... I'd love to see how some of these directories look in certain browsers!
    I think dody is working on enabling smarty templates in the next version which will really add some much needed power to the templates.

    See http://www.nicecoder.com/community/s...&threadid=1254

    Won't do much for validation but I think some folks look at it like "well, if it will display in IE and maybe ns6, then the rest of the folks are on there own."
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

  15. #15
    Join Date
    Apr 2003
    Location
    Atlanta GA
    Posts
    3,395

    Default

    Originally posted by richhead
    Doctype is short for "document type declaration" (or DTD). Any (X)HTML web page needs to define a Doctype : it is used to declare which version of (X)HTML the webpage conforms to.

    Since different versions of (X)HTML mean different markup, browsers may not behave correctly if you don't set a proper Doctype... and your page will not be valid (X)HTML, even if the rest of your markup is perfect..
    THANKS!

    is there a place to read about the different doctypes?
    esm
    "The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."

    .

Similar Threads

  1. Templates
    By richhead in forum v3.2
    Replies: 9
    Last Post: 09-09-2003, 02:44 AM
  2. Templates for sale
    By Veg in forum Templates
    Replies: 26
    Last Post: 08-09-2003, 08:41 AM
  3. NEW INDEXU THEME Templates
    By Hart_House in forum Templates
    Replies: 8
    Last Post: 02-27-2003, 07:36 PM
  4. New Templates Question...
    By amanda in forum Templates
    Replies: 1
    Last Post: 02-05-2002, 02:27 AM
  5. Different Browse.htm templates
    By Shophere in forum v5.x
    Replies: 0
    Last Post: 09-10-2001, 03:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •