Advertisement:

Author Topic: TinyPortal  (Read 806471 times)

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,590
  • Gender: Male
    • i30 Owners Club
Re: TinyPortal
« Reply #2840 on: December 21, 2020, 12:23:23 PM »
why do i keep getting notification of unread post for this topic?
 I cannot figure out how to turn that off,


Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,757
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: TinyPortal
« Reply #2841 on: December 21, 2020, 03:30:24 PM »

Would it be possible to change the style of Google Translate in the code to a drop-down menu that can be selected in this modification? Could you give me a code for this style of Google Translate?


This has the codes and examples of the different layouts, https://www.w3schools.com/howto/howto_google_translate.asp

Offline Nodaz

  • Full Member
  • ***
  • Posts: 499
Re: TinyPortal
« Reply #2842 on: December 21, 2020, 10:55:42 PM »
why do i keep getting notification of unread post for this topic?
 I cannot figure out how to turn that off,


That is the problem, mine says "Notify", hence why i asked
 I just re-enabled and then disabled, will see if it helps

Offline jsx

  • Full Member
  • ***
  • Posts: 513
  • Gender: Male
Re: TinyPortal
« Reply #2843 on: December 22, 2020, 03:01:15 AM »
This has the codes and examples of the different layouts, https://www.w3schools.com/howto/howto_google_translate.asp

Thank you for the information and help. This is the code:

Code: [Select]
<center><div id="google_translate_element" style="height:50px; overflow:hidden"></div><script>

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

The Great Winged Hussars

https://www.youtube.com/watch?v=eWkrQQly6xU

We remember
In september
When The Winged Hussars arrived!

Offline @rjen

  • Full Member
  • ***
  • Posts: 699
  • Gender: Male
    • FJR-club Nederland
Re: TinyPortal
« Reply #2844 on: January 08, 2021, 04:23:09 PM »
Jsx,

I'll respond to your pm here... please do not mail me with support questions. That's what this forum is for...

Do you remember how you helped me with Google Translate?

https://www.simplemachines.org/community/index.php?topic=27642.msg4076130#msg4076130

This translator from this code only translates the main page of the forum, but when I enter a topic, the translation doesn't work there anymore.

Do you know what could be the reason why the translator is not translating the content of the post?

When I had this modification installed on the forum, Google Translate translated the contents of the posts.

https://custom.simplemachines.org/mods/index.php?mod=3213

The code I provided works fine for me: it translates main page and topics...

See an example here:
https://test.fjr-club.nl/index.php?topic=13199.0
Running SMF 2.0 with Tinyportal 2.0.1 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.1.0 at test2.fjr-club.nl

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,757
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: TinyPortal
« Reply #2845 on: January 09, 2021, 02:54:27 AM »
Jsx,

I'll respond to your pm here... please do not mail me with support questions. That's what this forum is for...

Do you remember how you helped me with Google Translate?

https://www.simplemachines.org/community/index.php?topic=27642.msg4076130#msg4076130

This translator from this code only translates the main page of the forum, but when I enter a topic, the translation doesn't work there anymore.

Do you know what could be the reason why the translator is not translating the content of the post?

When I had this modification installed on the forum, Google Translate translated the contents of the posts.

https://custom.simplemachines.org/mods/index.php?mod=3213

The code I provided works fine for me: it translates main page and topics...

See an example here:
https://test.fjr-club.nl/index.php?topic=13199.0

You'll need that block running on all pages that you want it to translate.  Think that's the issue here.

Offline jsx

  • Full Member
  • ***
  • Posts: 513
  • Gender: Male
Re: TinyPortal
« Reply #2846 on: January 09, 2021, 03:24:14 AM »
You'll need that block running on all pages that you want it to translate.  Think that's the issue here.

In the block with the Google Translate code I have this function turned on: Display on all pages and sections and Display on all boards

Unfortunately, the translator only works on the home page of the portal.
The Great Winged Hussars

https://www.youtube.com/watch?v=eWkrQQly6xU

We remember
In september
When The Winged Hussars arrived!

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,757
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: TinyPortal
« Reply #2847 on: January 09, 2021, 03:30:53 AM »
You'll need that block running on all pages that you want it to translate.  Think that's the issue here.

In the block with the Google Translate code I have this function turned on: Display on all pages and sections and Display on all boards

Unfortunately, the translator only works on the home page of the portal.

I only see the translate block showing on your front page.  Open the other ones up to guests.

Offline @rjen

  • Full Member
  • ***
  • Posts: 699
  • Gender: Male
    • FJR-club Nederland
Re: TinyPortal
« Reply #2848 on: January 09, 2021, 05:01:06 AM »
Difficult to see without a link to the actual forum
Running SMF 2.0 with Tinyportal 2.0.1 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.1.0 at test2.fjr-club.nl

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,757
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: TinyPortal
« Reply #2849 on: January 09, 2021, 05:15:23 AM »
Difficult to see without a link to the actual forum

