Search Results for 'code'
-
AuthorSearch Results
-
January 19, 2015 at 3:41 pm #157068
In reply to: Translation fr does not work in bbpress 2.5.4
Robin W
Moderatorpresume you have done all this
January 19, 2015 at 12:06 pm #157058In reply to: Username display issue
Robkk
Moderatorit could be just making the font-size smaller.
copy this CSS anywhere you can put custom CSS
#bbpress-forums div.bbp-forum-author a.bbp-author-name, #bbpress-forums div.bbp-topic-author a.bbp-author-name, #bbpress-forums div.bbp-reply-author a.bbp-author-name { font-size:12px; }January 19, 2015 at 11:56 am #157054In reply to: Better WYSIWYG text editor?
Robkk
Moderatorremove Dougs code and see if just using this will fix it. it does the same thing.
https://wordpress.org/plugins/bbpress-enable-tinymce-visual-tab/
also see if deactivating wp-edit will fix the problem , i tried it awhile ago with the visual editor code and it was kind of buggy.
January 19, 2015 at 11:31 am #157050In reply to: Click Topic – links to reply
Robkk
Moderatorif you haven’t already copy all of your bbPress templates to a folder called bbpress in your child theme
follow this codex guide.
https://codex.bbpress.org/theme-compatibility/
and also check if its a theme issue , switch to a default theme like twentytwelve and see if the issue is still there or not.
January 18, 2015 at 10:49 pm #157044In reply to: Better WYSIWYG text editor?
discdemo
Participant@dougismith I’m getting this when I try your suggested code.
Any ideas, anyone? This was placed where the child theme for buddy press
states to, in the functions.php. (I’ using a theme called BuddyBoss, fyi)Thanks, all.
Parse error: syntax error, unexpected ‘&’, expecting ‘]’ in /home/agonyofd/public_html/wp-content/themes/buddyboss-child/functions.php on line 60
jz
January 18, 2015 at 3:52 pm #157031In reply to: Group Forums
tharsheblows
ParticipantAh ha! I see what you mean (maybe). So something in content-single-forum.php like this?
<?php if( bbp_is_forum_group_forum( bbp_get_forum_id() )){ bbp_get_template_part( 'form', 'topic' ); }else{ echo '<a href="/">You could link to your form or whatever else here.</a>'; } ?>rather than what’s there now:
<?php bbp_get_template_part( 'form', 'topic' ); ?>Then you could use the shortcode [bbp-topic-form] on a new page and link to that page.
January 18, 2015 at 3:38 pm #157030Touda
ParticipantI made another test trying to create a new topic (thread) from the form under the listing given by
[bbp-singl-forum id=6]and it give me back the following error:ERROR: No tienes permisos para crear nuevos hilos.
Which is Spanish for You do not have permission to create new topics.
January 18, 2015 at 3:34 pm #157029Touda
ParticipantAfter having installed, configured and started some forums and subforums with the initial threads (topics), suddenly I found some issues, maybe related with some new plugins I’ve been installing on the same site:
– Forums URLs give 404 errors
– Topics URLs are found OK
– No reply is possible to those topics even when logged as Admin (Keymaster). BBPress shows this error:ERROR: You do not have permission to reply.
ERROR: This forum is private and you do not have the capability to read or create new replies in it.
When testing shortcodes on a test page it gives the following results:
[bbp-forum-index]-> No forum is listed[bbp-single-forum id=6]-> Forum is shown with its topics[bbp-topic-index]-> Topics are listed OKAny idea?
Thanks in advance for any help.
January 18, 2015 at 11:11 am #157023In reply to: User registration on multisite
Nicolas Korobochkin
ParticipantFix it. Just add
global $active_signup;inselena_network_signup_main. Already update this file on gists.github.January 18, 2015 at 4:04 am #157017In reply to: Allowing inline images uploads in posts?
palmdoc
ParticipantThis works for me :
1) Add this to function.php in your child theme
via http://bavotasan.com/2014/add-media-upload-button-to-bbpress/
Open up your functions.php file and add the following snippet to get it working:
add_filter( 'bbp_after_get_the_content_parse_args', 'bavotasan_bbpress_upload_media' ); /** * Allow upload media in bbPress * * This function is attached to the 'bbp_after_get_the_content_parse_args' filter hook. */ function bavotasan_bbpress_upload_media( $args ) { $args['media_buttons'] = true; return $args; }So now you have the Add Media button in the posting
2) What you need now is to fine tune the user capabilities so that not only administrators but normal users can upload media direct to the form post using the Add Media button
I am using the Capability Manager Enhanced plugin
https://wordpress.org/plugins/capability-manager-enhanced
I guess you could use a Custom user type (e.g. clone the normal participants) to experiment. Later on you could edit all your users and convert them to this Custom user type
Check the ability to:
a) Upload files
b) Unfiltered HTMLfor this Custom user type
I guess it comes with risks but it has the benefits of direct Media upload to the bbPress forum
It’s not only images but other media e.g. PDF (which works nicely with thhe Google Doc Embedder Plugin
January 17, 2015 at 8:06 pm #157011In reply to: Hitting 50 forum limit? What can I do?
jamesdoesdesign
ParticipantI know this is a tad bit old however I happened to stumble on this post while I was looking for a way to increase both the page to 100 posts and the parent page to show all 100 posts as well. The solution above adding to the functions page did not work for me even upon changing it to the proper code.
I did however find the same solution as jameswordpress did but there are multiple lines.
to edit so that both the parent forum and the selected forum page to show more than 50 forums.To do this edit template.php located in:
/bbpress/includes/forums/template.phpChange line 135:
'posts_per_page' => get_option( '_bbp_forums_per_page', 50 ),to:
'posts_per_page' => get_option( '_bbp_forums_per_page', 100 ),———-
Also changing line 708 should effect the parent page (at least it did for myself):
'posts_per_page' => get_option( '_bbp_forums_per_page', 50 ),to:
'posts_per_page' => get_option( '_bbp_forums_per_page', 100 ),You can change the value of 50 to whatever you desire.
January 17, 2015 at 6:52 pm #157010In reply to: Group Forums
eVersatile
ParticipantI apologize I should have been a little more specific.
It is actually the actual content of the single forum that I would like to be different.
This little piece of code<?php bbp_get_template_part( 'form', 'topic' ); ?>is what adds the topic form to the forum. For the main forum I would like to remove that and for the group forums, the topic form should still show.
The form to add a topic to the main forums would be on a separate page.You’re funny.
January 17, 2015 at 10:03 am #156994Topic: Participant can't use custom html tag
in forum Pluginsgolpilolz
ParticipantHi,
I have a forum and i would like use wowhead for item link.
I can’t find a plugin for that and i decided to code one. But when i post with the keymaster all is okay, but when it’s au simple user they can’t use the html tag.How allowed participant to use this html tag <item>item id</item>
this is my code
function add_tags(){
add_filter( 'bb_allowed_tags', 'wow_item_allowed_tags',9);
add_filter( 'bbp_get_reply_content', 'wow_item',9);
add_filter( 'bbp_get_topic_content', 'wow_item',9);
}
function wow_item( $text ) {
$text = preg_replace('|(<item>)(.*?)(</item>)|', '$2', $text);
return $text;
}
function wow_item_allowed_tags() {
return array(
'item' => array(),
'a' => array(
'href' => array(),
'title' => array(),
'class' => array(),
'rel' => array()
)
);
}
add_action( 'after_setup_theme', 'add_tags' );
Thank you for your responses 🙂January 17, 2015 at 8:50 am #156992In reply to: Group Forums
tharsheblows
ParticipantOk — again, I think this is what you mean. It might not be! I’ve left in some bits that will show you exactly what’s happening.
<?php while ( bbp_forums() ) : $forum = bbp_the_forum(); // if it's a group forum, then this is true if( bbp_is_forum_group_forum( bbp_get_forum_id() )){ echo '<strong>The following *is* a group forum:</strong>'; // this is the bit you would change to your new template. And take out those echos, they're just something I find useful and thought you might too! :) bbp_get_template_part( 'loop', 'single-forum' ); } // if it's not a group forum, do this else{ echo '<strong>The following *is not* a group forum:</strong>'; bbp_get_template_part( 'loop', 'single-forum' ); } ?>Slightly off topic, I think that winky icon in my previous post looks a bit creepy. It might be just me though.
January 17, 2015 at 8:10 am #156991In reply to: Group Forums
tharsheblows
ParticipantSo what you want is if a forum is in a group, it gets one template and if it’s not in a group, it gets another? eg in loop-forums.php you want something like:
<?php while ( bbp_forums() ) : bbp_the_forum(); ?> if( this is a group forum ){ <?php bbp_get_template_part( 'loop', 'single-group-forum' ); ?> } else{ <?php bbp_get_template_part( 'loop', 'single-forum' ); ?> } <?php endwhile; ?>where bpp_get_template_part( ‘loop’, ‘single-group-forum’ ); gets a template part named “loop-single-group-forum.php” that you’ve created, probably by copying and modifying “loop-single-forum.php”.
I’d think that’d be possible but while I’m looking for whatever goes in that if statement, want to check that that’s what you mean! No worries if not, one of my core competencies is misreading and misunderstanding posts. 😉
January 17, 2015 at 7:23 am #156990In reply to: Email notifications not working; looking for help
tharsheblows
ParticipantIn some cases, it might be because the subscription emails are now being sent with all subscribers bbc’ed in rather than individually from a created no-reply address. The reason for the change is that posting new replies or topics was taking too long as it cycled through sending those emails. However, for some people (myself included), that wasn’t an issue.
You can go back to the previous way as outlined here (as I mentioned, I have similar code in a plugin) but it should work if you put it in a file called bbp-functions.php in your bbpress theme.
Actually, you might — after doing all the things you would do before you install a new plugin — try going back to the previous way with this: MJJ bbP 2.5.3 Subs. It does what it says on the tin, just uses the old functions from bbPress 2.5.3 to send subscription mails. Again, it might slow down new replies or topics. It doesn’t for me but just keep an eye on it.
January 16, 2015 at 8:06 pm #156983In reply to: Post New Thread
Robkk
Moderatorhere i explain how to put a link to a page using the new topic form shortcode.
bbpress.org/forums/topic/new-topic-button-at-top-of-topic-and-topic-creation-on-separate-page/
here i explain the drop-link way, and a bunch of other things that are pretty cool
bbpress.org/forums/topic/how-to-make-similar-bbpress-forum-to-quicsprout-one/#post-149112
January 16, 2015 at 7:34 pm #156982In reply to: Post New Thread
productiontrends
ParticipantHey,
I did actually search and couldn’t find the thread about this. Do I need to add a shortcode to every topic? Is the shortcode below?
[new topic form jump-link]
Thanks for your time
January 16, 2015 at 7:25 pm #156981In reply to: Post New Thread
Robkk
Moderatorits not suppose to be there by default
alot of people ask for this type of thing and there is two ways to do it
create a topic form with a shortcode/new topic form jump-link
search the forums and you will find it answered by many people
January 16, 2015 at 7:05 pm #156973In reply to: shortcodes to sign out
Robkk
Moderatoryou can put this function in your child themes functions.php file
function iweb_logout_url_shortcode() { return wp_logout_url( home_url() ); } add_shortcode( 'bbp-logout', 'iweb_logout_url_shortcode' );then use [bbp-logout]
or use this plugin
January 16, 2015 at 6:55 pm #156970In reply to: Lost password page not redirecting
Robkk
Moderatori dont think the normal WordPress reset password redirects either. (bbPress is built off of WordPress)
so i think its normal??
you could add this to your functions.php in your child to redirect to your homepage after a reset password though.
function wpse_lost_password_redirect() { wp_redirect( home_url() ); exit; } add_action('password_reset', 'wpse_lost_password_redirect');or try this for a custom page
function wpse_lost_password_redirect() { wp_redirect( 'http://yoursite.com/allowed-password-recovery/' ); exit; } add_action('password_reset', 'wpse_lost_password_redirect');January 16, 2015 at 6:30 pm #156963In reply to: Sort topics alphabetically
Robkk
Moderatoryou can use the bbpress views, and put the views widget in your sidebar
see if this works , put this function into your functions.php
function rkk_register_custom_views() { bbp_register_view( 'desc', __( 'Z-A' ), array('orderby'=> 'title', 'order' => 'DESC'), false ); bbp_register_view( 'asc', __( 'A-Z' ), array('orderby'=> 'title', 'order' => 'ASC'), false ); bbp_register_view( 'date-asc', __( 'Date ASC' ), array('orderby'=> 'date', 'order' => 'ASC'), false ); bbp_register_view( 'date-desc', __( 'Date DESC' ), array('orderby'=> 'date', 'order' => 'DESC'), false ); } add_action( 'bbp_register_views', 'rkk_register_custom_views' );January 16, 2015 at 6:12 pm #156962In reply to: how to change template (bbp-login)
Robkk
Moderatorthats the right file , as long as you copied the file to a bbpress folder in your child theme it should work.
here is an example of the code of the label renamed and without :
<div class="bbp-username"> <label for="user_login"><?php _e( 'Name', 'bbpress' ); ?> </label> <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>" /> </div>could also be a cache issue maybe clearing the cache on your site should fix it
January 16, 2015 at 5:52 pm #156957In reply to: Click Topic – links to reply
Robkk
Moderatorcheck and see if creating a bbpress.php file could fix this
if not see if its a plugin issue
Deactivate all but bbpress and see if this solves the issue. if not , re-enable one at a time to see which is causing the issue
January 16, 2015 at 5:45 pm #156956In reply to: How to integrate wordpress with bbpress?
Robkk
Moderatorit should work well on a self hosted site. (WordPress.org)
for better integration its recommended that you create a bbpress.php though.
i dont know for sure why you posted a link to your wordpress.com site though??
unless you are doing a blog on a wordpress.com site and a forum using bbPress and WordPress(self hosted) site??
you should use the same theme for both if you are doing that
wordpress.org/themes/book-lite
-
AuthorSearch Results