Search Results for 'code'
-
Search Results
-
Hi guys. I am using the forum list widget to display the different forums. Can anyone help me with some code so that the number of topics under each forum is listed as well in the sidebar?
Hi. Is there a way to add mandatory custom fields in the BBPress registering process? I did get someone to add a text field for the location but it wasn’t mandatory and for the UK, they were adding variations like England, Britain etc so in my user directory and search, people looking for people in the UK would only find people in the UK and not in England or the United Kingdom etc. So I had to go and edit their profiles to say United Kindom so they would come up in the search. Sooo…what I really need is not a text field but a drop down or other thingy where new members have to choose where they are from from the options they are given. So I need a list of all countries and then for now, a list for US states and UK counties. I have a coder to do this for me (Ive not got a clue)….is it possible to do this by configuring BBpress or is a custom code thingy needed? If I can do it, I will show it here maybe so others can see?
It has been about two weeks since I converted my vBulletin forum over to BBPress. The existing forum has been around since 2008 and since the conversion, we have been receiving emails over entire history of the site that topics have been replied to. These are notifications that have been sent non-stop since the conversion.
I installed Buddypress and BBPress at the same time, so I’m not sure exactly what is causing all of these emails to continue to be sent out. How do I stop these notification emails from going out? I’ve already attempted to add the following code to my site specific plug-in, but it does not seem to have helped much. I guess it helped with mentions but not the replies.
remove_action( ‘bp_activity_posted_update’, ‘bp_activity_at_message_notification’, 10, 3 );
remove_action( ‘bp_groups_posted_update’, ‘groups_at_message_notification’, 10, 4 );What are the BBPress hooks to stop reply notifications? I just want them to stop for awhile without disabling email site wide.
Hello!
I’ve searched the forums for a topic that has the same issues as I’m having, to no avail. I have created a website using wordpress.org (http://meechanchronicles.com/Install), and installed bbPress version 2.53. I’ve been able to create the forum, and using wordpress, I’ve created a couple of forums and one topic.
I followed the bbPress codex for adding Login/Register pages, as well as a Lost Password page. Whenever I try and access the forum from the outside (ie not logged into WordPress), I seem to be stick in a circular link that never actually does anything.
In addition, neither the Register/Lost Password pages work, returning a 404 error. I’ve double checked the shortcode links as well as made sure that the permalink addresses are spelled correctly and match the shortcodes.
I am totally new to creating forums, but I feel that I’m missing something simple. Any help is greatly appreciated.
Thanks!
AdamJust curious if there is an easy way to check if a user has been subscribed to a topic or not..
I’ve looked inside the Core templates and found the bbp_user_subscribe_link() function so I ported it over to my own functions file and changed it a little bit, now it works on the topics index page but for some reason it breaks at my topic-replies index page while they use the same default topics loop.
This is my code I’ve changed around a little and what it does is, it prints an is-subscribed text to the page if a user is subscribed to an topic or not. IF not is doesn’t do anything – this is-subscribed text I placed inside a HTML class so I can catch him by some CSS.
Visual, the 1px colored borders on the right indicate if a topic is-subscribed (blue), is-closed (black) or is-sticky (yellow).
It’s a very small feature but I believe very effective, maybe it’s possible to hook those is-values into the bbp_topic_class() by default because BuddyPress has this feature out of the box. If you’re a member of a group it also prints is-member inside the groups-list-class.

Anybody ideas about how we could make this more smooth and simple?
When I installed BBpress I was able to add a topic and a form and the Forums entry was visible to the administrator account.
Now if I log in as administrator or any account the forums are not visible or available.
You can see a basic list but as soon as you click on anything page not found 404 comes up
The shortcodes do produce an output from the forum if put in a new page or in the footer but
the url
http://racingpigeon.com/forums/ is blocked whereas the same shortcode in
a new page added at http://racingpigeon.com/forumsx/ produces outputIf I log out then I see the output at
http://racingpigeon.com/forums/
I have tried all different levels of forum access but none lets me see it.bbPress Version 2.5.3
Wordpress Ver WordPress 3.8.1 Maintenance Release January 23, 2014Thanks Ian
I am using WordPress-bbpress at the my site.
When many messages were contributed to a topic and it became 10 pages or more, the link to 10th page had broken.The following code is the cause.
It will replace from “&paged=10” to “0”.bbpress.2.5.3
C:\xampp\htdocs\bb\wp-content\plugins\bbpress\includes\topics\template.php
895 line// Remove first page from pagination if ( $wp_rewrite->using_permalinks() ) { $pagination_links = str_replace( $wp_rewrite->pagination_base . '/1/', '', $pagination_links ); } else { $pagination_links = str_replace( '&paged=1', '', $pagination_links ); }One solution for correcting this is the following. (Insert “if($pagination[‘total’] == 1)”)
// Remove first page from pagination if ( $wp_rewrite->using_permalinks() ) { $pagination_links = str_replace( $wp_rewrite->pagination_base . '/1/', '', $pagination_links ); } else if($pagination['total'] == 1) { $pagination_links = str_replace( '&paged=1', '', $pagination_links ); }Just curious as I’m not a PHP-er and learning each day.
What I’m trying to make is a front-end tab-system that shows three tabs
Tab [1] = Topics
Tab [2] = Replies
Tab [3] = Refresh, just a reload of the page
Topics,
This should be a very easy query-/loop in general, it’s just a list of all new topics that have been added to my forum. There’s only one little thing, it should order at the date of creation so that when an older topic gets a reply it doesn’t bounce to the top of the list.Replies,
This should be a query for latests updated topics of any age, if a topic of 5 years old receives an update or bounce it should jump to the top of this list. + newly or older created topics without replies shouldn’t get listed inside this second ‘Replies’ tab.I came up with this idea:
<?php if ( bbp_has_topics( array( 'show_stickies' => false, 'order' => 'DESC', 'posts_per_page' => 120, 'max_num_pages' => 1 ) ) ): ?> <?php while ( bbp_topics() ) : bbp_the_topic(); ?> <?php if ( bbp_get_topic_reply_count() ) { bbp_get_template_part( 'last-topic-activity/last-replies-loop' ); } ?> <?php endwhile; ?> <?php endif; ?>posts_per_page => 120 is a little bold but it’s just for testing right now.
Just curious if this is okay to work with, I found the bbp_get_topic_reply_count() function and it has a True or False statement so I thought lets just check if the topics have a reply_count … if it’s true than list a bunch of stuff through the custom-loop template I made.Hope somebody can verify if this is okay, it looks like it’s working.
I’m using WordPress version 3.8.1 (the latest as of this writing) and bbPress version 2.5.3 The url wouldn’t show the problem since the forum is private and you would only see “Oh bother! No forums were found here!” on the page as a non-logged in non-member of the site. This question also relates to the WordPress dashboard rather than the site itself. I’ve given a user on the site the bbPress role of Moderator with the expectation that he should be able to set up new forums, however, when he logs in, he can only see/access topics, replies and profile in the WordPress dashboard. There is no link to “Forums” where he can add new ones. Why is this the case when according to the roles information on this page: http://codex.bbpress.org/bbpress-user-roles-and-capabilities/ a Moderator “can create and edit forums. Can create, edit and delete other users’ topics and replies. Can manage Tags, and moderate a forum with the moderation tools”?

