Search Results for 'code'
-
Search Results
-
I am trying to configure bbpress for one way announcements to an audience of members in my website. Meaning I as the author am posting topics in chronological order, with no possibility of replies. So not a normal forum.
This has meant removing a lot of extraneous information normally displayed: I don’t need or want author, freshness, voices, etc.
I am new to WordPress, BBpress, and I am not a coder. I have proceeded, through trial and error, to “inspect” the pages and use custom CSS to hide objects that I don’t want (display: none !important), and to look at the php files such as content-single-topic-lead.php and remove any references to author (e.g. bbp-topic-author).
Without understanding much of what I’m doing, I’m getting very close to achieving the intended effect. Now I’m stuck because when someone clicks in Resource Messages (the “forum” name) on an actual topic, they see an indented display of content, because the author column (which normally displays author name and avatar etc, which I hid using CSS display: none !important) is still present (if empty).
Please see https://devgo.jeffbelkora.com/square/topic/20181219-resource-message-2/
So my questions are:
1. Can anyone instruct me on how to remove that first author/avatar column?
2. How to resize column 2, or otherwise adapt it so each topic’s content displays as a left-justified text?Please be very remedial in any tips you can give me. I have created a “bbpress” subfolder inside my “astra” child theme via “files” in my cpanel. I am deleting code in php files there adding custom css inside the astra child theme “customizer”.
If you are going to suggest changing files, could you please specify how I need to place them in my child theme to make this futureproof to updates etc.?
Thank you!
Topic: Empty DIV on profile page
Hello,
I noticed a weird thing, the Admin profile has this empty DIV on its page:
Other profiles don’t have that. Check it out.
It seems to be this here:
<div class="comments-area"></div>What is this and what is it doing there? How do I remove it? Is it some space for user comments on profiles? And why do other users don’t have that?
Thanks!
By the way I love bbpress, it’s awesome. I used a lot of other forum software (IPB, vBulletin, phpBB), but this one’s really the best!
wp v5.0.1
bbpress v2.5.14How can I hook into the FIRST reply on a single topic page? I want to add an image attachment only to the first reply, but i cannot find how to do so. I hooked into the action “
bbp_theme_before_reply_content“, but it adds the image to every reply on the page!I thought about getting a list of all reply ids, then comparing the current reply id (
bbp_get_reply_id()) with the first id in the array, and showing content if they are equal. That would solve the problem. BUT I also failed at getting the list of ids – I tried withbbp_get_all_child_idsI also wish the FIRST reply in the loop would have a unique id or class, but it does not đ
Here is the page:
I want to display only the following two on buddypress activity.
â»When creating topics for BBP.
â»When comment for topics.What should I write in ââ»â below?
wp-content>plugins>buddypress>bp-templates>bp-legacy>buddypress>members>single>activity.php
<?php if ( bp_has_activities( bp_ajax_querystring( âactivityâ ) . â&action=â»â»â ) ) : ?>I want to limit the number of characters in the Topic Content Text Area in bbPress to a maximum limit (of say 500 characters). How can I do it?
I tried to do it by using the maxlength attribute of textarea (bbp_topic_content) in the stylesheet file, but this attribute is not working (may perhaps be because this attribute was included in HTML5 version only). However, if I use this in Developer Tools in Chrome while inspecting the text area for Topic Content, it works fine; but that is only for testing and I am not able to make a permanent change by editing the source file or through any plugin.
Other two methods could be javascript to check on local machine the number of characters being entered, but I understand that this can easily be cheated by disabling javascript. Moreover, I am not fully sure how to do it.
Third method could be to use for action or filter hook. Can you please suggest me which hook to be used and sample code, if any?
Thanks in advance.
Topic: increase font size
You have been a great help.
I read through and tried https://codex.bbpress.org/bbpress-styling-crib/
What I did,
1. installed Simple Custom CSS plugin â all ok
2. insert the below code. and changed the font-size: 1.1em; to 1.6em#bbpress-forums div.odd, #bbpress-forums ul.odd { background-color: #fbfbfb; } #bbpress-forums div.even, #bbpress-forums ul.even { background-color: #fff; }
IF post is sticky or super sticky, then
.bbp-topics-front ul.super-sticky, .bbp-topics ul.super-sticky, .bbp-topics ul.sticky, .bbp-forum-content ul.sticky { background-color: #ffffe0 !important; font-size: 1.1em; }
but the rest doesnât seem to workâŠespecially
Number 5. Various textsbbpress-forums .bbp-topic-content p, bbpress-forums .bbp-reply-content p { font-size: 12px;
I change the font-size: 20px
nothing happens.Â
what did I do wrong? basically I wanted to increase font size for all forum section from 1 to 8. How please.
Thank you in advance
Topic: 2 various profile user
WordPress 4.9.8
bbPress 2.5.14
ProfileGrid 3.2.1
http://Www.lokmiechow.plHello, i use bbpress and ProfileGrid. I have problem with profile user. Now i have 2 various profile user. 1st is from forum mybb and 2nd is from profileGrid.
1st view is, if i click on name author post. I think i need change it in file php but i dont know how and where.1st) http://www.lokmiechow.pl/forums/user/assadsadas-asasda/ 2nd) http://www.lokmiechow.pl/konto/?uid=10I would like have only 2nd view. What should i change and where to fix it?
I would like also add options from 1st to 2nd view, for example in new overlap “user forum stats”.
Topic: Topics list not showing
When i create new topic it shows normally no issues!!
But i had a huge data that needed to be imported on the same site. I used WP All Import Plugin for the import and I imported the data into topics… Actually I only require the topics section so there is forum I want to show… I managed the look. But after the import finished. I cant see the list of topics that meant to be seen on my homepage. Though I see the topics in the sidebar under related topics. I used shortcode [bbp-topic-index] to show the topic on my homepage.
I can also see the topic in my wordpress topics section…
So, I decided to take a look in my database. I saw that earlier when i created topics it was stored in wp_posts table but now after import all that new data is in wp_pmxi_ tables and topics were in wp_pmxi_topics table. I don’t know if that supposed to be but I cant solve this issue… I even imported data again in posts which then went to wp_posts table in database but ofcourse wordpress was taking that as posts not bbpress topics…
Can please someone help me out?