Search Results for 'code'
-
Search Results
-
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!
I enabled the TinyMCE, and use the visual editor, I can copy & paste, but all the code looks only fine in the editor, after submit, it has lots of HTML tags, it did not work, and the image is not copied as well, so it did not work.
Any idea of how to resolve it, thanks.Hi,
We have a membership site with bbpress. I am trying to keep our members informed of the new questions in our forum. I am using mailchimp in conjunction with bbpress topic feed.I would like to remove the ‘This topic was last modified by x for the reason y’ line. See this screenshot.
I am not a programmer but can modify code if i find a good template.
Would anyone be able to point me in the right direction? to either some code or a developer?
Thank you!
Topic: BBPress Menu
Hi, I have the Whoop theme and its designed to use bbPress but the menu shows ALL categories under one menu in a row. Including sub categories. I want to change it so it only shows the parent categories as currently there are at least 30 items in the menu.
Is the below code what needs to be change and if so can you help me out by doing this? I don’t even want the menus collapsible. Just at link for each main category and thats it.
<div class="whoop-forum-cats-list"> <ul class="whoop-forum-cats-list-inner"> <?php $forum_id = bbp_get_forum_id(); $forum_args = array( 'posts_per_page' => 100, 'post_type' => bbp_get_forum_post_type(), 'order' => 'ASC' ); $forums = query_posts( $forum_args ); foreach ($forums as $forum) { $link = get_permalink($forum->ID); if ($forum->ID == $forum_id) { $class = 'active'; } else { $class = ''; } ?> <li> <a class="<?php echo $class; ?>" href="<?php echo $link; ?>"> <div class="forum-cat-text-wrap"> <?php echo $forum->post_title; ?> <div class="forum-cat-last-updated"> <?php echo bbp_get_forum_last_active_time( $forum->ID ); ?> </div> </div> </a> </li> </ul>
