Search Results for 'code'
-
Search Results
-
Hi there,
I’ve spent a while searching the forums/web regarding custom views, but am a little bit stumped at the moment. Some of the only reference that I’ve found is a bit outdated (though it still seems to work) and incomplete.
I’d like to create 2 custom views:
- Display a particular user’s favorites (let’s say user_id is hard-coded to 2)
- Display a particular user’s subscribed topics (again, let’s say user_id is hard-coded to 2)
Any points in the right direction? Ideas for resources on the topic of custom views?
Hi there,
I’m working with a custom profile setup (consolidating the profiles from multiple plugins) and and wondering how I can redirect a bbpress user to this central profile when they try to access their forum profile. In other words, how do I make it so that someone who tries to visit:
http://www.example.com/forums/user/johnsmith
is redirected to:
http://www.example.com/profile
I saw a very old post in this forum that discussed this topic, and they suggested using the following method:
add_action('bb_init', 'profile_redirect'); function profile_redirect() { if (is_bb_profile() && $_GET['tab'] != 'edit' && $_GET['tab'] != 'favorites') { $user = bb_get_user($_GET['id']); if ($user) wp_redirect("http://www.example.com/member/" . $user->user_nicename); } }Since it’s so old, it doesn’t work anymore, and honestly, what I’d like to do is slightly different. I’d like to redirect a user away from the profile page (regardless of which section they’re on–whether it be favorites, subscriptions, or edit profile) as long as:
- They are logged in
- They are on their ownprofile page
How could I do that with the current version of WordPress?
Hey All,
I am new to this plugin and I am trying to adapt it to my website.
I am trying to place the forum on this page: http://atlantacraftbeer.com/beer-exchange/
but it is not showing up like it does on the dedicated page: http://atlantacraftbeer.com/forums/forum/atlanta-beer-exchange/
Is there a way to update my shortcode to have it appear on the page I would like it to?
ALSO – if you notice the colors and some of the spacing do not really work with my theme. Is there a way I can update the colors and spacing (especially for the register page) using the CSS?
Been looking into this for a few days, and I can’t find a solution.
By default, bbpress offers two solutions for the index of a forum page:
- Using the default settings, and a customizable ‘forum root’ available in the settings panel
- Using a page with a shortcode to implement the section that you want
However, when you use the shortcode solution, there are two ‘forum root’ urls. The one that is associated with the page you want to use, and the one generated with the ‘forum root’ url.
For example, let’s say that I created the forum using the shortcode on site.com/discuss, and I need to use custom fields to customize the appearance of that page with a header, a hero graphic, and some descriptive text. I can style it, and it looks perfect. However, the site.com/forums url is still present in the forum topic urls (site.com/forums/post, not site.com/disucss/post), and as it’s own page without the custom styling.
While I could customize the page template for bbpress on site.com/forums, there are no methods for displaying fields defined by the client/user in the dashboard on that template, completely eliminating the purpose of using the custom page & shortcode option.
Are there any solutions for this or am I stuck? I’ve yet to find any solutions on this.