Forum Replies Created
-
In reply to: bbPress profile page add custom page menu
sorry I am confused …I can give you code to go to any url, but unless you create some content for that url, it will 404.
what are you expecting it to do when you click that link ?
In reply to: bbPress profile page add custom page menuadd_action( 'bbp_template_after_user_details_menu_items', 'rew_add_item' ); function rew_add_item () { ?> <ul> <li class="pictures"> <span class="pictures-link"> <?php $username = bbp_get_user_nicename(bbp_get_displayed_user_id()); echo '<a href="http://localhost/projects/wpdev2/forums/users/'.$username.'/my-stories/">Click to show picture</a>' ; ?> </span> </li> </ul> <?php }In reply to: bbPress profile page add custom page menusorry, I don’t fully understand – the code will take you to any url you want.
do you mean user specific?
or if you got it working in buddypress what code did you use there?
or maybe describe what you want to achieve?
In reply to: bbPress profile page add custom page menuadd_action( 'bbp_template_after_user_details_menu_items', 'rew_add_item' ); function rew_add_item () { ?> <ul> <li class="pictures"> <span class="pictures-link"> <a href="https://prnt.sc/wcemvm">Click to show picture</a> </span> </li> </ul> <?php }In reply to: bbPress profile page add custom page menuok, so you could use the hook in the standard template to add the item in a plugin
<?php do_action( 'bbp_template_after_user_details_menu_items' ); ?>In reply to: Login Issues – Login Not WorkingI use w3 total cache on a couple of forum sites
In reply to: bbPress profile page add custom page menuif you mean amend the ‘topics started, relies created’ etc, menu, then this is in the template
\templates\default\bbpress\user-details.php which you can amend and put in a bbpress directory in your child theme
eg…
find
wp-content/plugins/bbpress/templates/default/bbpress/user-details.phptransfer this to your pc and edit to what you want
and save
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
Then transfer the file you saved above 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
sorry, you have the topic form at the top, or the ‘create new topic’ button at the top ?
In reply to: Subscriptions versus my subscribed topicsok… so I know how to get to
https://www.askwoody.com/forums/users/sb/subscriptions/
but how do you get to https://www.askwoody.com/forums/view/my-subscribed-topics/
hmmm – do you have the form showing at the bottom of the page ?
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
add_action ( 'bbp_template_before_single_forum', 'rew_create_new_topic' ) ; function rew_create_new_topic () { $text='Create New Topic' ; if ( bbp_current_user_can_access_create_topic_form() && !bbp_is_forum_category() ) { $href = '#new-post' ; echo '<div class="rew-new-topic"> <a href ="'.$href.'">'.$text.'</a></div>' ; } }but you’ll have to work out how to style it yourself I’m afraid !!
In reply to: Login Issues – Login Not Workingin the video there is a popup on the top right of the screen which says something, but the video does not show the whole screen, so I cannot read it, but it appears to be an error message ?
In reply to: Login Issues – Login Not Workingbbpress just uses wordpress login, so
1. how are you creating the bbpress account ?
2. what does ‘I am not able to login’ mean? are you not able to access any of the site, or just the forums?not precisely what you want, but my style pack plugin has a ‘create new topic’ button which takes then to the form on that page, so achieves most of what you are after
once activated go to
dashboard>settings>bbp style pack>buttons
In reply to: Random Replies being marked Pending🙂 🙂
In reply to: Random Replies being marked PendingYou are right to be wary of ‘old’ plugins, and not just install without thinking about it, but this one just hooks to stable bbpress code elements.
In reply to: Random Replies being marked PendingIt still works, many plugins do not have active support, they are written and put out there for others to use if they find them helpful.
In reply to: Subscriptions versus my subscribed topicsok, not something I’ve played with, as far as I know the bbpress subscriptions only shows subscriptions to bbpress forums and topics.
How are you enabling site subscriptions – is your site wordpess.com or are you using say Jetpack?
In reply to: Subscriptions versus my subscribed topicsand what do you mean by ‘subscriptions from the main blog.’ ?
In reply to: Subscriptions versus my subscribed topicsIn reply to: Modify login/logout/registernot really used any registration plugins so can’t really help further beyond
10 Best WordPress User Registration Plugins to Power Up Your Site
In reply to: BBPRESS Last Post not updatingwhich version of bbpress?
In reply to: bbpress log in processyou should note that under the code above, if in
dashboard>users>edit user
you set the forum role to ‘no role for these forums’ it will simply add them back as participant when they next log in
In reply to: Subscriptions versus my subscribed topicsso what is the difference you are seeing ?
In reply to: bbpress log in processyou are right ! Looks like it change on 2.6.
It now does it on register
so to change back to how it used to work
in
dashboard>settings>forums untick Automatically give registered visitors…etc
Then put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
add_action('wp_login', 'rew_add_role'); function 'rew_add_role' () { $user_id = $user->ID ; $role = bbp_get_user_role( $user_id ); if (empty($role)) { bbp_set_user_role( $user_id, 'bbp_participant' ); } }This code is untested, but should work, if not come back