Results 1 to 8 of 8

Thread: V1.1.2 Generic template is broken - FIXED 1.1.3

  1. #1
    the_sandking's Avatar
    the_sandking is offline hadron remnant - Moderation Fachmann the_sandking is on a distinguished road
    Join Date
    Apr 2003
    Location
    Nullspace
    Posts
    5,289

    Default

    After a bone-stock install and everything working:

    I switched to the generic template, and now the site displays all blank pages.. /ADMIN pages are unaffected..

    (The little dot that usually appears when I screw something-up is absent as well)

    Oddly enough, if you do a <view> <source> in IE, it looks like all the HTML is there..

    Weird.. :shock:

    -sk-
    "Much of what looks like rudeness in hacker circles is not intended to give offense. Rather, it's the product of the direct, cut-through-the-BS communications style that is natural to people who are more concerned about solving problems than making others feel warm and fuzzy."

    "We gotta' go to the crappy town where I'm a hero!"
    -Hoban 'Wash' Washburne 2485-2519


    "When you’re born you get a ticket to the freak show. When you’re born in America, you get a front-row seat.."
    -George Carlin 1937-2008

    New to Open-Realty® and need help? Check the:
    -OR DOCUMENTATION -

    Important: Read this at least once in your lifetime
    How To Ask Questions The Smart Way

  2. #2
    the_sandking's Avatar
    the_sandking is offline hadron remnant - Moderation Fachmann the_sandking is on a distinguished road
    Join Date
    Apr 2003
    Location
    Nullspace
    Posts
    5,289

    Default

    The problem is in 'in user_bottom.html'


    You created a condition where

    Code:
    if &#40;$printer_friendly != "yes"&#41;
    &#123;
    output some HTML
    &#125;
    But you did not handle the situation:

    Code:
    if &#40;$printer_friendly = "yes"&#41;

    also, the </html> happens too soon, and when the 2nd set of timing statistics appears after the </html>, the browser becomes confused clientside...

    I fixed mine, hope it makes sense..

    -sk-[/code]
    "Much of what looks like rudeness in hacker circles is not intended to give offense. Rather, it's the product of the direct, cut-through-the-BS communications style that is natural to people who are more concerned about solving problems than making others feel warm and fuzzy."

    "We gotta' go to the crappy town where I'm a hero!"
    -Hoban 'Wash' Washburne 2485-2519


    "When you’re born you get a ticket to the freak show. When you’re born in America, you get a front-row seat.."
    -George Carlin 1937-2008

    New to Open-Realty® and need help? Check the:
    -OR DOCUMENTATION -

    Important: Read this at least once in your lifetime
    How To Ask Questions The Smart Way

  3. #3
    Join Date
    Jun 2003
    Location
    Netherlands
    Posts
    559

    Default

    how do you fix the file because I'm working also with the generic menu.

    I just replace the new bottom.html with the version before, it is work now
    but I dont no of that is the good way.

    marten

  4. #4
    the_sandking's Avatar
    the_sandking is offline hadron remnant - Moderation Fachmann the_sandking is on a distinguished road
    Join Date
    Apr 2003
    Location
    Nullspace
    Posts
    5,289

    Default

    In the end I just used my old file too..

    The file you need to be careful with is 'user_top.html' Compare it to your old user_top.html file and you will see where Ryan added the timer code to the top.. Move that timer code to the top of your old user_top.html if you care to see the page load times that are hidden in the source.


    Or you can also just eliminate the check to see if the page is printer-friendly.. Me, I really don't care if my home page is printer-friendly, it's the pages with listings on them that count. :wink:


    -sk-
    "Much of what looks like rudeness in hacker circles is not intended to give offense. Rather, it's the product of the direct, cut-through-the-BS communications style that is natural to people who are more concerned about solving problems than making others feel warm and fuzzy."

    "We gotta' go to the crappy town where I'm a hero!"
    -Hoban 'Wash' Washburne 2485-2519


    "When you’re born you get a ticket to the freak show. When you’re born in America, you get a front-row seat.."
    -George Carlin 1937-2008

    New to Open-Realty® and need help? Check the:
    -OR DOCUMENTATION -

    Important: Read this at least once in your lifetime
    How To Ask Questions The Smart Way

  5. #5
    Join Date
    Jun 2003
    Location
    Netherlands
    Posts
    559

    Default

    Thanks for the advice, I will try that.
    I'm also install the ful mod and there is no problem to see.
    Works fine!

    marten

  6. #6
    Join Date
    Aug 2003
    Location
    FL, USA
    Posts
    15

    Default

    I have this same problem in version 1.1.3. It doesn't show up in Internet Explorer 6.0 but does show up in Netscape 7.1.

    I haven't determined why this is happening yet but I do know which line you can delete to make your page viewable. If you remove the following line, which is in template/generic/user_bottom.html, then it'll show up again.

    Code:
    echo "<!--This page was generated in $&#123;render_time&#125; microseconds--><p>";
    Mine displays:

    Code:
    <!--This page was generated in -1062447398.9897 microseconds-->
    Obviously there is a problem if the page was created in a negative amount of time. Then again, maybe you're supposed to just ignore the negative number and check out the microseconds.

    I suggest we try to change the way the page load time is calculated. I noticed that the current way is the same as the example in the PHP manual. Someone noted that there is a typo in it. I made the correction in my PHP code but still got a negative number (and the page still didn't show up). Someone else noted that this is a poor way to calculate execution time. There are many examples at http://us2.php.net/microtime which might be better. What do you think?

  7. #7
    Join Date
    Jun 2004
    Posts
    1,067

    Default

    I must have forgot to fix the render time in the generic template. It is correct in the vertical, you can steal the code from there. It is in the user_top.html and user_bottom.html files

  8. #8
    Join Date
    Aug 2003
    Location
    FL, USA
    Posts
    15

    Default

    Quote Originally Posted by greengiant
    I must have forgot to fix the render time in the generic template. It is correct in the vertical, you can steal the code from there. It is in the user_top.html and user_bottom.html files
    Thanks for the update! I've butchered my generic template so it'll be tough to stick that back in. I know there were other people who posted that they had problems with this so maybe they can try this out to make sure it works. Either way, I guess we'll find out for certain in the next release.

Similar Threads

  1. Generic Template is broken
    By Anonymous in forum HELP (CLOSED)
    Replies: 8
    Last Post: 02-29-2004, 05:49 AM
  2. Generic Template Prob still there in 1.1.4
    By Anonymous in forum HELP (CLOSED)
    Replies: 3
    Last Post: 10-23-2003, 04:17 PM
  3. Generic template still broken v1.1.3
    By Anonymous in forum HELP (CLOSED)
    Replies: 2
    Last Post: 08-23-2003, 07:48 PM
  4. Fixed Width Template - Left Align
    By chemaster in forum HELP (CLOSED)
    Replies: 1
    Last Post: 07-14-2003, 05:06 AM
  5. Small error in the generic template path - FIXED 1.0.5
    By Denver Dave in forum Bugs (CLOSED)
    Replies: 1
    Last Post: 01-16-2003, 07:14 AM

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