Search Results for '+.+default+.+'
-
AuthorSearch Results
-
January 8, 2018 at 6:44 am #189207
In reply to: Single reply redirect to topic
brent0r
Participant@kdelsimone
If you want the link changed from the topic to the reply, I suggest copying loop-search-reply.php from /wp-content/plugins/bbpress/templates/default/bbpress to your child themes bbpress directory @ /wp-content/themes/theme-child/bbpress
From there you can edit it and change line 25 from this:
<a class="bbp-topic-permalink" href="<?php bbp_topic_permalink( bbp_get_reply_topic_id() ); ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a></h3>
to this:
<a class="bbp-topic-permalink" href="<?php bbp_reply_url(); ?>"><?php bbp_topic_title( bbp_get_reply_topic_id() ); ?></a></h3>
January 7, 2018 at 1:07 pm #189186In reply to: Public/private posts- visibility
Robin W
ModeratorI’ve been thinking this over, and can’t see a simple way to achieve this.
To get something working would involve adding extra fields to a topics meta data, and then filtering the display to catch.
With the forum visible in effect the code for a forum or set of forums would need to (by default) make a topic private using an additional field, and then all the display parameters would need to hide it unless made public. That means closing every back door in search, profiles, displays, freshness all widgets and other areas so that no-one sees it unless set to public, which is one hell of a lot of work, and a large re-write of many bbpress functions.
I could modify my private groups plugin which makes forums (but not content) visible, so that certain topics are shown, but again it is a heap of code. Beyond free help I’m afraid, but if you want to look at that route contact me via my website http://www.rewweb.co.uk
January 6, 2018 at 12:29 pm #189161In reply to: access control
Robin W
Moderatorok, thanks that helps.
ONE
you have set the forum to private in dashboard>forums>all Forums>do-i-quality>edit and visibility options on the right hand side in the forum attributes set to private.
A private forum is one that is not public, so its existence is also not public. It therefore returns a 404 error to someone not logged in, as bbpress doesn’t know the difference between a user who is not logged in and any member of the public. Once logged in they see the forums. Most users click the remember me button and save passwords in their browser. When not logged in they will not see the existence of the forums. If you want the forums to be visible, then the private groups plugin above will do that.
TWO
This is simply a forum with dashboard>forums>all Forums>bylaws>edit and visibility options on the right hand side in the forum attributes set to public.
THREE
I’ll look through the wording again to see if I can make it better – I did write it some time ago, and probably due for a review but the settings are in there viz
Forum visibility:
Public – Anyone can see these forums
Private – Only logged in registered users with a forum role can see these forums
Hidden: Only Moderators/keymasters can see these forumsVisibility is set for each forum, go into Dashboard>forums> and when you add/edit a forum, you will see visibility options on the right hand side in the forum attributes.
By default forums are available to be publically viewed. If you set anonymous posting to be on (see 4. Above) then anyone can also post.
January 3, 2018 at 1:37 pm #189110Robin W
Moderatorin place of your code put back the original
<?php bbp_forum_freshness_link(); ?>
and then add this to your functions file
add_filter( 'bbp_get_forum_freshness_link', 'rew_freshness_last_three' , 100, 6) ; function rew_freshness_last_three ($anchor, $forum_id, $time_since, $link_url, $title, $active_id ) { //set up and run a query to get a list of all topics in this forum that this user can see // Setup possible post__not_in array $post_stati[] = bbp_get_public_status_id(); // Super admin get whitelisted post statuses if ( bbp_is_user_keymaster() ) { $post_stati = array( bbp_get_public_status_id(), bbp_get_private_status_id(), bbp_get_hidden_status_id() ); // Not a keymaster, so check caps } else { // Check if user can read private forums if ( current_user_can( 'read_private_forums' ) ) { $post_stati[] = bbp_get_private_status_id(); } // Check if user can read hidden forums if ( current_user_can( 'read_hidden_forums' ) ) { $post_stati[] = bbp_get_hidden_status_id(); } } // Parse arguments against default values $r = array( 'post_parent' => $forum_id, 'post_type' => bbp_get_topic_post_type(), 'post_status' => implode( ',', $post_stati ), 'ignore_sticky_posts' => true, 'posts_per_page' => -1 ); // Create a new query for the topic list $get_posts = new WP_Query(); $topics = $get_posts->query( $r ) ; //var_dump ($topics) ; //now run through this list and get the last active date of each topic foreach ($topics as $topic) { $id = $topic->ID ; $last_active = get_post_meta( $id, '_bbp_last_active_time', true ); $curdate = strtotime($last_active); $show[$curdate] = $id ; } if (!empty ($show)) { //so now we have a list of dates with topic ids, so we need to find the latest 3 arsort($show); $count=0 ; foreach ($show as $topic) { $count++ ; ?> <a href="<?php bbp_topic_permalink($topic); ?>"><?php bbp_topic_title($topic) ?> (<?php bbp_topic_last_active_time($topic); ?>)</a> <?php if ($count == 3) break ; } } else echo 'No topics' ; }
It has to sort through all topics for all forums to work this out, so it may slow your forums index display and get worse as your forum content grows.
January 3, 2018 at 12:29 pm #189109In reply to: Problèmes notifications: mails envoyés aux bloqués
bertdy
ParticipantBonjour,
j’ai supprimer l’ancien forum que j’utilisais. Puis tous les autres plugins liés à BBPress.
Puis réinitialisation, désinstallation de BBpress, réinstallation,
création de nouveaux forums, installation de bbP Toolkit.
Les utilisateurs “abonnés” dans wordpress sont bien par default “participant”.
la fonction de l’écran utilisateurs pour modifier le role des forums ne fonctionne pas.
Le méta données contienne t toujours les anciens forums.
Comment purger les tables mises à jour par BBpress et résoudre le problème de l’affectation des roles ?
Je vais re-tester l’utilisation des forums
Merci pour votre aide
BertrandJanuary 3, 2018 at 12:21 am #189095Topic: Forums page: where is it?
in forum Troubleshootingfinar76
ParticipantHi All,
I have installed ppPress and so far so good… I have also installed “Ultimate Member” in order to manage membership and visibility of content…
every page will have an option to be visible or not by registered members or not…
I wanted to put a “membership restriction to the home page of the forums (by default /forums), but they I look in the pages I cannot find it(even if it is clearly there in the website: http://italiancrypto.it/forums/)
anyone can explain where ti find it and how to “restrict the view to only registers members?
many thanks
Regads
January 1, 2018 at 6:14 pm #189070Topic: Two URLs for same page
in forum Installationfenomeno0chris
ParticipantFirst of all Happy New Year to the whole bbPress community!
Right now I can access my Forum start page on two different Urls.
– https://www.ps4source.de/archiv/
– https://www.ps4source.de/forum/How can I disable the default one (archiv)?
December 30, 2017 at 2:19 pm #189041In reply to: Forum registration email from wordpress
Robin W
Moderatoruse this in your functions file and change the address to what you want
add_filter('bbp_get_do_not_reply_address','my_bbp_no_reply_email'); function no_reply_email(){ $email = 'noreply@yourdomain.com'; // any email you want return $email; }
you can change that default to email address as well with :
add_filter('bbp_subscription_to_email','my_bbp_subscription_to_email'); function my_bbp_subscription_to_email(){ $email = 'noreply@yourdomain.com'; // any email you want return $email; }
December 30, 2017 at 1:18 am #189032In reply to: Button to add attachments missing
machank
Participantok. solved. First, a bug: when editing the super-admin in a multisite site instance, there is no field for editing/assigning a forum role. That line is just missing on the Settings->Forums page. Second, I did find a reference to a bug from a year ago that said that one could assign/edit forum roles for individual users but not on the Edit All Users page. That still seems to be the case. And finally I did find the settings entry for assigning all visitors a default forum role. So using all 3 of those considerations, my problem is now solved. (A pain, though, for assigning the super-admin. You have to make the default role what you want his to be, then “visit the site”, then change the default role back to what you want it to be for others.)
December 23, 2017 at 2:14 pm #188939dobosalina
ParticipantThis is the code
function bp_redirect($user) $redirect_url = ""; if (defined('ICL_LANGUAGE_CODE')) { switch (ICL_LANGUAGE_CODE) { case 'fr': $redirect_url = "https://volunteerteacher.org/fr/enregistrement-avec-succes/"; break; default: $redirect_url = 'https://volunteerteacher.org/registration-successful/"'; break; } bp_core_redirect($redirect_url); } return $redirect_url; } add_action('bp_core_signup_user', 'bp_redirect', 100, 1);
December 23, 2017 at 2:13 pm #188938dobosalina
ParticipantHello,
I have a issue, I want to have a code who works like this:
If user registered on English version – redirect to custom English registered successfully page
If user registered on French version – redirect to custom French registered successfully pageSo far I have made this below:
function bp_redirect($user)
$redirect_url = “”;if (defined(‘ICL_LANGUAGE_CODE’)) {
switch (ICL_LANGUAGE_CODE) {case ‘fr’:
$redirect_url = “https://mysite.com/fr/enregistrement-avec-succes/”;
break;default:
$redirect_url = ‘https://mysite.com/registration-successful/”‘;
break;}
bp_core_redirect($redirect_url);
}
return $redirect_url;
}
add_action(‘bp_core_signup_user’, ‘bp_redirect’, 100, 1);Unfortunately it is not working and I do not know what do do more to make it work.
Language plugin is WPML the language pages are http://www.mysite.com/fr , http://www.mysite.com/es etc,Please help me, I really need this script to be working.
Thank you so much
December 23, 2017 at 12:39 pm #188932In reply to: My content box textarea not have widgets.
finerdev
ParticipantIt’s available in the default theme. But my theme does not work.
I try to fix it for a long time. But still not fix it.
December 23, 2017 at 12:23 pm #188931In reply to: My content box textarea not have widgets.
Robin W
Moderatorok, something is preventing this.
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
December 23, 2017 at 3:16 am #188923In reply to: Forum Width and Hide Menu
posemotion
ParticipantI finally figured it out. No need to use the “Full Page Width” option or any other techniques found about the web. If you installed a bbPress forum and everything is set to its defaults. Just use the following…
Select “Customize”
Select “Additional CSS”
Add/Paste the following….bbpress #content-sidebar { display: none; } #bbpress-forums { margin-left: auto !important; margin-right: auto !important; width: 170% !important; }
Forum link in first post is incorrect now. A redirect is being setup though as that is my old link to another forum I use to use. New forum link is, http://www.posemotion.com/forums
December 20, 2017 at 12:11 pm #188872In reply to: Forums index does not work
Robin W
Moderatorcan only think that you have a conflict
It could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
December 19, 2017 at 6:00 pm #188854In reply to: Forum with nested categories
Robin W
Moderatorbbpress only displays 2 levels, so when you click the 2nd level, you will get to see the lower down forums.
It is possible to code for lower levels, if you are happy with coding you’d be looking at
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
and some coding around bbp_list_forums()
to get a further loopAs for breadcrumb – yes by default you should have one , but themes can turn these off
December 18, 2017 at 12:48 pm #188812In reply to: 404 user profile
Robin W
Moderatorhmm, apart from the standard elimination tests below, I can’t think of anything obvious
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
December 17, 2017 at 5:15 pm #188789In reply to: Clicking reply links doesn’t work
Robin W
ModeratorIt could be a theme or plugin issue
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
December 16, 2017 at 10:42 am #188753strike3
ParticipantHi,
Here are the ones that are tied to email/Buddypress/BBPress. I’m wondering–do new topic notifications work for approved topics on a clean BBPress install? I don’t think I can disable many plugins on this site since it’s getting a lot of traffic, but I could probably test it out on a different live site. I think it would have to be a live site or at least have an SMTP provider set up for the notification emails to go out.Plugins
1. Buddypress2. AsynCRONous bbPress Subscriptions (added because the default method of BCC’ing all subscribers created too many recipients for our SMTP provider)
3. bbP Toolkit
4. BP Profile Search
5. BBPress Moderation Tools (allows us to put all new topics into moderation, seems to use default BBPress actions for moderation)
6. Fix Forum Emails (fixes issue where HTML tags/entities show up in notification emails: https://bbpress.trac.wordpress.org/ticket/2865)
7. WordPress Mail Queue (queues/chunks all mail from wp_mail so we don’t go over SMTP provider limits)
8. Wordfence Security
December 14, 2017 at 3:31 pm #188720In reply to: How To Create A bbPress SideBar
veppa
ParticipantYou can try “bbPress WP tweaks” https://wordpress.org/plugins/bbpress-wp-tweaks/ plugin for adding forum sidebar. There you can select which wrapper to use for bbPress and which sidebar of your theme replace with bbpress sidebar. Try different wrappers to find one with sidebar because some themes do not have sidebar on page.php, which is in most cases default wrapper for bbpress.
December 13, 2017 at 12:55 pm #188685In reply to: Change text on sign up page
Robin W
Moderatorok, you’ll need to amend wp-content/plugins/bbpress/templates/default/bbpress/form-user-register.php
so
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/form-user-register.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/form-user-register.php
bbPress will now use this template instead of the original
and you can amend thisDecember 12, 2017 at 10:51 am #188652Topic: 404 error with “edit” on a WPML Multilingual Forum
in forum Troubleshooting13designnet
ParticipantHi there,
I tried to create a WPML multilingual which is going great so far with the bbPress Multilingual plugin. It is in English & French, the English works well (default language) but on the French side of the forum a user can not edit its own post.
The English link to edit the post is: http://mysite/forum/reply/2478/edit/
the French: http://mysite/forum/reply/2479/?lang=fr/edit/The french one forwards to a 404 error page, but what is weird is that replying to a post contains also the “?lang=fr” parameter and it works fine.
Do you have any idea how to make the “Edit | Close | Stick | Merge | Trash | Spam | Reply” toolbar to work with different languages ?
December 11, 2017 at 7:04 pm #188645Robin W
ModeratorI’d do two checks
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.
Then come back
December 11, 2017 at 5:48 pm #188640In reply to: Visual editor not appearing
Robin W
Moderatorok, I’ve just loaded the code below (same as in the post above) to my test site and it enables the tinymce editor on my test site
//editor bbpress function bbp_enable_visual_editor( $args = array() ) { $args['tinymce'] = true; $args['teeny'] = false; return $args; } add_filter( 'bbp_after_get_the_content_parse_args', 'bbp_enable_visual_editor' ); //clean html when copy and paste into forum function bbp_tinymce_paste_plain_text( $plugins = array() ) { $plugins[] = 'paste'; return $plugins;
}
add_filter( ‘bbp_get_tiny_mce_plugins’, ‘bbp_tinymce_paste_plain_text’ );So I suggest you start by doing some further testing
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
plugins
If themes don’t pinpoint the problem, deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
December 3, 2017 at 1:00 am #188502In reply to: Make people want to join my forum!
u_Oi
ParticipantIn fact you can do it 😎
1.- Copy the follow code and paste it in functions.php file (If you dont know about functions please read about it before do this):
//Restrict Topic and Replies Content For No-Registered Users function pj_hla_logged_in_topics($have_posts){ if (!is_user_logged_in()){ $have_posts = null; } return $have_posts; } add_filter('bbp_has_replies', 'pj_hla_logged_in_topics');
With the above code your visitors (no registered users) will see only the topic title. The code locks topic content and all replies.
2.- After pasted the code, try open a topic so you will see a bbpress notice about “you dont have access to… etc something like that”. You need to find the file where is that notice, to edit it with anything you want, for example a link to the sign up page (Sorry, I dont remember the file name).
To show topics titles in your post or other pages you have 4 options:
1.- Add each URL in your blog post with the same topic title and link it to the topic (hard work but good if you like linkbuilding)
2.- Default bbpress shortcode: [bbp-single-topic id=$topic_id] – Display a single topic. eg. [bbp-single-topic id=4096] ( https://codex.bbpress.org/features/shortcodes/#topics )
3.- @robin-w plugin: http://www.rewweb.co.uk/bbpress-additional-shortcodes/
4.- Hire a developer to create a shortcode to show last topics or whatever about topics.
Hope this can help you!
-
AuthorSearch Results