Hey there, I tried using the translation part of the bbp style pack plugin, while assuming, that once I was able to fix the translations I would then fix the CSS styling issues I have mentioned above (this would just take a little work on my behalf). Anyway, even though it says you have to play around with it to get it right (e.g. add the full stop if there is one etc.), I was not able to implement the translations. I am sure it has something to do with the way my site is set up and not the plugin itself, but alas, I had to find a different option.
So, here is my frontend Javascript solution. I noticed that I have to put e.g. “weeks” before “week” in the object for it to work (i.e. plural before singular). For anyone who wants to know, the word “aktualisiert” refers to the English word “updated”, (as the verb goes to the end of the sentence in German it is slightly tricky to just translate “this was last updated…..”).
I am not sure if anyone needs this, but as I require help with my website from time to time from people like those at bbpress (thx btw), if I can be of any help, I would like to. This is an IIFE btw:
/* WB- translate some dodgy sentences (part English/ part German) */
var translate = function () {
//check if the page is a forum page. If not, return function
var isForum = document.querySelector("#bbpress-forums");
if (!isForum) return;
// find if either forum or topic description (topic is one level lower in the forum where people can answer individual posts. forum is where all the sub-topics are listed
var forum = document.querySelector(".bbp-forum-description");
var description = document.querySelector(".bbp-topic-description");
//If not on either the forum description page or the forum topic page, return
if (!forum && !description) return;
//set a variable to add the innerHTML to
var d_text;
if (forum) {
// if forum has no topics make no tranlation changes and hide the "Oh bother.... div"
if (forum.innerText === "Dieses Forum ist leer."){
var oh_both_text = document.querySelectorAll(".bbp-template-notice");
oh_both_text[1].style.display = "none";
return;
}
d_text = forum.innerHTML;
}
if (description) {
d_text = description.innerHTML;
}
// create object with list to translate (name: = English, value = Deutsch)
var d_obj = {
"This forum has": "Dieses Forum hat",
"This topic has": "Dieses Thema hat",
"This category has":"Diese Kategorie hat",
"This topic is empty":"Dieses Thema ist leer",
"hidden":"verdeckt",
"and was last updated": "und wurde zuletzt",
"seconds": "Sekunden",
"minutes": "Minuten",
"hours": "Stunden",
"days":"Tagen",
"day": "Tag",
"weeks":"Wochen",
"week": "Woche",
"months": "Monaten",
"month": "Monat",
"years":"Jahren",
"year":"Jahr",
"by": "von"
}
// use Replace method to run through innerHTML and replace English text with German
d_text = d_text.replace(/This forum has|This topic has|This category has|This topic is empty|hidden|and was last updated|seconds|minutes|hours|days|day|weeks|week|months|month|years|year|by/gi, function (matched) { return d_obj[matched]; });
//add "aktualisiert" to end of sentence
if (d_text.indexOf("und wurde zuletzt") > -1) {
d_text = d_text.slice(0,-1).concat(" aktualisiert."); }
//update the innerHTML of either the forum or the topic page
if (forum) { forum.innerHTML = d_text; }
if (description) { description.innerHTML = d_text; }
}();
When i activate the plugin, the css styling changes how the forum looks. For example the Topics Index Styling overrides the css of my current layout, which is styled from my own styles.css file.
Can can add your own additional CSS to manage how comments are displayed.
#bbpress-forums blockquote {
color: #000;
}
You can put whatever styling you like in there. This styling us usually in the customizer area of your website. Although the bbp style pack also has a Custom CSS tab.
And the bbp style pack allows you to set some other colour properties too on the various tabs.
Thank you for your support,
Sorry my bad, we have 4 main forum pages that should be displayed in the main page here “https://www.eyecadvr.com/home-community/”.
The issue actually is only in the first page of 4, because as you can see here:
1) eyecadvr.com/home-community/eyecad-vr-help-official-docs-about-every-software-release/
2) eyecadvr.com/home-community/general-discussion-eyecad-vr-general-topics-help-requests-cg-tips-and-tricks-everything-you-could-have-in-mind/
3) eyecadvr.com/home-community/news-and-bug-fix-development-log-files-useful-previews-about-stable-and-beta-releases-bug-reports/
4) eyecadvr.com/home-community/user-gallery-work-in-progress-and-final/
only the first one is missing the css and the other functions, but the other pages are working properly.
this page is under elementor and with shortcodes it should display 5 forum roots but instead it displays just 1. As you can see at the right side is empty but before there was “Latest Posts” and “Thread Tag Cloud”.
By clicking on that first forum root folder, it will redirect to another page that is completely without CSS and without other functions; But once inside, clicking on the sub folder it will redirect in the right page where everything becomes perfect and correct as it should be in every page.
Hope that these informations can help you in order to help us.
Thanks.
This is the third time I’ve posted this as the first two have not shown up on the forums (I do apologise if they all show up at once now)
I need to edit css for the ‘Register here’ and ‘forgot password’ pages as they look terrible in responsive view when logged out, I can use CSS Hero for this..
However, I am unable to do this because being logged into wordpress (to enable me to edit css) means that I only see the ‘logged in’ view of the ‘register here’ and ‘forgot password’ pages. Whereas it’s actually the ‘logged out’ view I need to edit.
So I added CSS to widen the select control and then was confused by the values in the drop-down list being truncated. I decided to examine the HTML (without making any CSS changes) and this is what I get:
`
<select name=”bbp_reply_to” id=”bbp_reply_to” class=”bbp_dropdown”>
<option value=”” class=”level-0″>3189 – Introduction to the Text and Visual Editors</option>
<option class=”level-1″ value=”3226″ disabled=”disabled”> 3226 – Update The</option>
</select> `
The first entry is complete (although not all visible in the actual control). But the rest are all cropped to just a few letters. If I try other forum replies they are all the same.
Let me first state I am doing this for security in light of all the wordpress sites being hacked. I want to change the #bbpress css ID’s to something like #forum.
I am not much of a coder so could I ask how I go about this ? or is there an easier way to go about this ?
Hello,
I have updated bbPress plugin to the latest version and i noticed that my forum is not working correctly now, when i go in the main page of the forum it loads just one topic and the page is without CSS, just a blank page with the title of the topic and some infos like the date and the creator.
Then i tried to download some old versions of bbPress to install but i dont remember which version was installed before.
So i tried bbPress 2.5.4 (its the one that i think it was installed before) and with this one i cant reach any page of the forum, infact when i go in the forum section of wordpress dashboard it load just a blank page.
I tried already some versions of bbPress from 2.5.1 to 2.5.9 then 2.6.0 and the latest but nothing changes.
The only difference is that with 2.6.0 or next loads correctly the forum section in the dashboard and with 2.5.9 or prev doesnt.
What went wrong just updating and reverting the update?
For the part of my website containing bbPress, I don’t want the main navigation menu to show. To achieve this, I enter CSS code on the main web page where [bbp-forum-index] is displayed.
The CSS code does its job as far as the first page is concerned – that is the page where the forums are listed.
However, if you select a specific forum to look at, this takes you to a new page. Unfortunately, on the new page, the main navigation menu is showing. So the CSS code has not done its job here.
Any advice on how to solve this problem would be much appreciated!
The procedure is all clear but unfortunately the breadcrumb is still displayed above the [bbp-topic-form].
Maybe that’s because the site is also using the WOffice plugin (some code there that would pass over the content-archive-forum.php ?)
I just thought of another solution, more wobbly maybe :
I can see in the code source that this div is called <div class ="bbp-breadcrumb"> meaning that if I create a .bbp-breadcrumb in my CSS file, I can add a display:none; and could hide it ?
In regards to the explanation in the linked item 8.. Well, that was a learning curve! I didn’t even know how to access the WordPress database but now I do!
If I’ve understand it correctly, this header issue is possible as the ‘topics’ pages in the forum posts have the correct header styling but the ‘index’ does not – from the description this says it could be due to the index page using the ‘about’ page style instead of the topics using the ‘posts’ style.
After looking in the database I think that the forum index page is using the correct ‘Astra’ theme, but not showing the correct css for my header that all my other pages are (even the ‘About’ page).
So I don’t think I would need to copy and rename the page.php file to bbpress.php (unless I wanted bbpress theme to be different to the astra theme – I think I’ve got that correct, if not apologies!)
I really appreciate any further help with this as this is becoming quite confusing for my extremely novice brain 🙂
Please bear with me here as I’m new to all this css stuff! I spent all of yesterday trying to find out what is going wrong..
After installing BB Press in my Astra Theme my header background colour, site title + tagline and sub menu + button have lost their formatting (or maybe more correctly termed style?).
As I couldn’t understand where this issue lies I posted on the WordPress forum who then directed me here to ask the question 🙂
I’m building the pages through WordPpess dashboard as per this video example:
I’m using Elementor to build all my other pages.
Can anyone help please?
Many thanks in advance,
Tim
p.s. I would like to add even though I’ve literally spent 8 hours trying to figure this out I think bbpress is an awesome addition so thank you to whoever put it out there!!
I am a newbie on BBPress and just installed it and I’m in the process of setting it up. The problem is that the body columns are not aligning with the topic headings.
I did some testing and this is the default layout which is not aligning.
However if I create a new Page and insert the shortcode the alignment is perfect, so I’m not sure what’s happening, but I don’t want to create several dozen pages and insert shortcodes, so I’d like to figure out why it’s not aligning.
Could someone tell me if it’s possible (or even help me with identifying the correct specificity) to stop users from creating new topics in a specific subforum please.
Running BBP as part of a learning management system where user level/access etc are set based on their student/course status. Been fine for 3 years but now I’d like to provide a slightly stricter UI for some specific courses (which means the Forums/Topics).
My situation is:
Forum
-Subforum
–Topics
—Replies
–Topics
—Replies
-Subforum
–Topics
—Replies
My problem is in one of the subforums where the topics created by our teachers are listed but (obviously) the students also see the ‘Create New Topic’ option (which they need elsewhere). I wish to remove that New Topic Creation option there. I can’t do it via the Forum Attributes eg Closed Status because it needs to remain open for other child topics in the same forum.
I thought that using CSS (display:none) to remove the entire New Topic Entry box would work for me but my inexperience shows through because I can’t work it out even after hours looking online.
Is it possible to apply such css by adressing it against a specific post id?
I can remove the new topic box in the browser inspector various ways
(eg .bbp-reply-form, .bbp-topic-form {display: none;} or with #new-topic-0 etc) but I can’t get it done just for the 1 Subforum/Topic) –
This does not work: #bbpress-forums #bbp-forum-POSTID #new-topic-0. I also tried variations ul.bbp-parent-forum-21435 etc
In this example my Forum is post 21435, the topic in it is 21437 and I want to remove the New Topic Entry box on that page (students should only go to 21437 and use Replies there, not create topics)(sorry, actual forums are in the school system so not public).
Sorry for long post / cry for help. Maybe someone could assist… Thanks
Author
Search Results
Viewing 25 results - 201 through 225 (of 2,728 total)