Forum Replies Created
-
When I posted the above I didn’t remember where I got it from but while researching a related issue, I found:
http://translate.google.com/translate_tools – which has more options for anyone else looking at this sort of solution….This buddypress site uses google translate – though without a plugin.
Have you tried putting
`
`
in your footer and
`function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: ‘en’,
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, ‘google_translate_element’);
}`
in a text widget?Did you put the “ at the bottom of the file with no spaces (or anything else) before the first tag or after the last?
It would help if https://codex.buddypress.org/extending-buddypress/bp-custom-php/ mentioned this – as is done on the https://codex.buddypress.org/extending-buddypress/functions-php/ page….
To enable wp-admin have you tried disabling the bp-code-snippets plugin by using ftp to delete or change name of the plugin directory causing wordpress to deactivate that plugin?
If I understand you correctly, you are trying to set up a forum from the wordpress admin.
Whearas you need to go to the ‘groups’ section on your site and add a new group from there – Then you can add a forum to the group in the same process….
`
/* Disable the WP 3.1 Admin Bar. ( http://yoast.com/disable-wp-admin-bar/ ) */
add_filter( ‘show_admin_bar’, ‘__return_false’ );
`
in functions.phpMaybe go into the site by ftp and disable buddypress links plugin
To disable, rename the folder `/buddypress-links/`
That should cause wordpress to de-activate the plugin.
Once you get back into wp, you can change the directory/folder back again!
If anyone wonders what a solution is…
I targetted .single-post and .page-item-40 (40 being the news page) css classes. Apparently this is an old wordpress bug which still exists in wp 3.1rc4….
Hopefully the following link might help? https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/add-a-welcome-message-to-admin-bar-instead-of-website-name/#post-87017 ?
I use a version of it though the admin menu bar is only seen by those logged in….
Well you could replace
`
case “Who’s Online Avatars”:
return $translations->translate( “Who’s Online…” );
break;
`
for
`
case “Join Group”:
return $translations->translate( “Follow” );
break;
`
in the example in the link
but as join appears quite a lot of times in buddypress, in different combinations, it might be better just to add your own language file….Something like that is done by the admin bar:
/buddypress/bp-core/bp-core-adminbar.php
around line 171Is that what you mean?
Have you logged out?
If you click on that link (your no. 2) it will send you to homepage if logged in….I just tried out something like that and agree that it is a secrecy leak.
I am using the walled_garden technique to block non logged in users from viewing members or activity pages so they couldn’t see anything there but if logged in but without being a member of that group they can see too much information…
It seems that favouriting a secret group topic is not a good idea….
Have you tried?
`
case “Friends (%d)“:
return $translations->translate( “Mates (%d)” );
break;
`
Also. I have just discovered from the buddypress codex that the friends slug can be changed to match to your choice…
`
define ( ‘BP_FRIENDS_SLUG’, ‘peeps’ );
`
It goes in the wp-config.php fileIf the text is translatable in wordpress/buddypress you should be able to use the technique mentioned here