Search Results for 'code'
-
Search Results
-
Hi
I have a wordpress(3.4.1) installation and I don’t use standard WordPress
Authentication. I have my own login page(mylogin.php) where I capture the
userid/password and then compare with values in my own user table.Now I am using BBPress plugin(2.2.2). I have created a page(askanexpert) in
wordpress and inside that page I have put the BBPress shortcode [bbp-forum-index].
Now from frontend when the user does login and go to forum(http://www.domainname.com/askanaexpert),
bbpress forum is visible and all the topics are visible, but forum shows the message that“You must be logged in to create new topics.”
I think it happens because BBPress is perhaps looking for some authenticated cookie which
was not created due to my custom authentication.Is there a way to create the cookie from my custom authentication page, which
bbpress will understand ?I can not get rid of my custom authentication. Is there a way to fix it, so that when user is
logged in to wordpress site he/she can use the forum as regular logged in user without login again?I am fine to do some programming, but not sure which way to go.
Topic: Proper method to dequeue css
I’m looking for the correct method to dequeue bbpress css from the plugin directory and also that of the css folder within the theme.
The entire site is much larger than just the forum and I really don’t want to call the css for every page as most people don’t have a need to access the forums. I’ll then enqueue the css with is_bbpress combined with is_page(array for the 2 pages that contain shortcodes.
I need to make sure that it dequeues from both locations as there is a custom css being used.
Thanks in advance for the help!
I am currently manipulating with the function that was posted on forums a few days ago and I can’t find a way round a funny issue.
I erased homepape as a first part of my breadcrumb.
There are two options right now and neither are working for me. I will present it underneath (bold means clickable). I either get this
forum>forum | forum>category1 | forum>category1>topic
or this:
forum | forum | forum>category1I want:
forum | forum>category1 | forum>category1>topic
or this:
(nothing) | forum | forum>category1Any ideas?
The function I’m trying to get to work is diplayed below
function mycustom_breadcrumb_options() {
// Home - default = true
$args['include_home'] = false;
// Forum root - default = true
$args['include_root'] = true;
// Current - default = true
$args['include_current'] = true;return $args;
}
The shortcode would allow forum owners to display the category and it’s forums with their descriptions, number of topics, posts etc. on a page.
If we had this shortcode, we could set up bbPress forums to look like phpbb3 – with all categories and their forums on one page – which is what I’ve seen a lot of people asking for.
Hello. I’d like to allow anonymous posting, but disable it in specific forums. Here’s what I have so far:
function specific_anonymous_bbp() {
if (is_post('XXX')) {
return apply_filters( 'bbp_allow_anonymous', 0)
}
}
add_action( 'plugins_loaded' , 'specific_anonymous_bbp' );I’ve tried about a thousand different combinations (the above being the latest) with no luck. I found the bbp_allow_anonymous hook looking through the core files, but I’m not sure how to disallow it for specific posts. I also tried making form-anonymous.php conditional based on post ID, which worked, but caused other issues. Any ideas?
Morning all,
I’m just in the process of doing a fresh wordpress + buddypress install.
All is going well for the most part with the exception of the global forums.
So I enabled Group forums, and thats going fine.
I then enabled Global forums and it ran through what seemed like a bbPress install.
All fine (with the exception of bbPress trying to use the same slug ‘forums’, but that was an easy one.
Now: To create a dedicated page/tab for the global forums is there a short-code I can simply add to a new page?
Also, nothing from the global forums seem to be appearing in the members activity stream. Is that normal?Cheers
JaseThe forums page is blank
badgerakpsi.org/forums
(I used the shortcode [bbp-forum-index] )But individual forum pages will show
For example: http://www.badgerakpsi.org/forums/forum/course-recommendations/Please help! How can I get the forums page to show?
I have a normal WordPress site with the bbPress Plugin installed.
Is there a hook or template tag I can use to run code when any type of front end bbPress page is displayed (forum/topic/reply etc.)?
I want to run some custom code, but only if the current page is a bbPress page. I don’t want code to run on every page on my site when it’s not needed (i.e. for non-bbPress pages).
Thanks.
Topic: New topic address
Hi!
I’m not sure if this is the right forum, but…
I’m trying to create separate page for creating new topic (user presses some “New topic” button, it redirects him to the page).I know I have to create new page in WP. I also know I have to use [bbp-topic-form] shortcode for that page. My problem is that I don’t know how to correctly setup the address for that page. I would like it to be in the form: “www.mydomain.net/forums/new-topic”. But I can’t select bbPress’s pages as the parent for my new page, so it looks like “www.mydomain.net/new-topic” in my case.
Any ideas how to make this work?