Search Results for ' . default . '
-
AuthorSearch Results
-
January 9, 2015 at 1:18 am #156667
In reply to: bbpress video not showing
Robkk
ModeratorbbPress doesnt render shortcodes
you will need to use a plugin like this
https://wordpress.org/plugins/bbpress-do-short-codes/
Note: by default, only users with the ability to publish bbPress forums will have their short codes parsed. This can be changed by passing a different capability via the pw_bbp_parse_shortcodes_cap filter.
so by this note keymasters/moderators for sure can post shortcodes.
January 8, 2015 at 5:25 am #156633In reply to: Increase quantity of search results
Robin W
Moderatorhmmm….hadn’t fully reads your original post
ideally I’d like to get search results with pagination
That’s what you should have ! Results should show the ‘replies per page’ setting together with full pagination.
Are you sure there are more than 20 results to show?
I suspect that something else is disturbing this
If you haven’t amended bbpress code or added filters then :
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 twentytwelve, and see if this fixes.
Come back when you have done that
January 7, 2015 at 5:07 pm #156606In reply to: User registration on multisite
Nicolas Korobochkin
ParticipantI don’t have experience with subfolder installs but I think there is no difference between subdomain and subfolder installs for this case. I can publish my code but its looks like default wp-signup.php and wp-activate.php with small changes like few <div>, additional CSS classes and commented few lines of code.
At first glance this two files looks messy and hardcoded but you can Folding all functions and comments in code editor.
January 7, 2015 at 6:12 am #156580Topic: Search not working in default theme (twentyfifteen)
in forum Troubleshootingpeetrike
ParticipantWhy is search not working in the new default theme? It is working fine in twentyfourteen, but not in twentyfifteen.
Please fix this.January 5, 2015 at 9:05 pm #156207Topic: Add Google Adsense to bbPress 2.5.4
in forum ShowcaseMatt
ParticipantI tried this and it actually works.
-
Place Adsense over single from topic
That is really simple way to place ads over the single topic of your bbpress forum. You just use ftp to customize the following file
wp-content/plugins/bbpress/templates/default/bbpress/content-single-topic.php
Just place your Adsense ads code over or under
Also you can place that on otherwhere such
content-single-forum.php
content-archive-forum.php
content-archive-topic.phpJanuary 5, 2015 at 10:40 am #156428In reply to: Hook to bbpress notifications
Nicolas Korobochkin
ParticipantYou just need some functions or methods from Mandrill API instead of my templates 🙂 wp_mail also can send rich text emails (html emails). So you just need pass your html email template to wp_mail for example.
Also wp_mail by default sends email via PHP Mailer (not SMTP server). I recommend send emails through SMTP server – for protect from spam folder and SMTP server can add dkim record to emails. I dont know anything about Mandrill – maybe your plugin already change wp_mail for SMTP, maybe not. I use https://wordpress.org/plugins/wp-mail-smtp/ plugin for sending emails via SMTP.
January 5, 2015 at 8:22 am #156426In reply to: Hook to bbpress notifications
Nicolas Korobochkin
ParticipantbbPress 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:
- User leave a message or create a topic.
- 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; } ?>Robkk
Moderatori dont know about force but you could use this plugin https://wordpress.org/plugins/wp-user-avatar/
then make a default avatar something ridiculous or a bland picture so they would want to change their avatar to not see their default avatar.
January 3, 2015 at 6:50 pm #156372In reply to: Image Posting Issue on FB
Oldemar
ParticipantI have the same problem. I want that when I share a topic on FB, then the attached picture in the opening post should be the preview picture in the FB post. But instead there’s another default picture showing in the preview post. I have tried with four different social share plugins, and I have tried with just sharing the link by copy/paste on FB with no plugin. But still no luck. Any idea?
January 2, 2015 at 9:07 pm #156350In reply to: New topics not saving.
Robkk
Moderatorthe problem does not go away when you tried the default themes , and deactivated plugins??
this is kind of odd…
January 1, 2015 at 3:34 pm #156324Robin W
Moderatorno it isn’t a default, I have a plugin that does this
https://wordpress.org/plugins/bbp-topic-count/
what other plugins are you using?
January 1, 2015 at 3:23 pm #156321j0n4h
ParticipantIs it not a default feature? When I installed bbpress, it was already a feature from the start. I’ve contacted my Theme dev and they said:
Hey Jonah,
I’m not aware of Avada touching the post count code at all. I can see you have a thread open over at the bbPress forum:
I think it would be best to see what they have to say. Hopefully we can use the information they provide to find where the issue is coming from.
Thanks!
Ryan
December 31, 2014 at 6:49 pm #156297In reply to: Fatal Error BBPress 2.5.4 on WordPress 4.1
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 twentytwelve, and see if this fixes.
then come back
December 31, 2014 at 1:25 pm #156288In reply to: Topic: "Page not found" error
Robin W
Moderatorok, many try and get links here by posing questions !
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 twentytwelve, and see if this fixes.
then come back
Robin W
ModeratorIt is probably 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 twentytwelve, and see if this fixes.
December 30, 2014 at 11:43 pm #156249In reply to: New Installation 404 error
Doulacare
ParticipantI just came across something. I have tried changing my permalinks back to default, saving and then back to post name again, but I have never tried it while it was on default. I just did, and they seem to work now…. The only issue is that I have so many links that are set for payments etc on the site member end that it would be very time consuming to go through them all and change them….
All the other threads I have read have said that to get around the issue with WP4 breaking the forums was to switch to post name.
December 30, 2014 at 11:26 pm #156248In reply to: New Installation 404 error
Doulacare
ParticipantSorry, I didn’t see the email that said I had a response to this!
I tried both the 404 fix plugins. I have also gone through the set up.
My permalinks are set up as “Post Name”
I am using “forum” for the root and all the others are the default
this is the only way I can get anything to show at all:
http://ontariodoulas.org/?post_type=forumAlso S2member is designed to work with bbPress, that is the only reason I haven’t tried another forum yet. lol
December 30, 2014 at 3:04 pm #156218In reply to: Participant forum role can no longer post
lemond404
Participantdone. We had a few users default roles, but nothing else changed.
We had to do a site restore and lost 2 months of data but issue(s) still persists. It’s even more buggy now as moderators have lost the ability to read topics…
December 30, 2014 at 12:34 pm #156215In reply to: Blank Forum Index
Robin W
Moderatorsorry Christmas time where I am, so support is thin !
This will probably be a theme or plugin issue, so we need to work out which
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 twentytwelve, and see if this fixes.
then come back with the results
December 29, 2014 at 2:49 pm #156183In reply to: Fatal error: ob_end_flush()
Robin W
ModeratorDepends what the issue is.
I suggest this approach as it helps define whether on a ‘clean’ default theme with no other plugins bbpress is experiencing issues.
If it is ok in a clean site, then I’d suggest talking to your host provider – most are good with wordpress, and may identify any issues.
If you can identify a conflict, then we can look at a solution, sometimes it is easy, often it might be harder 🙂
I presume your test site is on a local server?
If you’re ok/good with web stuff, then you might consider putting a test site on-line so that it is an exact match for the live environment, most host providers allow sub-domains and if you switch on discourage search then it doesn’t interfere see
https://codex.bbpress.org/creating-a-test-site/
then you can be happier that live will work.
Anyway just a thought !!
December 29, 2014 at 12:29 pm #156176In reply to: Redirection loop after submiting new topic
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 twentytwelve, and see if this fixes.
December 29, 2014 at 12:27 pm #156175In reply to: Error on show "all reply" page (in backend).
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 twentytwelve, and see if this fixes.
December 29, 2014 at 12:27 pm #156174In reply to: Fatal error: ob_end_flush()
Robin W
Moderatortry the following to se if you can pinpoint a conflict in live
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 twentytwelve, and see if this fixes.
December 29, 2014 at 6:42 am #156164Topic: Fatal error: ob_end_flush()
in forum InstallationHighRollerUSA
ParticipantI just installed bbpress 2.5.4 on WordPress 4.1, on two different websites.
On my test site, everything is working as expected, but on my live site (which has SSL) every time I try to access the default https://mysite.com/forums/ I get the following error:
Fatal error: ob_end_flush(): Cannot use output buffering in output buffering display handlers in /homepages/wordpress/wp-includes/functions.php on line 3269
I can create a new page with a different name than “forums” and use the shortcode successfully, but the breadcrumbs have a direct link to the “/forums” and it gives the same error.
Any idea what may be going on?
Thanks!
December 29, 2014 at 4:03 am #156160Topic: Redirection loop after submiting new topic
in forum Troubleshootingnitz12345
ParticipantHello.
I seem to have a problem with creating new topic. When i click the “submit” button, it tries to redirect to the topic for editing (I guess?), but then it get stuck in redirection loop and I get an error.
The problem occurs when I put permalinks on “Pretty Links”. When I change back to default it stops happening.The page that I use for the forum is the following: http://forum-dati.co.il/%D7%A4%D7%95%D7%A8%D7%95%D7%9D/%D7%A4%D7%95%D7%A8%D7%95%D7%9D/
Everything is in Hebrew, so if you need any translation just say 🙂
I use wordpress v4.1 and bbpress v2.5.4
I also use multisiteThank you very much
-
AuthorSearch Results