@ kevinjohngallagher … I’m not a techi person.. can you please tell me what code of bbpress will use in “Hardcode your form here” and”Hardcode your form here” to show the bbpress login form into wordpress…
Hey guys,
You’re really trying to do something here that was never intended.
bbPress was coded to create the same (or a readable) cookie from wordpress.
Deep Integration, the allowing of wordpress functions to be called in bbPress, is totally unsupported and unintentional. If you can hack it to make it work then cool, but really, you’re on your own for the most part.
Calling bbpress functions in wordpress is always always always going to cause issues in the long run. it wasn’t built for it in any way shape or form. It’s a square peg in a round hole scenario, and if you can push something through then awesome, but sometimes it’s just not worth it.
The simplest and most straight forward solution is to work out what you want to do, and code that directly.
In this case:
<?php
if ( is_user_logged_in() || bb_is_user_logged_in() ) {
// Logged in user
// Hardcode your form here
} else {
// Not logged in
// Hardcode your form here
}
?>
Remember, hardcoding is your friend, because YOU control it
Also, I have no idea how to view error logs. I’m using Cyberduck for my ftp if that helps
Ah, OK, I get it. I didn’t realize that the window.open stuff was a javascript method (I told you I’m a novice!). Thanks for the clarification.
I think I also found another way to get the target=”_blank” code to validate (sort of): I noticed that my main site (www.scopedin.com) doesn’t return errors on that same sidebar code. I think it’s because the DOCTYPE at the top of the page is 1.0 transitional. I suppose I could use this in my bbpress header as well?
Thanks again for the help.
You don’t need a plugin at all, since these are not posts with the links: they’re sponsored images in your template.
You need to find this:
target="_blank"
And replace it with this:
onclick="window.open(this.href); return false;"
in whatever file you added the target=”_blank” to. Sounds like it’s in your sidebar. You will need to manually edit that file. If it’s not a static file and is being generated by WordPress or something, then you would need a WordPress plugin to add the links with the javascript onclick instead of deprecated target=”_blank”.
I heard back from Network Solutions about this issue. Their response was basically:
Our SSL proxy doesn’t allow server-side variables to detect HTTPS (secure). All server-side coding will always detect HTTP (non-secure), and for programs that attempt to redirect non-secure connections (http://) to a secure connection (https://) will result in an infinite loop and server error after 30 seconds (newer technology browsers such as Firefox will detect this loop almost immediately and give up before 30 seconds). We cannot change this setting on our servers.
There is a 2nd paragraph with their recommended workaround, which is similar to my approach above of looking for ‘https:’ in the scheme of the URL.
I’m going to see if the bbPress developers would include the above code in their core. Seems like a worthwhile addition, or maybe they are aware of this and intentionally do not include it for various reasons.
Is Sam’s code in the plug-in library, or do I just copy it and insert it into my right sidebar file?
Also, does this code modify *all* links in a given page?
Thanks.
But you don’t need a plugin to add the code to open in target="_blank", you are already doing it, which is what’s causing the validation problem. That is deprecated and invalid, so, you need to stop using it, or use Sam’s javascript method.
Thanks for the reply, Chris. I’d be only too happy to disregard validation errors, except for two factors:
1. I’m still relatively new to all this html/css/php stuff, so I do learn from reading the validation reports.
2. I lean heavily on support from a variety of forums, some of which don’t share your casual attitude toward validation. I try to keep my code “clean” to appease them.
I looked at the second link you posted above. Does this plugin actually reside in the plugin library? I did a couple of searches and couldn’t find it. Or, do I just cut the code and put it in a file, and upload it as a plugin?
Thanks again.
was hoping to bypass having to edit everyone’s posts. thanks though; will see if i can get everyone to do it 
if its possible to edit code to automatically make all topics sticky, that would be awesome as well.
I use stickys for important announcements with a specific icon, and don’t see being able to get all my users on board with making every single topic a sticky. aaaah well, worth a shot
@Gautam: yeah sorry, I suggested that because I’m testing with no users db sharing, so I’ve to use bb_is_user_logged_in() instead of WP’s function.
Hi. I’m new to bbpress, and I seem to be having the same problem. The theme folders in my-templates do not show up on the Appearance page of my bb-admin. I’ve tried the 755 fix to no avail. Only the two default themes show up
You can use is_user_logged_in() WordPress function for that, like:
<?php
if ( is_user_logged_in() ) {
// Logged in HTML here
} else {
// Login form HTML here
}
?>
The solution suggested by Pelle would work, but would add a lot of load on your blog.
Before calling the bbPress function just add:
<?php require_once ABSPATH .'/forum/bb-load.php'; ?>
Not sure which two errors you received, but here are the two I received:
Line 31, Column 12: there is no attribute "clear"
That’s true. It needs to be <br style="clear:both;" /> to be valid.
Line 93, Column 50: there is no attribute "target"
That’s true as well, but who cares? It brings me to one of my favorite _ck_ quotes of all time: “throw off your shackles of validation”
http://www.google.com/search?q=%22throw+off+your+shackles+of+validation%22
Open Links in new window
There are a couple of solutions there.
1. drop the attribute altogether (let the visitor determine where they want the link to open)
2. use Sam’s javascript solution
3. use _ck_’s route and just run with it. Who cares if it validates? It works just fine and has no negative affect on anything
…on my site.
http://www.scopedin.com/bbpress/
Both errors point to code that looks right to this novice. The generated source has an interesting occurrence (a couple, actually) of the » in my head section; in fact, the code there doesn’t seem to match up with what’s in my header.php file.
Can someone shed some light on this for me? Thanks.
Here’s the link to the validation I ran, if you’re interested in that:
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.scopedin.com%2Fbbpress%2F
I am using bbPress 1.0.2 and WordPress 2.9.2.
I originally did hardcode the menu items however the dropdown menu did not seem to work when hardcoded so I went back to including the header.
I will give hardcoding another try.
Thanks,
David
What version of bbPress are you using ?
What version of WordPress are you using?
Are you using “deep integration”?
That said, I’d hardcode them if I were you. Given that you know you’re going to be on your forum page, and therefore dont need to having anything dynamic or highlighted, you can just hardcode it to work.
Not an ideal solution, but its one that you can control completely 
Good Luck
Thanks for that Chris, v helpful.
Your text seems a tad bigger than mine but I think i might have found some of the issues.
1) The stylesheet specifies “Lucida Grande,Tahoma,’Bitstream Vera Sans’,Arial,sans-serif” and I’m not sure it was tested on all of those fonts.
There’s quite a large difference between the way Lucia Grande and Tahoma look on windows (and people with Safari on Windows can now have Lucia Grande; but its not there by default), and at 12px and above Tahoma and Arial start to look differently too…
2) In comparing what I can see on the forums and your screenshot, I’m getting 2extra words per line.
Either way, it’s a drop in text size of a considerable amount. And a drop in the amount of space that the text is given in comparison to the old theme (not that an increased avatar doesn’t help the conversation but…)
3) On the forum listing, since last week, some of the text has been of a bigger size than others. Specifically:
#bborg-discussions table td div {
font-size:14px;
}
Edit: I have no extrnal css stuff going on, which i put down to laziness
Hi All,
I am in the process of getting at WP theme applied to bbpress and so far have had some luck..The headers and Footers are visible to the most part.
However the menu items are not coming across from the WP menu system.
Site: http://www.cloudosity.com
bbpress: http://www.cloudosity.com/forum
I get the two hard coded menu items but it looks like none of the WP variables can be called from the bbpress page. I am using get_header(); to pull in the header but the WP header code such as <?php echo $page_menu; ?> does not appear to work.
Can anyone tell me if this is possible to resolve?
Thanks,
David
Please paste the first 8-10 lines of your theme’s style.css here.
OK thanks. I have unmodified the config file. The phpbb folder is directly above it. 
So if I go 2 directories deep for setup, can I specify the URL of bbpress once it is installed?
You can’t break it with that ‘link’. But you can change the call:
bb_tag_heat_map( 9, 38, 'pt', 80 );
in tags.php and write a simple javascript that filter away X in the generated <p class="frontpageheatmap">.