Search Results for 'test'
-
AuthorSearch Results
-
January 16, 2018 at 11:37 am #189414
swagataminnovations
ParticipantLooks interesting, but this one’s too is not updated since 2 years…folks normally won’t install a plugin which are not timely updated and the untested version…
January 16, 2018 at 8:41 am #189405In reply to: Multiple admins in a community
Pascal Casier
ModeratorYou refer to ‘community’, so if you are using BuddyPress, then you better ask in https://buddypress.org/support/
If you really refer to bbPress forums, then I have some good news: In the upcoming v2.6 you can define moderators per forum. The release candidate (already very stable) of that version is available on https://bbpress.org/download/ if you want to already test it.
January 14, 2018 at 6:48 am #189360In reply to: font awesome as forum icon
andrew55
ParticipantRobin – Thank you very much.
I have topic icon created in test forum (it’s in 2nd forum):
I’ve tried and tried, but I can’t figure out how to style the font awesome font.
I need to get it moved down, and I need to get the title and description of forum moved to the right a bit.
Anyone have a suggestion for how to accomplish this? Or, is there maybe a better way to use Font Awesome fonts as topic icons (template edit, function, etc)?
January 11, 2018 at 1:47 pm #189307In reply to: Add reply programatically
Robin W
Moderatorthe quick and dirty solution is to get the topic IP before executing bbp_insert_reply and reset it afterwards
eg (untested)
$reply_data = array('post_parent'=>$post_parent, 'post_content' => $post_content); $reply_meta = array('forum_id'=>$post_forum_id, 'topic_id' => $post_topic_id); //get the topic IP so we can reset it later $ip = get_post_meta( $topic_id, '_bbp_author_ip', false ); bbp_insert_reply($reply_data,$reply_meta); //reset the topic IP update_post_meta( $topic_id, '_bbp_author_ip', $ip, false );I could spend a long time working out a more elegant fix, but hopefully the above will be enough !
January 11, 2018 at 8:38 am #189293In reply to: Forum not working on my website
Robin W
ModeratorI am fairly sure that this is a theme issue.
As a test switch to the theme twentyseventeen and see if the issue goes away.
January 11, 2018 at 6:35 am #189291Topic: Forum not working on my website
in forum TroubleshootingDarko Dinic
ParticipantHi dear support,
we have installed your plugin on our website and apparently it’s not working properly.
If we use the shortcodes to place it on some page:
It shows list of forums but once you try accessing some forum it shows empty page:
Also, the default forum page is not working:
http://jadran.paprikart.rs/forums/We already tried disabling all the plugins to rest assured that plugin conflict is not making some conflict there and it’s still not working.
WP version 4.9.1.
Can you please take a look at it and advise?
Thanks in advance!
January 11, 2018 at 1:16 am #189275In reply to: bbPress 2.6.0 Release Candidate 5
timsilva_
ParticipantHi @johnjamesjacoby and team. Like everyone else, I’ve been waiting for the 2.6 release for a few years now. I can see that the last remaining ticket is for the “bump” functions that have been in there for a while.
I’m just curious, are bump functions uniquely challenging to code? Either way, is there anything that I (or anyone) can do to help get this task finished? I have somewhat arbitrarily been waiting for the 2.6 release to make some changes to my site. I’m contemplating updating to the RC5 release. By the way, where can I find the latest RC download link? I dug around but couldn’t find a copy. The RC5 link here (https://wordpress.org/plugins/bbpress/advanced/) is still broken.
January 10, 2018 at 1:35 pm #189265In reply to: ERROR: Are you sure you want to do this?
Robin W
Moderatorok, no idea why this is happening – 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
January 10, 2018 at 4:49 am #189244In reply to: ERROR: Are you sure you want to do this?
vokzal48
Participanthere is a new topic via the control panel (test forum): http://avtovokzal-elets.ru./forums/topic/test-foruma/
January 8, 2018 at 3:49 pm #189217Topic: Importing data via sql
in forum Requests & FeedbackDirk1312
ParticipantHi all,
I’d like to create new topics and posts from a former, self-developed forum. The data is available in a xml structure containing the following information:
– parent post id (0 if its the topic initializing post itself)
– author
– subject
– post
– timestampI now would like to insert the data via sql statements; all entries shall be added as anonymous posts. I can prepare them on my own, but I’ve no clue in which tables my posts have to be added. What I already did: Created a test forum, dumped the whole forum, added a new topic as anonymous user and again created a dump. Then I compared both dump files via notepad++. Now I’m not sure, which entries I really need.
The following tables were extended:
– bbpas
– Counterize_Pages
– options
– popularpostsdata
– popularpostssummary
– postmeta
– posts
– statistics_pages
– statistics_useronline (this is clear, that I don’t must extend this table manually?!)
– statistics_visit (this is clear, that I don’t must extend this table manually?!)
– statistics_visitor (this is clear, that I don’t must extend this table manually?!)
– wfHits (I guess this is also some kind of statistics and must not be filled manually?!)Could you please help me? There should be no need to first lock the manually created entries and activate them as admin.
Thanks and kind regards,
Dirk
January 8, 2018 at 6:05 am #189205In reply to: ERROR: Are you sure you want to do this?
vokzal48
Participantupdated wordpress and bbpress to the latest versions, but unfortunately it did not help.
WP: 4.9.1 bbPress:2.5.14January 7, 2018 at 5:55 am #189181brent0r
Participantfunctions.php
add_filter( 'bbp_get_topic_freshness_link', 'rew_freshness_no_date_link' , 100, 5) ; function rew_freshness_no_date_link($anchor, $topic_id, $time_since, $link_url, $title) { if (!empty ($topic_id)) { ?> <a href="<?php echo $link_url; ?>"><?php echo $title ;?></a> (<?php echo $time_since ; ?>) <?php } else echo 'No topics' ; }It works perfectly when viewing the category page that lists all topics. When I click the topic however and view the post it displays the following in the breadcrumbs:
› Forums › General › Mobile General › hi Reply To: test (3 weeks, 2 days ago)See how it adds the topic title with (the date) that has its link removed, to the end of the breadcrumb.
January 6, 2018 at 12:48 pm #189163Robin W
Moderatorok, should have tested before sending, but coded it late last night and I have been out all day !
Now had a chance to try it, and correct code is
add_filter( 'bbp_get_topic_freshness_link', 'rew_freshness_no_date_link' , 100, 5) ; function rew_freshness_no_date_link($anchor, $topic_id, $time_since, $link_url, $title) { if (!empty ($topic_id)) { ?> <a href="<?php echo $link_url; ?>"><?php echo $title ;?></a> (<?php echo $time_since ; ?>) <?php } else echo 'No topics' ; }January 5, 2018 at 10:46 pm #189152brent0r
ParticipantThanks again Robin, yes you’ve understood exactly what I was trying to achieve. I tested the above example, it throws Notice: Use of undefined constant active_id – assumed ‘active_id’ in /var/www/html/wp-content/themes/name/functions.php on line 94
Once I remove bbp_topic_permalink($active_id) eg. bbp_topic_permalink() it works as it should. (I’m not sure if removing that is the right way to go, but doing so seems to help it work)
There is one little issue though which I’ve noticed since applying the above. The breadcrumb links now have an additional link and date at the end of the breadcrumb. (example: https://goo.gl/9q3NjW) Posts and the forum index are not effected though.
Thanks once again 🙂
January 5, 2018 at 5:42 pm #189149Robin W
ModeratorSORRY – just read you post again, and now I think I understand
on one site you want the code as above
on another site you just want a single post, but with title and date, but no link on the date – yes ?
if so then untested but this should be it
add_filter( 'bbp_get_forum_freshness_link', 'rew_freshness_no_date_link' , 100, 6) ; function rew_freshness_no_date_link($anchor, $forum_id, $time_since, $link_url, $title, $active_id ) { if (!empty ($active_id)) { ?> <a href="<?php bbp_topic_permalink($active_id); ?>"><?php bbp_topic_title(active_id) ?></a> (<?php bbp_topic_last_active_time(active_id); ?>) <?php } else echo 'No topics' ; }January 4, 2018 at 9:53 am #189122In reply to: 404 user profile
Rixter
ParticipantAfter a long search (I thought I tested all plugins… 🙁 ) I discovered it was indeed a plugin that got in the way. Specifically: “404page – your smart custom 404 error page”.
Problem solved!
January 3, 2018 at 2:18 pm #189112In reply to: ERROR: Are you sure you want to do this?
Robin W
ModeratorLog out and log in again
I’d also look strongly at updating your wordpress and bbpress versions to the latest, as they both have security updates
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 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 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 🙂
-
AuthorSearch Results