Search Results for 'code'
-
AuthorSearch Results
-
October 29, 2009 at 9:39 pm #80838
In reply to: Future of bbPress
bbhack
MemberI’ll echo some of the other comments and say that having a Codex for bbPress is key to it’s future. Shouldn’t this be something that is very easy for someone at Automattic to setup?
The other thing is better, easier integration with existing user database tables and site features for sign-in/out, registration, change password, etc. Most everyone using bbPress probably already has the rest of their site already setup.
You don’t users to have to have two logins, two registrations, two login pages, and two registration pages ,and two records in the database with the same info. This type of integration needs to be dead simple and straightforward in bbPress but it is not. If this was done properly, the most common site integration (bbPress with a WordPress blog) wouldn’t be the mess it is today.
Also, support for Oracle databases would go a long way to helping adoption.
October 28, 2009 at 10:16 pm #80986In reply to: Adding Google Adsense to Sidebar
yangers101
MemberI was able to get the adsense code to display on my forums front page, but not on any other forum pages
October 28, 2009 at 6:53 pm #80836In reply to: Future of bbPress
c00l2sv
MemberI remember some years ago (probably I was one of the first who tried to integrate bbPress with WordPress in a different language, fully localized integration [1]), and it was a pain. Now, years passed, I can see bbPress and WordPress rising and shining, but I wouldn’t pay anymore so much attention into their integration.
The main problem I/folks met when choosing between BB software and taking bbPress as a possible solution, is it’s lack of real BB features, like already mentioned quoting, nice fluid design themes… classic stuff which makes a forum software look accordingly.
I do respect the WordPress choices when it comes to design (including software designs and tehnologies), but if you want bbPress get over FluxBB (ex PunBB, which was sold and it is it’s main competitor), forget about Joel Spolsky’s thoughts, people are looking for something they got used to already. Bring options to core and hide them under checkboxes, but don’t apart them in plugins (at least until bbPress has no such plugin installer like WordPress has).
Dunno why, but bbPress still looks much like it was first time released by Matt after a weekend of smart coding. Time to grow up a bit.

Just my 2 cents…
October 28, 2009 at 4:44 pm #80834In reply to: Future of bbPress
arena
MemberHi Matt,
“how to integrate bbPress better with WP, … as to where bbPress goes in the future, I’d be curious to hear who wants to help with that. “
Answering to that question with some questions can be helpfull :
* bbPress today ? (point A)
* WordPress today ? (point A’)
* Can they meet at some point ? (point

* What is the code in common between WP(µ), bbPress ( and BuddyPress) ?
* Is there somewhere an underlying FrameWork with some engines inside (blog(s), forum (social networking) engines) ?
* Could we imagine in a future to come to install a Framework and plug into it a blog(s) engine, a forum engine, (a social networking engine, ) all of them at the same time ?
ready to help
arena
October 28, 2009 at 2:22 pm #80833In reply to: Future of bbPress
rich! @ etiviti
Memberquickly note some of the important things
1) documentation, examples, and more documentation – from plug-ins to core. it is very difficult to ramp up and extend the functionality of bbPress when you have to spend considerable time researching how to hook into things. php is not my first language but i’d be more enticed to extend if there is something to fall back upon.
2) cohesiveness of technologies used in other automattic products – bring bbPress into the fold and create a common experience; UI. why do we have a scaled down editor in bbPress for example. IMHO, it should be the same as WP – if i’m using another automattic product, i’d like the same experience as those are the reasons why i use it. …i understand the lightweight approach (which i like) but its also important to consider the expectations.
2a) IntenseDebate – to me this is just a forum add-on to a blog post (topic). frankly the feature subset of ID is what a lot of forum administrators like (Comment Threading, Reply-By-Email, Email Notifications, Moderation/Blacklisting, Reputation Points & Comment Voting, +openid/etc login). again, just common experience of automattic.
3) the whole standalone, bbpress => wp, bbpress <= => wp thing (if i want bbpress and wp to talk to each other, this should be a core level thing instead of a plug-in to cross pollinate content – sometimes it is just easier to shy away from bbpress and opt for ID – in this instance buddypress is too much for a small community) but i need another cup of coffee before i can touch further on this subject
October 28, 2009 at 1:29 pm #80832In reply to: Future of bbPress
Ipstenu (Mika Epstein)
ModeratorI just realized that i miss a “quote” button in bbPress

