vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - vB Global Translator - Multiply your indexed pages & put search traffic on autopilot (https://vborg.vbsupport.ru/showthread.php?t=216218)

Dave Hybrid 06-20-2009 06:03 PM

Spammers target the majority. As most forums are in English spammers target that, maybe you should stop posting in English?

Dave Hybrid 06-20-2009 07:17 PM

For people getting the compression error in the browser my coder says this is due to a plugin that is conflicting with the script. You can try disabling any other plugins to troubleshoot if you want.

Quote:

This page can not be displayed, because it uses incorrect or unsupported compression methods.

SuperTaz 06-20-2009 08:29 PM

Works good with new files.

chris1979 06-20-2009 08:54 PM

This is a great idea. I have a similar thing on my wordpress blog and it is excellent for bringing in extra traffic.

I have a problem with my installation though. As soon as I created the plug in, my site crashed. I just got a blank white page when I went to the site.

I've disabled the plugin for now but I'm very keen to make it work.

Can you help?

This is the plugin code I am referring to:

Code:

require_once("translate.php");
// Enable UTF-8 characters
if(isset($_GET['hl']))
{
header ('Content-type: text/html; charset=utf-8');
}
// Keep remainders of <style and <script tags!
    $time = time(); // Unique Tag Identifier!
    preg_match_all('|<script[^>]*>(.*?)</script>|si', $output,$scripttags, PREG_SET_ORDER);
    for($i=0;$i<count($scripttags);$i++)
    {
        $output = str_replace($scripttags[$i][0], "<a name=\"$i\"></a>",$output);
    }     
    //preg_match_all("<style[^>]*>.*</style>",$buffer,$styletags);
    preg_match_all('|<style[^>]*>(.*?)</style>|si',$output,$styletags);
    for($i=0;$i<count($styletags);$i++)
    {
        $output = str_replace($styletags[1][$i], "<a name=\"s$i\"></a>",$output);
    }
   
$output=callback($output);

// Place back remainders of <style and <script tags!
    for($i=0;$i<count($styletags);$i++)
    {
        $output = str_replace("<a name=\"s$i\"></a>", $styletags[1][$i], $output);
    }
    for($i=0;$i<count($scripttags);$i++)
    {
        $output = str_replace("<a name=\"$i\"></a>",$scripttags[$i][0] ,$output);
    }
//print_r($scripttags);
//die("c:".count($scripttags).":".count($styletags));

(I am using vb 3.8.)

merkaz 06-20-2009 10:24 PM

Thanks Dave ..

It's really amazing hack ..

I installed it yesterday .. the page load but without the text ..

I see the database growing up now it's 9.5 MB with 118,279 records ...

http://www.alhnuf.com/18.html?hl=en

What i can do ?

burlesque 06-20-2009 11:11 PM

Quote:

Originally Posted by chris1979 (Post 1833588)
This is a great idea. I have a similar thing on my wordpress blog and it is excellent for bringing in extra traffic.

I have a problem with my installation though. As soon as I created the plug in, my site crashed. I just got a blank white page when I went to the site.

I've disabled the plugin for now but I'm very keen to make it work.

Can you help?

This is exactly the problem that I am having. I'm using vbSEO and 3.8.2.

Dave Hybrid 06-21-2009 06:17 AM

Quote:

Originally Posted by chris1979 (Post 1833588)
This is a great idea. I have a similar thing on my wordpress blog and it is excellent for bringing in extra traffic.

I have a problem with my installation though. As soon as I created the plug in, my site crashed. I just got a blank white page when I went to the site.

I've disabled the plugin for now but I'm very keen to make it work.

Can you help?

This is the plugin code I am referring to:

Code:

require_once("translate.php");
// Enable UTF-8 characters
if(isset($_GET['hl']))
{
header ('Content-type: text/html; charset=utf-8');
}
// Keep remainders of <style and <script tags!
    $time = time(); // Unique Tag Identifier!
    preg_match_all('|<script[^>]*>(.*?)</script>|si', $output,$scripttags, PREG_SET_ORDER);
    for($i=0;$i<count($scripttags);$i++)
    {
        $output = str_replace($scripttags[$i][0], "<a name=\"$i\"></a>",$output);
    }     
    //preg_match_all("<style[^>]*>.*</style>",$buffer,$styletags);
    preg_match_all('|<style[^>]*>(.*?)</style>|si',$output,$styletags);
    for($i=0;$i<count($styletags);$i++)
    {
        $output = str_replace($styletags[1][$i], "<a name=\"s$i\"></a>",$output);
    }
   
$output=callback($output);

// Place back remainders of <style and <script tags!
    for($i=0;$i<count($styletags);$i++)
    {
        $output = str_replace("<a name=\"s$i\"></a>", $styletags[1][$i], $output);
    }
    for($i=0;$i<count($scripttags);$i++)
    {
        $output = str_replace("<a name=\"$i\"></a>",$scripttags[$i][0] ,$output);
    }
//print_r($scripttags);
//die("c:".count($scripttags).":".count($styletags));

(I am using vb 3.8.)

You uploaded all the files too?

Dave Hybrid 06-21-2009 06:18 AM

This product might conflict with other plugins, i suggest you disable other products and enable them one by one to troubleshoot. That is all I can offer really unless you have a installation error. This works just fine an a vanilla vB install.

chris1979 06-21-2009 09:17 AM

I've disabled all the other products as a test and it still creates a blank page, even with no products enabled.

Any ideas what can cause that? It seems like a few others are getting the same thing.

I use branding free versions of vb and vbseo - could that be relevant?

burlesque 06-21-2009 09:30 AM

Quote:

Originally Posted by chris1979 (Post 1833881)
I've disabled all the other products as a test and it still creates a blank page, even with no products enabled.

Any ideas what can cause that? It seems like a few others are getting the same thing.

I use branding free versions of vb and vbseo - could that be relevant?

I have done this too and am also receiving the white page of doom. :(

Like Chris, I am using branding free vbSEO, but my vbulletin still shows the branding.


All times are GMT. The time now is 01:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01369 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete