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)
-   -   Show Thread Enhancements - Translate a Thread in a Google Pop-Up Window (https://vborg.vbsupport.ru/showthread.php?t=168439)

Digital Jedi 01-24-2008 10:26 PM

Okay, minor wording problem on the Post 2 <!--comments--> fixed. That would not have affected performance at all. But it sure would have made support a bit more confusing then it already is. :rolleyes:

Lombardo 01-24-2008 10:54 PM

my forum http://www.ucsampdoria.co.uk

Digital Jedi 01-24-2008 11:14 PM

Quote:

Originally Posted by Lombardo (Post 1428314)

Okay, I think I see the problem. It actually is opening. But it's opening way down towards the bottom of the next post. Remember in the instructions where I say that you may need to adjust this line margin-top:-308px to maintain the illusion that the menu is changing? That's what's happening here. The old menu is closing, but the new menu is opening in the wrong part of the screen.

I see you adjusted that line a little bit, setting -308 to -300. But actually, your going to need a larger negative number. Right now it looks like this:

Code:


  <!-- English to [LANGUAGE] Submenu -->
<div class="vbmenu_popup" id="english_menu" style="display:none;margin-left:0px;margin-top:-300px;">

Change the -300 to something like -600 and play around with that. Because everyone's styles are different, everyone will likely have to adjust that line to get it to line up just perfectly. The larger the negative number the higher it will go. The closer to 0 you get the lower it will go.

By the way, what browser are you using?

Digital Jedi 01-24-2008 11:23 PM

Ugh, apparently this is a browser compatibility thing. I just checked FireFox and it opens the menu in a completely different location. I can probably fix this. But I'll need some time.

Lombardo 01-24-2008 11:26 PM

so no point changing it?

apiasto 01-25-2008 07:10 AM

nice work,my question is could v add any other languages to the menu? thnx

baghdad4ever 01-25-2008 07:51 AM

thanks

vbob 01-25-2008 08:12 AM

I checked out again. Because guests can read (they have permissions) my forum that's not a problem for google(Google can see/read all the text needed)!!! Google just have "extra text" (the welcome message) to translate.... :-) :-) so everything is ok for guests and google !!!The only problem is that I have to change the From Language in First case of code..to Greek (the default is english)!!! The hover menu in second case, just don't work for me (I am using firefox). (and in general I think that many users will be confused too) I prefer to use the first case of code (the simplicity of the menu I mean) and not the alternative one.

I tested the second case (I added that "second case" part of code after the "Greek" in the first case of code - Not the alternative)

PHP Code:

<!--Greek to English-->
<
tr><td align="right" class="vbmenu_option"><a href="#" onClick="Fenster1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.MYSITE.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=el%7Cen&hl=en&ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
span title="Greek">Greek</span> <img src="$stylevar[imgdir_button]/gr.gif" alt="Greek" width="15" height="10" border="0" /></a></td></tr

And it works fine...!!!
The question is that I want to translate from Greek to any language
What should i do for the rest languages?

Digital Jedi 01-25-2008 09:19 AM

The alternative code, and this my fault really, as I didn't check FireFox before I went to bed last night, wont necessarily work for cross browsers. Both browser require different lines of code to align them similarly. And everything I've looked at so far just seems inelegant from what I had intended. This is really my fault also for trying to get fancy with code I'm not all that familiar with.

I think I have a much simpler, more elegant solution for folks, without trying to get all fancy and cute. It should actually provide a solution for everyone. Just give me a few to edit Post 2. If it gets to late tonight (6 AM here), I'll try to have a replacement up by Friday night, barring flood or famine (or just forgetting to pay my Internet bill =/ ).

baghdad4ever 01-25-2008 09:26 AM

i love this mod but

sorry it is not work on IE

but it work on firefox

see this

http://www.baghdad4ever.net/vb/showt...362#post791362


All times are GMT. The time now is 03:38 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.01253 seconds
  • Memory Usage 1,745KB
  • 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_code_printable
  • (1)bbcode_php_printable
  • (1)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
  • (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