There’s
<blockquote>actually
bbPress uses regular HTML syntax, not bbCode. The future? Optional integration, but DEEP integration. If I didn’t have to re-theme my forums every time I make a change to my blog, I’d be happy. Honestly, it works as much as I need it to right now, but the reason I picked bbPress has jack to do with integration and all to do with simplicity.
I came from the Invision/phpBB/SMF world and I was always turning off options I didn’t use or want. Much like WordPress, the best thing about bbPress is that it’s little and you can add on if you want.
That said, much like how people can (and do) port Akismet to other platforms, bbPress has to decide if that’s it’s future too. To whit:
Is bbPress going to be a sibling to WordPress (intended to be used with it, but available as stand alone) or a cousin (available to be used with or without WordPress)?
Right now it’s a kissing cousin (legal only in the backwoods), trying to be both. If we keep along the currently available integration path, it will become the cousin. That said, if it moves on to the sibling, being tied in like … Akismet (available from the get-go, but optional), then you’d probably get a lot more pick up from WordPress users.
Integration with WordPress, knowing that WP and WPMU are in route to becoming the same thing (unless the rumors are a lie, it’s just what I heard), would really make things like BuddyPress be a home run.
Of course, if we get better integration, we need better user management. A way to flag users as bozo is nice, but banning people would be even better.
I’m going to get more coffee and think more about this. Mostly, I’m happy we’re not forgotten.
October 28, 2009 at 1:07 pm #80763In reply to: Adding Google Adsense to Sidebar
bikingtoronto
MemberBrand new adsense units often take more than 10 minutes to start showing up… so you may not see them immediately.
Not sure what to do about them showing up in the wrong place – but knowing your forum address would let us have a look and try to help you solve.
October 28, 2009 at 12:40 pm #72929vwcamper77
Member@arba you are a genius! thank you! have a nice day also
October 28, 2009 at 11:53 am #80940Adam Harley (Kawauso)
Member$out = preg_replace( '|/!]*?[^[*?]|si', '', $out );That should take bbCode out, put it after
$out = strip_tags( $out );. Not tested it, but it’s adapted from a function I found on Google
October 28, 2009 at 10:48 am #80876In reply to: WordPress Editor for bbpress?
KillerSneak
Memberhttp://test2.cell-systems.net/forums/topic/testing-forum-software/page/3
I’m running a custom Editor on my test site and will move it to my normal site this weekend
works wonders
October 28, 2009 at 9:31 am #80939Adam Harley (Kawauso)
Member@merlin214365: As a golden rule, most functions will return a string by putting
get_in front of the function name, rather than echoing (which is just an alias for the get_ anyway). Most functions you’re likely to need are infunctions.bb-template.phptoo, so have a read through that and I’d recommend getting an editor like Programmer’s Notepad to be able to search through bbPress’ code all at once to understand usage.strip_tagswill take out all HTML and PHP tags, so no need for an extra str_replace
October 28, 2009 at 3:23 am #80938merlin214365
Member@psycheangels just add some more filters to
if ( $posts ) {
$out = $posts[0]->post_text;
$out = strip_tags( $out );Like this one
$out = str_replace( '<br />', '', $out );there might be an easier way but im still learning.
October 28, 2009 at 3:18 am #80937merlin214365
MemberI should have pointed out im still learning php and bbpress functions still mystify me but thanks Kawauso for cleaning up the code i appreciate it.
October 28, 2009 at 1:49 am #80998In reply to: just getting started
chrishajer
ParticipantInside the folder that as WordPress, put a folder with all the bbPress files in it. So maybe you have this:
/public/html/wordpress/add a new folder:
/public/html/wordpress/forum/(or forums or discussion or bbpress)then access your new installation at http://www.example.com/forum (or whatever you selected) assuming WordPress is accessible at http://www.example.com/
October 28, 2009 at 1:33 am #62426In reply to: can’t access admin dashboard
atwellpub
Memberhey guys,
I solved this issue for myself by adding a row into my wp_usermeta tablein my wordpress database, and adding this :
INSERT INTO
database.wp_usermeta(umeta_id,user_id,meta_key,meta_value)
VALUES (
NULL , ‘1’, ‘bbpcapabilities’, ‘a:1:{s:9:”keymaster”;b:1;}’
);
October 28, 2009 at 1:32 am #80936Adam Harley (Kawauso)
MemberCripes, no need for all that object-based markey, bbPress has functions to pass as a string rather than echo…
<?php
/*
Plugin Name: Meta Headers
*/
function meta_heads() {
global $posts, $tags;
if ( $posts ) {
$out = $posts[0]->post_text;
$out = strip_tags( $out );
$out = str_replace( array( "n", "r" ), ' ', $out );
$out = substr($out, 0, 200); // only display the first 200 characters of the first post
}
if( empty( $out ) )
$out = 'Default description';
echo "n".'<meta name="description" content="'.$out.'" />';
if ( !empty( $tags ) ) {
$keywords = '';
foreach ($tags as $t) {
$keywords.=$t->raw_tag.', ';
}
echo "n".'<meta name="keywords" content="'.substr($keywords,0,-2).'">'."n"; // displays any tags associated with a topic as keywords
}
}
add_action( 'bb_head', 'meta_heads' );That will strip HTML, but not bbCode
October 28, 2009 at 1:32 am #65805In reply to: Integration Problems Now Can’t log in at all.
atwellpub
Memberhey guys,
I solved this issue for myself by adding a row into my wp_usermeta tablein my wordpress database, and adding this :
INSERT INTO
database.wp_usermeta(umeta_id,user_id,meta_key,meta_value)
VALUES (
NULL , ‘1’, ‘bbpcapabilities’, ‘a:1:{s:9:”keymaster”;b:1;}’
);
October 28, 2009 at 12:33 am #80935psycheangels
Memberthanks, but meta description not working because it will insert embed code and image code to header if the first line of the post have markup code. thats a bad thing ryt?
October 28, 2009 at 12:13 am #80830In reply to: Future of bbPress
alekseo
Member“Thanks for stopping by Andy. “
second that
I just realized that i miss a “quote” button in bbPress

But what i came here to say is that i miss the possibility to show/hide subforums and make then show up as links beneath the description for their parent.
I must say that im really a fan of this forum software and that it got plenty which i have missed from other forums.
Hope to see more ongoing core development for bbPress in the future. Is this a goal for you?
October 27, 2009 at 10:09 pm #32168Daniel Juhl
ParticipantHi,
I’m building the community on a portal around bbPress, but how can I check if a user is logged in to bbPress and how to get the basic informations about the user?
I’ve managed to do this with an earlier version of bbPress, but after upgrading to bbPress 1.0.2 I can’t get the result I’m looking for. I’ve tried to require bb-load.php, but it gives me the following error:
Fatal error: Call to a member function suppress_errors() on a non-object in /PATH-TO-BBPRESS/bb-includes/functions.bb-core.php on line 63Has anyone successfully integrated bbPress with their website (non-WP)?
October 27, 2009 at 8:26 pm #32172Topic: Adding Google Adsense to Sidebar
in forum Showcaseyangers101
MemberI currently am running bbpress 1.0.2. I am trying to insert a google adsense code on my right column/sidebar. My right column/sidebar is currently blank. However, no matter where I put the code, it always displays on my main/left column.
I read somewhere about putting an “includes” function to fetch the sidebar for wordpress. I’m not sure if it will work here?
Does anybody have any ideas they can share?
Thank you!
October 27, 2009 at 8:25 pm #32127Topic: Adding Google Adsense to Sidebar
in forum Installationyangers101
MemberI currently am running bbpress 1.0.2. I am trying to insert a google adsense code on my right column/sidebar. My right column/sidebar is currently blank. However, no matter where I put the code, it always displays on my main/left column.
I read somewhere about putting an “includes” function to fetch the sidebar for wordpress. I’m not sure if it will work here?
Does anybody have any ideas they can share?
Thank you!
October 27, 2009 at 5:57 pm #80979In reply to: small mistak in Post Editor of Bbpress site
chandersbs
MemberHoly F, i just tried it on my forum, and it’s working, WOW
October 27, 2009 at 5:46 pm #32170Topic: small mistak in Post Editor of Bbpress site
in forum Requests & FeedbackPomy
ParticipantDear BBCoders…
I think it is small mistake but it is mistake. Your post editor lose it’s shape when we expand it with mouse click from bottom right corner. you should try to solve this small mistake and you should try to fix it’s width and height?
Hope all moderators will smile and take notice

here are it’s screen shots
http://img337.imageshack.us/img337/9396/lol1k.jpg
http://img11.imageshack.us/img11/1031/lol2js.jpg
Also you should try to solve this mistake in your post plugin
October 27, 2009 at 3:53 pm #32165merlin214365
MemberSo after trying many plug-ins for meta data i found out that most don’t work at all with the newest version of bbpress and others do a poor job so i decided to write my own little php code no plug-in needed.
I wrote some php code to include a meta description based on the first 200 characters of the post and a default description if there is no post ( i.e the front-page ). Also meta keyword’s that displays any tags associated with that post as keywords.
So just add this to your header
<?php<br /> if ($posts) {<br /> foreach ($posts as $bb_post) : $del_class = post_del_class();<br /> $old=ob_get_contents(); ob_clean(); ob_start(); // you may leave ob_start();<br /> post_text();<br /> $out.=ob_get_contents(); ob_clean();<br /> endforeach;<br /> $out = preg_replace('#<p[^>]*>(s| ?)*</p>#', '', $out); // takes out <p><br /> $out = substr($out,0,200); // only displays the first 200 lines of the first post.<br /> echo '<META NAME="Description" CONTENT="';<br /> echo $out;<br /> echo '">';<br /> }<br /> else {<br /> echo '<META NAME="Description" CONTENT="This is your defalt description edit this to what ever you want ">'; // This displays when where is no post<br /> }<br /> global $tags;<br /> if (!empty($tags)) {<br /> $keywords=""; foreach ($tags as $t) {$keywords.=$t->raw_tag.', ';}<br /> echo "n".'<meta NAME="keywords" CONTENT="'.trim($keywords,", ").'">'."n"; // This displays any tags associated with that post as a keyword<br /> } ?> -
AuthorSearch Results