dr_who20
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Polylang Buddypress compatibleI managed to get Polylang Buddypress compatible. Follow the steps and it will translate for each language:
- Create 1. an extra template.php in your theme and name it “buddymulti” or whatever you like.
- 2. Paste the following code in your buddymulti.php
<?php /* Template Name: Buddymulti */ ?> <?php the_post() ?> <?php the_content() ?> <!-- .post -->
- 3. Log into your wordpress dashboad and install the following plugin: “Include HTML and PHP”
- 4. configure the buddypress pages as follows:
Associate a WordPress Page with each BuddyPress page with your default template in your default language.
For all the other languages use the buddymulti template - 5. Put for all the following foreign buddypress pages the correct include code in your post:
Activity Streams => [include]/activity/index.php[/include]
User Groups => [include]/groups/index.php[/include]
Members => [include]/members/index.php[/include]
Register => [include]/registration/register.php[/include]
Activate => [include]/registration/activate.php[/include] - 6. Finally upload all the foreign buddypress languages you need in “/wp-content/languages/” folder
Forum: Plugins
In reply to: [Polylang] Compatibility between bbPress and PolylangThe script did not worked for me cause i did not got the myTheme part straight. But no problem, the new bbpress update v2.2 fixed the problem wonderful. Bbpress is now changing language nicely.
I have separate Forums for each language and it works great for me. I dont need the topics to be translated cause every country has its own replies and topics. I configured as follows:
Example:
English: Forum => Latest News
Dutch: Forum => Laatste Nieuws
etc.
I also managed to get buddypress compatible with Polylang. If you would like to know how check link: Polylang Buddypress compatibleForum: Plugins
In reply to: [Polylang] Polylang Buddypress compatibleThe trick already works but when i navigate to a default tab in a foreign menu, the whole foreign menu changes back to default.
If you can make it possible to add default tabs in foreign menu without changing the foreign menu, it would be awesome.
Btw, i tried the forces link to home page but did not help.Forum: Plugins
In reply to: [Polylang] Compatibility between bbPress and PolylangCan you exactly explain what you did with bbpress. I would like to see if it also works for buddypress
Forum: Plugins
In reply to: [Polylang] Polylang Buddypress compatibleOk, forget the Buddypress thing. Is it possible to make an option which make a page jumps back to default page if there is no translation available without changing the localization?
You’re right, it works perfectly now. Even without the Setlocale plug-in.
I don’t know exactly what the problem was but in my test environment the language changes back to default but on my live site it works perfectly. Probably there are settings or permissions different on my test site, i’ll check it later someday.BTW, many thanks. You’re the best
I installed setlocale but still the same problem.
):The updated versions works great and the excerpts changes correctly. But what i mentioned is the following:
My default language is Dutch.
If i change the language to English, it also works correctly, and everything is translated to English.
As soon i navigate to another page or post, it automaticly changes back to my default language Dutch.It would be nice if i select a language and it stays in the selected language.
I checked the script but there are some small bugs.
I get Fatal error: Call to undefined function url_exists() in /home/…/public_html/wp-content/plugins/012-ps-multi-languages/ps-multi-languages.php on line 886and
Fatal error: Call to undefined function url_exists() in /home/…/public_html/wp-content/plugins/012-ps-multi-languages/ps-multi-languages.php on line 895
when i enter the dashboard.
Those two issues i managed to fix on line 886 and 895 by changing
if ( url_exists( $flag_icon )
to
if ( ps_url_exists( $flag_icon )
The excerpts works now but when i enter the blogdescription it jumps back to the default description.
If you can fix the last part it would be great.