Search Results for 'code'
-
AuthorSearch Results
-
February 27, 2014 at 5:31 am #143017
In reply to: A Guide to bbPress
Robin W
ModeratorI have been adding to the documentation with a much longer step-by-step guide, much more still to add !
February 27, 2014 at 4:45 am #143011In reply to: bbPress features?
Robin W
Moderator1. Can admin set forums as private β by invitation only?
2. A search function to search for topic and keyword?
it’s there
3. A notification can be set to follow certain topics e.g. network or mobile, therefore any of these topics posted, an email notification will be sent to me?
plugin bbp notify
4. Member can upload and download files?
gd-bbpress-attachments plugin
5. Is it mobile responsive?
yes
6. Member can create new topic
yes
7. Admin or assign moderator can accept or reject new users?
and
plugin bbpressmoderation
8. Can admin block certainly users? on usersβ email or ip?
plugin wp-ban9. hosted on any share hosting provider? e.g. godaddy?
yes with any wordpress setupFebruary 27, 2014 at 4:36 am #143009In reply to: Forum Index expanding into sidebar.
Robin W
Moderatorsection 8
If you find the page template from the theme that has a sidebar, just follow then instructions above to rename it to bbpress.php and put it in the right directory
February 26, 2014 at 9:14 pm #143004In reply to: no text editor, just a blank box.
kokocipher
ParticipantI know there is a solution to add a code snippet to turn visual text editor on from https://codex.bbpress.org/enable-visual-editor/
But do I paste that in the bbpress function.php file?
February 26, 2014 at 2:13 pm #142985In reply to: no title in content-single-reply.php
nicmare
Participantmhh. as i already said i still talking about <title>! the one in the browser bar π
current sourcecode is:<title>| dashcamtest.de</title>
as you can see the topic title is missing!February 26, 2014 at 12:19 pm #142982In reply to: move Username and IP to the right of the avatar
Doremdou
ParticipantHi again,
I just played with https://codex.bbpress.org/bbp_author_link/ and adapted it to my theme.February 26, 2014 at 10:24 am #142978In reply to: Add a Class to my Body Tag using the Forum Title
Rackmire
ParticipantHi Thanks for your support and fast reply. Much appreciated,
Do I just paste this code in my header.php file?
Thanks,
February 26, 2014 at 10:23 am #142977In reply to: font size and color plugin
Rackmire
ParticipantHi,
how does this work? how to implement this?
I’ve tried creating a plugin folder and putting it within a new file, it appears in the plugins area and i click activate but nothing happens. Do I need any extra code to insert in my theme files for it to relate to?
Thanks
February 26, 2014 at 9:42 am #142970In reply to: Login screen in forum is gone
backpackersontrack
Participanthttp://backpackersontrack.com/forums/forum/africa/ –> this one does contain a login screen. This one shows up when clicking on forum: Africa
http://backpackersontrack.com/forum-2/ –> this one doesn’t. This one shows up when clicking on forum via our homepage.
On the forum page on my dashboard, I inserted this code: [bbp-forum-index], referring to our BBpress forum.
February 26, 2014 at 8:12 am #142966In reply to: How can we 'hide' subforum (categories) in forums?
Lynqoid
ParticipantIf you want to achieve a hierarchy like this:
- Continent - Country one - Country two -Continent two - Country oneThen I would suggest setting up the continents as categories and the countries as forums. If you hide the countries how does the user get to the country forum to post a topic? Or do you give them a direct link or something?
February 26, 2014 at 5:55 am #142959In reply to: Edit topic reply, changes post order
dzpoa
Participant@netweb No, i’m not using threaded replies. and “Forum root should show” is set to “Topics by Freshness”. It looks to me now that those settings fixed the issue, not the code π
February 26, 2014 at 4:32 am #142956In reply to: How many topics and replies to show per page
Doremdou
ParticipantHello, thank you for your code @marky_uk π
Unfortunately it does not seem to work right.
In fact, there is a pagination with threaded replies with your code, but same replies are replicated on each page (so it is always the whole bunch of replies on each page) it does not separate them.Would be greatly appreciated if someone has another idea π
thank you πFebruary 26, 2014 at 4:15 am #142951In reply to: Settings not saving in admin for new fields added
Robin W
ModeratorI’m a bit of a newbie to this area, having just created my first settings page, so of this is irrelevant, please ignore !
The following talks about needing to register
https://codex.wordpress.org/Settings_API
eg “NOTE: You MUST register any options you use with add_settings_field() or they won’t be saved and updated automatically. ” – which seems to describe your problem
and
https://codex.wordpress.org/Function_Reference/register_setting
That may not be necessary as you’re adding it as a filter??
anyway my code cribbed from elsewhere looked like
// register the plugin settings function ui_register_settings() { // create whitelist of options register_setting( 'ui_settings_group', 'ui_settings' ); } //call register settings function add_action( 'admin_init', 'ui_register_settings' );where ui_settings was my array.
February 26, 2014 at 12:14 am #142947In reply to: Each Forum to Have its Own Admin Email
shawlw
ParticipantThanks Robin. I’m very interested in going through the code, so I’ll follow up on that. Cheers.
February 25, 2014 at 11:09 pm #142946In reply to: Is it that hard? WP Theme Selection Dropdown
traemccombs
ParticipantHeh, I feel bad, and I know better. I’ve been in the Open Source community since 96′ and I do know better. I just always assume all the things have been sussed out.
I’m tired, exhausted from 24hrs work in two days. I do appreciate what you’ve said and actually was able to figure out how to get a different theme to show up.
I just wish there was a less “command-line”y way of doing things for those that might not know how to deal with a shell or to get their hands dirty.
I may not be able to code, but I do know my way around a unix command line.
As far as sucky themes go, it’s really just my observation. I’m not trying to be cruel. I haven’t seen a truly amazing bbPress theme implementation that makes me go.. “HOLY COW, THIS IS AWESOME.”
Anyhoo, again, thank you so much for taking time to respond.
Cheers,
TraeFebruary 25, 2014 at 9:46 pm #142943In reply to: Edit topic reply, changes post order
Stephen Edgar
Keymaster@dzpoa Are you using this with
threaded repliesenabled on your site?function custom_bbp_has_replies() { $args['orderby'] = 'ID'; $args['order'] = 'ASC'; return $args; } add_filter('bbp_before_has_replies_parse_args', 'custom_bbp_has_replies' );February 25, 2014 at 1:38 pm #142926In reply to: Is it that hard? WP Theme Selection Dropdown
Robin W
Moderator“Iβll read the link you posted. Hopefully it doesnβt suck.”
I wrote it, and hopefully you give me some positive feedback if you feel it can be improved. By the way I don’t consider “it sucks” to be positive feedback π
In fact if you worked you way through the documentation, you’d probably gain a lot of knowledge.
“Easy of me to throw stones in a glass house when I donβt code I guess. ” Yes, basically you are taking something that people have written in their spare time, don’t get a penny for, and that you are using it for free, and you want the people who developed it to abandon taking their kids out for the afternoon (or in fact many afternoons) and write code so that you don’t have to. And then you come on this site where people like me who again do this in my spare time for free, and have lots of other things I could be doing, and slagging it off. π
There is a lot of development of this plugin going on all the time and it will keep improving.
“And, I have yet to see a non-sucky bbPress based forum. Most are fairly crappy in how they present and deal with the content. ” – now you just resorting to insult.
A community (like the open source community) requires contributors as well as takers
If you want to contribute to the development of the plugin, please let us know exactly what you would like to see, and how you think it would benefit other users.Oh and yes, I think you are now starting to sound like a troll !
Best Wishes
Robin
February 25, 2014 at 1:21 pm #142924In reply to: Is it that hard? WP Theme Selection Dropdown
traemccombs
ParticipantHeh, stop being so awesome in your replies. π
Anyway, me, the non-coder, still doesn’t understand why it(bbpress plugin) can’t simply have an option to use styles from other themes. If nothing else, the CSS etc would be a nice “base” for things like link colors, font sizes, whatever.
*sigh*
I tried bbPress Tweaks. Meh.
I’ll read the link you posted. Hopefully it doesn’t suck.
bbPress has such a non-WP feel about it though in everything I’ve come to expect from WordPress. Part of it is my frustration with PHPBB, and part of it is my frustration with not being able to get a non-sucky looking forum with bbPress.
And, I have yet to see a non-sucky bbPress based forum. Most are fairly crappy in how they present and deal with the content.
Easy of me to throw stones in a glass house when I don’t code I guess. I just wish there were more sane defaults in bbPress that looked better out of the box.
February 25, 2014 at 11:13 am #142916In reply to: Is it that hard? WP Theme Selection Dropdown
Robin W
ModeratorbbPress by default tries to use your themes default templates as it’s base. So it is already using your theme’s page template, maybe not the particular one you’re after, but it will be for your theme, or one you have created.
It will look for the following files in your theme in this order, and use that for it’s forums
plugin-bbpress.php
bbpress.php
forums.php
forum.php
generic.php
page.php
single.php
index.phpSee https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ for more detail and how to get it to use a particular template.
Since some theme writers create a bbpress template, and some have variously named page templates, it would be kinder hard to get bbpress to work out which of your themes files are page templates, and which you want to use.
Yes, getting the right template to display forums can involve you in renaming and moving some files, but that’s because you have decided to use a non-default theme (no criticism), and so your theme writer and the writers of bbpress would need to be telepathic to know how the other one is going to code. As I said some themes actively allow for bbpress, for others it is just one of thousand of plugins.
The plugin bbPress Tweaks
https://wordpress.org/plugins/bbpress-wp-tweaks/
In dashboard>settings>bbpress tweaks allows you to select from available templates as a dropdown, so partly achieves what you are after.
I fully appreciate that WordPress and plugins can cause a lot of frustration, and no you’re definitely not a troll (yet!), but less heaven and hell in your posts would be better!
February 25, 2014 at 9:16 am #142911In reply to: Each Forum to Have its Own Admin Email
Robin W
ModeratorLaurie,
Would need some code to do this
If you’re into coding, suggest you download
https://wordpress.org/plugins/bbpress-notify/
and crack open the code
It should give you a good idea on how to create your own code.
if not try putting it on wp-jobs
and see if someone will pick it up for you
February 25, 2014 at 9:04 am #142910In reply to: Freshness Date Format
Robin W
ModeratorStephen,
Is there a quick and easy way to amend the headings other than amending the template?
eg loop-topics.php has
<ul class="forum-titles"> ... ... <li class="bbp-topic-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li> </ul>February 25, 2014 at 8:55 am #142908In reply to: Freshness Date Format
Robin W
Moderator“Edit: That said, has anyone tried the code in the link you posted?”
I’ve just loaded it and it seems to work fine
function wpse_77441_change_time_format( $anchor, $forum_id ) { $last_active = get_post_meta( $forum_id, '_bbp_last_active_time', true ); if ( empty( $last_active ) ) { $reply_id = bbp_get_forum_last_reply_id( $forum_id ); if ( !empty( $reply_id ) ) { $last_active = get_post_field( 'post_date', $reply_id ); } else { $topic_id = bbp_get_forum_last_topic_id( $forum_id ); if ( !empty( $topic_id ) ) { $last_active = bbp_get_topic_last_active_time( $topic_id ); } } } $date = get_post_time( get_option( 'date_format' ), $gmt, $reply_id, true ); $time = get_post_time( get_option( 'time_format' ), $gmt, $reply_id, true ); $dt = sprintf( _x( '%1$s at %2$s', 'date at time', 'bbpress' ), $date, $time ); $time_since = bbp_get_forum_last_active_time( $forum_id ); return str_replace( "$time_since</a>", "$dt</a>", $anchor ); } add_filter( 'bbp_get_forum_freshness_link', 'wpse_77441_change_time_format', 10, 2 ); add_filter( 'bbp_get_topic_freshness_link', 'wpse_77441_change_time_format', 10, 2 );February 25, 2014 at 7:48 am #142905Topic: What is it?
in forum Requests & FeedbackApokh
ParticipantHey there,
can anyone tell me, what plugin (?) I need to show the infos displayed here within this forum beneath the Avatar? Lets say the @Name and perhaps the total postcount? Is it a plugin or will I need to customize the code files. If so, perhaps someone could tell me what files and perhaps how?!Best Regards
February 25, 2014 at 7:08 am #142904In reply to: Freshness Date Format
Stephen Edgar
Keymaster@synaptic It’s not always obvious but the links in your post that link to old discussions or sites (which I just edited) regarding the old ‘standalone’ bbPress and not the current bbPress v2.x plugin, circa anything over 2-3+ years of age won’t be relevant.
As to meeting some kind of demand quota, bbPress v2.x Plugin is sitting at 1,125,146 downloads as I write this, so whatever the magical formula is it would appear it has not reached tipping point.
Edit: That said, has anyone tried the code in the link you posted?
http://wordpress.stackexchange.com/questions/77441/how-to-edit-bbp-forum-freshness-link-formatFebruary 25, 2014 at 6:12 am #142901In reply to: Removing "Started by:"
Robin W
ModeratorOk, you need to do the following
If you have a child theme, then do this in there
If you don’t have a child theme, then seriously consider creating one, it’s very quick and easy, and will ensure that changes you make don’t get lost on theme or bbpress upgrades. Just google wordpress child theme videos and you’ll get lots of help.
In your theme create a bbpress directory
wp-content/themes/yourthemename/bbpressthen copy
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-topic.php to this directory so that you have
wp-content/themes/yourthemename/bbpress/loop-single-topic.phpEdit this file to delete line 60 which says
<span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) ) ); ?></span>and save.
bbPress will now use the file in your theme’s bbpress folder instead of the default, and you won’t lose your change on bbpress upgrades – but will it it is in your main theme, so if you don’t create a child theme, keep a note of what you changed, as if your theme updates, then you may/will lose the bbpress folder and file.
-
AuthorSearch Results