Search Results for 'code'
-
Search Results
-
Topic: CSS styling query
Hi
I have some queries and I wonder if you can help me get to the bottom of them. I would be grateful for your guidance. Here is the background.
I am using the latest bbPress plugin and I notice that the bbpress.css file is 1702 lines long.
I am using a premium theme (seos-video-premium) and even though I am using a child theme, I have noticed that my Support forum is actually using:
wp-content/themes/seos-video-premium/seos-video-premium/css/bbpress.css
I assume this is because there is no bbpress.css in my child theme css folder so it uses the themes one instead of the bbPress plugin’s one?
So I have two specific questions here.
1/ the bbpress.css file in the premium theme folder is actually 1408 lines of code. So it is 300+ lines shorter than the plugin version. To be honest, I was not expecting to find a bbpress.css file inside the theme. So what am I supposed to do? Simply replace the theme version with your plugin version?
2/ I have been trying to use a beta version of EnlighterJS Plugin (it is their beta that uses EnlighterJS v3. There was an issue with these styles:
#bbpress-forums div.bbp-topic-content pre, #bbpress-forums div.bbp-reply-content pre { display: block; line-height: 18px; margin: 0 0 24px; padding: 5px 10px; white-space: pre; overflow: auto; }In their classes they have this styling:
.enlighter-default .enlighter-raw { display: none; min-width: 100%; line-height: inherit; font-size: 12px; font-family: inherit; margin: 0; padding: 0; white-space: pre-wrap; word-wrap: break-word; border: none; box-shadow: none; }The HTML is:
<pre class="enlighter-raw">.textMaterial { /* Uncomment to hide the material */ /* display:none;*/ font-size: 10pt; font-style: italic; font-weight: 700; background-color: yellow; } .textMethod { /* Uncomment to hide the method */ /* display:none;*/ font-size: 10pt; font-style: italic; font-weight: 700; background-color: cyan; }</pre>Notice that ttheir CSS style uses
display: none;? The bbpress CSS filepreclass has adisplay:block;. This causes a problem with the plugin I am trying to use.The author does not want to use
!importantbecause he says it is bad design. So how do we fix this? How can we allow bbpress to do what it wants withpreand EnlighterJS do what it wants?I needed to restrict participant topic creation to selected forums but allow replies to all topics in all forums. I came up with this solution
function my_bbp_restrict_topic_creation( $can ) { $forum_id = array(18,22,56); //change your forum id if ( ! bbp_is_user_keymaster() && bbp_is_single_forum() && !in_array( bbp_get_forum_id(),$forum_id) ) { $can = false; } return $can; } add_filter( 'bbp_current_user_can_publish_topics', 'my_bbp_restrict_topic_creation' );Participants can only create topics in the three forums with IDs 18,22,and 56. Whereas the KeyMaster can create topics in all forums.
Topic: bbPress and redirect_to
I have two websites running custom php to create Log In/Log Out entries on the menu.
The Log Out behavior is different on the two websites. I finally tracked down the problem to bbPress. The URL created by my custom code with w_logout_url() on the bbPress site includes:
&redirect_to=…where the URL created by the site without bbPress installed does not.
Disabling bbPpress removes the &redirect_to=… and reenabling bbPress makes the redirect_to return.
That leads me to believe bbPress is changing /setting this value somewhere, but I don’t see any choice to change that value in the bbPress settings?
add_filter( 'wp_nav_menu_items', 'ccc_add_loginout_link', 10, 2 ); function ccc_add_loginout_link( $items, $args ) { if (is_user_logged_in() && $args->theme_location == 'header-menu') { $items .= '<li><a href="'. wp_logout_url() .'">Log Out</a></li>'; } elseif (!is_user_logged_in() && $args->theme_location == 'header-menu') { $items .= '<li><a href="'. site_url('wpflogin') .'">Log In</a></li>'; } return $items; }Thanks!!
Hi,
I don’t understand why it’s shown the pagination in user profile page.
I’m refering to this page: https://www.make4future.com/forums/users/giovanni/I was thinking of hiding it with css for example:
.pagination { display:none; }But the question is:
what is it caused by ?
There is a better way to resolve the problem ?Thanks in advance !
Regards,
Giovanni.Hello!
I don’t know whether my site has had this from the beginning or not, since I haven’t used
<!-- nextpage->before, but…Paging works on normal pages (post_type=page), but on forums paging causes the “too many redirects” error (even with a post with just text, no links, no images).
My site has a DV certificate from the web host provider (they took care of everything), Settings → General has the same
httpsaddress for WP and the site.WP 5.4 and bbPress 2.6.4
Topic: index page is gone
Hello,
after about 3 years of using bbPress without any issues, we have an issue with the index page – the standard one that is specified in settings -> forum is not working. There is just the header and the footer displayed from the theme, no content at all.
When I create a new page using the shortcode [bbp-forum-index], it is working fine. And all the threads and posts as well, they work fine on the original URLs. So it is really just the index page.
I haven’t done any changes in the forum in the last year or even more.
It is password protected, happy to share the password via a direct message.
Thanks,
Jan
Hi, if someone could assist I would appreciate it.
I have a new bbPress install here: https://classthink.com/forums/forum/microsoft/
I’ve created a new page with the [bbp-forum-index] shortcode here: https://classthink.com/forums/
But when I visit https://classthink.com/forums/ all I get is the Forums Archive.
It’s my — possibly incorrect — understanding that if you create a page with the same address as the forum slug, it should redirect to the page (in this case the forum index) rather than the archive.
Can someone please point me in the right direction?
Thanks,
Hello all,
I have been running BBpress for more than three of years, but started getting feedback that ‘Participants’ could no longer post or reply a month ago.
The user error message gives me no clue as to what’s behind the issue ‘ERROR your reply/post cannot be created’, and there’s nothing in the settings that gives a clue either.I paid up to get ‘Pro tools’ to contribute something financially to the developer pot, but found no new clues in the tools either.
So this morning I thought I would chance a deactivation of the plugin and reinstall.
The moment I pressed deactivate, I got the message in the title of the post. My entire site is out of action – nothing public except the error message in the title. I can’t access the wp-admin only the FTP, but what to do? My site is out completely.
I believe I am up to date on all WP software (as flagged by the WP admin zone)… and anyway, I cannot offer any other info now.The source code behind the message says:
Line 1: <div class="error"> <p>This Plugin needs BBpress to work, pls. install it first and activate.</p></div>
Please help. It’s my busy time of the year.
http://www.abeillessauvages.comTopic: Learning curve?
Hello, sorry first of all I am not a full on developer so forgive any basic questions, I have only just considered using bbpress for a forum I want to setup, I am familiar with WordPress and working with various plugins, can modify basic code etc when I need to, however it’s not my main job. I’ve installed bbpress and am looking at getting a theme to work well with it. Am willing to pay for a pro theme that is simple for users, nothing that special is required.
I just want to ask how hard is it as a fairly competent end user with some technical know how to set up a basic bbpress site, add a fairly functional user friendly theme, and get a forum up and running? It’s not wordpress.org, it might have max 100 users, closed/private forum.
I had assumed like most plugins bbpress would work fairly well “out of the box” and adding a template and maybe a few additional plugins to improve functionality would not be a big deal.
However I’ve just been quoted $2500 by a developer to do the above, to say my jaw hit the floor would be an understatement! Is bbpress THAT hard to implement that I need to pay mega bucks to get something simple up and running with it?? 🙁
PS the only reason I considered paying someone was to get it done in a few days rather than a few weeks as I have my main work to be getting on with as well… Otherwise I’d sit down and work through it step by step usually!