Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 4 of 4

Thread: HTML cleanup

  1. #1
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default HTML cleanup

    I've previously been using a plugin at exec. time 65,000 to clean up the comments in my HTML; however, it wasn't as effective as vBSEOs, so I decided to revisit that.

    I changed the conditional that determines execution of the vBSEO HTML cleanup from:

    PHP Code:
    if(VBSEO_CODE_CLEANUP && !isset($_GET['vbseo_nocleanup']) && !$_POST['ajax'] && !$VBSEO_REWRITE_TEXTURLS
    To:

    PHP Code:
    if(VBSEO_CODE_CLEANUP && !isset($_GET['vbseo_nocleanup']) && !$_POST['ajax'] && !$VBSEO_REWRITE_TEXTURLS && !$_GET['language']) 
    Is this safe to use, or will it break parts of vBET?

  2. #2
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    It is safe since you clean up only for not translated pages.

  3. #3

    Default

    So does that also mean that setting vBSEO's "Cleanup HTML Code" to YES is safe to set as it will not affect translated pages?

    vBSEO admin setting...
    Cleanup HTML code?
    Select 'Yes' to remove unnecessary whitespace characters and HTML comments from the source code of your forum pages. This increases the C2C (Content to Code) ratio and reduces page sizes, resulting in a net performance increase and reduction in bandwidth required.
    NOTE: If comments (or HTML tags) within your pages are not closed correctly with their corresponding end tags, then this option could cause your pages to display incorrectly. Be sure that your templates contain error free HTML tags and code.

  4. #4
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    It depends when it happens. If it is working after vBET plugin for global_complete hook, then there is no problem. If it is working before - then you loose information about what shouldn't be translated and get wrong results.

Tags for this Thread

Posting Permissions

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