Search Results for 'code'
-
Search Results
-
Hi there,
I’m helping a client resolve an issue with their bbPress Activity Stream. Their website has many online classes that are kept separate from each other, and their wish is to have the Activity Stream only show activity that is relevant to the forum a user has access to, and keep info from other forums private (they are using MemberMouse to restrict access). I did some research on here and on Google and found several threads that talked about similar issues, but wasn’t able to find any solutions.
The site uses the latest version of WP (4.4.2) and bbPress (2.5.8) and is located at http://www.themysticdreamacademy.com/
I thought the bbPress Activity Stream Shortcode Plugin would do the job, so I installed that and did a quick test, but I’m getting this error: Fatal error: Call to undefined function bp_has_activities() in /home/myst1cadm1n/public_html/wp-content/plugins/bp-activity-shortcode/bp-activity-as-shortcode.php on line 102
If that issue could be resolved, we may be all set since we can set up shortcodes to display different streams for different forums. Otherwise, we’d like to know if there’s a way to limit the Activity Stream to only show content the user has access to.
Finally, my client is also concerned about the default forums page, which shows a listing of recent topics from all forums and is visible to anyone who finds it: http://www.themysticdreamacademy.com/forums/ Users who aren’t logged in aren’t able to click any of the links, but they are still concerned about privacy. Is it possible to make this page private so only logged-in admins can see it? Or can it be removed somehow?
Thanks for your time,
RoryIm a little confused as to how to accomplish this. I have set up and styled a private forum. When visitors go to the forum, I would like there to be a login screen if they are not logged in. Currently, if I am not logged in I get a “page not found” error. I get the same page error if a user logs out. Im sure there’s a simple way to accomplish this, but I cannot figure it out.
Ive tried creating a login page using a shortcode, and it works fine…but if I go this route, how do I make it so that it automatically redirects the user to the forum once they are logged in?
Any suggestions?
Topic: Display only the @username
I am trying to remove the author’s real name and only display the @ username.
With the code I found here, I could add the username below the name. But how can I remove the real name and only display the @ username?
I am trying to debug an intermittent 404 issue that has been traced to BBPress. I’ve read several other reports about intermittent 404s and BBPress, but none of them are quite applicable to my situation, so I’m creating a new support topic.
The main page of my website will intermittently load with a 404.The intermittent access issue appears to last between 10 seconds and 3 minutes at a time. When this happens, it’s down for everyone trying to access the site (confirmed while on the phone with hosting service tech support). Other pages on the site appear to load correctly during this time window. Hitting refresh will eventually successfully reload the page correctly.
I am using Query Monitor to examine the rewrite rules. Here are the results when the page is loading incorrectly:
Request account-2/conscious-business-design-dashboard Matched Rule [^/]+/([^/]+)/?$ Matched Query attachment=conscious-business-design-dashboard Query String attachment=conscious-business-design-dashboard Query Vars attachment conscious-business-design-dashboard comments_per_page 50 name conscious-business-design-dashboard order DESC posts_per_page 10 update_post_meta_cache 1 update_post_term_cache 1Here are the results when the page is loading correctly:
Request account-2/conscious-business-design-dashboard Matched Rule (.?.+?)(?:/([0-9]+))?/?$ Matched Query pagename=account-2%2Fconscious-business-design-dashboard &page= Query String pagename=account-2%2Fconscious-business-design-dashboard Query Vars comments_per_page 50 name conscious-business-design-dashboard order DESC pagename conscious-business-design-dashboard posts_per_page 10 update_post_meta_cache 1 update_post_term_cache 1 Queried Object Single Page: #225 (WP_Post)Here is the most relevant query that is being run during the 404:
SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND wp_posts.post_name = 'conscious-business-design-dashboard' AND wp_posts.post_type = 'attachment' ORDER BY wp_posts.post_date DESCHere is the query run when the page successfully loads:
SELECT wp_posts.* FROM wp_posts WHERE 1=1 AND (wp_posts.ID = '225') AND wp_posts.post_type = 'page' ORDER BY wp_posts.post_date DESCWhen I look at the BBPress code, I can identify the rewrite rules here:
// Rewrite rule matches used repeatedly below $root_rule = '/([^/]+)/?$'; $feed_rule = '/([^/]+)/' . $feed_slug . '/?$'; $edit_rule = '/([^/]+)/' . $edit_slug . '/?$'; $paged_rule = '/([^/]+)/' . $paged_slug . '/?([0-9]{1,})/?$';However, all slugs are correctly set in the database, and I can’t figure out how they might be getting corrupted.
Any suggestions for further troubleshooting?
