Post Reply

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry
Topic Summary - Displaying 15 post(s). Click here to show all
Posted by: Bill Myers
Posted on: Oct 22nd, 2023 at 2:46pm
pyragony54 wrote on Oct 22nd, 2023 at 9:56am:
I'm talking about images that are in the forum as file attachments.

Thank you for the clarification. Smiley

That's an entirely different issue that should have nothing to do with Google's coding to select a language. Wink
Posted by: pyragony54
Posted on: Oct 22nd, 2023 at 9:56am
@ Bill Myers

I think you do not understand me. The flags are only displayed in the XTC mod. I'm talking about images that are in the forum as file attachments. They are no longer displayed.
Posted by: Bill Myers
Posted on: Oct 20th, 2023 at 3:33pm
pyragony54 wrote on Oct 20th, 2023 at 2:52pm:
I installed both versions separately and neither of them displayed the images.

Just to remind you, the coding that I provided from Google isn't meant to display images of flags. Nonetheless, it works as you confirmed it. Wink
Posted by: pyragony54
Posted on: Oct 20th, 2023 at 2:52pm
@ Bill Myers

don't worry, i didn't mix anything. I installed both versions separately and neither of them displayed the images. Unfortunately that is the case. Both worked too. Maybe Dandello will take a look and know a solution. I think it's because of Java. I'll put the script somewhere else in the test forum and see what happens.
Posted by: Bill Myers
Posted on: Oct 19th, 2023 at 4:04pm
pyragony54 wrote on Oct 19th, 2023 at 3:39pm:
I meant the flags in the XTC mod. It was always the same with both translation tools. I couldn't see any pictures.

Thank you for the clarification. Smiley

Edited:
pyragony54 wrote on Oct 20th, 2023 at 2:52pm:
don't worry, i didn't mix anything.

Since you're mixing that mod with both translation tools, and getting the same error of not being able to see pictures, then the solution until you can figure out what's going on is for you not to mix all of that coding together.

In other words, you need to pick one of the three options, and only that option. Test each option to see how each one works, and then you'll know which one works best for your forum.


It should be noted that when I looked at your forum, even though it was in maintenance mode, the "Google translate" box popped onto the screen. So whatever coding that you're using now seems to be working fine.  Cool
Posted by: pyragony54
Posted on: Oct 19th, 2023 at 3:39pm
@ Bill Myers

What he writes there is once again beginner-like. The XTC mod worked perfectly for me. Whenever XTC did something, he always did it perfectly because I had always tested his mods. There was probably a misunderstanding with the flags. I meant the flags in the XTC mod. It was always the same with both translation tools. I couldn't see any pictures.
Posted by: Bill Myers
Posted on: Oct 19th, 2023 at 2:10pm
pyragony54 wrote on Oct 19th, 2023 at 1:31pm:
@ Bill Myers

I think it's because of Java.

I'm a bit confused. Huh

The coding that I provided doesn't display flags; just the names of the different languages that Google has made available. It works well on both of the YaBB forums that are on my server. It should be noted that it also worked well on dozens of other YaBB forums when that same coding was utilized.

However, if you're referencing the coding that you provided, then I suppose the problem could be associated with Java.

Of, if you're referencing "Mod gTranslate for YaBB 2.6.11" that you previously linked, keep in mind that a guest named CJ3Apage posted the following:

Quote:
We did install it and test it. It does work great with the "google default" but a pain to figure out if we want to use "redirect" with just few flag selected without the dropdown menu....it give us a lot of errors.

Anyway we like it and hope it will get improve.

Posted by: pyragony54
Posted on: Oct 19th, 2023 at 1:31pm
@ Bill Myers

I think it's because of Java. The translation tools all work, but then images are no longer displayed in the forum. You can display the image, but only if you click on it. That's not the point of it. Maybe Dandello can adapt the mod from XTC, I can't do it. It runs on your Yabb version. Not with mine. That means it's already running, but the flags are nicely distributed across the screen. That's because I can't make the adjustment.
Posted by: Bill Myers
Posted on: Oct 18th, 2023 at 5:47pm
pyragony54 wrote on Oct 18th, 2023 at 5:32pm:
Now all hope was in vain.

I wonder what's going on. The code that I use works fine in both of the YaBB forums that I have on our server. You always seem to figure things out, though, so I'm looking forward to learning about what the issue was, or how it worked out for you.

In the meantime, maybe the best thing to do is to start from scratch, and then make modifications to suit your taste.

"How to Add Google Translate to Your Website"

By the way, the "dummies" reference is for me; not you. Wink

Edited:
Oops! The link above seems to be out of date. Sorry.  Sad

