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-18-2009 11:22 AM

That is normal, if someone want the next page translated they just click a flag again.

tansu 06-18-2009 11:23 AM

Quote:

Originally Posted by Dave Hybrid (Post 1831806)
https://vborg.vbsupport.ru/showpost....6&postcount=89

I replied here, you did not answer.

sorry, I did not see that

Question is yes, I changed the language code like this:

function callback($buffer){
$fl = 'tr'; //current language (original) - refer table for language initials
$modifyhref = false;

Dave Hybrid 06-18-2009 11:26 AM

Quote:

Originally Posted by Calash (Post 1831818)
I get this all the time on my site. I tried lowering the serverload selection but no luck. It never writes to the database or to the text file.

Any ideas or is this a hosting issue that I will not be able to resolve?

What is you current serverload? and did you CHMOD 777 the cache file?

The load setting on the script means if server load is x then cache is disabled. If you already have a high load it will be disabled and no db writing will happen, get you load down or up the setting to something above what your load is. Be careful though as upping the setting will put even more load on your server. Are you on shared hosting? Might be time for an upgrade.

Dave Hybrid 06-18-2009 11:27 AM

Quote:

Originally Posted by tansu (Post 1831820)
sorry, I did not see that

Question is yes, I changed the language code like this:

function callback($buffer){
$fl = 'tr'; //current language (original) - refer table for language initials

What is your URL?

Dave Hybrid 06-18-2009 11:30 AM

Quote:

Originally Posted by tansu (Post 1831820)
sorry, I did not see that

Question is yes, I changed the language code like this:

function callback($buffer){
$fl = 'tr'; //current language (original) - refer table for language initials
$modifyhref = false;



http://doctus.org/downloads.php?hl=ar

Seems to work here, what is your server spec? Shard? VPS, Dedi?

tansu 06-18-2009 11:35 AM

Quote:

Originally Posted by Dave Hybrid (Post 1831827)
http://doctus.org/downloads.php?hl=ar

Seems to work here, what is your server spec? Shard? VPS, Dedi?

it's VPS
2.4 GHZ cpu and 1 GB Ram

Geraldm 06-18-2009 11:41 AM

Quote:

Originally Posted by Dave Hybrid (Post 1831822)
What is you current serverload?

How do you find out the current server load on a shared hosting (Hostgator) account?

Cheers ...
Gerald.

Dave Hybrid 06-18-2009 11:41 AM

Quote:

Originally Posted by tansu (Post 1831829)
it's VPS
2.4 GHZ cpu and 1 GB Ram


And what are your load averages?

Dave Hybrid 06-18-2009 11:42 AM

Quote:

Originally Posted by Geraldm (Post 1831834)
How do you find out the current server load on a shared hosting (Hostgator) account?

Cheers ...
Gerald.


It should be in your vB admin CP homepage under - Quick Administrator Links

tansu 06-18-2009 11:47 AM

Quote:

Originally Posted by Dave Hybrid (Post 1831835)
And what are your load averages?

My load averages are: 1.33, 1.53, 1.58

Dave Hybrid 06-18-2009 11:52 AM

Quote:

Originally Posted by tansu (Post 1831839)
My load averages are: 1.33, 1.53, 1.58

Hmm, ok, seems some have issues and some dont, mysql seems to overload on some servers. We are looking into it. Will update shortly.

Geraldm 06-18-2009 11:58 AM

Quote:

Originally Posted by Dave Hybrid (Post 1831836)
It should be in your vB admin CP homepage under - Quick Administrator Links

Ah ok found it .... it says:
Server Load: 2.16 (2 cpus)

Server Load Averages: 3.71 2.80 2.52

I would expect this to be normal and would very rarely go below the set threshold of 1.5 as defined in your plugin...

Should I increase the threshold to something like 2.5? Is that advisable?

Dave Hybrid 06-18-2009 12:12 PM

If you are constant above 1.5 then the script will work but pages will not be cached.

You can increase it to say 2.5 and caching will work, but server load will increase more, so 3 may be a better option.

If it has a negative effect, like the site gets very slow then let me know.

nascimbeni 06-18-2009 12:38 PM

I solved a previous error ( php had to be upgraded to 5.2 ) -
Now however I have this message when I activate the plug in
"The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression."

Calash 06-18-2009 01:14 PM

Quote:

Originally Posted by Dave Hybrid (Post 1831822)
What is you current serverload? and did you CHMOD 777 the cache file?

The load setting on the script means if server load is x then cache is disabled. If you already have a high load it will be disabled and no db writing will happen, get you load down or up the setting to something above what your load is. Be careful though as upping the setting will put even more load on your server. Are you on shared hosting? Might be time for an upgrade.

Yes to shared hosting and I am not going to be upgrading just for a single modification. If it is incompatible with a shared host then I am going to uninstall for now.

Thanks, it looks to be a very well done modification :)

Dave Hybrid 06-18-2009 01:17 PM

It is very MySQL intensive, some servers have an issue with this, we are working to narrow down the cause. We may need to release a upgrade or it may be a simple case of server spec. We're still testing.

nascimbeni 06-18-2009 01:26 PM

Dave
Did you see my posting ( a copy below ) -
I have this message when I activate the plug in
"The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression."

PS I am on a dedicated server

Dave Hybrid 06-18-2009 01:27 PM

Also you say you wont upgrade for one mod. If your traffic doubled overnight and loaded your server would you not upgrade? Because this is what this mod will do in the long run anyway...

Dave Hybrid 06-18-2009 01:28 PM

Quote:

Originally Posted by nascimbeni (Post 1831908)
Dave
Did you see my posting ( a copy below ) -
I have this message when I activate the plug in
"The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression."

PS I am on a dedicated server

To be honest I'm not sure, I dont think the script likes subdomains as I said before, sorry.

Geraldm 06-18-2009 01:39 PM

Quote:

Originally Posted by Dave Hybrid (Post 1831910)
To be honest I'm not sure, I dont think the script likes subdomains as I said before, sorry.

I'm running it on a subdomain (forums.mydomain.com) just fine... apart from the mysql errors ;)

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? :)

Sweeks 06-19-2009 11:56 AM

I was having the problem with open_basedir but thats no longer the problem and I now have the same problem as the hilfe forum guy where it is just a blank page, gonna try the tweak mentioned above and see if it works.

Dave Hybrid 06-19-2009 11:56 AM

Sorry, but I only support users whom don't remove credit links. This script took a lot of time and money to code and I give it away for free. Frankly, it's an insult.

Sweeks 06-19-2009 12:21 PM

Try stating that you stick a credit link in the middle of all the languages upon installation in your thread and that you dont want it to be removed, also try mentioning that you wont support anyone who removes it in there too.

You never said we need to keep it there or had any comments saying please keep in place etc

Will you please support me with this as you stated this mod is supported and frankly, the support is conditional.

Dave Hybrid 06-19-2009 12:23 PM

Wow, the front on you.

You knew dam well when you removed the credit that you were removing something intended to stay, why else would I include it?

Conditional support? LOL, it's a free product. No I will not support you. I suggest you uninstall.

Sweeks 06-19-2009 12:26 PM

If you never wanted it to be removed you could have said so like I said above. I am asking for support as you have marked this as supported.

Dave Hybrid 06-19-2009 12:32 PM

As I said, you removed the credit and you knew what you were doing when you did it. I still supported you and dropped a big hint I wasn't happy, then you ask for support again and you still hadn't added the credit back. It's too late now, I gave you the chance to fix it.

Sweeks 06-19-2009 12:37 PM

Well I think this is a joke as most people who make mods have in their code that you should not remove their link and if you want to you need to pay such and such amount, you never once stated that, so no actually, I didnt know I wasnt allowed to remove it seen as you had never said so.

It is okay thanks, I would rather not have your kind of support. In future a little tip for you, try commenting in your code that the link should not be removed or mentioning it in your thread like a lot of other coders do and you wont have so many removing it.

Dave Hybrid 06-19-2009 12:41 PM

So many? It's just you mate, everyone else isn't a leech.

Sweeks 06-19-2009 12:47 PM

I know two other forums with this mod and the middle flag isnt there so obviously is isnt just me who removed the link. Honestly if your code was commented where the link was I wouldnt have removed it. It is pointless arguing about this.

Thank you for the modification as it works really well on the right setup :)

Dave Hybrid 06-19-2009 12:51 PM

People like you and them would remove it anyway, it just the way you are.


All times are GMT. The time now is 03:13 PM.

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.01627 seconds
  • Memory Usage 1,834KB
  • 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
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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