Search Results for 'code'
-
AuthorSearch Results
-
November 22, 2008 at 2:57 am #69169
In reply to: Created By. Missing. Advice?
chrishajer
ParticipantFrom your forum:
> Please wait a reasonable amount of time before
> bumping posts. Try to bump posts using 24 hours
> as a guideline. Posts that are not within these
> guidelines are subject to removal.
I found that funny. Also funny to say “preying” vs. praying. All very interesting.
Anyway, to find out who started a topic, you need to stick this into your template somewhere, wherever you want to see that information.
<?php echo get_topic_author(); ?>November 22, 2008 at 12:32 am #69159In reply to: Remove ‘dash’ from forum description
chrishajer
Participant_ck_ – what if you wanted to use a different before character? I tried
forum_description('before=x');but that didn’t work. I couldn’t get before or after to work.Can you explain how to use the arguments for that function please? Thanks.
function forum_description( $args = null ) {
if ( is_numeric($args) )
$args = array( 'id' => $args );
elseif ( $args && is_string($args) && false === strpos($args, '=') )
$args = array( 'before' => $args );
$defaults = array( 'id' => 0, 'before' => ' – ', 'after' => '' );
$args = wp_parse_args( $args, $defaults );
if ( $desc = apply_filters( 'forum_description', get_forum_description( $args['id'] ), $args['id'], $args ) )
echo $args['before'] . $desc . $args['after'];It seems like the relevant info is listed right there in the $defaults array, but I couldn’t stumble upon the combination to make it work.
November 22, 2008 at 12:28 am #69206In reply to: BBpress faster than WordPress
chrishajer
ParticipantMore queries in WordPress vs. bbPress?
You can add this to your template footer.php (one for WordPress and one for bbPress) files and it will add a comment that is visible in the source with the amount of time taken and how many queries it took to generate the page.
bbPress
<!-- It took <?php bb_timer_stop(1); ?> and <?php echo $bbdb->num_queries; ?> queries -->
WordPress
<!-- It took <?php timer_stop(1); ?> and <?php echo get_num_queries(); ?> queries -->
Maybe you can spot some differences there.
November 21, 2008 at 11:18 pm #68976In reply to: bbPress – using bb_top_topics()
mithrandir321
MemberDoh, now the rating itself – bb_rating_dingus() – doesn’t work. I can click on a star, but it doesn’t go into the database

Another thing I noticed, we’ve got different line numbers so maybe you have a different version from mine?
November 21, 2008 at 10:51 pm #68975In reply to: bbPress – using bb_top_topics()
mithrandir321
Member_CK_: sorry to bother you again, I’m sure you know the answer and I just can’t resist asking. How would the code change if I wanted to list the Forum along the top rated topics?
If you get round taking a look at it I’d be very grateful.
November 21, 2008 at 10:16 pm #69157In reply to: Remove ‘dash’ from forum description
kevinjohngallagher
MemberSadly not mate.
I know what you’re thinking.
Something like : https://codex.wordpress.org/Template_Tags
But no, it’s all guess work.
November 21, 2008 at 10:13 pm #69193In reply to: Unable to Login
kevinjohngallagher
MemberI know what you’re thinking, that it probably *should* be mentioned either here:
https://bbpress.org/documentation/integration-with-wordpress/
or
but it’s not

BBpress, great software, also useful for testing your abilities to mind read!
November 21, 2008 at 5:04 pm #69015In reply to: BBpress. Mindset, features and where now? discuss…
kevinjohngallagher
Member“Oh one big thing I should point out – the features in bbPress, and the time of the main developers are first and primarily geared towards the need of Automattic and WordPress.org – people forget or don’t realize that.”
We don’t get or realize that because… it’s not written anywhere.
We’re not mind readers.
“The features that are “missing” from bbPress just happen to be the features that Matt decided weren’t a priority for WordPress.org and the other Automattic forums.”
Oh. See, now that’s a totally different light on the subject. I didn’t realise i was building something for Matt to fit Matt’s needs and for the needs of Matt’s companies. Maybe that should be written down somewhere too…
“It’s also why there is no documentation, remember Matt has to pay the coders, why does he need documentation for 3rd party plugin developers if it’s just going to cost money.”
I do understand that, but surely the actual developers have some form of documentation too. Couldn’t we all see that to make ‘Matts’ product better? And it’s not like Automatic is short of a few bob.
Surely, from a business point of view, having documentation to increase the number of theme and plugin developers will increase the take-up rate of BBpress.
“bbPress 1.0 and the backpress integration are now being driven by Matt’s goal of TalkPress for WordPress.com members.”
So, what this means is that we can’t, as a community, do anything about anything, because we’re all following Matt’s plan, to which we have no feature list or roadmap or really any visibility of?
I dont expect Matt, or really any WordPress/Automatic employee, to have to run things by anyone in the community – i’m not saying that I do. But the… pretence that this is an open source project is totally nullified if we’re all coding against a grand plan and road map we’re not allowed to see.
If the new standard answer is going to be “that’s not on Matt’s wishlist but we’re not going to tell you what is on it – go on GUESS” then can start to see why so many people have left the BBpress community, and why all the themes/forums we’re seeing all look the same.
November 21, 2008 at 4:45 pm #69074In reply to: WP 2.6.3 & bbPress 1.0A2 slight fix
John Doe
ParticipantGlad to help musnake!
Thanks for the heads up with the custom WP login
November 21, 2008 at 4:34 pm #69111In reply to: in which folder upload bbpress?
Ipstenu (Mika Epstein)
ModeratorPsst! You mean to put bbpress here:
/home/www/example.com/bbpressIf you put it under wordpress, your URL will be http://www.example.com/wordpress/bbpress
November 21, 2008 at 4:24 pm #69013In reply to: BBpress. Mindset, features and where now? discuss…
_ck_
ParticipantOh one big thing I should point out – the features in bbPress, and the time of the main developers are first and primarily geared towards the need of Automattic and WordPress.org – people forget or don’t realize that.
Remember, bbPress is a purpose driven product that happens to also be open source. It wasn’t just a few people that said “hey let’s make a better free forum because we can”.
The features that are “missing” from bbPress just happen to be the features that Matt decided weren’t a priority for WordPress.org and the other Automattic forums. It’s also why there is no documentation, remember Matt has to pay the coders, why does he need documentation for 3rd party plugin developers if it’s just going to cost money.
bbPress 1.0 and the backpress integration are now being driven by Matt’s goal of TalkPress for WordPress.com members.
So there’s the logic that some might not understand without perspective. There are projects like SMF that literally WERE “let’s make a better free forum” that have matured now so you can compare to them – but remember they are half a decade old. bbPress is far younger (and bbPress is way easier to write mods for).
November 21, 2008 at 4:17 pm #69012In reply to: BBpress. Mindset, features and where now? discuss…
_ck_
ParticipantSteveDrum both anon posting and PM are plugins.
I don’t see why they should be built in, I for one don’t like them on my forums and it bloats the code.
Until 1.0 there was a problem with anon posting because there was no place to store post meta, but now the general bb_meta table can be used. So maybe one day it will have it built in but not likely 1.0
November 21, 2008 at 4:00 pm #69116In reply to: Theme: iNove Release (v0.1)
suzkaw
MemberThanks for the comments guys.
@__ck__ when you say views are talking about the forum list? Also good idea about the search. I just couldn’t figure out a good place for the register login section.
November 21, 2008 at 3:16 pm #69010In reply to: BBpress. Mindset, features and where now? discuss…
kevinjohngallagher
MemberJust seen Sam pop up on these boards (was beginning to think he was a myth), so hopefully we’ll get an answer on some of these points we’ve made
November 21, 2008 at 2:43 pm #69155In reply to: Remove ‘dash’ from forum description
_ck_
Participantforum_description has an optional “before” argument
try
forum_description('');November 21, 2008 at 2:39 pm #51836In reply to: Plugin – Member List
_ck_
Participantcocotrp, you can exclude IDs by modifying the mysql queries and changing
WHERE user_status = 0to
WHERE user_status = 0 AND user_id NOT IN (1,2,3,4)1,2,3,4 are the user_id’s you don’t want to be displayed.
November 21, 2008 at 1:57 pm #69115In reply to: Theme: iNove Release (v0.1)
_ck_
ParticipantVery nice! Perhaps one of the top 3 themes so far IMHO.
Alternate demo on bbShowcase:
http://bbshowcase.org/forums/?bbtheme=inove
I would maybe move Views under Hot Tags and therefore make the views list visible all the time too. Also a small search box in the nav bar instead of the word “search” (or next to it) would be useful. I notice your site has a nice search box, also the RSS link on your site is nice too

I’m definitely making a 960px theme next year for my site, you’ve proven how good/useful it looks.
November 21, 2008 at 1:12 pm #68568In reply to: 1.0a2 + 2.6x cookies: so close!
WebDev WaxLotus LLC
MemberAll fixed. This post by deadmedic fixed all my issues! It explains why all the ‘worked for me!’ posts seemed like nonsense to me.
The fix:
Change line 673 in bb-settings.php from:
$bb->sitecookiepath = rtrim($bb->sitecookiepath, '/');to:
$bb->sitecookiepath = '/' . trim($bb->sitecookiepath, '/');Thank you deadmedic!
November 21, 2008 at 12:52 pm #69073In reply to: WP 2.6.3 & bbPress 1.0A2 slight fix
WebDev WaxLotus LLC
Memberwhile ($stars_in_heavens) {
deadmedic.karma += extra_scoop_of_icecream();
deadmedic.praise_sung += 1;
}You fixed it.
Here I was searching for all instances of setcookie…novice error!
WP2.6.3; bbPress 1.0a2; PHP5; Apache 1.3
I can log in and out of WP and bbPress from any direction!
I did not use the .htaccess edits, just the rtrim line.
Thank you, so very much!
I wonder if this is going to solve my bbSynch and bbLive issues?
BTW, there is a WP plugin to skin the wp login. They have a flickr group to share what people have done.
I like the idea of funneling registrations through bbPress, as most of my members will hit the fora.
I have to go and clean up some nasty things I’ve been saying around the web about integration…
Thanks again, man.
Cheers.
November 21, 2008 at 10:13 am #4307Topic: Remove ‘dash’ from forum description
in forum Themespuleddu
MemberIs possible to remove the emdash from the forum description?
The function that generate the description: forum_description()How can I obtain this?
Thank you in advance!
November 21, 2008 at 7:57 am #4306Topic: Move Topic from one bbPress install to another
in forum Pluginsjohnhiler
MemberI have a site with two separate bbPress installs that share a single users table: one is a Message Boards forum, while the other one is for Classifieds. They are on two separate subdomains:
* boards.weddingbee.com
* classifieds.weddingbee.com
Some users post classifieds listings to the Boards, which creates tons of admin work: I have to mark the listing as spam, message the user and ask them to repost it to Classifieds. It’s a big pain, and the problem is only growing.
After doing this several hundred times, I finally realized that maybe there was a better solution
. It’d be great if I could click a button and have the topic be deleted from the Boards server and added to Classifieds.Is it possible to have a plugin “cross over” and send data to another bbPress install? In this case, both the Boards and the Classifieds bbPress installs are on the same physical server… maybe that helps here? Or maybe that doesn’t matter, and this can all be done through API’s or something…
Any insight on this one? Thanks!
November 21, 2008 at 5:01 am #69110In reply to: in which folder upload bbpress?
chrishajer
ParticipantPut it in your root, but in a folder of its own. So, if you have WordPress here
/home/www/example.com/wordpress/you can put bbPress here:
/home/www/example.com/wordpress/bbpress/Then, your website/blog is http://www.example.com and your forum is http://www.example.com/bbpress/
You can call your folder whatever you want, it might be forum, forums, bbpress, anything at all.
November 21, 2008 at 1:28 am #69099In reply to: Redirection to new bbPress board?
Ipstenu (Mika Epstein)
ModeratorAt a guess…
RewriteRule ^forum/faq(.*)$ http://www.domain.com/forum/ [L,R=301]
RewriteRule ^forum/mcp(.*)$ http://www.domain.com/forum/ [L,R=301]
RewriteRule ^forum/member(.*)$ http://www.domain.com/forum/ [L,R=301]
RewriteRule ^forum/search(.*)$ http://www.domain.com/forum/ [L,R=301]
RewriteRule ^forum/ucp(.*)$ http://www.domain.com/forum/ [L,R=301]
RewriteRule ^forum/view(.*)$ http://www.domain.com/forum/ [L,R=301]That’s the majority of the links, I think. At least the ones off the main page of a forum.
November 21, 2008 at 12:48 am #69107In reply to: Blockquotes are broken
Ipstenu (Mika Epstein)
ModeratorHey, my site works fine. I’m saying bbpress.org’s quotes are broke.
Someone should fix the CSS here.
November 20, 2008 at 10:09 pm #69106In reply to: Blockquotes are broken
chrishajer
ParticipantThe blockquotes are there in the source, but there is no corresponding CSS. This was brought up before here, but not addressed. If you are working on your own theme, just define blockquote in the style.css however you like, for example:
blockquote {padding: 0 0 0 20px;
background-color: red;
}
-
AuthorSearch Results