Try this :
Put this in your child theme’s function file – or use
Code Snippets
/This function changes the text wherever it is quoted
function change_translate_text( $translated_text ) {
if ( $translated_text == 'Publicaciones' ) {
$translated_text = 'Mensajes';
}
return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );
If that doesn’t work try
/This function changes the text wherever it is quoted
function change_translate_text( $translated_text ) {
if ( $translated_text == 'Posts' ) {
$translated_text = 'Mensajes';
}
return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );
Hey Robin, I was just looking around to try to fix all the weirdness with my bbPress (still have no idea why there are so many issues with it!) and found this: https://codex.bbpress.org/getting-started/configuring-bbpress/creating-content/
“Sticky – Posts will stick to top of the Forum which it is in.
Super Sticky – Posts will stick to the top of all Forums.”
This is a “Super Sticky” post — it sounds like it is supposed to stick the top of all forums, but it’s not here. Am I misunderstanding?
Thanks!
Hi
I have the shortcode for forums list on a page: website.com/forum/
BUT, when i click a specific forum, it redirect to that forum page: website.com/forum/forum-name.
The base forum page is beautifully designed, so i want all permalink to also follow this design, or have these link open on the same page. How can this be done?
Currently it redirect to that topic or forum page with no design and basic white background.
PLEASE HELP!
ok, this should do that
li.bbp-forum-topic-count {
display: none !important;
}
Put this in your child theme’s function file – or use
Code Snippets
/This function changes the text wherever it is quoted
function change_translate_text( $translated_text ) {
if ( $translated_text == 'old text' ) {
$translated_text = 'new text';
}
return $translated_text;
}
and change ‘old text’ to what you want to change, and ‘new text’ to what you want it changed to
put this is the custom css area of your theme
#left-area ul li ul {
padding: 2px 0 2px 0px !important;
}
put this in the custom css of your theme
li.bbp-topic-voice-count {
display: none !important;
}
Robin, I am running 23 plugin’s
Admin Columns
Admin Menu Editor
Another WP Classifieds
BAW Login/logout
bbPress
BP Disable
BuddyPress
Code Snippets
Code Toolkit
Email Users
Events Manager
Grand FlaGallery
Mmm Simple File list
Nav Menu Roles
Peters Login Redirect
REmove Dashboard Access
s2Member Framework
SSL Insecure
TinyMCE
User Role Editor
WooCommerce
WordFence
WP Spam Shield
Still no luck. I have 2 users that have Keymaster access on their profiles.
Your change worked for me last week. Thanks for that!
Only changing the line 18 reply.js
reply.parentNode.appendChild(respond, reply);
I don’t know if there is a side effect on this but I think it’s not because for a week is working.
I’m using the version 2.5.14. I didn’t try to deactivate all my plugins to see if there’s a conflict.
I am attempting to convert my message board to bbPress, but have run into a problem trying to convert the database. I get the following errors:
Repair any missing information: Continue
WordPress database error: [Unknown column 'users.user_website' in 'field list']
SELECT convert(users.user_id USING "utf8mb4") AS user_id,convert(users.user_password USING "utf8mb4") AS user_password,convert(users.user_form_salt USING "utf8mb4") AS user_form_salt,convert(users.username USING "utf8mb4") AS username,convert(users.user_email USING "utf8mb4") AS user_email,convert(users.user_website USING "utf8mb4") AS user_website,convert(users.user_regdate USING "utf8mb4") AS user_regdate,convert(users.user_aim USING "utf8mb4") AS user_aim,convert(users.user_yim USING "utf8mb4") AS user_yim,convert(users.user_icq USING "utf8mb4") AS user_icq,convert(users.user_msnm USING "utf8mb4") AS user_msnm,convert(users.user_jabber USING "utf8mb4") AS user_jabber,convert(users.user_occ USING "utf8mb4") AS user_occ,convert(users.user_interests USING "utf8mb4") AS user_interests,convert(users.user_sig USING "utf8mb4") AS user_sig,convert(users.user_from USING "utf8mb4") AS user_from,convert(users.user_avatar USING "utf8mb4") AS user_avatar FROM phpbb_users AS users LIMIT 0, 100
No users to convert
Starting Conversion
There are two problems I see. One is that it’s having trouble converting part of it. The other is that it says there are no users to convert and there are a ton, so what do I do?
too many possibilities to discuss – this is like asking how to get my car to go faster.
I’d suggest you start with your hosting company, and discuss with them.
also
System and Server Requirements
It’s simple [bbp-single-topic id=724]
but there is not any result on the webpage.
Clicking on WP Menus->Forums at Forum-ID the number 724 is shown.
Via the hyperlink https://www.domain.com/root/forum/forum1/ the Topics are shown correctly.
—
The shortcodes [bbp-topic-index] and [bbp-stats] (without any ID) on the other hand work perfectly.
can you give an example of exactly what you have as a shortcode that doesn’t work
Ok, the hyperlink I found myself,
but I can’t guess why the single-shortcodes don’t show anything…
by the way:
Do you know why the single-shortcodes of bbPress don’t work?
[bbp-single-topic] [bbp-single-forum] [bbp-single-reply] [bbp-single-tag] and so on
have absolute no effect
hmmm…. that would be quite hard to code, lots of places where you would need filters.
Unlikely I’d look at that.
ok, as a product you can do
add_action( 'digimember_purchase', 'digitest_purchase', 10, 4 );
function digitest_purchase( $user_id, $product_id, $order_id, $reason )
{
switch ($reason)
{
case 'order_paid':
// handle paid orders here
if ($product_id == '12') {
update_user_meta ($user_id , 'private_group' , '*group1*') ;
}
break;
case 'order_cancelled':
if ($product_id == '12') {
delete_user_meta ($user_id , 'private_group' ) ;
}
break;
case 'payment_missing':
// handle missing rebilling payment here
break;
}
}
where in this case ’12’ is the product id of the subscription product
time period and other conditionals are I’m afraid well beyond free help
Hi Robin,
thxs a lot for your big help!
Since I’ll do something like that first time, it may take a while…
Watching the code, there are a two things I don’t understand:
1. Since I have different products in my digimember-account, where in the code is specified which product the user must have bought to become member of group1?
2. Since “order cencallation” and “payment missing” should both result in finishing the membership of the user, why doesn’t have to be the same “delete user-meta”-parameter in the code for both cases?
Thxs again for your help,
cu, Roman
yes, that is helpful
so this code will add a user to private group 1 on paying membership, and take them out on cancellation
add_action( 'digimember_purchase', 'digitest_purchase', 10, 4 );
function digitest_purchase( $user_id, $product_id, $order_id, $reason )
{
switch ($reason)
{
case 'order_paid':
// handle paid orders here
update_user_meta ($user_id , 'private_group' , '*group1*') ;
break;
case 'order_cancelled':
delete_user_meta ($user_id , 'private_group' ) ;
break;
case 'payment_missing':
// handle missing rebilling payment here
break;
}
}
Put this in your child theme’s function file – or use
Code Snippets
Then set up forums so that group 1 users can access the forum, and everyone else just see it
ok, you will need to research or find out if digimember has a ‘hook’ on membership joining that can be used to add a member to a group.
so the question to them might be
I am using digimember and need a wordpress hook (action or filter) that I can link a user becoming a member to carry out some further actions.
If they or you can answer, I can give you some simple code
the simplest way would be to create a wordpress page for each ‘country’, eg a page called ‘france’, and then put the shortcode for that forum in then content
[bbp-single-forum id=$forum_id]
where $forum_id is the id of the forum for france
I’d suggest that as a test you deacativate LearnDash & bbPress Integration nand see if the error persists, from the link I can’t tell what is sending this code
Hello. I‘m using free astra theme, elemntor pro, WooCommerce, bbPress and LearnDash in my website.
I’m trying to make a custom “my-account” which comes with woocommerce. and I did using the short code and elementor. but since I’m using bbpress too, I wanted to view the bbpress user profile that’s located by defualt in “example.com/forums/user/******”
what I did: i created a custom endpoint “/my-account/forums/” and since I wanted the dynamic content. i thought i can use the templates of bbpress. so I added code #1 in my theme functions.php and copied the code of user-profile.php from the bbpress templates into my forums.php that i created in astea/WooCommerce/myaccount/
code #1
`function my_custom_endpoint_content() {
include ‘woocommerce/myaccount/forums.php’;
}
add_action( ‘woocommerce_account_forums_endpoint’, ‘my_custom_endpoint_content’ );
what happened: it showed the content, but it views the data of a normal vistor – non-logged in user- instead of pulling the current user.
so any ideas on how to achieve such a thing ? maybe there is a another method that’s not even related to what I’m trying to do ?
I saw this blog and this might actually help.
Step One: Duplicate your header.php file and name it header-new.php. You can replace the word new with something that makes sense for your website.
Step Two: Open up the Page.php file associated with the template that you want to use. Then replace the normal header code with the code below. Update the page id number with the correct page number on your site. Change the get_header(‘new’) to match the alias used in step one.
<?php
if(is_page(10)) {
get_header(‘new’);
}
else {
get_header();
}
wp_head();
?>
Step Three: Make your changes within the header-new.php file, and walah! You have successfully created a second header!
If you’re looking to create a second footer, simply follow the steps above but make your changes to the footer-new.php file instead.