Search Results for 'code'
-
Search Results
-
I setup a server on a non standard port that is receiving requests from a reverse proxy. This setting is causing the bhp nonce check fail.
This is function bbp_verify_nonce_request in bbp-common-functions.php
I’m not a PHP Programmer but it looks like this is caused byif ( empty( $result ) || empty( $action ) || ( strpos( $requested_url, $home_url ) !== 0 )Here the system tries to compare request_url and home url, however this is not identical in a reverse proxy setting, because the request is going to the internal server, while the home_url contains the url of the external web server.
Does this make sense?
To verify the theory I just removed the comparison of the URL’s like this:if ( empty( $result ) || empty( $action ) )Now it works, but I hope that I did not open a security issue.
Can I kindly ask for advice on how to better set the system to avoid the issue?
Thanks!Evening All
The bbpress plugin for wordpress is amazing! Big thanks to the guys who put it together.
I have a small issue that I am sure is more a newbie thing rather than anything big.
My forums are showing as post on my blog site rather than using the ‘page template’. I can use the shortcode to make certain section initialy show on a page however when ever you click on a topic it takes you back to a post template (with all the post written by, tags etc etc).
Is there anyway to make the plugin use a page template rather than a post?
I am using the Arras Theme at the moment (which could be part of the problem)
Any help would be fabThanks
JohnJack
We are adding forums to an existing site rather than having a site that is 100% forums. I already have a breadcrumb set up for the main site but the forums don’t show up in them. Since the bbPress breadcrumb functions are significantly more complex than the simple breadcrumbs I currently use I decided to use bbPress’ crumbs in place of the main one. I have successfully modified the function to include category and single page data in the crumbs (without having “forums” as the base) but the blog root disappears. Help? Here’s what I added to ** Current Text **
// Category Page if (is_category() || is_single()) { the_category(' » '); if (is_single()) { echo " » "; the_title(); }That omitted the blog root from the crumbs, so I tried this, which didn’t work either.
if (is_category() || is_single()) { $pre_current_text[] = '<a href="' . trailingslashit( home_url() ) . '">Front Row</a>' . the_category(' » '); if (is_single()) { echo " » "; the_title(); }I’m not really sure what I’m doing here. I’m no function whiz.
Is there any shortcode that would allow me to display a forum from one of my other sites on a multisite installation?
I was hoping to display the latest topics of a forum from site “X” on site “Y” because they share interests. I am hoping to do that with shortcode and not a theme change because I am using the same theme across all of my sites.
Hello,
I have a dev version of my website so sorry but you have to enter the password and the username: dev/dev1234
My problem is with the profile page, if you check it you can see the header with the AMS name not fits perfectly. So I want to change. If I change it the header is change every post page.
If you check the css classes you can see the following: post-1693 post type-post status-publish format-standard hentry category-vice-city tag-evfordulo tag-focimdal
I don’t know why but the profile page get the latest posts css classes. Why?
The posts url: http://dev.codenamegta.hu/2012/majamihiroz-vice-city-focimdala/
The profile url: http://dev.codenamegta.hu/forumok/tagok/ams/
How can I disable the redirection after the registration? It’s very annoying if the user the a login registration form with different design.
Thank you very much!
Just reporting a problem..
After i activated the Topic Lead option i can’t use the Edit button anymore.
add_filter( 'bbp_show_lead_topic', '__return_true' );
Replies i can still edit front-end, but not the Lead Topic anymore.
What can i do to overwrite a bbPress Core function and develop my own function..
Let say i want to overwrite the default bbPress breadcrumb tag.
I found the Core code inside a Core-template and i pasted this code inside a new PHP document changed all the bbp_ names of all functions to bbp_shmoo_ > Saved it.
Loaded this new file from the inc. folder into my themes functions.php with the require_once tag..
Change the PHP code inside my forum template from bbp_breadcrumb(); to bbp_shmoo_breadcrumb(); but this doesn’t work, why does it break my theme ?
I need a before_link and after_link array.
This is what a breadcrumb looks like, by default made with a List because it’s a navigation.
http://twitter.github.com/bootstrap/components.html