vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - Quick "Translate This Page" Link (https://vborg.vbsupport.ru/showthread.php?t=166360)

Brady1505 03-31-2008 08:06 AM

Got it. Try and error ...

<input type="hidden" name="u" value="www.mysite.de$scriptpath" />

works correctly.

Brady

zerokun 03-31-2008 11:05 AM

Wow,
I have built it some days before and found this thread today. :)

Now, If you want to remove the frame above your translated page, replace this link: http://translate.google.com/translate by http://www.google.com/translate_p.

To apply for all website (php site), you can use this link http://$_SERVER[SERVER_NAME]$scriptpath:
EX:
<input type="hidden" name="u" value="http://$_SERVER[SERVER_NAME]$scriptpath" />
replace for <input type="hidden" name="u" value="http://YOURSITE.COM/$scriptpath" />


demo: http://www.ue-global.com (the translation at the top of the page)

regards,
zerokun

frankybme 08-02-2008 06:47 PM

Do these translated pages get indexed in the search engines?

yotsume 09-01-2008 08:15 PM

Will this work if my forum is only viewable to registered members only? Also, my forum is v3.7.3

segwayon 10-23-2008 04:31 AM

Quote:

Originally Posted by zerokun (Post 1478967)
Wow,
I have built it some days before and found this thread today. :)

Now, If you want to remove the frame above your translated page, replace this link: http://translate.google.com/translate by http://www.google.com/translate_p.

To apply for all website (php site), you can use this link http://$_SERVER[SERVER_NAME]$scriptpath:
EX:
<input type="hidden" name="u" value="http://$_SERVER[SERVER_NAME]$scriptpath" />
replace for <input type="hidden" name="u" value="http://YOURSITE.COM/$scriptpath" />


demo: http://www.ue-global.com (the translation at the top of the page)

regards,
zerokun

Slick language selector you have on your website. It changes all the text without reloading the whole webpage, and allows users to re-select English easily. May I ask how you do that?

I altered this mod as you directed and yes the framing is gone now. But I wonder how to allow a user to choose English again after browsing some languages, as Google shows an error page stating that English-to-English translations are not supported. With the framing the users had an option for reverting back to the original language.

segwayon 10-23-2008 04:43 AM

Quote:

Originally Posted by yotsume (Post 1612301)
Will this work if my forum is only viewable to registered members only? Also, my forum is v3.7.3

Yes, as this translation feature is on your forum, and if non-members can't reach your forum then they won't be able to reach this feature either.

Now, if you allow non-members to view the forum but only want to provide this translation feature to registered members, then place these lines of code around this mod's whole section of code:

HTML Code:

<if condition="$bbuserinfo['userid']">
  (this mod's code)
</if>

We use this mod on 3.7.3 without any problems, by the way.

wraggster 11-01-2008 11:34 PM

this looks fantastic but is the mod the same one thats on the forum now

http://f800riders.org/forum/forumdisplay.php?f=67

because that mod looks a lot better than what the code implies.

im also curious to know if this bring visitors from other regions of world ?

chick 01-28-2009 05:51 PM

Quote:

Originally Posted by wraggster (Post 1657552)
this looks fantastic but is the mod the same one thats on the forum now

http://f800riders.org/forum/forumdisplay.php?f=67

because that mod looks a lot better than what the code implies.

im also curious to know if this bring visitors from other regions of world ?

is this mod the same???

Meestor_X 08-14-2009 05:15 AM

You must have added to this mod. There's drop-down at the top left of the page as well as one to the right of the forum style chooser.

What's the code for the mod as it shows on your forum?

DieselMinded 06-21-2010 04:31 PM

is this available for vb 4 ?


All times are GMT. The time now is 10:52 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.01198 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_html_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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