Results 1 to 5 of 5
  1. #1
    Super Moderator/Coder/Designer nay27uk's Avatar
    Join Date
    Nov 2009
    Location
    Leicester, UK
    Posts
    3,649

    Default faqs.tpl Am I missing somthing

    Right the faqs.tpl is realy begining to piss me off now, I am making a theme and cant for the life of me get the faq page to load its just blank white screen in the new window.

    I have even renamed the original style.css that comes with webid and pointed faqs.tpl to this new renamed .css

    I dont have cach turned on in webid and have even cleared the cache 60 times.
    I have cleared all my browser cache but the faqs still load a blank white page in both IE and FIREFOX even as stated above using the old CSS.

    Am I missing somthing or what?
    Is there somthing that faqs.php and faqs.tpl pull from somwher i am unaware of?

    This only seems to load the page when your using the default theme.

    Can anyone point me in the right direction of how I get the shitty faqs to load a page instead of just blank and white.

    Even with faqs pointing to the original CSS when viewing the sorce all im getting in the sorce of the page is
    PHP Code:
     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=windows-1252" http-equiv=Content-Type></HEAD> <BODY></BODY></HTML
    For some weard reason it wont load the bits between the

    <body> and </body> tags and as you can see there is no CSS mentioned its like it's compleatly egnoring the "link rell style sheet" bits

    The actual .tpl code a I hve it now with renamed old CSS is bellow.
    PHP Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd"
    >
    <
    html lang="en" dir="{DOCDIR}">
    <
    head>
    <
    title>{PAGE_TITLE}</title>
    <
    link rel="stylesheet" type="text/css" href="{SITEURL}themes/{THEME}/css/helpupload.css">
    <
    meta http-equiv="Content-Type" content="text/html; charset={CHARSET}">
    </
    head>
    <
    body bgcolor="#C0C0C0">
    <
    div class="container">
     <
    div class="content">
      <
    div class="tableContent3">
       <
    div class="titTable2 rounded-top rounded-bottom">
        {
    L_5236}
       </
    div>
       <
    div class="table2"
        <
    div style="text-align:right">
         <
    a href="javascript:window.close()">{L_678}</a>
        </
    div>
        <
    ul>
    <!-- 
    BEGIN cats -->
         <
    li><a href="viewfaqs.php?cat={cats.ID}">{cats.CAT}</a></li>
    <!-- 
    END cats -->
        </
    ul>
       </
    div>
      </
    div>
     </
    div>
    </
    div>
    </
    body>
    </
    html
    Note that the helpupload.css is the original style.css as bellow with nothing added or taken away.


    Not so diferent to the original, the original code is bellow
    PHP Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd"
    >
    <
    html lang="en" dir="{DOCDIR}">
    <
    head>
    <
    title>{PAGE_TITLE}</title>
    <
    link rel='stylesheet' type='text/css' href='{SITEURL}themes/default/style.css'>
    <
    meta http-equiv="Content-Type" content="text/html; charset={CHARSET}">
    </
    head>
    <
    body>
    <
    div class="container">
     <
    div id="logo">
      {
    LOGO}
     </
    div>
     <
    div class="content">
      <
    div class="tableContent3">
       <
    div class="titTable2 rounded-top rounded-bottom">
        {
    L_5236}
       </
    div>
       <
    div class="table2"
        <
    div style="text-align:right">
         <
    a href="javascript:window.close()">{L_678}</a>
        </
    div>
        <
    ul>
    <!-- 
    BEGIN cats -->
         <
    li><a href="viewfaqs.php?cat={cats.ID}">{cats.CAT}</a></li>
    <!-- 
    END cats -->
        </
    ul>
       </
    div>
      </
    div>
     </
    div>
    </
    div>
    </
    body>
    </
    html
    Last edited by nay27uk; 27-04-2012 at 05:08 PM.

  2. #2
    Banned/Coder/Designer
    Join Date
    Dec 2009
    Posts
    1,349

    Default

    why are the color code in body ?

    i have my color in the div like this

    in tpl
    HTML Code:
    <div class="contentarea">
    and in css

    Code:
    .contentarea {
      border: 1px solid #C9C9C9;
      border-style:none solid solid solid;
      width: auto;
      height: auto;
      text-align:left;
      background-color: #FFFFFF;
      padding:6px;
    }

  3. #3
    Registered User/Coder Xeonn's Avatar
    Join Date
    Dec 2011
    Location
    Poland, Gdansk
    Posts
    376

    Default

    <div class="container">
    <
    div class="content">
    <
    div class="tableContent3">
    <
    div class="titTable2 rounded-top rounded-bottom">

    you must reffer with !important statement in css to pull your faq in colours to see
    or recode it to not to make affair with class=content and class=tableContent3. IMO
    If you found my posts helpful, feel free to thumb it up
    FORCE ME TO WORK HARDER ----> DONATE recived (147 $) THANKS ALL

  4. #4
    Super Moderator/Coder/Designer nay27uk's Avatar
    Join Date
    Nov 2009
    Location
    Leicester, UK
    Posts
    3,649

    Default

    I am not talking about colors thats just for testing purposes (see bellow)the last piece of code above is the original faqs.tpl that comes with WEBID the first bit of code is just exactly the same but with the CSS name changed.

    The #C0C0C0 color in the body tag of my code was just me testing to see if I changed the body color directly in the page if the page background would change, but the page still loads nothing just a blank white screen its totaly egnoring everything inluding hard coded color for body
    Last edited by nay27uk; 27-04-2012 at 09:15 PM.

  5. #5
    Super Moderator/Coder/Designer nay27uk's Avatar
    Join Date
    Nov 2009
    Location
    Leicester, UK
    Posts
    3,649

    Default

    I managed to fix this now.
    I am a numpty and never realised it uses two .tpl files faqs.tpl and viewfaqs.tpl I never had viewfaqs.tpl in my theme folder

Bookmarks

Posting Permissions

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