Announcement

Collapse
No announcement yet.

Stumped on Page Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stumped on Page Error

    Now I know i might get a "have to go to vbulletin.org for this" response, however I assure you my header template is one and the same for my custom pages and forums so please read on...

    I've managed to get almost all our custom templates to be Valid XHTML 1.0 Transitional when checking them at the W3 Validator. The site is www.eclipserecords.com if you would like to see what I am talking about.
    Problem is however, despite passing validation, when using Internet Explorer 7 and not logged in to the site, I get the Errors on page alert (see attached, lower left corner). As soon as I log in, there's no more error. Also of note, is that if I am not logged in on the forum main page, there is NO error.
    The page error looks like this:
    Code:
    Line: 2
    Char: 1
    Error: syntax error
    Code: 0
    Url: http://www.eclipserecords.com
    I may be going crazy here, but the code for the headers in my custom pages and in my forum main page are identical... shouldn't they both display the error or not?
    I decided to take it 1 step further and use W3 Validator version 8 (beta) and the newer version seems to find the error (line 2, char 1) so I know the issue is indeed within the first couple lines of the header template:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html dir="ltr" lang="en">
    <head>
     <!-- no cache headers -->
     <meta http-equiv="Pragma" content="no-cache" />
     <meta http-equiv="Expires" content="-1" />
     <meta http-equiv="Cache-Control" content="no-cache" />
     <!-- end no cache headers -->
     <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <meta name="generator" content="Totally-customized vBulletin 3.6.5 on acid..." />
    but it IS the same template being called regardless of whether or not being logged in, I double-checked it viewing source within my browser.
    What is going on???
    Attached Files
    http://www.vbulletin.com/forum/image...avbit-home.png Eclipse Records - independent record company focused on active rock & alternative metal music
    http://www.vbulletin.com/forum/image...avbit-home.png Streetcult Street Team Marketing - grassroots marketing, promotion, consulting, & digital distribution

  • #2
    So I was able to narrow down the reason why this happens... It's due to the forum/clientscript/ directory being called incorrectly. When called from forum/ directories and below, there's no problem, however when called from a parent directory of forum/ such as root/ the scripts expect the path to clientscript to be root/clientscript as opposed to root/forum/clientscript/

    I was able to temporarily work around this by copying the clientscript directory to my root directory but that's only a temporary fix to what seems a permanent problem.

    This issue could easily be resolved by jelsoft if they coded a variable to call files in this directory in the same manner that they have done with the $vbulletin->options['bburl'] and $vbulletin->bptions['homeurl'] vars. It would certainly make customization easier and promote further development by the userbase community.
    http://www.vbulletin.com/forum/image...avbit-home.png Eclipse Records - independent record company focused on active rock & alternative metal music
    http://www.vbulletin.com/forum/image...avbit-home.png Streetcult Street Team Marketing - grassroots marketing, promotion, consulting, & digital distribution

    Comment


    • #3
      Could simply add the following to your headinclude template:

      <base href="$vbulletin->options['bburl']/" />

      That will make any relative urls into absolute urls.
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API - Full / Mobile
      Vote for your favorite feature requests and the bugs you want to see fixed.

      Comment


      • #4
        Originally posted by Wayne Luke View Post
        Could simply add the following to your headinclude template:

        <base href="$vbulletin->options['bburl']/" />

        That will make any relative urls into absolute urls.
        That's a great idea Wayne, and I see it has no effect upon absolute URLs already in place. It seems to be smart enough to not simply append the bburl which is a good thing. Only issue left however, is that I had to create a massive conditional like this because it seems that all of Photopost gallery's calls are relative urls:

        PHP Code:
        if ((THIS_SCRIPT != 'browseimages') OR (THIS_SCRIPT != 'showimage') OR (THIS_SCRIPT != 'displayimage'etc...)
        {
           <
        base href="$vbulletin->options['bburl']/" />

        Is there an easier way to build the conditional for headinclude template that can be based upon the directory in which the script resides?

        For instance, like this:
        PHP Code:
        if (not in directory /gallery)
        {
           <
        base href="$vbulletin->options['bburl']/" />

        That would be much more efficient
        Last edited by Antivirus; Thu 3rd May '07, 9:23am.
        http://www.vbulletin.com/forum/image...avbit-home.png Eclipse Records - independent record company focused on active rock & alternative metal music
        http://www.vbulletin.com/forum/image...avbit-home.png Streetcult Street Team Marketing - grassroots marketing, promotion, consulting, & digital distribution

        Comment

        Related Topics

        Collapse

        Working...
        X