You are now logged out.
Forum Replies Created
-
Here’s what I have in my functions.php file to keep people who shouldn’t have access to WP admin pages.
`
function no_admin_access()
{
if ( !current_user_can( ‘publish_pages’ ) ) {
wp_redirect( home_url() );
die();
}
}
add_action( ‘admin_init’, ‘no_admin_access’, 1 );
`Here’s what I have in my functions.php file to keep people who shouldn’t have access to WP admin pages.
`
function no_admin_access()
{
if ( !current_user_can( ‘publish_pages’ ) ) {
wp_redirect( home_url() );
die();
}
}
add_action( ‘admin_init’, ‘no_admin_access’, 1 );
`I can confirm that the fix identified by @premitheme for MAMP (free) installations is to switch over to port 80. You may also need to update the WordPress and site address under General Settings if 8888 is part of your previous installation.
@netweb and @johnjamesjacoby using the following environment:
MAMP 2.1.1
PHP 5.4.4I’m not using the Pro version.
(in regards to the “Are you sure…” error message issue)
I’m having the same error message (Are you sure you wanted to do that?) as @premitheme is having on a local/MAMP server.
Optionally you can restrict access through functions.php using a function with !current_user_can( ‘publish_pages’ ) and add_action( ‘admin_init’, ‘no_admin_access’, 1 )
Let’s try this again…
Open up the following PHP document in the bbPress plugin, found at -
bbpress/templates/default/bbpress/user-profile.php
Using the AIM field as an example, add the following -
`
`Now you probably shouldn’t alter these files, as the next time bbPress is updated, the update will overwrite this. You’ll need to make a copy of the file under your theme directory. So it should look like this -
yourTheme/bbpress/user-profile.php
[solution removed because I have no clue on how to provide code examples]
This seems like a fairly easy plugin to make and I look forward to seeing it become reality.
Perhaps this is what you require – bbPress Unread Posts
So here’s my solution.
1.) Create a page template.
2.) Using the power of current_user_can(), we may utilize the bbPress’s user roles.
3.) Insert the Topic Index shortcode with the do_shortcode() function inside the user role wrapper.
Thanks for the update. It works great.
Seriously, thanks for these plugins. They’ve filled a role that I’ve been looking for a while.
Thank you for these wonderful plugins and kudos to destroflyer.
I have a quick bug report about bbPress Direct Quote in that the citation link is for jmonkeyengine. Obviously it should be pulling the data from our sites.
Yes, certainly, bbPress works well in responsive themes. An example is the Skeleton theme: http://demos.simplethemes.com/skeleton/
I’m having similar problems and still haven’t found the root cause. What I’m using in the mean time is redirect plugin:
What happened to the 2.0.3 plugin in the WordPress plugin directory?
I’ve found the following works well in functions.php
function disable_our_feeds() {wp_redirect(get_option('siteurl'));}add_action('bbp_feed', 'disable_our_feeds', 1);I too have similar issues and started using Peter’s Login Redirect plugin to remedy the situation until I can find the problem and fix it.