Page 1 of 2 1 2 LastLast
Results 1 to 15 of 25

How to validate with vBseo Virtual HTML?

This is a discussion on How to validate with vBseo Virtual HTML? within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hello, i use vBseo virtual HTML but with this, pages seems are not anymore validated with The W3C Markup Validation ...

  1. #1
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times

    How to validate with vBseo Virtual HTML?

    Hello, i use vBseo virtual HTML but with this, pages seems are not anymore validated with The W3C Markup Validation Service

    How can i fix that? Here is page with errors:

    [Invalid] Markup Validation of http://forum.fuoriditesta.it/ - W3C Markup Validator

  2. #2
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,322
    Liked
    535 times
    Blog Entries
    4
    What is the code you wrapped with Virtual html in your forumhome template ?
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  3. #3
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times
    That's the code

    Code:
    <!--VBSEO_VIRTUAL_HTML-->
    <!-- what's going on box -->
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <thead>
     <tr>
      <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
     </tr>
    </thead>
    $template_hook[forumhome_wgo_pos1]
    <if condition="$show['loggedinusers']">
    <!-- logged-in users -->
    <tbody>
     <tr>
      <td class="thead" colspan="2">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
       <a href="online.php$session[sessionurl_q]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
     <tr>
      <td class="alt2"><a href="online.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
      <td class="alt1" width="100%">
       <div class="smallfont">
        <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
        <div>$activeusers</div>
       </div>
      </td>
     </tr>
    </tbody>
    <!-- end logged-in users -->
    </if>
    $template_hook[forumhome_wgo_pos2]
    <tbody>
     <tr>
      <td class="thead" colspan="2">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
       <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
     <tr>
      <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
      <td class="alt1" width="100%">
      <div class="smallfont">
       <div>
        $vbphrase[threads]: $totalthreads,
        $vbphrase[posts]: $totalposts,
        $vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
         <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
        </if>
       </div>
       <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
       $template_hook[forumhome_wgo_stats]
      </div>
      </td>
     </tr>
    </tbody>
    $template_hook[forumhome_wgo_pos3]
    <if condition="$show['birthdays']">
    <!-- today's birthdays -->
    <tbody>
     <tr>
      <td class="thead" colspan="2">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
       $vbphrase[todays_birthdays]
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
     <tr>
      <td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
      <td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
     </tr>
    </tbody>
    <!-- end today's birthdays -->
    </if>
    $template_hook[forumhome_wgo_pos4]
    <if condition="$show['upcomingevents']">
    <tbody>
     <tr>
      <td class="thead" colspan="2">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
       <if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
     <tr>
      <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
      <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
     </tr>
    </tbody>
    </if>
    $template_hook[forumhome_wgo_pos5]
    </table>
    <br />
    <!-- end what's going on box -->
    <!--/VBSEO_VIRTUAL_HTML-->

  4. #4
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    22,322
    Liked
    535 times
    Blog Entries
    4
    Does your page validate when Virtual Html Display is dsabled ?
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  5. #5
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times
    Yes, if i remove <!--VBSEO_VIRTUAL_HTML--> and <!--/VBSEO_VIRTUAL_HTML--> page is validated.

  6. #6
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    Inline javascript should be wrapped in a CDATA comments.

    Code:
    <script type="text/javascript">
    //<![CDATA[
    
      alert("<This is compatible with XHTML>");
    
    //]]>
    </script>

  7. #7
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times
    So how can i change

    Code:
    <script type="text/javascript"><!--
    var vbseo_jshtml = new Array();
    vbseo_jshtml[0] = "<!-- what\'s going on box --><table class=\"tborder\"  etc...
    to that?

    Code:
    <script type="text/javascript">
    //<![CDATA[
    
      alert("<This is compatible with XHTML>");
    
    //]]>
    </script>

  8. #8
    Senior Member f4vn's Avatar
    Real Name
    Lam AJ
    Join Date
    Nov 2007
    Posts
    107
    Liked
    5 times
    I fixed it. Just removed the comments. Example:
    HTML Code:
    <!-- what's going on box --> 

  9. #9
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times
    Quote Originally Posted by f4vn View Post
    I fixed it. Just removed the comments. Example:
    HTML Code:
    <!-- what's going on box --> 
    I tried that but nothing change :(

  10. #10
    Senior Member f4vn's Avatar
    Real Name
    Lam AJ
    Join Date
    Nov 2007
    Posts
    107
    Liked
    5 times
    Please change this code by:
    HTML Code:
    <!--VBSEO_VIRTUAL_HTML-->
    
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <thead>
     <tr>
      <td class="tcat" colspan="2">$vbphrase[whats_going_on]</td>
     </tr>
    </thead>
    $template_hook[forumhome_wgo_pos1]
    <if condition="$show['loggedinusers']">
    
    <tbody>
     <tr>
      <td class="thead" colspan="2">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_activeusers')"><img id="collapseimg_forumhome_activeusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
       <a href="online.php$session[sessionurl_q]">$vbphrase[currently_active_users]</a>: $totalonline (<phrase 1="$numberregistered" 2="$numberguest">$vbphrase[x_members_and_y_guests]</phrase>)
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_activeusers" style="$vbcollapse[collapseobj_forumhome_activeusers]">
     <tr>
      <td class="alt2"><a href="online.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/whos_online.gif" alt="$vbphrase[view_whos_online]" border="0" /></a></td>
      <td class="alt1" width="100%">
       <div class="smallfont">
        <div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase></div>
        <div>$activeusers</div>
       </div>
      </td>
     </tr>
    </tbody>
    
    </if>
    $template_hook[forumhome_wgo_pos2]
    <tbody>
     <tr>
      <td class="thead" colspan="2">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_stats')"><img id="collapseimg_forumhome_stats" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_stats].gif" alt="" border="0" /></a>
       <phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_stats" style="$vbcollapse[collapseobj_forumhome_stats]">
     <tr>
      <td class="alt2"><img src="$stylevar[imgdir_misc]/stats.gif" alt="<phrase 1="$vboptions[bbtitle]">$vbphrase[x_statistics]</phrase>" border="0" /></td>
      <td class="alt1" width="100%">
      <div class="smallfont">
       <div>
        $vbphrase[threads]: $totalthreads,
        $vbphrase[posts]: $totalposts,
        $vbphrase[members]: $numbermembers<if condition="$show['activemembers']">,
         <span title="<phrase 1="$vboptions[activememberdays]">$vbphrase[within_the_last_x_days]</phrase>">$vbphrase[active_members]: $activemembers</span>
        </if>
       </div>
       <div><phrase 1="member.php?$session[sessionurl]u=$newuserid" 2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
       $template_hook[forumhome_wgo_stats]
      </div>
      </td>
     </tr>
    </tbody>
    $template_hook[forumhome_wgo_pos3]
    <if condition="$show['birthdays']">
    
    <tbody>
     <tr>
      <td class="thead" colspan="2">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_birthdays')"><img id="collapseimg_forumhome_birthdays" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_birthdays].gif" alt="" border="0" /></a>
       $vbphrase[todays_birthdays]
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_birthdays" style="$vbcollapse[collapseobj_forumhome_birthdays]">
     <tr>
      <td class="alt2"><a href="calendar.php?$session[sessionurl]do=getday&amp;day=$today&amp;sb=1"><img src="$stylevar[imgdir_misc]/birthday.gif" alt="$vbphrase[view_birthdays]" border="0" /></a></td>
      <td class="alt1" width="100%"><div class="smallfont">$birthdays</div></td>
     </tr>
    </tbody>
    
    </if>
    $template_hook[forumhome_wgo_pos4]
    <if condition="$show['upcomingevents']">
    <tbody>
     <tr>
      <td class="thead" colspan="2">
       <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_events')"><img id="collapseimg_forumhome_events" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_events].gif" alt="" border="0" /></a>
       <if condition="$show['todaysevents']">$vbphrase[todays_events]<else /><phrase 1="$vboptions[showevents]">$vbphrase[upcoming_events_for_the_next_x_days]</phrase></if>
      </td>
     </tr>
    </tbody>
    <tbody id="collapseobj_forumhome_events" style="$vbcollapse[collapseobj_forumhome_events]">
     <tr>
      <td class="alt2"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/calendar.gif" alt="$vbphrase[calendar]" border="0" /></a></td>
      <td class="alt1" width="100%"><div class="smallfont">$upcomingevents</div></td>
     </tr>
    </tbody>
    </if>
    $template_hook[forumhome_wgo_pos5]
    </table>
    <br />
    
    <!--/VBSEO_VIRTUAL_HTML-->
    Last edited by f4vn; 05-10-2009 at 04:44 PM.

  11. #11
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times
    Always the same with this code, page is not validate. If i remove VBSEO VIRTUAL HTML it get validated :(

  12. #12
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,680
    Liked
    157 times
    Please try to modify functions_vbseo_seo.php file:
    find:
    PHP Code:
        vbseo_insert_code('
    <script type="text/javascript"><!--
    '
    .$inscode.'
    //-->
    </script>'
    str_replace('_js'''$place)); 
    replace with:
    PHP Code:
        vbseo_insert_code('
    <script type="text/javascript">
    //<![CDATA[
    '
    .$inscode.'
    //]]>
    </script>'
    str_replace('_js'''$place)); 
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  13. #13
    Member
    Real Name
    Fabio
    Join Date
    Oct 2007
    Posts
    66
    Liked
    0 times
    Thank you very much
    Page is now validate!

  14. #14
    Senior Member
    Real Name
    Matthias
    Join Date
    Mar 2009
    Posts
    375
    Liked
    18 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    Please try to modify functions_vbseo_seo.php file:
    find:
    PHP Code:
        vbseo_insert_code('
    <script type="text/javascript"><!--
    '
    .$inscode.'
    //-->
    </script>'
    str_replace('_js'''$place)); 
    replace with:
    PHP Code:
        vbseo_insert_code('
    <script type="text/javascript">
    //<![CDATA[
    '
    .$inscode.'
    //]]>
    </script>'
    str_replace('_js'''$place)); 
    First thank you for your help!
    I had 48 errors and 1 warning until I edited that file.

    Why does vBSEO does not change this file in the next update?
    I think it causes at every forum which uses vbseo w3c errors?

    Is it possible that the <!--VBSEO_RR_1--> are causing issues too?

  15. #15
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,680
    Liked
    157 times
    It will be udpated in next vBSEO version.
    Is it possible that the <!--VBSEO_RR_1--> are causing issues too?
    It depends on what you have defined for relevant replacement in vBSEO CP.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Page 1 of 2 1 2 LastLast

Similar Threads

  1. Virtual HTML Display - What is it?
    By woostar in forum General Discussion
    Replies: 65
    Last Post: 07-14-2009, 12:06 AM
  2. Virtual HTML Sorunu
    By sum41live in forum Türkçe
    Replies: 2
    Last Post: 05-03-2009, 05:55 PM
  3. Virtual Html ?
    By pcwolfx® in forum Türkçe
    Replies: 4
    Last Post: 03-01-2009, 10:52 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
  •