Search Results for 'code'
-
AuthorSearch Results
-
September 29, 2014 at 9:00 am #152846
Topic: Make the forum pages full-width
in forum TroubleshootingMael Shanti
ParticipantHi !
I tried making my forums page full-width, but didn’t manage, so if you could help, it would be great !
I’ve already read this page : https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/#8-make-sure-bbpress-uses-the-page-template-we-want (but it didn’t really help me :/)Here’s a short video to explain you exactly my problem : https://www.youtube.com/watch?v=0Ekrjb64GxA
Thanks a lot for helping, would be really great ! š
—
My WP version : 4.0 (last in date)
My bbPress version : last in date
My theme : Anew by Alxmedia
My website’s forum : http://www.amitabha-sat.com/forums (password : default)September 29, 2014 at 7:04 am #152834In reply to: Remove Sidebar
September 29, 2014 at 6:30 am #152833Vadim
ParticipantYou must be logged in to reply to this topic (Register/Log In).Update plugin. Make a link to this post to the registration page.
September 29, 2014 at 4:07 am #152829Topic: WP 4 / BBpress 1.2
in forum Troubleshootinghihafr
ParticipantHello everyone !
I’m still using BBpress 1.2 and WordPress 4 breaks the integration. I founded this : https://foliovision.com/2014/09/wordpress-original-bbpress but when i try to add this :
return wp_validate_auth_cookie( $cookie, $scheme );I’ve got a 500 error.
Anyone can help me for BBpress 1.2 ?
Thanks
September 29, 2014 at 12:01 am #152824In reply to: Forum doesn't look very good
Robkk
Moderatori got a 500 Internal Server Error checking it out.
but if it is just styling you should check out some links in the documentation.
also reading more of the documentation wouldnt be bad.
Robkk
Moderatoryou can first seperate the role , reply author name , and avatar.
i just put loop-single-reply.php into my child theme folder called bbpress
then i just remove this line in loop-single-reply.php
<?php bbp_reply_author_link( array( 'sep' => '<br />', 'show_role' => true ) ); ?>and replace it with these three lines of code.
this code also puts the role above the avatar.<?php bbp_reply_author_link( array('show_role' => true, 'type' => 'role' ) ); ?> <?php bbp_reply_author_link( array( 'show_role' => false, 'type' => avatar , 'size' => auto ) ); ?> <?php bbp_reply_author_link( array( 'show_role' => false,'type' => 'name' ) ); ?>and to have that sites kind of avatars you dont have a fixed width so the avatars size varies a little bit in height and width but it has a max width it never go bigger than.
to do that you would have to use this.
max-width and max-height are both 150px you can change that to whatever you want.
add this css whereever you can have custom css
bbpress.css in a child theme
child themes css
jetpacks custom css module
custom css plugin#bbpress-forums div.bbp-reply-author img.avatar { border: medium none; max-width: 150px; padding: 0px; margin: 12px auto 0px; float: none; max-height: 150px; }if you change your mind about having the varied avatar sizes
you can remove'size' => autoin the avatar code. which would leave the default 80px
or change'size' => autoto whatever number you want example'size' => 60September 27, 2014 at 9:26 am #152806In reply to: BBPress Single Forum Menu Item
jeroenheijmans
ParticipantThanks for logging this issue. I had the same problem. I’ve solved it without PHP, just jQuery.
For what it’s worth, here’s what it looks like:
<script> jQuery(document).ready(function() { if (jQuery('#bbpress-forums')) { jQuery('.current_page_parent').toggleClass('current_page_parent').next().toggleClass('current_page_parent') } }); </script>It deselects the “current page” and selects the
nextone (which is the forum page, for me) as current. But only if#bbpress-forumsis on the page.I’ve added this to the
footer.phpfile of my theme (GeneratePress), just before the</body>statement.Hackish, but given that it’s noted as a bug it’ll do for now.
September 26, 2014 at 3:10 am #152778In reply to: menu issue on forum in private area
Robin W
Moderatorforums is a virtual page – ie it doesn’t exist (not that pages really exist anyway!), and is not a ‘post ‘ in the wordpress sense of post
Rather than use the forums widget, why not just use a text widget, just put this in the content
<a href= "http://harveylakeland.com/forums">Community Forums </a>September 26, 2014 at 3:02 am #152777In reply to: Full Width Forum Pages
Robin W
Moderatorok, just looked and all the pages look fine now except the forum page – is that correct?
bbpress should use the bbpress template for all the pages, so you can’t really css the individuals (or not without tons of code).
How are you going to the initial forum ? is it method 1 or 2 from the following
and whichever try the other !
Once you are consistently wrong on all pages, you can make it consistently right !
September 25, 2014 at 6:34 pm #152766In reply to: Inserting tables into topics
Stephen Edgar
KeymasterDownload the plugin I have here, unzip it and upload it to your site and activate. š
Edit: Users will then be able to use HTML table tags, e.g.
<table>,<td>,<tr>etcSeptember 25, 2014 at 5:45 pm #152764In reply to: Conversion MyBB to bbPress
Stephen Edgar
Keymaster@bepyland If you set the bbPress import rows to 50,000 that would be one single query, it would not work though unless you had one amazing MySQL installation. š
What the “rows” value means is how many topics or replies for each single query should be imported at a time, the default is 100, so when the importer is running each single query will import 100 topics at a time.
WordPress itself, and then bbPress also make queries along the way so just counting only bbPress import is not the only calculation needed.
Your best bet is to create a test site to test the import before migrating this to your “live” site:
https://codex.bbpress.org/creating-a-test-site/September 25, 2014 at 5:45 pm #152763In reply to: Is there a ban users system plugin out there?
Robkk
Moderatori think its really like making a plugin for wordress except you use bbpress’s hooks
but i havent gone in too deep in knowing how to create a plugin.this plugin helps on finding all of bbpress’s hooks
https://wordpress.org/plugins/bbpress-visual-hooks/and im sure information in documentation will help.
heres some information that i found real quick that i think could help.
if you need anymore help create a new topic titled “Need Help on bbpress plugin development”
and maybe robin or stephen can help from there.
robin already has tons of plugins made for bbpress
and stephen is one of the core developersSeptember 25, 2014 at 5:18 pm #152762In reply to: Full Width Forum Pages
bertusschoeman
ParticipantHey Robin, thanks so much! The code you supplied me with alters the main forum page a bit (the page that we do not want to chage, but use as a model for the topic and discussion pages) and leaves the topic (http://secularsociety.co.za/forum/forum/sass-general) and discussion pages (http://secularsociety.co.za/forum/topic/sass-vision-statement/) aligned to the left. I have been playing around with your code as well as a bunch of other CSS, but I can not seem get the topic and discussion pages to look like the original main forum page :/ I think that we will need to address each page’s CSS instruction individually. Trying to change the CSS in one go seems to have different results on each of these pages. Any further assistance would be greatly appreciated.
September 25, 2014 at 4:36 pm #152761In reply to: Is there a ban users system plugin out there?
JBBoY
ParticipantThank you Robkk, where can I find a tutorial or howto create a plugin for bbpress? I found the bbpress files that I need to edit and I can put my code in, but I think this is not the clean way to do it.
September 25, 2014 at 8:09 am #152744In reply to: Topic background color depending on role
arno8
Participantyou put the add filter code into your child themes functions.php or if you have a functionality plugin put it there.
This worked perfectly.
if you got it to work send a link to the post so i can check it out.
i dont get it work š
September 24, 2014 at 8:21 pm #152734In reply to: Topic background color depending on role
Robkk
Moderatoryou put the add filter code into your child themes functions.php or if you have a functionality plugin put it there.
and well i havent really tested that css code before so i didnt know if it really did work.
i just tried it a while ago and i cant get it to work at all.if you got it to work send a link to the post so i can check it out.
September 24, 2014 at 7:22 pm #152732In reply to: Which need I use?
Icaroferreira
ParticipantI have “WordPress”, forum “bbPress”, plugin “UserPro” … And I want to give points, rewards for users of my website, when they share articles, make comments, create forum topic, etc and has appears in his profile for everybody to see (points and medals).
So what should I use ?
Plugin mycred? Plugin WPAchievements codecanyon? or what?
Help me please.
September 24, 2014 at 6:21 pm #152731In reply to: Is there a ban users system plugin out there?
Robkk
ModeratorI want to make sure that there is not an existing alternative before start writing code (Iām not very familiar at writing code for bbpress).
ok alright , some other users want this functionality so it will be great for someone to make it š
September 24, 2014 at 9:03 am #152726In reply to: Is there a ban users system plugin out there?
JBBoY
ParticipantThank you again for your response! yes, that’s exactly what I want. But I can’t believe there is not a plugin to do this kind of moderation on bbpress.
I want to make sure that there is not an existing alternative before start writing code (I’m not very familiar at writing code for bbpress).
September 24, 2014 at 7:45 am #152722In reply to: Topic background color depending on role
arno8
ParticipantAnd where would I add the add_filter code please?
September 23, 2014 at 7:26 pm #152710In reply to: Display list of topics under specific forum
selenii
Participant<?php if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 10 ) ) ) bbp_get_template_part( 'bbpress/loop', 'topics' ); ?>I had put this code to my template. But how can I change the post_parent Parameter automatik, that the plugin know in wich forum he is and show me the right topics.
Thx
September 23, 2014 at 6:51 pm #152709In reply to: Roles under username (.bbp-author-role)
Stephen Edgar
KeymasterSee the code I just posted here, add’s the CSS classes without template modifications š
Also going to close this, rather than others bumping it in the future š
September 23, 2014 at 6:44 pm #152707In reply to: Which need I use?
Stephen Edgar
KeymasterFor #3 the user topic and reply counts underneath their role in each topic/reply will be in the next release of bbPress.
And images based on forum roles can be achieved using the same code I just posted here by inserting the image using CSS
:beforeor:afterpseudo elements .September 23, 2014 at 6:30 pm #152706In reply to: Topic background color depending on role
Stephen Edgar
KeymasterThis should do the trick without any template modifications:
add_filter('bbp_before_get_reply_author_role_parse_args', 'ntwb_bbpress_reply_css_role' ); function ntwb_bbpress_reply_css_role() { $role = strtolower( bbp_get_user_display_role( bbp_get_reply_author_id( $reply_id ) ) ); $args['class'] = 'bbp-author-role bbp-author-role-' . $role; $args['before'] = ''; $args['after'] = ''; return $args; } add_filter('bbp_before_get_topic_author_role_parse_args', 'ntwb_bbpress_topic_css_role' ); function ntwb_bbpress_topic_css_role() { $role = strtolower( bbp_get_user_display_role( bbp_get_topic_author_id( $topic_id ) ) ); $args['class'] = 'bbp-author-role bbp-author-role-' . $role; $args['before'] = ''; $args['after'] = ''; return $args; }It grabs the topic or reply author role and adds another CSS class with prefix
bbp-role-so you now have a new set of CSS classes e.g.bbp-role-keymaster,bbp-role-moderator,bbp-role-participantetc that you can then add your custom CSS styles to.September 23, 2014 at 12:42 pm #152703In reply to: Topic background color depending on role
Robkk
Moderatorwell first i think you have to seperate the role from the author link and author avatar
then to do add this you have to either add conditionals like
if user is admin {or wrap the role in a class and add something like ($role)
will post later when i feel like going into templates and fiddling with them again.
-
AuthorSearch Results