Search Results for 'test'
-
AuthorSearch Results
-
January 3, 2018 at 1:37 pm #189110
Robin 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 1, 2018 at 5:03 am #189069Robin W
Moderatorissue is with the plugin Paid Memberships Pro – bbPress Add On v 1.5.4 with Plugin Paid Memberships Pro 1.9.4.2 prevent Plugin Google Photos Version 1.0.1 embed from working.
from @mattdmcleod
I rolled it back to the previous version (1.5.3) on the staging site and it worked. Made that change on the production site and it also seems OK.
The PMPro plugin was the one updated in December, but the current BBPress (v1.5.4) connector hasn’t been updated for 5 months (and last tested with WP 4.8.4). I guess the PMPro update affected the BBPress connector in some way? Or maybe it doesn’t like WP 4.9x? I’ll post in their support forum to let them know.December 29, 2017 at 6:32 pm #189029mattdmcleod
ParticipantHi Robin, thanks for your reply. I’m in Australia so our time differences may cause a delay in my responses.
Both old posts and new posts have stopped displaying images.
I’ve turned off Paid Membership Pro on this forum so you can get in and have a look. This is my production site.
This thread is an example with both posts and replies where the photos aren’t displaying.
I’ve unlocked the same forum on the staging site and created a new topic and reply from the dashboard. While the photos display in the dashboard visual editor, they don’t display in the user view.
So, just to confirm your questions, it appears photos are not displaying in either new or old posts or replies on production or staging (with standard WP theme).
Going back and looking at WordPress release dates (4.8 was mid-2017) makes me think this is not related. It was working fine well after that. Especially if you’ve just tested it and you’re displaying photos with <p> tags. I’m going back to a plugin conflict…
Cheers
MattDecember 29, 2017 at 1:31 pm #189028Robin W
Moderatorjust loaded that plugin to my test site, and with auto-embed on it works fine.
This
<p>https://photos.app.goo.gl/pOeSirvJb5oC7kFC2</p>
displays the embed just fine.
So all we now need to do is work out the difference between my test site and your staging site !!
When you’ve come back on the Q’s above, I’ll do some more digging.
December 28, 2017 at 11:56 am #189012In reply to: Custom Topic Sorting
Robin W
Moderatoruntested by this should work
//change topic order add_filter('bbp_before_has_topics_parse_args', 'rew_topic_order_by_meta'); function rew_topic_order_by_meta ($args) { $args['meta_key'] = 'put_meta_key_here' ; $args['orderby'] = 'meta_value' ; $args['order'] = 'DESC' ; //or ASC if needed return $args ; }
just put your meta_key where it says
December 28, 2017 at 11:54 am #189011In reply to: I’m building a bbPress iOS and Android app
TKServer
ParticipantVersion 0.1.0 is now available for both iOS and Android as of today.
New features:
- Create new user account in the app. No longer have to use the www version for that
- User profile management: edit public display name, edit email, edit password
- Avatar management: upload/delete avatar
- New WYSIWYG text editor. Now the same one as on the www site
- Version checking alerts user to upgrade to the latest version.
- Fixed youtube bug where videos appear blank in app
December 24, 2017 at 5:46 pm #188955Robin W
Moderatoryou can simply filter this in your theme’s function file.
not tested but
add_filter( 'bbp_number_format', 'rew_number_format', 10 , 5) ; function rew_number_format ($number_format, $number, $decimals, $dec_point, $thousands_sep) { $thousands_sep = '' ; return apply_filters( 'rew_number_format', number_format( $number, $decimals, $dec_point, $thousands_sep ), $number, $decimals, $dec_point, $thousands_sep ); }
December 24, 2017 at 7:14 am #188946In reply to: Organic Square, my powerfull BBPress hack.
brent0r
ParticipantI really like what you’ve done. I’m struggling to make changes to several areas and it looks like you’ve managed to get it perfect!
Specifically the “latest post / freshness” changes on the forum index. I love how its formatted with picture on left, followed by forum and dates. Also the Replies: Views: changed on each section is really nice too 🙂
Any chance you would share the template changes, it would really help me achieve similar results and learn how you got there.
Cheers 🙂
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 21, 2017 at 5:24 pm #188900Topic: WP Multisite – can not enter the profile
in forum TroubleshootingKrzysztof
ParticipantHi
I have WordPress Multisite. I registered the test user. I logged in and changed my password. I added a test topic on the bbpress forum. Then I could not enter my profile to edit it. Wrote something – no access. In the administration panel wrote: Site Role – Participant, Forum Role – Participant. I changed Site Role to Subscriber. This solved the problem. In my opinion should automatically register the user as Subscriber.December 21, 2017 at 3:54 pm #188898Topic: Post Preview
in forum Troubleshootingcclemens
ParticipantFor the last couple years, I’ve been using the bbP Live Preview plugin in conjunction with the bbPress Enable TinyMCE Visual Tab plugin for the forums located at http://www.nationalbraille.org/forums
In the post editor, users can type, then highlight their text and apply a braille font using a button in the Visual Editor options. Then, hitting “Preview” would allow a post preview box to appear below the editor that showed how the post would look before submitting.
Not everyone has been successful using it, but it always worked great for me up until now. I can’t get the function to work for me anymore. I’ve checked Javascript in my test browsers and everything is enabled. Any thoughts on what could be causing this function to break?
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 20, 2017 at 12:25 am #188860In reply to: No emails are being sent
dinoeliadis
ParticipantI have tested all of this and email notifications are still not being sent.
All other plugins which send emails from the site are working. And, I check with my server support. All logs show email is work correctly from the site, What’s next to try?
December 19, 2017 at 2:58 pm #188847In reply to: unsubscribe a user from everything given a userid
Robin W
ModeratorJust had a quick look in between other tasks, and totally untested, but this should work if it has no bugs
function dsk_remove_all_subscriptions ($user_id) { global $wpdb; //first remove forum subscriptions $forum=bbp_get_forum_post_type() ; $forum_ids=$wpdb->get_col("select ID from $wpdb->posts where post_type = '$forum'") ; foreach ($forum_ids as $forum_id) { bbp_remove_user_forum_subscription( $user_id, $forum_id ) ; } //then remove topic subscriptions $topic=bbp_get_topic_post_type() ; $topic_ids=$wpdb->get_col("select ID from $wpdb->posts where post_type = '$topic'") ; foreach ($topic_ids as $topic_id) { bbp_remove_user_topic_subscription( $user_id, $topic_id ); } }
If you get it working, then please confirm or post back the final code.
If you need further help do come back and I’ll see if I can help further
December 19, 2017 at 1:11 pm #188844In reply to: Visual Editor not showing
Robin W
Moderatorvery strange…not sure I’m going to be much use – I think you into lots of try this/try that testing
Hope you figure it out, and if you do, please post the solution here – that will help others who google it as a question later !
December 19, 2017 at 12:02 pm #188837In reply to: bbPress pulling (seemingly) random php from theme
jryaus
ParticipantQuick update: Tested a bit more. I’ve renamed the file that it is mistakenly using several times but it doesn’t help, bbPress uses that same file no matter what. Could it be something in the file itself that telling bbPress to use it?
Sorry for the basic questions. I thought this would be relatively simple – just rename the template I wanted to use to bbpress.php and move it to the correct folder. Not sure what to do! Thanks for the help
December 19, 2017 at 7:04 am #188831In reply to: Clicking reply links doesn’t work
Audiomonk
ParticipantHi,
https://jwfsanctuary.club and the widget on the side to the latest forum posts is a good example, thanks for taking a look. Thanks so much.
December 18, 2017 at 7:28 pm #188820In reply to: Visual Editor not showing
Perrorist
ParticipantI’m now wondering if this could be a cookie issue. Logging in as a test user has been tried by one user, who said it worked. He then logged out and back in as the test user, and it still worked. However, when he went back in as himself and logged out, then back in as the test user, the Edit button had gone.
December 18, 2017 at 5:09 pm #188819In reply to: Visual Editor not showing
Perrorist
ParticipantI tried the permalink idea. No joy. This has me completely baffled. I’ll set up a test user for the users to log on to and ask if they can see the Visual Editor. If they can, I shall propose creating new accounts for them.
December 18, 2017 at 2:52 pm #188817In reply to: Clicking reply links doesn’t work
Audiomonk
ParticipantHi thanks for your reply, that’s a big undertaking for my site given the amount of plugins, and combinations of plugins that may be conflicting with bbpress. I tried another theme, that seemed to work a little better, so am guessing it could be a theme conflict with bbpress.
I was more after guidelines of things that could go wrong to look out for, am guessing it uses a tags with an id to jump to the relevant post?
I think I’ll wait until I get a staging setup done, so I can test things on a non live site.
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 8:51 pm #188792In reply to: Visual Editor not showing
Perrorist
ParticipantThanks, Robin. When I log in as him, I don’t see the Edit button on his post either.
You say it’s the server, but in what way could the server prevent that feature from working? It did work before and I have moved my account to a new hosting service. However, I can’t understand why it works for my test user account which is also on the same server.
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 17, 2017 at 12:24 pm #188770In reply to: Visual Editor not showing
Robin W
Moderatorok, so you need to define it down to server or client
If you log in as test – it works – yes?
If so log in as him and see if that works.If it does then it is his PC
If it doesn’t then it is server.
-
AuthorSearch Results