Yep.  jsx PM'd me the link at my request a few posts back.  I see he has the translate code running in a side panel on the front page only, and no panels displayed in the forum, so not code running there.   I can only suggest leaving that code on the front page in the side panel and add it again to a bottom block and have that display only on the other pages such as forum and articles etc.  That should work just fine like that.  I have it set up like this on guitaristguild.com

Offline jsx

  • Full Member
  • ***
  • Posts: 513
  • Gender: Male
Re: TinyPortal
« Reply #2850 on: January 09, 2021, 11:08:14 AM »
@lurkalot

Can you show me settings screen of this bottom panel? I think that I choose the wrong settings.
The Great Winged Hussars

https://www.youtube.com/watch?v=eWkrQQly6xU

We remember
In september
When The Winged Hussars arrived!

Offline lurkalot

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 1,757
  • Gender: Male
  • Tinyportal Support
    • guitaristguild on Facebook
    • Tinyportal on GitHub
    • @GuitaristGuild on Twitter
    • Guitarist Guild
Re: TinyPortal
« Reply #2851 on: January 09, 2021, 11:33:04 AM »
@lurkalot

Can you show me settings screen of this bottom panel? I think that I choose the wrong settings.

The bottom panel settings are as the first pic. 

And the block settings I'm using are in the next two images.

Offline jsx

  • Full Member
  • ***
  • Posts: 513
  • Gender: Male
Re: TinyPortal
« Reply #2852 on: January 10, 2021, 04:23:06 AM »
@lurkalot

Thank you for your help. :)
The Great Winged Hussars

https://www.youtube.com/watch?v=eWkrQQly6xU

We remember
In september
When The Winged Hussars arrived!

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,815
  • We were all equal in the end.
Re: TinyPortal
« Reply #2853 on: January 10, 2021, 09:27:27 PM »
TP 2.0.0 will not install in 2.0.17 -

Unknown column 'var5' in 'field list'
File: /home/thefanta/public_html/attic/Packages/temp/install.php
Line: 1156
“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline tinoest

  • Development Contributor
  • Jr. Member
  • *
  • Posts: 266
Re: TinyPortal
« Reply #2854 on: January 10, 2021, 09:57:15 PM »
TP 2.0.0 will not install in 2.0.17 -

Unknown column 'var5' in 'field list'
File: /home/thefanta/public_html/attic/Packages/temp/install.php
Line: 1156

What version of TinyPortal was previously installed?

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,815
  • We were all equal in the end.
Re: TinyPortal
« Reply #2855 on: January 10, 2021, 10:03:13 PM »
Only seeing TP 2.0.0 in old install.  This was a damaged forum, may have been an earlier version, but no way to know.
“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline tinoest

  • Development Contributor
  • Jr. Member
  • *
  • Posts: 266
Re: TinyPortal
« Reply #2856 on: January 10, 2021, 10:09:18 PM »
Only seeing TP 2.0.0 in old install.  This was a damaged forum, may have been an earlier version, but no way to know.

You need to be on at least 1.6.0 to upgrade to 2.0.0. You'll probably have to roll back the database to sort it. Or add the var5 column to the tp_blocks table which is missing. Then update to 2.0.0

Offline Sir Osis of Liver

  • SMF Super Hero
  • *******
  • Posts: 10,815
  • We were all equal in the end.
Re: TinyPortal
« Reply #2857 on: January 10, 2021, 10:20:54 PM »
Not trying to upgrade.  It's a clean 2.0.17 install, this is initial TP install.  We're running a 30 Nov database, later dumps were trashed.  There are TP tables in db, I'll drop them and retry install.

That worked, thanks.

“The best laid schemes o' mice an' men / Gang aft a-gley.” - Robert Burns

Offline @rjen

  • Full Member
  • ***
  • Posts: 699
  • Gender: Male
    • FJR-club Nederland
Re: TinyPortal
« Reply #2858 on: January 11, 2021, 04:16:21 AM »
Not trying to upgrade.  It's a clean 2.0.17 install, this is initial TP install.  We're running a 30 Nov database, later dumps were trashed.  There are TP tables in db, I'll drop them and retry install.

That worked, thanks.

Good that it is fixed now.

Just for the record: the tp-blocks-var5 column was introduced in TP version 1.4R, so if you are coming from an earlier version that may be the issue.
Running SMF 2.0 with Tinyportal 2.0.1 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.1.0 at test2.fjr-club.nl

Offline @rjen

  • Full Member
  • ***
  • Posts: 699
  • Gender: Male
    • FJR-club Nederland
Re: TinyPortal
« Reply #2859 on: January 11, 2021, 04:19:05 AM »
This was a damaged forum, may have been an earlier version, but no way to know.

There is a way to know by checking the database tables and the TinyPortal version stored there.

Either check the tp-settings table for the variable stored in 'settings' or check the tp-modules table for the module version. The latter option may be of use in older versions of TP (since the tp-modules table is removed in newer versions)
Running SMF 2.0 with Tinyportal 2.0.1 at www.fjr-club.nl
Testing SMF 2.1 with Tinyportal 2.1.0 at test2.fjr-club.nl