Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 1,226 through 1,250 (of 6,778 total)
  • Author
    Search Results
  • #189207
    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>

    #189186
    Robin W
    Moderator

    I’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

    #189161

    In reply to: access control

    Robin W
    Moderator

    ok, 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 forums

    Visibility 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.

    Robin W
    Moderator

    in 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.

    #189109
    bertdy
    Participant

    Bonjour,
    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
    Bertrand

    #189095
    finar76
    Participant

    Hi 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

    #189070
    fenomeno0chris
    Participant

    First 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)?

    #189041
    Robin W
    Moderator

    use 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;
    }
    #189032
    machank
    Participant

    ok. 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.)

    dobosalina
    Participant

    This 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);
    
    
    dobosalina
    Participant

    Hello,

    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 page

    So 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/&#8221;;
    break;

    default:
    $redirect_url = ‘https://mysite.com/registration-successful/”&#8216;;
    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

    #188932
    finerdev
    Participant

    It’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.

    #188931
    Robin W
    Moderator

    ok, 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

    #188923
    posemotion
    Participant

    I 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

    #188872
    Robin W
    Moderator

    can 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

    #188854
    Robin W
    Moderator

    bbpress 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 loop

    As for breadcrumb – yes by default you should have one , but themes can turn these off

    #188812

    In reply to: 404 user profile

    Robin W
    Moderator

    hmm, 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.

    #188789
    Robin W
    Moderator

    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

    #188753
    strike3
    Participant

    Hi,
    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. Buddypress

    2. 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

    #188720
    veppa
    Participant

    You 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.

    #188685
    Robin W
    Moderator

    ok, 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%/bbpress

    where %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 this

    13designnet
    Participant

    Hi 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 ?

    #188645
    Robin W
    Moderator

    I’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

    #188640
    Robin W
    Moderator

    ok, 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

    #188502
    u_Oi
    Participant

    Hi @louisgeorges

    In 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!

Viewing 25 results - 1,226 through 1,250 (of 6,778 total)
Skip to toolbar