Search Results for 'bbpress'
-
AuthorSearch Results
-
February 11, 2015 at 7:34 pm #158222
In reply to: How to customize TinyMCE toolbar button colors
Robin W
Moderatorput the following in your style.css
#bbpress-forums .button { background-color: blue; color: red; }February 11, 2015 at 7:29 pm #158220In reply to: Forum Width
kc88
ParticipantWhen I go to plugins – bbpress – edit, I just see a bunch of .php files.
February 11, 2015 at 7:22 pm #158217In reply to: Display Forum Roles above Member Avatar in Topics
Robin W
Moderatorwould need a function recoded to do this, as there is a function that does the avatar and role display
The function is bbp_reply_author_link
and it’s held in
bbpress\includes\replies\template.php
it has a filter you can call, and if you fine with php you should be able to hack the code to change the order
February 11, 2015 at 7:11 pm #158213In reply to: Forum Width
Robin W
Moderatoradd the following to your style.css
if you want it on the left but smaller
#bbpress-forums { width: 66% !important; }If you want it centered
#bbpress-forums { margin-left: auto !important; margin-right: auto !important; width: 66% !important; }Obviously play with the 66% to get whatever width you want
February 11, 2015 at 7:04 pm #158212In reply to: Add content under threads?
Robin W
ModeratorIf it is just one line then add the following to your functions file
function my_content () { $content = 'Hello this is some content after the topic' ; echo $content ; } add_action ('bbp_template_after_replies_loop', 'my_content' ) ;and change the text to what you want
If it is more than that, then you will need to detail exactly what you want so I can help you.
February 11, 2015 at 6:23 pm #158203In reply to: no topics found
Robin W
Moderatorand for
Also, would like to change that “oh bother” to something less “cutesy”.
add the following
//This function changes the text wherever it is quoted function change_translate_text( $translated_text ) { if ( $translated_text == 'Oh bother! No topics were found here!' ) { $translated_text = 'new text'; } return $translated_text; } add_filter( 'gettext', 'change_translate_text', 20 );to your functions file
February 11, 2015 at 5:30 pm #158194vikingpoker
ParticipantUsing bbpress 2.5.4, wordpress 4.1, buddypress 2.2 http://www.new.stonemagegames.com
I just started learning all of this so please be patient with me. How come when I make a new forum and it brings up the new page where I can place an image, the image does not appear on the forum page when I click on the forum? I do not understand why this is so complicated. All I want is a banner on the top of the forum page. That’s it. Nothing more… nothing less… I haven’t found any way to do this or make it work. I dont know the proper terminology to use when searching for answers so I am completely lost. I have watched youtube videos and read many posts. My head is about to explode!!!
I made a page and threw it up in the top menu that says forums. It has a picture on it. My forums are on the side bar and they work fine. Why would they even bother giving me a page to upload media when I create a new forum if it wont even display it? It doesn’t make sense.
So then I tried using widgetlogic. I have entered every code I can find and nothing makes it display on the page that I put the banner on. All that happens is that my forum list disappears from the sidebar.
Please tell me that i’m just an idiot and I am overlooking something stupid and simple. Please tell me that it is not this complicated just to have a banner on the top of my forum pages. Please HELP!!!
February 11, 2015 at 3:47 pm #158192In reply to: spam users are registering in my website
supremor
ParticipantIs there a way to add Math Captcha to the registration page? I have the plugin clicked for bbpress but it doesn’t show up when I go visit the said page.
February 11, 2015 at 1:36 pm #158181In reply to: URGENT – Nickname displays in address bar
format19
ParticipantHi Robin,
Thanks again for getting back, Not directed at you but that made me mad… >-|
I posted in the BuddyPress forum before posting here and they saidf it was a bbpress problem…. I have just had a week of various website problems and every one (except yourself) have only been interested in blaming someone else or someone elses plugin and in no way interested in helping fix the problem.Rant over…. 🙂
I tried your code in my functions.php but unfortunatly it broke the site and just kept telling me there was an unexpected & in line 127Line 127 was
” & # 039 ; display_name' => $info->user_login ) ; ”
'display_name' => $info->user_login );(ah I dont know why it keeps changing what im pasting)
Any idea what is wrong there?
Thanks
MarkFebruary 11, 2015 at 12:55 pm #158179In reply to: URGENT – Nickname displays in address bar
Robin W
Moderatorok, that is buddypress adding the profile fields, so you may need to take it up with them if the next bit doesn’t work !
However whilst doing something for someone else today, I found a function on the net, which I have amended (but not tested) below
function change_display_name( $user_id ) { $info = get_userdata( $user_id ); $args = array( 'ID' => $user_id, 'display_name' => $info->user_login ); wp_update_user( $args ); } add_action('user_register','change_display_name');then on registration it should set the display_name to the username
put this in your functions file
February 11, 2015 at 12:10 pm #158178In reply to: URGENT – Nickname displays in address bar
format19
ParticipantHi Robin,
I do understand I too have had other things to do.
I dont know what you mean by “the standard wordpress registration” do you mean the standard bbpress registration ?
I installed WordPress, I installed bbpress, I installed Buddy Press
The default registration page is now NOT the default wordpress it is the bbpress registration?
And by default the bbpress plugin ads “Profile Fields” of which there is a default set of “NAME” which you cant delete and IS required. I believe it is this field that is transferring to the “Nickname” field and causing the problem.https://www.dropbox.com/s/3mzrx6ry5stb7mh/deault%20Profle%20Field.jpg?dl=0
See the pic above
I have just run a test, i registered
Username : testing2
Name : Testing TwoHere is a screen shot of what registered
https://www.dropbox.com/s/lxu0vysxd3edams/deault%20Profle%20Field2.jpg?dl=0So the first and last name are definitely being filled out from that default Name field (dont really care about the first and last name, its the nickname thats the problem)
Any ideas? I cant go live with this site promising anonymity and then have the users name displayed in the address bar 😕
Thanks
MarkFebruary 11, 2015 at 9:29 am #158176In reply to: bbPress User Profile Manipulation
Robin W
Moderatorgood start, but that approach gets very complicated, as whilst you have added the fields, you have not saved them or said where to save them – that requires a whole bunch of other code !
Easier approach :
bbpress uses wordpress registration, so it’s easier to hook to that.
The whole bunch of code below is not my original work (but I do use it on one of my sites, so know it works) but if you have a play with it, you should be able to adapt it.
`//add code for adding first and last name to registration
//1. Add a new form element…
add_action(‘register_form’,’myplugin_register_form’);
function myplugin_register_form (){
$first_name = ( isset( $_POST[‘first_name’] ) ) ? $_POST[‘first_name’]: ”;
$last_name = ( isset( $_POST[‘last_name’] ) ) ? $_POST[‘last_name’]: ”;
?>
<p>
<label for=”first_name”><?php _e(‘First Name as people call you eg Dave’,’mydomain’) ?><br />
<input type=”text” name=”first_name” id=”first_name” class=”input” value=”<?php echo esc_attr(stripslashes($first_name)); ?>” size=”25″ /></label>
</p>
<p>
<label for=”last_name”><?php _e(‘Last Name’,’mydomain’) ?><br />
<input type=”text” name=”last_name” id=”last_name” class=”input” value=”<?php echo esc_attr(stripslashes($last_name)); ?>” size=”25″ /></label>
</p>
<?php
}//2. Add validation. In this case, we make sure first_name and last_name is required.
add_filter(‘registration_errors’, ‘myplugin_registration_errors’, 10, 3);
function myplugin_registration_errors ($errors, $sanitized_user_login, $user_email) {if ( empty( $_POST[‘first_name’] ) )
$errors->add( ‘first_name_error’, __(‘ERROR: You must include a first name.’,’mydomain’) );
if ( empty( $_POST[‘last_name’] ) )
$errors->add( ‘last_name_error’, __(‘ERROR: You must include a last name.’,’mydomain’) );return $errors;
}//3. Finally, save our extra registration user meta.
add_action(‘user_register’, ‘myplugin_user_register’);
function myplugin_user_register ($user_id) {
if ( isset( $_POST[‘first_name’] ) )
update_user_meta($user_id, ‘first_name’, $_POST[‘first_name’]);
if ( isset( $_POST[‘last_name’] ) )
update_user_meta($user_id, ‘last_name’, $_POST[‘last_name’]);
}in essence start by looking at the end – 3. save
and the line
update_user_meta($user_id, ‘first_name’, $_POST[‘first_name’]);
this is updating a user_meta field called ‘first_name’ for the user_id $user_id with the information entered in $_POST[‘first_name’]
So it is saving the first name the user enters in a user_meta field for that user called ‘first_name’
My plugin stores the data in a user_meta field called ‘rpi_label1’, so a find/replace to change ‘first_name’ to ‘rpi_label1’ is what is needed throughout the code. then some tidying up of things like the prompts and you should have it working.
Give it a go, and see how you get on. IF you get it working, the deal is you post the result back here, and I can nick it for the plugin (and give you a credit) !
If you don’t then come back with how you are getting on, and I’ll help – too tied up to do all the work myself !
This code by the way goes in your functions file see
February 11, 2015 at 8:40 am #158174Topic: Import problems with mybb
in forum Installationsammmmy
ParticipantHallo,
i have a woltlab Buning board and want to switch to bbpress.
At first, i imported the WBB to MyBB, because of the importer.Now i want to import the MyBB to bbPress, but the importer (if is works) import the replies as Topics…
I really hope you can help me and understand what my problem is 😉
February 11, 2015 at 7:37 am #158173In reply to: bbPress User Profile Manipulation
elucidateTX
ParticipantThought you said you hated code?!! 🙂
Have you a specific registration template in mind, does your theme come with something?
Ha no I don’t hate code! I’m just not any good at it yet. I’m using the Genesis Enterprise Pro theme.
Here’s what I tried:
1. Created a page and dropped the [bbp-register] shortcode into it.
2. Copied the form-user-register.php file into the bbpress directory in my theme folder
3. I added this form of code for each of the four rpi_label classes:`<div class=”rpi_label1″>
<label for=”rpi_label1″><?php _e( ‘Class’, ‘bbpress’ ); ?>: </label>
<input type=”text” name=”rpi_label1″ value=”<?php bbp_sanitize_val( ‘rpi_label1’ ); ?>” size=”20″ id=”rpi_label1″ tabindex=”<?php bbp_tab_index(); ?>” />
</div>
…for this one it’s an input field for the Class of my userAm I on the right track? The data entered doesn’t seem to be making it into the user database. After filling out the registration form for a test user…then going to edit the user…the data isn’t listed.
Thanks!
February 11, 2015 at 6:44 am #158167Topic: Stick (To Front) defaults to Super Sticky?
in forum Troubleshootingxxretroxx
ParticipantHi,
I am new to BBPress so please be gentle 🙂
When I want to make a post sticky in one forum and click on the ‘Stick (To Front)’ option at the bottom of post it defaults to making it super sticky and therefore appears in every forum. Is there anyway to have a button that just makes the post sticky instead of super sticky?
[IMG]http://i57.tinypic.com/epj6dd.jpg[/IMG]
February 11, 2015 at 5:12 am #158162In reply to: Subscription email notifications not working
milenushka
ParticipantHi @robin-w
My email in settings is set to my site’s email , and I tested it with the plugin you suggested too, it says its all good:
This test email proves that your WordPress installation at “Mysite” can send emails. Sent: Wed, 11 Feb 2015 08:27:40 +0000
Subscribers also receive email notifications from buddypress- if somebody replies to their comment, or tags them in a post – or a bbpress thread.
Just no email at all if one is subscribed to the forum, topic or replies.
I am not using the mandrill service (wpMandrill), so this solution I think- does not apply to me https://bbpress.org/forums/topic/problem-with-the-default-do-not-reply-email-address/
and my server is bluehost.The forum is a big part of my site’s community life , so the fact that there are no email notifications is pretty upsetting.
I searched this forum and for days, really hope there is a simple solution.
P.s I also tested it without any plugins but bbpress, default theme and reinstalled bbpress. Still no email are being received.
Thank you
@netweb I would really appreciate if you could take a look at this thread too.there is another one that seems unresolved here
February 11, 2015 at 4:53 am #158160In reply to: Significant trouble with a stubborn sidebar
Robin W
Moderatorhmm…. bbpress plays well with wordpress, so that should not happen.
Usually a 500 error in wordpress a coding issue.
Do you only get the 500mn errors when you btry and do something wordpressy?
and when you get a 500 error, click the refresh on your browser, and usually it comes up with the specific error that is occurring – come back with that.
February 11, 2015 at 12:56 am #158155In reply to: Significant trouble with a stubborn sidebar
BrendenW
ParticipantWill do! Although this is quickly becoming more trouble than it’s worth haha. This whole 500 internal server error is becoming a nightmare. The great almighty “They” (the website creator and hosting provider) determined it was a problem with exceeding the .php memory limit. So they increased the memory limit, which solved the problem… Until I reactivate any of the bbPress plugins then KA-BLOOEY the 500 error messages come back after a minute of having them reactivated.
It’s weird though, I had the forum plugins installed for a week before this problem raised it’s ugly head. So I currently have the plugins disabled (so that my website can still function for potential customers). Hopefully *crosses fingers* I will work out a way around the whole thing and get it up and running again; there was way to many groups, categories and forums to redo. I’d end up pulling my (already limited) hair out.
Cheers Robin, Will let you know the outcome if I ever get the blasted thing to work again haha.
February 10, 2015 at 11:17 pm #158153In reply to: Whitelisting users?
Doug Smith
ParticipantAh, I didn’t realize it was Akismet doing that rather than bbPress itself.
There was a plugin for the old bbPress and WordPress that disabled Akismet checking for certain user roles. I’ll have to see if I can adapt the WordPress part of that to work for the new bbPress posting instead of just WordPress comments.
Here is the old plugin for reference of anyone following along.
https://plugins-svn.bbpress.org/skip-akismet/trunk/skip-akismet.phpAnd here is a modified version that disabled checking for users who have been registered for a certain time.
https://github.com/Gamua/bbPress/blob/master/my-plugins/skip-akismet.phpFebruary 10, 2015 at 8:15 pm #158151In reply to: Subscription email notifications not working
KatieKat
ParticipantHi Robin,
thanks for the response it is much appreciated.I have now fixed this for topic subscriptions by following the support thread below and email notifications are being received. However forum subscription notifications are still not working. Would you know why it is working for topics but not forums?
“I have just added a patch, you need r5409 applied before adding 2618.4.diff”Kind regards
KatieKat
February 10, 2015 at 6:39 pm #158149In reply to: Users Answer not in profile
Robin W
Moderatorok, so
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
find
wp-content/plugins/bbpress/templates/default/bbpress/user-details.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/user-details.phpbbPress will now use this template instead of the original
Now edit that file so that you add a new line between line 16 & 17 which currently read
<div id="bbp-single-user-details"> <div id="bbp-user-avatar">so add
<h1> <?php bbp_displayed_user_field( 'display_name' ); ?> </h1>after this line so that you end up with
<div id="bbp-single-user-details"> <h1> <?php bbp_displayed_user_field( 'display_name' ); ?> </h1> <div id="bbp-user-avatar">as the three lines.
and save
It should now display
February 10, 2015 at 6:20 pm #158146In reply to: Subscription email notifications not working
Robin W
ModeratorEmails not working can be caused by many factors. Try working through the following :
1. Spam filters
You should be aware that many spam filters strip messages that do not come from the correct address. So if your site is mysite.com and your email address in wordpress settings>general is fred@gmail.com then it is likely that messages will be dumped in transit. You need to set up email to come from your site eg fred@mysite.com, your hosting provider can help if needed.
2. Just bbpress?
Then you need to see if this is wordpress wide or just bbpress.
Try https://wordpress.org/plugins/check-email/then come back
February 10, 2015 at 6:02 pm #158139In reply to: Significant trouble with a stubborn sidebar
BrendenW
ParticipantAh! The UK would make more sense given the time that we were discussing it. Our troubleshooting of this has came to a brief, but sudden stop. My page Is riddled with “500 internal server errors” so I’m going to have to sort that out before I can try your above suggestion.
On the positive side, I don’t think it is a plugin error related to bbPress plugins because I have deactivated the 3 bbPress plugins and the errors are still there.
Oh well I’ll try and sort out this error and then try your suggestion and let you know how it goes.
Cheers,
Brenden.
February 10, 2015 at 4:45 pm #158138In reply to: Oh Brother…
markf1
ParticipantI guess I am happy without having the bbPress.php in my child theme. You can see the cose for my bbPress.php file in one of the earlier posts in this thread.
I would be curious to know what is wrong with it if that is something you can easily identify.
thanks again for your help!
February 10, 2015 at 3:13 pm #158136In reply to: Oh Brother…
Robin W
Moderatorok, so do you need help to correct the bbpress.php, or are you happy without it?
-
AuthorSearch Results