Search Results for 'code'
-
Search Results
-
Can I just say, whilst bbPress is a great SSO solution for those wanting to hook up their WordPress with a forum, it is very difficult to get it going how you like it. There is virtually no decent documentation going over anything except the basics.
I am trying to achieve something relatively simple, however have had to resort to editing the actual plugin itself in an attempt to get it working how I’d like it to be.
What I am trying to do, is edit the freshness part of bbPress. What do I mean by that? Well, I am trying to edit the following:

So what I wanted it to do, was display the actual Topic Title. It makes sense, because as default – what has updated? What thread was last updated without having to drill into the forum?
I also found it bizarre that the title was added within the title tag of the freshness, really? Can we just have some sort of option to allow us to change how things are layed out, or at least create some documentation on how to actually change this without editing the bbPress plugin files (which is what I have had to resort to…)
My question is, how can I change what is displayed there? Surely there’s a better way around it that doesn’t involve hacking my way through the plugin files.
Which bbPress file actually changes this? Like I say, absolutely no documentation on what each file does – it is just guesswork………………
If I am missing something I apologise, but after looking for countless hours I just decided to edit the plugin source to achieve half of what I wanted – still doesn’t help as I would like to change the location of the author picture and time edited and I am not editing the plugin for those.
Am I being stupid?
If anyone would like the most recent topic name within the forum to display on the index, you can edit the Plugin source code directly like so:
if ( !empty( $time_since ) && !empty( $link_url ) ) $anchor = '<a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $time_since ) . '</a>'; else $anchor = esc_html__( 'No Topics', 'bbpress' ); return apply_filters( 'bbp_get_forum_freshness_link', $anchor, $forum_id, $time_since, $link_url, $title, $active_id );Find that chunk of code within bbpress/includes/forums/template.php and change to the following:
if ( !empty( $time_since ) && !empty( $link_url ) ) $anchor = '<a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $title ) . '</a>'; else $anchor = esc_html__( 'No Topics', 'bbpress' ); return apply_filters( 'bbp_get_forum_freshness_link', $anchor, $forum_id, $time_since, $link_url, $title, $active_id );All we have done here is changed the $time_since to $title. Now you need to re-add the $time_since variable in there somewhere, which is a pain because you may not want it right after the thread title (like myself…)
Topic: Avatar padding issue
Hello! I am new to bbpress. I have just made a new site for my clan and I decided to try out WordPress for the first time. Anyway, I’m going to try and keep this short for you guys. So, I have uploaded a theme and right off the bat there was an issue with the padding between the user’s avatar and username display.
Example:
I have plenty of experience with CSS and I’ve been looking through my FTP files to figure out where this issue is occurring but I can’t seem to find it. I would love to get some direction, or possibly a code to add somewhere in my CSS to fix this. Thanks!
Topic: Blank Forum Index
Hi all!
I’ve just completed setting up my forums using the shortcode method (implementing shortcode of forum index on a page). I did this because whenever I tried to access the forum index, I would get a blank page.
Now that I’m finished the development of the forum, I want to use the original index.At the moment, thegamingrpt.com/forums works fine thanks to the shortcode. However, thegamingrpt.com/tgrforums only loads a blank page. I used the ‘tgrforums’ root so that I could implement the shortcode on a page called ‘Forums’.
Basically, I want the original back because my breadcrumb is showing the original forum root and because my theme has a dedicated sidebar to bbPress.
Hope all this makes sense.
Thanks.Hi,
i am searching for a plugin which restrict user registrations.
I only want users to be able to register when they provide a valid “code” in the registration form.
Is this possible?
regards
YavuzTopic: Bug in Italian translation
At the bottom left of a post:
Stai vedendo rticolo (di 1 totali)instead of
Stai vedendo 1 articolo (di 1 totali)I am very new to BBPress deployment. One of my client wants me to fetch Topics or discussions of a particular forum or all forums with in a category and display it on the homepage. The only way I can add it on the home page of my site in the current wordpress theme I use is through a custom widget (“text widget”). Can any one help me with the php code to do the same. Also help me on what I need to do inorder to fetch all topics under a particular category, irrespective of the forums to which they belong.
Is there a plugin to do the same or an external widget which I need to install in the form of a plugin.?
If I am not wrong, I assume that the following is the structure of a BBpress forum.
Category >> Forum (Sub Category) >> Topics (Discussion)
Eg: Software >> Apple >> A simple topic or discussion on iPhone.Topic: bbPress Import Documentation
Hello (especially Stephen!)
Firstly, I must say that I am very grateful that there is a free importer at all! It’s a very valuable addition to bbPress. However, it would be useful if the published bbPress import documentation was just a little clearer and less confusing. Clearer documentation might save people time trawling for responses or firing off questions that are time consuming to answer.
For example, here, there is NO documentation at all for import options:
https://codex.bbpress.org/import-forums/
a) It would be useful if there was an explanation as to what difference ‘Rows Limit’ and ‘Delay Time’ actually make to the importer. For example, after a search on this forum, I read that one user upped the Rows limit to 10000 and this helped him with a successful import that had previously hung. Why should this be? @netweb suggests 0.1 as a good Delay Time – why? Also, is there a minimum or range of values that are acceptable? For example, would 0.01 an acceptable value and would it make any difference?
b) If ‘Start Over’ is not selected, will the importer always try and re-start where it left off if it was previously stopped? How does it know? Does it trawl through all matches and not replicate them until it gets to data that it hasn’t imported?
In the troubleshooting guide here:
https://codex.bbpress.org/import-forums/import-troubleshooting/
c) I don’t understand the debug information:
- Once the import hangs, click stop, take a note of where it was up to, e.g. Converting 11,299 – 11,300
- Click start again and the import will continue from where it left off
- If it hangs again, take note of where it was up to again
- Once finished make a fresh copy of the source database
<
/ul>i) Once what is finished? If it hung again then it didn’t finish? Bit confused by this.
ii) If one stops and starts the import, why should it continue where it left off? Why should it not hang immediately? Does it continue with the next batch of rows or does it continue with the table row in which it was stopped?
iii) If one stops import, logs out, refreshes the page, etc. will import start where it left off?
iv) Please define ‘hangs’. If the wheel is spinning during, for example, ‘Converting Replies (480000 – 480999) does this mean it is still working albeit slowly?
Many Thanks
Gavz
Hey again,
Running into some trouble customizing my bbpress forums via the bbpress.css file in the my child theme. I’m unsure if the pathway is incorrect, or maybe the intro to the file itself is incorrectly formatted. I do, however, know I was able to enqueue the custom loop-forums.php correctly with the functions.php properly pathwayed.
So, the pathway to the bbpress.css file is default>css>bbpress.css
In my childtheme, I have the bbpress.css file located avada-childtheme>css>bbpress.cssHowever, whenever I add code into the bbpress.css file after the
`/*
Theme Name: Avada-childtheme
Theme URI: Your website if you don’t intend to publish a separate site just for your theme
Description: A brief description of your child theme
Author: Jonah Hollis
Author URI: http://www.animusesports.com/
Template: Avada
Version: 1.0.0
Tags: whatever tags you might want to use for your child theme
*//* =Theme customization starts here
————————————————————– */
it corrupts the bbpress forums and breaks them. When I delete the file, the bbpress forums resume normal functionality. For the purposes of example, I’ll leave them broken.Any help is appreciated. Thanks!
http://www.animusesports.com/forums/
WordPress 4.0.1
bbPress 2.5.4-5380Topic: How fix editor
I create page and add [bbp-topic-form] look http://www.oklop.me/kreiraj-temu/
But on form not display editor like this
After add code in functions.php
function bbp_enable_visual_editor( $args = array() ) {
$args[‘tinymce’] = true;
return $args;
}
add_filter( ‘bbp_after_get_the_content_parse_args’, ‘bbp_enable_visual_editor’ );Only work on forum page, and editor not work on edit post.
Hi guys,
I am trying to achieve this (a mockup through Google Dev tools) however I am unable to find where I can actually edit the code behind this, it seems to be hard coded behind a bbpress function – which I personally think is silly if I have to rewrite it just to make it how I want it…

I am gunning to make my installation of bbPress hierarchical in display, however currently it only displays the “Freshness” of the forum.
Can anyone point me into the right direction here?
EDIT: I wasn’t super clear, what I meant to say was – I would like to instead of having “15 hours and 30 minutes ago” with the username, the topic title. I can achieve the rest
Thanks