it didnt work for awhile on localhost , then i editing the href link to make it work.
use this
// Filter wp_nav_menu() to add profile link
add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' );
function my_nav_menu_profile_link($menu) {
if (!is_user_logged_in())
return $menu;
else
$current_user = wp_get_current_user();
$user=$current_user->user_login ;
$profilelink = '<li><a href="http://www.astronomertalk.com/forums/users/' . $user . '/edit">Edit Profile</a></li>';
$menu = $menu . $profilelink;
return $menu;
}
it works now??
yes
ill test out that profile link ,
if you think its social login , deactivate and see if robins profile link code works.
still not working
im sure its just positioning it with css , but hey it doesnt have to be floated right, not a big deal if it is or not.
will need that code, would appreciate it 🙂
i just achieved this today. But it required a lot of work with my theme.
Darn, tell me any steps if you remember
TY
JB
works not, I just did not have the <?php in my site.
it works now??
So I just added the code from Robin W’s link,
however it does not work,
ill test out that profile link ,
if you think its social login , deactivate and see if robins profile link code works.
Plus, I would prefer it to stay all the way to the right.
im sure its just positioning it with css , but hey it doesnt have to be floated right, not a big deal if it is or not.
Plus, preferably, look more like this sites, with the username and photo of the person logged in, in the top right.
i just achieved this today. But it required a lot of work with my theme.
So I just added the code from Robin W’s link,
however it does not work,
Layout and functionality – Examples you can use
I get the edit profile button for logged in users, however, it does not link to their profile. Could it be that I am using social login.?
Plus, I would prefer it to stay all the way to the right. Plus, preferably, look more like this sites, with the username and photo of the person logged in, in the top right.
JB
Nice!
works not, I just did not have the <?php in my site.
My goal is this: Attach BadgeOS rewards to users using specific words within forum posts;
I feel like that is going to be a paid project
http://jobs.wordpress.net/
#1 outsourcing service for WordPress
Thanks a lot! Worked for me. I couldn’t find the code in bbpress to change the forum headings but your code worked right away.
My goal is this: Attach BadgeOS rewards to users using specific words within forum posts; however I can’t find where I might be able to inject the code to search through the post text.
Please be kind, any PHP knowledge I hold is self taught and filled with huge gaps. I know I’ll need to use “strpos” with the post text and an IF statement, but I’m just lost as to where in the plugin/theme code I need to use it.
Thank you!
was it just a link or using the img button ??
example with img button

in my child theme i have one functions.php
this is the entire code.
<?php
/* Add custom functions below */
add_filter('show_admin_bar', '__return_false');
It wont work on mine 🙁
Be clear, where did you add his code? Did you make a new functions file?
TY
JB
i created a child theme with mesocolumn
i added robins code and it worked fine.
even when i switched to a different role
Uhh?? Where did I loose you? … and where is stpehen Edgar?
I do not have a functions file in my child theme. I tried creating a blank file and calling it functions.php and the code just showed up on the top of my page. Then I tried just adding that code you gave me to the mesocolumn functions file and once again the code just screwed up and showed up at the top of my page under the admin bar.
So, once again, what should I do from here?
Ohh and there is no white space.
Thank You,
JB
should be something like
add_filter ('bbp_get_title_max_length','change_title') ;
Function change_title ($default) {
$default=60 ;
Return $default ;
}
try this in your functions file – if not come back, but suppers ready and I haven’t time to test!
ok, I will delete it, but then, where do I put the code?
Hi Luisc9,
I dont have an anwer for you as I have taken BBPress down for the moment. All I can say is, I have a coder who charges me $15 an hour to fix this kind of stuff. Got him from Elance and he is good and trustworthy. For people who aren’t all that good at fixing this type of stuff, its worth it – well for me it is anyway. Hope someone replies to you soon.
Hi,
I have finally converted a large forum over to bbPress from Vbulletin,
The bbPress forum page and threads etc are quite slow – Im just using bbPress + BuddyPress with Twenty Twelve theme at the moment while I code my forum theme.
The bbPress section of the site is slow – there is a few seconds delay when clicking a thread or onto the forum page itself so guessing this is due to the size – 850k replies, 61k topics and 21k users.
I wondered if there were any tweaks or recommendations for speeding up the site, Im on my own dedicated server and Vbulletin is blazing fast on it.
I saw this thread – http://bbpress.org/forums/topic/slow-to-post-forum-topics-and-replies-on-large-forum/ where it mentioned a speed increase in 2.6 for larger forums, any news on that ? Or anything I can try now to test it out ?
I read that hidden forums might make a difference so I unhid the forum but no speed increase.
the error code is saying that you have whitespace in
wp-content/themes/awesome/functions.php:1
If this is a blank file, then delete it.
If not, then it has a problem on line 1
yep, all the same information and still coming up with:
WordPress database error: [Table 'db502829828.node' doesn't exist]
SELECT convert(node.node_id USING "utf8") AS node_id,convert(node.parent_node_id USING "utf8") AS parent_node_id,convert(forum.discussion_count USING "utf8") AS discussion_count,convert(forum.message_count USING "utf8") AS message_count,convert(node.title USING "utf8") AS title,convert(node.node_name USING "utf8") AS node_name,convert(node.description USING "utf8") AS description,convert(node.display_order USING "utf8") AS display_order,convert(node.node_type_id USING "utf8") AS node_type_id,convert(forum.allow_posting USING "utf8") AS allow_posting FROM node AS node LEFT JOIN forum AS forum USING (node_id) WHERE node.node_type_id = "Category" OR node.node_type_id = "Forum" LIMIT 0, 100
I tried changing permalinks but the forums won’t display at all. All that shows is the forum short code.
Verify you have used the correct database values from your Xenforo config.php file, it should be in your Xenforo /library folder.
e.g.
$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = 'my_db_user_name';
$config['db']['password'] = 'my_db_user_password';
$config['db']['dbname'] = 'my_db_name';
1- You would need a ‘membership’ plugin that supports bbPress, there are a few in the WordPress plugin https://wordpress.org/plugins/
2- You can fully customize bbPress to match any theme or custom design you want, see the docs for more info. https://codex.bbpress.org/
thank you so much Gautam it worked for me .
bbpress/includes/core/filters.php : added :
add_filter( 'bbp_get_reply_content', 'bbp_rel_nofollow' );
add_filter( 'bbp_get_topic_content', 'bbp_rel_nofollow' );
bbPress does not have pingbacks enabled for it’s post types, they are explicitly disabled.
Could you be more specific and post a link to some examples and I’ll take a look.
* Is it happening on all three bbPress custom post types?
* forum, topic and reply are the tree post types and a link to one of each that this is happening with will allow me to investigate why.
* I can’t think of a plugin for bbPress that changes the ping status of the custom post types but just in case can you disable all your plugins except bbPress and create a new forum, a topic in that forum and a reply to that topic and then create a WordPress post with a link to each of the three and see if you see any pingbacks.
I’ve just tested this with bbPress 2.5.4 and Twenty Fourteen with no other active plugins:
* Created a page /123 and added the [bbp-forum-form] shortcode
* Opened that page /123
* Entered 123 as the forum title and description
* Selected forum for the forum type
* Selected open for the forum status
* Selected Public for forum visibility
* Selected root for parent forum (Root is another forum I already had setup)
* Clicked submit and the forum is created and I am redirected to create a new topic in that forum e.g. /forums/forum/root/123/