Maybe the following link is up to date (I haven't verified if it is):

https://www.w3schools.com/howto/howto_google_translate.asp
Posted by: pyragony54
Posted on: Oct 18th, 2023 at 5:32pm
@ Bill Myers

Now all hope was in vain. Even if the translator works perfectly, I no longer see any images displayed in the forum. No matter which one I install. Shit happens.
Posted by: pyragony54
Posted on: Oct 18th, 2023 at 9:13am
@ Bill Myers

I found a better programmed code. Here the countries are not next to each other but among each other.
That doesn't broaden the forum.

Code
Select All
<div id="google_translate_element"></div>

 <script type="text/javascript">
 function googleTranslateElementInit() {
   new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
 }
 </script>

 <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit
"></script>

 </body>
 </html> 



https://www.yabbtest.de/cgi-bin/yabb2/YaBB.pl
Posted by: pyragony54
Posted on: Oct 18th, 2023 at 7:33am
@ Bill Myers

Why don't you take this mod? It works perfectly on 2.6.11. I have tested it.

https://yabbforumsoftware.com/cgi-bin/yabb2/YaBB.pl?num=1426875947

Here is my gift for you.

Code
Select All
<FORM method=GET action="https://www.google.com/search">
 <A HREF="https://www.google.com/">
 <IMG SRC="https://www.google.com/logos/Logo_40wht.gif" border="0"
 ALT="Google"></A><p>
 <input type=text name=q size=31 maxlength=255 value="">
 <input type=submit name=btnG VALUE="Google Search"><p>
 <input type=hidden name=domains value="https://www.xxxxxx.de">
 <input type='hidden' name='ie' value='iso-8859-1'>
 <input type='hidden' name='oe' value='iso-8859-1'>
 <input type=radio name=sitesearch value="">World Wide Web
 <input type=radio name=sitesearch value="https://www.xxxxxx" checked>your Forum
 </FORM> 



In Templates -> index.html

Search:
Code
Select All
                 <td class="small vtop" style="padding-left:1%">{yabb newstitle} <span id="newsdiv"></span>
                 </td>
             </tr>
         </table> 



and Add after the Code.

Google Translate works.

https://www.yabbtest.de/cgi-bin/yabb2/YaBB.pl
Posted by: Bill Myers
Posted on: Oct 17th, 2023 at 6:24pm
pyragony54 wrote on Oct 17th, 2023 at 5:32pm:
I looked at your forum. Be careful, you have YaBB 2.6.11
This no longer works on Debian 10. I don't know about the other Linux versions.

Oops. I almost forgot to address your warning about YaBB 2.6.11 not working on Debian 10. I don't know offhand what Linux version I'm using on the server that has this test forum, but I'm pretty sure that it's one of the older versions.

In any case, I believe that this is also an issue with the YaBB 2.4 forum that I operate on the same server. I'm pretty sure that it's still working because an older version of Linux as well as an older version of Perl are being used.

Most of the domains that I operate are in the cloud on another server with another company that I've happily been using since 2016. I'm reluctant to move the remaining three domains to that newer server because I suspect that the two YaBB forums that I maintain will be inoperable on it (YaBB 2.4 & YaBB 2.6.11).

I'm not overly worried, though, as I have contingency plans in place to mitigate the loss of the active YaBB 2.4 forum that's been online since February 11, 2002. I'd hate to lose it, but sometimes changes in life are unavoidable, and we need to adapt. Wink
Posted by: Bill Myers
Posted on: Oct 17th, 2023 at 6:01pm
pyragony54 wrote on Oct 17th, 2023 at 5:32pm:
Can I have the code? (ask kindly). I think it is written in HTML and incorporated into the template.

It appears that you're correct about that.

I think I got the coding directly from Google, but I don't remember. Since I didn't find any notes about it, I'll have to create a note in my YaBB help files.

In any case, in the Admin menu under "Forum Controls" and then "Template", it looks like there are two places to enable Google Translate where it's positioned.

Look for {yabb grayscript} as I have it in the coding below, and then below that after a space, copy & paste what's shown.

Code
Select All
 {yabb grayscript}

 <meta name="google-translate-customization" content="bc483284b366963d-637464d1a65fc0e4-g23f100ec9fc785f2-2e"></meta>
  



Also, look for <td class="small vtop">{yabb newstitle} <span id="newsdiv"></span> as I have it in the coding below, and then below that after a space, copy & paste what's shown.

Code
Select All
 <td class="small vtop">{yabb newstitle} <span id="newsdiv"></span>

 <div id="google_translate_element"></div><script type="text/javascript">
 function googleTranslateElementInit() {
 new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, multilanguagePage: true}, 'google_translate_element');
 }
 </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit
"></script>

 </td>
 </tr>
 </table>
  



I hope that works.
Posted by: pyragony54
Posted on: Oct 17th, 2023 at 5:32pm
@ Bill Myers

I looked at your forum. Be careful, you have YaBB 2.6.11
This no longer works on Debian 10. I don't know about the other Linux versions.
You incorporated Google Translate above. Can I have the code? (ask kindly). I think it is written in HTML and incorporated into the template.

See my website
https://www.anti-scam.de

In the next few days I will make a mod that fixes some small bugs in 2.6.12. I have already reported about it here.