Search Results for 'code'
-
Search Results
-
It was really bothering me how a page full of links was wasting so many bytes on full absolute URI’s with the domain name, etc. when all it needed was a tidy relative URL. The front page alone is 4k bigger just because of all the full URIs on the tag cloud and views, etc.
ie. http://www.bbpress.org/forums/forum/plugins
vs. /forums/forum/plugins
(multiply that by a few hundred)
So it dawned on me just now that it’s fairly easy using filters to make all the urls relative. Just for safety, we don’t kick in the relative URLs until bbPress has gotten past the header section of the template. This makes sure that redirects, stylesheets, and javascript is handled properly.
function bb_relative_uri($r) {return "/forums/"; } // change forums to your path
function bb_relative_domain($r) {return ""; }
function bb_relative() {
add_filter( 'bb_get_option_domain','bb_relative_domain',255);
add_filter( 'bb_get_option_uri','bb_relative_uri',255);
} add_action('bb_head', 'bb_relative',255);.
In some cases, relative URLs actually makes Internet Explorer cache better so this may be helpful for subtle speedups too.
I haven’t discovered anything broken by this yet but be sure to let me know if you run into anything.
I can’t progress past step 1 of the installer… I keep getting this bloody error….
Fatal error: Cannot redeclare bb_user_sanitize() (previously declared in /home/xxxxxx/public_html/forum/bb-includes/formatting-functions.php:125) in /home/xxxxxx/public_html/forum/bb-includes/deprecated.php on line 285Topic: Post author name?
What is the code for posting the author’s name in bbpress? I know <?php post_author_link(); ?> is the name with the link, but is there a different way to get just the name?
Having done a completely new install of bbPress 0.9.0.1 (to make sure there wasn’t a problem with my existing templates / plugins), when I log in and browse to any topic page I get a javascript error on the following line in bb-includes/js/topic-js.php:
favoritesToggle[ 1 === isFav ? 'removeClass' : 'addClass' ]( 'is-not-favorite' );Apparently
favoritesToggle[....]is not a function, according to Firefox.Apart from that, great work!
okay not sure if this is the right forum category but i’ll ask here
how can i make the forum display on a wordpress page? is there an object html code or something for doing this?
ie i want the same header, footer, and sidebar as my blog, i just want the bbpress forum to show up in my content window where a normal blog post would be shown
thanks in advace
Topic: nothing really, just thanks
bbPress makes things look just lovely

i’ve got a work in progress set up based on a theme I found, then modified it to my own needs.
http://retrospec.sgn.net/forums/
What does anyone think?
I have upgraded to bbpress 0.9 with some critical problems:
I cannot create de keymaster
When i have gone to my forum the post not appeard (I out the correct database)
When i tried to login i anly see a blanl page
I’ve written my own custom plugin to have bbPress use my site’s authentication system (it’s not wordpress). It’s working beautifully (for the most part). I replace bb_is_user_logged_in and bb_current_user (and the latter sets bb_set_current_user).
The problem is this: AJAX calls to add a new tag, to remove an existing tag (your own or as admin), or to delete a post all fail with a “you don’t have permission to do that”. I see that other plugins have had that problem too. However, if I submit the request using the old school (non-AJAX) url, it works just fine.
So I’m guessing there’s something unique in the AJAX calls and that code seems dense to me. Can anyone suggest some places to check first?
I turned off the “pretty” permalinks until I figure out how to use them without breaking the forum. Until then I’ll see if there isn’t already a post about pretty permalinks here, or else I’ll create one.