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)

The Realist 06-18-2009 01:57 PM

Installed and working but when I go here: http://www.xxxxxxx.co.uk/photoplog/index.php

I get this error:

Code Removed.

Any ideas?

Works everywhere else.

Dave Hybrid 06-18-2009 02:07 PM

Quote:

Originally Posted by The Realist (Post 1831932)
Installed and working but when I go here: http://www.sattalk.co.uk/photoplog/index.php

I get this error:

Warning: require_once(translate.php) [function.require-once]: failed to open stream: No such file or directory in [path]/includes/functions.php(5721) : eval()'d code on line 9

Fatal error: require_once() [function.require]: Failed opening required 'translate.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sattalk/public_html/includes/functions.php(5721) : eval()'d code on line 9

Any ideas?

Works everywhere else.

try uploading translate.php to the photoplg folder

The Realist 06-18-2009 02:11 PM

Yep that did the trick, well done :)

SuperTaz 06-18-2009 04:49 PM

Seems to be working great on my site so far with no errors.

RWerksman 06-18-2009 04:51 PM

Quote:

Originally Posted by Dave Hybrid (Post 1831583)
I believe this only works for sites in one base language. As per the first install instruction you need to set your base language so the script knows what to tell the Google translate APi to translate from and into. So multiple languages will confuse it a lot and cause errors.

Dave,

Then correct me if I'm wrong here - this would effectively drive traffic to your forum then it wouldn't be able to cope with anyone actually replying to messages, correct?

Dave Hybrid 06-18-2009 04:58 PM

This mod will drive foreign visitors you otherwise would net get to your pages, if they want to contribute they will need to also speak your base language. That said on most sites 90% of search traffic bounces after reading one page via the back button or an advert. So, on my sites all this really does is increase my CPM on my banners and adsense clicks. For free. You're use may vary.

If you are simply wanting to offer parts of your site in other languages as a feature rather than a search traffic tool look into language packs. You will however need to create new content in those languages in order to get search referrals, language packs will not translate a site. They just allow other languages to be used.

Dave Hybrid 06-18-2009 06:27 PM

I have just made a leap in improving load times on large sites, we found that on big sites the sheer volume of MySQL writes being made as the search bots and users try to translate all your pages was locking the translate database. This means cached pages were loading slow, even though they were cached and a few other bugs. The new method seems to allow sites to be cached much faster with lower server load and cached pages load instant or there abouts. I will update when we are 100%, it's a simple upgrade too. Thanks.

Sweeks 06-19-2009 12:52 AM

We upgraded to a VPS tonight and now it gives a blank page, any fix for this? :)

http://www.teenforumz.com/?hl=ar

Thanks!

Dave Hybrid 06-19-2009 10:47 AM

<font color="Red">Ok so here is the information for those of you experiencing slow load times, it is recommended that all users make these changes.</font>

Add a new MySQL database to your domain. Open the database in phpmyadmin or similar and import the db.sql file to install the database tables the same as before but once you have done that you need to select 'operations' from the top menu and change the storage engine to InnoDB, then click Go. Then enter the new DB details into translate.php and re-upload that file.

InnoDB seems to handle the multiple read/write requests without issue whereas MyISAM had issues with tables locking and thus locking read/write access under load which caused huge bottlenecks on larger/busier sites.

We tested this on a few huge 100k thread sites without issue.

Thanks, enjoy the traffic.

Dave.

Sweeks 06-19-2009 11:51 AM

Would this sort out the blank page after moving servers? :)


All times are GMT. The time now is 11:04 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.01399 seconds
  • Memory Usage 1,740KB
  • 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_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