faqs.tpl Am I missing somthing

Discussion in 'Modding/Theme Help' started by nay27uk, Apr 27, 2012.

  1. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    4,011
    Likes Received:
    278
    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:
     <!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:
    <!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:
    <!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: Apr 27, 2012
  2. Guest

    Guest Guest

    why are the color code in body ?

    i have my color in the div like this

    in tpl
    HTML:
    <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. Xeonn

    Xeonn New Member

    Joined:
    Dec 15, 2011
    Messages:
    372
    Likes Received:
    54

    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
     
  4. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    4,011
    Likes Received:
    278
    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: Apr 27, 2012
  5. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    4,011
    Likes Received:
    278
    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
     

Share This Page