Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 17,201 through 17,225 (of 64,532 total)
  • Author
    Search Results
  • #156443
    Robin W
    Moderator

    see

    Functions files and child themes – explained !

    but basically at the end.

    #156430
    Robin W
    Moderator

    Wish I was a team !!

    I suspect that this is how it works.

    For participant roles I can use my plugin to tightly control access.

    For moderators, originally moderators could see and moderate all forums.

    I then amended this to allow them to moderate only forums with no group set or with their group set. However this related to moderation, I have sort of presumed that moderators could see other groups and have participant rights in them, just not moderate, as it was moderation that I was controlling.

    I suspect that some users would like it as above, and others with no rights for other private forums, as you desire.

    I’ll take another look at the code to see how easy it is to change, but moderation hits into many places in the core bbpress code, and I’m not sure how easy it would be to be that flexible.

    #156426
    Nicolas Korobochkin
    Participant

    bbPress have two types of notifications: new message in topic or new topic in forum. Functions that sends messages in bbpress/includes/common/functions.php. You can’t redeclare they. You need to remove default functions and add your custom one. Here is my working code for armyofselenagomez.com wich sends emails via external SMTP server (like Mandrill. but I use Yandex, like Gmail but in Russia). Be careful with priorities and numbers of arguments to pass.

    Logis of process:

    1. User leave a message or create a topic.
    2. Create single wp-crone task which create messages and send it.

    Positive sides of this solution: Emails sends per user (not 1 email per 100000 users like in bbPress by default). Site work faster because emails send via cron, not immediately. I dont store emails or messages to send in DB, just topic ID. Emails sends via SMTP server (not just PHP Mailer or wp_mail()).

    <?php
    function selena_network_bbp_init () {
    	/*
    	 * Оповещание о новых ответах в темах на форуме
    	 * 1. Удаляем дефолтную оповещалку.
    	 * 2. Добавляем свою оповещалку, которая создает крон-задачу.
    	 * 3. Экшн фильтр задачи, который создает письма и отправляет их.
    	 *
    	 * Функции находятся в файле
    	 * bbpress/includes/common/functions.php
    	 */
    	remove_action ('bbp_new_reply', 'bbp_notify_subscribers', 11);
    	add_action ('bbp_new_reply', 'selena_network_bbp_notify_subscribers', 11, 5);
    	add_action ('selena_network_bbp_notify_subscribers_cron', 'selena_network_bbp_notify_subscribers_callback', 10, 5);
    
    	/*
    	 * Оповещения о создании новых тем на форуме
    	 * 1. Удаляем дефолтную оповещалку.
    	 * 2. Добавляем свою оповещалку, которая создает крон-задачу.
    	 * 3. Экшн для задачи, который будет запускать крон (создает письма и отправляет их).
    	 *
    	 * Функции находятся в файле
    	 * bbpress/includes/common/functions.php
    	 */
    	remove_action ('bbp_new_topic', 'bbp_notify_forum_subscribers', 11);
    	add_action ('bbp_new_topic', 'selena_network_bbp_notify_forum_subscribers', 11, 4);
    	add_action ('selena_network_bbp_notify_forum_subscribers_cron', 'selena_network_bbp_notify_forum_subscribers_callback', 10, 4);
    }
    add_action ('bbp_init', 'selena_network_bbp_init', 99);
    <?php
    function selena_network_bbp_notify_subscribers (
    	$reply_id = 0,
    	$topic_id = 0,
    	$forum_id = 0,
    	$anonymous_data = false,
    	$reply_author = 0
    ) {
    	wp_schedule_single_event (
    		time (),
    		'selena_network_bbp_notify_subscribers_cron',
    		array (
    			$reply_id,
    			$topic_id,
    			$forum_id,
    			$anonymous_data,
    			$reply_author
    		)
    	);
    
    	return true;
    }
    
    function selena_network_bbp_notify_subscribers_callback (
    	$reply_id,
    	$topic_id,
    	$forum_id,
    	$anonymous_data,
    	$reply_author
    ) {
    	// Bail if subscriptions are turned off
    	if ( !bbp_is_subscriptions_active() ) {
    		return false;
    	}
    
    	$reply_id = bbp_get_reply_id( $reply_id );
    	$topic_id = bbp_get_topic_id( $topic_id );
    	$forum_id = bbp_get_forum_id( $forum_id );
    
    	// Bail if topic is not published
    	if ( !bbp_is_topic_published( $topic_id ) ) {
    		return false;
    	}
    
    	// Bail if reply is not published
    	if ( !bbp_is_reply_published( $reply_id ) ) {
    		return false;
    	}
    
    	// User Subscribers
    	$user_ids = bbp_get_topic_subscribers( $topic_id, true );
    	if ( empty( $user_ids ) ) {
    		return false;
    	}
    
    	// Poster name
    	$reply_author_name = bbp_get_reply_author_display_name( $reply_id );
    
    	// Remove filters from reply content and topic title to prevent content
    	// from being encoded with HTML entities, wrapped in paragraph tags, etc...
    	remove_all_filters( 'bbp_get_reply_content' );
    	remove_all_filters( 'bbp_get_topic_title'   );
    
    	// Strip tags from text and setup mail data
    	$topic_title   = strip_tags( bbp_get_topic_title( $topic_id ) );
    	$reply_url     = bbp_get_reply_url( $reply_id );
    
    	$subject = sprintf(
    		_x (
    			'%1$s wrote new comment in “%2$s”',
    			'%1$s = Name of user who create comment
    %2$s = Topic title in which user leave a comment',
    			'selena_network'),
    		$reply_author_name,
    		$topic_title
    	);
    	if (empty ($subject)) {
    		return;
    	}
    
    	// Loop through users
    	foreach ( (array) $user_ids as $user_id ) {
    
    		// Don't send notifications to the person who made the post
    		if ( !empty( $reply_author ) && (int) $user_id === (int) $reply_author ) {
    			continue;
    		}
    
    		// For plugins to filter messages per reply/topic/user
    		$message = sprintf (
    			_x (
    '%1$s wrote new comment in conversation “%2$s” %3$s.
    
    +
    Notification settings → %4$s.
    Send email at %5$s or respond on that letter if you have a questions.',
    			'%1$s = Reply author name
    %2$s = Topic title
    %3$s = Reply URL to this topic
    %4$s = Manage subscribe settings link
    %5$s = Admin email',
    			'selena_network'
    			),
    
    			$reply_author_name,
    			$topic_title,
    			$reply_url,
    			bbp_get_subscriptions_permalink ($user_id),
    			get_option ('admin_email')
    		);
    
    		if ( empty( $message ) ) {
    			continue;
    		}
    
    		wp_mail (
    			get_userdata( $user_id )->user_email,
    			$subject,
    			$message
    		);
    	}
    
    	return true;
    }
    
    /* Новая тема на форуме */
    function selena_network_bbp_notify_forum_subscribers (
    	$topic_id = 0,
    	$forum_id = 0,
    	$anonymous_data = false,
    	$topic_author = 0
    ) {
    	wp_schedule_single_event (
    		time (),
    		'selena_network_bbp_notify_forum_subscribers_cron',
    		array (
    			$topic_id,
    			$forum_id,
    			$anonymous_data,
    			$topic_author
    		)
    	);
    
    	return true;
    }
    function selena_network_bbp_notify_forum_subscribers_callback (
    	$topic_id,
    	$forum_id,
    	$anonymous_data,
    	$topic_author
    ) {
    	// Bail if subscriptions are turned off
    	if ( !bbp_is_subscriptions_active() ) {
    		return false;
    	}
    
    	$topic_id = bbp_get_topic_id( $topic_id );
    	$forum_id = bbp_get_forum_id( $forum_id );
    
    	// Get topic subscribers and bail if empty
    	$user_ids = bbp_get_forum_subscribers( $forum_id, true );
    	if ( empty( $user_ids ) ) {
    		return false;
    	}
    
    	// Bail if topic is not published
    	if ( ! bbp_is_topic_published( $topic_id ) ) {
    		return false;
    	}
    
    	// Poster name
    	$topic_author_name = bbp_get_topic_author_display_name( $topic_id );
    
    	// Remove filters from reply content and topic title to prevent content
    	// from being encoded with HTML entities, wrapped in paragraph tags, etc...
    	remove_all_filters( 'bbp_get_topic_content' );
    	remove_all_filters( 'bbp_get_topic_title'   );
    
    	// Strip tags from text and setup mail data
    	$topic_title   = strip_tags( bbp_get_topic_title( $topic_id ) );
    	$forum_title   = strip_tags( bbp_get_forum_title( $forum_id ) );
    	$topic_url     = get_permalink( $topic_id );
    
    	// For plugins to filter titles per reply/topic/user
    	//$subject = apply_filters( 'bbp_forum_subscription_mail_title', '[' . $blog_name . '] ' . $topic_title, $topic_id, $forum_id, $user_id );
    	$subject = sprintf (
    		_x (
    			'%1$s created new conversation “%2$s”',
    			'%1$s = Topic author name who create new new topic
    %2$s = Topic title',
    			'selena_network'
    		),
    		$topic_author_name,
    		$topic_title
    	);
    	if ( empty( $subject ) ) {
    		return;
    	}
    
    	// Loop through users
    	foreach ( (array) $user_ids as $user_id ) {
    
    		// Don't send notifications to the person who made the post
    		if ( !empty( $topic_author ) && (int) $user_id === (int) $topic_author ) {
    			continue;
    		}
    
    		// For plugins to filter messages per reply/topic/user
    		$message = sprintf( _x( '%1$s created new conversation “%2$s” in the forum “%3$s” %4$s.
    
    +
    Notification settings → %5$s.
    Send email at %6$s or respond on that letter if you have a questions.',
    			'%1$s = Topic author name
    %2$s = Created topic title
    %3$s = Forum title in wich topic created
    %4$s = Link to brand new topic
    %5$s = URL to manage user subscribtions
    %6$s = Admin email',
    			'selena_network' ),
    
    			$topic_author_name, // 1
    			$topic_title, // 2
    			$forum_title, // 3
    			$topic_url, // 4
    			bbp_get_subscriptions_permalink ($user_id), // 5
    			get_option ('admin_email') // 6
    		);
    
    		if ( empty( $message ) ) {
    			continue;
    		}
    
    		// Send notification email
    		wp_mail (
    			get_userdata( $user_id )->user_email,
    			$subject,
    			$message
    		);
    	}
    
    	return true;
    }
    ?>
    #156425
    nishant2hit
    Participant

    Hi Robin and team,
    I am using bbp Private groups plugin with bbpress. This has been of great help for many. However, I am having this strange issue with moderator type of forum user.
    Moderator user though assigned to a single private group is able to view forum topics and create topic that belong to a different group.
    Below are two users I created in the system. Both belong to same private group:

    Name Private Group(s) Wordpress & bbPress Roles
    —————– ——————– ————————–
    nishant.moderator Group1 GroupA Subscriber/Moderator
    nishant.participant Group1 GroupA Subscriber/Participant

    I have created two forums. Below is a snapshot of Management information tab of bb private groups:
    Group1 Group name : GroupA
    No. users in this group : 2
    Forums in this group :
    ForumA
    No. forums that have this group set : 1
    Group2 Group name : GroupB
    No. users in this group : 0
    Forums in this group :
    ForumB
    No. forums that have this group set : 1

    nishant.moderator is able to view topics and add topic for ForumB as well which should not be allowed ideally.

    Please help me with this issue.

    Thanks
    Nishant

    #156423
    t3_rrY
    Participant

    Hi everyone,

    though I’ve used this forum a lot lately, here’s my first post:

    I’m using a custom plugin which uses Mandrill API instead of wp_mail() to notify (future) users.
    I’m trying to hook bbpress notification to use templates with Mandrill yet after hours of search around the web I can’t find how to do so. Could you please, help me on this one?
    I’ve already created a setting which enables me to pass the name of the wanted template but I don’t know how to superseed bbpress wp_mail() method…

    Thanks in advance

    #156412

    In reply to: Template

    Robkk
    Moderator

    1. heres a pretty good tutorial in the docs to style your bbPress forums with some CSS

    bbPress Styling Crib

    2. if your talking about maybe downloading some already styled templates there is none, i think bbPress standalone had this but theme compatibility makes giving away already styled templates pretty tough.

    if you actually want to see what users could create with bbPress check out some of the sites listed here

    bbpress.org/about/examples/

    3. as long as you follow this link

    codex.bbpress.org/theme-compatibility/

    you can use the templates to customize bbPress forums to your liking.

    also checking the rest of the docs wouldnt be bad too.

    codex.bbpress.org/

    #156411
    jonathan.chagas
    Participant

    Hello! I’m finishing a custom theme to bbPress, but one thing that is challenging me: bbPress editor displays a simple textarea, and nothing more. I also used the plugin to enable visual tab, but also failed. By using the theme Twentfifteen, the editor appears normally.

    Can anyone tell what’s going on?

    PT: Olá! Eu estou acabando um tema personalizado para o bbPress, mas tem uma coisa que está me desafiando: o editor do bbPress exibe uma textarea simples, e nada mais. Também usei o plugin para habilitar a aba visual, mas também não deu certo. Ao usar o tema Twentfifteen, o editor aparece normalmente.

    Alguém pode dizer o que está acontecendo?

    Printscreen

    #156409
    Robkk
    Moderator

    hmmm thats weird

    hopefully while your trying to fix it , you didn’t do more harm than good.

    heres a list of things you can do

    contact your hosting providers support

    see if they can find any issues you might have if you installed an SSL certificate or any other issues that might cause it like a CDN setup or such in their environment but im only guessing.

    post a topic here https://wordpress.org/support/forum/installation

    im saying post a topic here because I don’t know much about this kind of issue , and im sure the people at their support team can help. I just know some stuff about bbPress and some stuff in WordPress to get by, like I said it’s highly unlikely that bbPress or BuddyPress could cause the issue im not ruling it out but its highly unlikely.

    if your site is a live site do a scan also at sitecheck.sucuri.net

    do a scan just in case something bad might of happened.

    you can also wait until someone else picks up the topic from here and give you any other additional information.

    #156400
    Robkk
    Moderator

    @freeman7

    you can delete it with ftp if you really want to

    BuddyPress and bbPress shouldn’t mess with the login process, but deactivate them using the ways mentioned in that tutorial and see if that fixes your problem.

    its most likely not BuddyPress and bbPress though , so try to find another plugin that might be causing it.

    #156398
    Robkk
    Moderator

    the way bbPress outputs the login page bugs me, a lot. What I am trying to do is add a login box to my layout, when I did – I found it added a list and a horrible fieldset around the whole thing. This doesn’t work with my design at all.

    are you using the shortcode [bbp-login] ??

    you should use that shortcode if not.

    more shortcodes supplied with bbPress that you can use.

    https://codex.bbpress.org/shortcodes/

    I found there is no template readily available to just change. Really?

    yes there is its called form-user-login.php

    So, it seems all I can do is hack away at the core code, which will all be reverted once a new version comes around.

    dont do that

    #156397
    Brian
    Participant

    I havent installed any security plugins.

    I use the http://www.mysite.co.uk/wp-admin/ and it redirects to http://www.mysite.co.uk/wp-admin/PHP

    Can i delete the buddypress and bbpress plugins using FTP?

    #156394
    Brian
    Participant

    Hi

    I have installed buddypress and then bbpress.

    I created to users in another browser. I then logged out of the my wordpress site and when went back to loggin it wont allow me to. It will only accept the users i created for the buddypress site.

    Now i am unable to login to wordpress ay help appriciated??

    #156392
    Robkk
    Moderator

    i found this, i havent tested it though with the latest version of bbPress and WordPress though.

    https://wordpress.org/plugins/bbpress-ignore-user/

    #156390
    Editor Mike
    Participant

    Hi,

    I have tried searching but found nothing relevant.

    Does bbPress have a plugin that allows users to ignore the posts of other users?
    Like the friend/Foe feature that PhP forums have?

    #156388
    Robin W
    Moderator

    It bugs me as well.

    Two solutions I have documented

    Layout and functionality – Examples you can use

    Layout and functionality – Examples you can use

    You can also copy the core file into your functions file, hack it and rename it. There are several places it needs renaming, and if you would like to post your working solution, I’ll happily make a functions file version, as long as I can use it publicly

    #156383
    Jake Hall
    Participant

    Hi guys,

    the way bbPress outputs the login page bugs me, a lot. What I am trying to do is add a login box to my layout, when I did – I found it added a list and a horrible fieldset around the whole thing. This doesn’t work with my design at all.

    So, on with my quest to change this, I found there is no template readily available to just change. Really? So, it seems all I can do is hack away at the core code, which will all be reverted once a new version comes around.

    Does anyone have any suggestions for this?

    #156379

    Topic: Template

    in forum Installation
    ChrisWin
    Participant

    Looking for
    1) good tutorial to skin my BBpress.
    2) place where I can see beautifull bbpress template.
    3 this is possible to set a them just for my BBpress without change my whole template? Since the BBPress is inside my travel blog?

    Regards
    Chris

    #156377
    Robkk
    Moderator

    maybe this plugin will work , only works without BuddyPress installed though

    https://wordpress.org/plugins/bbpress-members-only/

    Robkk
    Moderator

    also just found this plugin too , havent tested though.

    https://wordpress.org/plugins/bbpress-protected-forums/

    pazzaglia
    Participant

    Thanks, @Robkk I didn’t know how to use that – I didn’t realize it was as easy as adding it to my functions file.

    Thanks for the addition @undergroundnetwork!

    Since I posted I’ve been using this outdated-but-it-works plug-in.
    https://wordpress.org/plugins/search-bbpress/

    Although that plug-in, works, it also displays shows links to slides that I have on the homepage in the results – not a big deal as I don’t have too many slides but I’d rather that not happen.

    In an effort to reduce plug-ins I’m going to give this code a shot.

    Ciao,

    L

    undergroundnetwork
    Participant

    I’ve added to the code as the above code does not search for Forum Titles, this code includes titles in the search as well:

    
    /**
     * Include bbPress 'topic' custom post type in WordPress' search results */
     
    function ntwb_bbp_topic_cpt_search( $topic_search ) {
    	$topic_search['exclude_from_search'] = false;
    	return $topic_search;
    }
    add_filter( 'bbp_register_topic_post_type', 'ntwb_bbp_topic_cpt_search' );
    
    /**
     * Include bbPress 'forum' custom post type in WordPress' search results */
    
    function ntwb_bbp_forum_cpt_search( $forum_search ) {
    	$forum_search['exclude_from_search'] = false;
    	return $forum_search;
    }
    add_filter( 'bbp_register_forum_post_type', 'ntwb_bbp_forum_cpt_search' );
    
    /**
     * Include bbPress 'reply' custom post type in WordPress' search results  */
    
    function ntwb_bbp_reply_cpt_search( $reply_search ) {
    	$reply_search['exclude_from_search'] = false;
    	return $reply_search;
    }
    add_filter( 'bbp_register_reply_post_type', 'ntwb_bbp_reply_cpt_search' );
    
    #156360
    Robkk
    Moderator

    @sceko

    just checked and this plugin https://wordpress.org/plugins/bbpress-enable-tinymce-visual-tab/

    shows the visual editor in the edit page too.

    if you still have issues reply back.

    #156353
    Robkk
    Moderator

    @robertosalemi

    if it still doesnt work , a last step you can do is reinstall bbPress if there was an issue with your first install.

    #156349
    Robkk
    Moderator

    Thanks for sharing , if you havent already contact the theme author so that it wont happen to future users of both bbPress and the Salient theme.

    #156348
    Robkk
    Moderator

    well there was an after the deadline spellcheck plugin in the past for bbPress standalone versions

    but you will have to custom develop this kind of functionality for your client

Viewing 25 results - 17,201 through 17,225 (of 64,532 total)
Skip to toolbar