Search Results for 'code'
-
Search Results
-
So Buddypress, by default, has a nifty @function that allows you to look up users by username. As I understand it, bbpress works with this out of the box, in the reply boxes. However, when I enable TinyMCE using the tutorial above (https://codex.bbpress.org/enable-visual-editor/), Buddypress autocomplete goes away completely. We’d rather not have to choose between these two features, is there a way to restore autocomplete even with TinyMCE enabled?
Topic: preg_replace /e modifier
After upgrading to PHP 5.5 and running a compatibility test on a site, it has flagged the use of a deprecated modifier being used in preg_replace functions.
These occur on lines 1149 and 1150 in file /includes/admin/parser.php1149 | ERROR | preg_replace() – /e modifier is deprecated in PHP 5.5
1150 | ERROR | preg_replace() – /e modifier is deprecated in PHP 5.5Could you please let me know the best way to replace the code with the preg_replace_callback function and let me know if this is likely to be updated in a future patch as this can be seen as a security concern.
Thank you
Topic: code doesn’t work
Hi guys,
for some reason , in our bbpress forum (http://mdbootstrap.com/forums/forum/support/) code tag doesnt work . Regardless whether we use it or not all HTML markups are executed instead of displayed. The only way to display it is to replace all <> with > and <
Any idea?
Topic: Global Access
the codex mentions this for Allow Global Access
In a WordPress Multisite install bbPress is activated on individual sites. Allowing global access will permit all users from across the network to post topics and replies on the forums for this particular site.i activated bbpress per site on my 3 network sites. still i dont see any setings for global access? does global access happen by default?
Also is there some similar setting for bbpress like buddypress’s define(‘BP_ENABLE_MULTIBLOG’, true);?
i got define(‘BP_ENABLE_MULTIBLOG’, true); enabled for my wp+bp multinetwork. But forums on the root site dont show up on the sub sites like groups/members do with that setting enabled.
Thanks in advance.
Hello,
I have a forum currently set up for our organization. I am using some fellow employees to test it but it looks like people are able to go in and make posts for our blog (saved but not published in the Contributor, Participant roles). I don’t want that. Users should only be able to post to our website forum, and nothing else. Is there a line of code that I’m missing for this?
I would also like to know if there is a way to mask being able to see one another user’s posting stats. TIA!
website is creatingourcommonwealth.org. Our WordPress template is Ribosome, if that helps any.
I’ve successfully imported phpBB data into bbPress. Now, I’d like to redirect URLs like
http://my_phpbb_domain.com/viewtopic.php?f=1&t=2
to:
http://my_wordpress_domain.com/forums/topic/corresponding_topic/I’ve search the web and have been experimenting with several solutions but without any luck. Anything I do throws a 404.
These are some of the links I tried out:
As you can see, these topics are at least 7 years old. On the other hand, I don’t expect that something has changed on how to write redirects in an htaccess file.
Does somebody here has some experience with this?
Topic: Member Activity Shortcodes
Are there shortcodes for getting a member/user’s recent posts or comments? I don’t see anything like this in the documentation. It seems like a rather basic thing to have with a bulletin board or forum.
Hi All,
After configuring the importing form and clicking the start button, a failure message appears after amount of time;
Unknown column 'forums.forum_topics' in 'field list'After clicking again on the start button only the reactions will be converted from phpBB to bbpress.
How can I import the topics and users properly, without encounter these failures?
Grtz.
Willem
Is there a way to allow bbpress users with the “participant” role to upload media by url only, i.e. disable the media library. I want my users to be able to put pictures into their post that are hosted other places without having to figure codes and such.
Thank you!
I’m currently developing a WP (4.5.2) site with the bbPress plug-in (2.5.9).
I have various standard WP pages and posts (e.g. About (slug:
about) and Help (slug:help)) on the site.The forum runs under the
forumsroot slug.When creating a forum or topic, for example, whose slug is the same as that of an existing page, trying to display that forum/topic fails with a 404 error.
For example, creating a forum with the name “About” (slug:
about) leads to the (correct) bbPress URL/forums/forum/about/. However, trying to display that forum at that specific URL fails with a 404 error, apparently because a page with the URL/slug/about/already exists for a WP page.This only seems to happen when a page/post/etc. exists that has such a “conflicting” slug, which is still puzzling because the bbPress forum has its own root slug/URL path
/forums/, which should prevent such conflicts.Renaming the forum slug manually to something like
aboutxfixes the issue, and the forum is then accessible just fine under/forums/forum/aboutx/. (This is obviously not a solution, but illustrates that there must be some sort of slug conflict.)1. Is this a known issue, or what could the problem be?
2. Alternatively, is there a way to automatically append a (e.g. random) string to any bbPress forum/topic/post slug to prevent something like this?So right now I am using Gravity Forms with the Sticky List plugin to create an editable database people can submit information to. I have a hidden field that automatically populates the username of the submitter, which is cool and what I want. But I would like that username in question to link to that user’s BuddyPress profile.
I have a feeling it has to do with some PHP code, but I’m not savvy with php as I’d like to be. This is what I have so far, from a previous topic I found on the forum.
add_filter( 'gform_field_value_linkuser', 'link_username' ); <?php add_filter( 'gform_field_value_linkuser', 'link_username' ); function link_username($user_login) { return '$_COOKIE['utm_campaign']; < NO idea what to return here! } ?>I assume the return value should be something like
<a href="URL.com/members/[USERNAME]">Username </a>, but I don’t know how to make that work in PHP!Please help me out! BBP Version is 2.5.9, WP version is most recent one, Gravity Forms 1.9.19, Gravity Forms Sticky List plugin 1.4.1.
Thank you!
Topic: Edit Topic Doesn’t Save
I can create a topic fine ( and hook into
bbp_new_topic) but when I try to save changes to an existing topic ( change title, description, sticky, etc ) it doesn’t retain the changes ( andbbp_edit_topicnever fires ). It redirects to the topic wherebbp_template_noticesspits outERROR: Forum ID is missing. Anyone experience this / have any ideas what’s going on?WP: 4.5.2
BP: 2.5.2
BBP: 2.5.9Topic: Strip HTML
Hi there,
if you please could tell me how to strip out any HTML Code before a post is saved to the db. I tried to make a little plugin, but I don’t get behind it at this point. See working draft on
Thank you very much!
Topic: Limit Specific Topic Input
Hi, I’m creating a forum where people can post links to their Twitch streams for other users to rate. I want to add specific input fields, such as Embed Code, games streamed, active times, etc, that the user can fill in to populate the post. Is there a way to do this?
Also, is it possible to add another field to the main list of topics, other than Voices, Posts, and Freshness? I have a good rating plugin installed, and I have it integrated with bbPress to allow and show ratings inside the topic. But I’d like users to be able to see and sort topics by rating.
Thanks in advance!