Search Results for 'code'
-
Search Results
-
I recently installed bbpress and AWPCP Classifieds. Whenever a user clicks the edit button to edit their post, it takes them to a page that asks for the Ad email and access key. This page is default with AWPCP and is called -Edit Ad. Inside that page is the shortcode [AWPCPEDITAD]. I disabled the AWPCP plugin to test and the result was when a user clicked the edit button, it then just shows the shortcode text from the -Edit Ad page. I am little more than a beginner when it comes to web development. I have built a few websites but they are all basic and mostly wordpress sites. This is the site address if you would like to look at it. https://meltdowncnc.com/wordpress2/
The site is for testing. Hopefully once it is done, I can put it into service for my club. Thanks if anyone can help.
Hi, I want to highlight the first topic that the user creates to ask his doubts so that it can stand out from other replies. I tried this code but I don’t know what’s missing here. I could not find the CSS classes for the first topics in their documentation.
.bbpress-forums .bbp-topics:first-child { background-color: #000; font-weight: bold; }
Additionally, I want to highlight the best reply either by changing it’s color or by pinging it to the main topic so that new visitors won’t have to check every other reply. It will be helpful for the new users.
is there any way I can solve these two issues using css:
1. Highlight the first issue so that it stands out from the crowd of replies
2. Highlight or ping the correct/solution contained reply thread so that new visitors won’t have to read everything.Topic: Forum
we need to add a shortcode on this page https://www.clevercafecompany.com.au/chats/ above ‘Forums’ heading.
Is it possible to add through in function.php?I have 3 categories (main forums) and a bunch of sub forums. I would like to display 1 main forum/category, the blogs, separate from the rest on the front page, but I don’t find the option to do it.
This only works for specific forums, not categories [bsp-display-topic-index show=”5″ forum=”10,11,12]
and this style adds a different style (the original) that I don’t want [bsp-display-topic-index].So, how to display one or more categories using short templates?
Is there a way to link post and topic tags and show post and topics associated with the tag on a single page in front end?
I tried doing it using [bbp-single-tag id=$tag_id] short code on post tag page but I couldnt fetch the topic tag id in runtime. Is there a shortcode like [bbp-single-tag slud=$slug], I can fetch the slug from the post tag URL in runtime.
Hello,
I am trying to follow the step-by-step instructions, and I am still having trouble displaying the main forum page. I am trying to use method 1. I checked and verified the settings.
I added some test forums and topics, and I can see them in the backend.
Forum Root = Forums
Permalink structure is set to POSTNAME
Category | Tag base left blank (default)I created a page called Forums and nothing displayed.
I tried adding the shortcode and still nothing appears.I am referring to: https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/#3-%c2%a0creating-a-forum-page
Page Links: https://bkswathq.com/forums
Wordpress : 6.3.2
bbp Version 2.6.9Thanks in advance.
Fills silly to be stuck so early on in the process.In a bbPress forum I want to prevent participants from creating topics but allow replies. In searching the Internet I found code examples from which I selected some to build a plugin. I know a little PHP but WordPress is like a “black box.”
add_action(‘wp_loaded’,’modify_participant’);
function ‘modify_participant'()
{
add_filter(‘mod_participant’, ‘upd_participant’);
}function upd_participant($role,$caps)
{
$role = bbp_get_participant_role();
$caps = modify_capabilities($role);
}function modify_capabilities($role)
{
return array(// Topic caps
‘publish_topics’ => false,
‘edit_topics’ => false,
‘edit_others_topics’ => false,
‘delete_topics’ => false,
‘delete_others_topics’ => false,
‘read_private_topics’ => false,// Topic tag caps
‘manage_topic_tags’ => false,
‘edit_topic_tags’ => false,
‘delete_topic_tags’ => false,
‘assign_topic_tags’ => false
)
}For instance the WP loaded hook causes it to run once at the start which should call those functions to initialize things. Is an add_filter also executed at that time to complete initialization? Then the black box proceeds with the bbp_get_parcipant_role routine so that the capabilities array elements can be updated. I read that WP filters always expect an object to be returned. It seems that these wouldn’t be permanent but just temporary in memory for executing that page. However my suspicion is that more coding would be necessary because that would be too much to depend on the black box for.