Search Results for 'code'
-
Search Results
-
Topic: bbPress does not work
After I Install and activate bbPress nothing shows up in my admin area sidebar (Forum, Topics, Replies do not appear). When I create a new page and paste there a shortcode for displaying the whole forum index, the page shows an error. I don’t know what went wrong, I tested on my localhost and it worked fine.
I also tried to delete the plugin and install it again.I suppose this isn’t WordPress or BBPress specific, but trying to figure out if there is a WordPress way of doing this.
I am using BBPress, and on some page, such as
https://somesite.com/lesson/some-lesson/, I have a block with a link to a discussion topic. That link is of form<a href="javascript:void(0);" data-target="#myModal" data-href="somesite.com/forums/topic/required-discussion-1/" data-toggle="modal" class="openPopup"><h3 class="topictype-title">required discussion 1</h3></a>The modal popup is handled in bootstrap via
<div class="modal fade" id="myModal" role="dialog"> <div class="modal-dialog modal-xl"> <div class="modal-content"> <div class="modal-header"><button type="button" class="close" data-dismiss="modal">×</button><h4 class="modal-title">Class Discussion</h4> </div> <div class="modal-body"></div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div>And with jQuery
$('body').on('click', '[data-toggle="modal"]', function(){ $($(this).data("target")+' .modal-body').load($(this).data("href")); });What happens now, is after hitting submit, the modal goes away, and the forum topic page with the submitted reply is loaded: url
https://somesite.com/forums/topic/required-discussion-1/#post-25847The thing is, after user submits from the modal, I want either
**1) the refresh (so, going to
https://somesite.com/forums/topic/required-discussion-1/#post-25847) to happen in the modal, or****2) for the modal to simply close and user is returned to exactly as they were prior to modal popping up, that is, to
https://somesite.com/lesson/some-lesson/**Ideas on how to ideally achieve these two behaviors? I have never worked with modals before, so curious what are some best practices here to get the desired behavior.
Thanks!
I know there is a widget to show somewhere on the page if there is new activity in the forums. But is there a possibility (maybe a shortcode?) to show only an icon when there is new activity in any forum? Or better yet an info with the number of new posts?
I’ve been searching for a way to return the titles and links of every topic on my forum. I’m familiar with HTML and CSS, but a PHP novice, which I think is my downfall here.
I found a call to
<?php the_content();?>which seems to be generating the big grey box with a list of all the topics (image link: https://imgur.com/a/fKamtGH)
However, I just want to return the topic titles and links to each topic, not the entire box. I can’t seem to find / write a PHP method that does this, does anyone have any advice?
Topic: Force Login
I have tried looking through this forum to find what I need, and I just can’t seem to do so.
I am by no means a coder, but I said I would help a friend put together a forum, and I would like everyone who clicks on the “forum” access button at the top of the page to be forced to log in if they are not already logged in. I would then like them to see the main forum page, not the dashboard unless they have higher clearance than participants.
How does one do that? I saw someone post about the Private groups plugin… but will it do what I want it to do?
I’m a newbie with code and web implementation, so forgive me if this is a dumb question. My readers have reported the following: “I’ve been trying to be able to post on your forum. I have a wordpress account, which I use to try to log in. After that it takes me to a jetpack and wordpress site, which Makes me put in my info again. But when I do, it then it takes me back to the original jetpack/wordpress page.”
Here is the forum:
And yet they can make comments on my site with ease:
I installed bbPress using this slug: [bbp-forum-index]
What am I missing? Thanks ahead!
Topic: Elementor or short code
WP 5.8.1 bbPress 2.6.6
Can the bbPress Forum 2.6.6 version be used with Elementor and or does it have a shortcode so that we can embed the forum onto an existing page.
Thanks
Greg
Hi there 👋
I followed this step by step guide
👉 https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/#3-%c2%a0creating-a-forum-pageAnd I’m annoyed with one quirk that I can’t seem to resolve: My borders aren’t showing!
With method # 1 my borders disappear and with method # 2 everything is normal.
How can I fix this please?
My regards,
Ludovic