Search Results for 'code'
-
AuthorSearch Results
-
July 18, 2007 at 11:19 pm #59163
In reply to: Few questions..
Trent Adams
Member1) I would ‘t worry about the plugins to help out if you need it (small percentage) as they are intended to get it fixed which will eventually make it into the core. Those plugins would only require minor changes if something was changed in bbPress, but I doubt it would happen often.
2) I had great luck with the phpbb converter myself and have stated in one of the threads which one I used. I would just look around a bit before choosing one.
3) Since the upgrade process is so easy, there is no need to wait! As well, the changes scheduled for the next series of releases are small changes and no worth waiting for!
4) So1o just released a new version of the private forums plugin that is exceptional and recently addressed the problems with the RSS feed being private. It is found in the ‘extend’ tab of this forum in the plugin browser!
5) fel64 is absolutely right. mdawaffe is the head dev and he is working on wordpress code at the same time. They will always be compatible as they are working toward more shared function (at least not conflicting). Issues will be worked out as we go, but shouldn’t be a problem.
Thanks,
Trent
July 18, 2007 at 11:04 pm #59192In reply to: Fix my bbpress – will pay $
Trent Adams
MemberPlease let me know what you would charge to make these changes.Please don’t do that people! Contact stuboo through their website or if you are reading this stuboo, leave a contact address as we don’t want to use the forums as a place to bid or bidding wars.
Trent
July 18, 2007 at 9:15 pm #59162In reply to: Few questions..
fel64
Member1. Some dudes do, yeah. But it seems to be a minority; who can tell? Maybe bbPress does just have a few new users a week

2. Haven’t seen one. Believe there was some trouble with older converters somebody dug up.
3. New version is in development, and I expect there will be new versions in development for a while. Don’t let that stop you getting it now. There’s no release planned for the next week as far as I know.
4. It’s not in the core and there’s no indication that’s what’s being worked on right now. It’d have to be a plugin. Last I read they fixed their RSS problems? It will say in the plugin topic, anyway.
5. It’s one of the wp devs that’s developing bb at the moment. They all work for the same small company. I don’t think one release would ever break the other.
July 18, 2007 at 9:09 pm #59172In reply to: Howto List the other forums on the forums pages
fel64
MemberHow did you do it on front-page? I reckon code like this (taken direct from kakumei’s front-page) should work everwhere but I haven’t tried it – if you already have, sorry.
<?php if ( bb_forums() ) : ?>
<h2><?php _e('Forums'); ?></h2>
<table id="forumlist">
<tr>
<th><?php _e('Main Theme'); ?></th>
<th><?php _e('Topics'); ?></th>
<th><?php _e('Posts'); ?></th>
</tr>
<?php while ( bb_forum() ) : ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
</tr>
<?php endwhile; ?>
</table>
<?php endif; // bb_forums() ?>If it doesn’t work, chuck
<?php bb_forums(); ?>somewhere before it and try again.July 18, 2007 at 8:57 pm #59174In reply to: plugin: Markdown
fel64
MemberI don’t know. But do you know about the plugin I wrote that does things similar to markdown? No. No you don’t. Because I haven’t mentioned it yet. Basically it lets you italicise, bolden, and link in a very elegant way (although I think syntax-wise slightly different way to markdown). It respects code and it auto-converts the lists you only wrote casually (list items starting with #, -, *, (1, 2, 3 …), (a, b, c …)) into proper HTML. If I could think of a goddamned name I would have uploaded it yesterday. But it is a different, very likely smaller feature set to Markdown, and if you need Markdown then that’s no use at all to you. If you’re interested I’m happy to provide a copy of the script.
Have you tried these filters ck removed? https://bbpress.org/forums/topic/new-plugin-admin-post-anything Check for the last post because he made some changes, but those should be all.
July 18, 2007 at 7:35 pm #2124Topic: plugin: Markdown
in forum Pluginstisme
Memberwhich bb filters ($tag, $func, $prio) I need to add/remove to get working [**PHP Markdown**]( http://www.michelf.com/projects/php-markdown/ )?
quick and dirty:
remove_filter('pre_post', 'balanceTags');
add_filter('pre_post', 'Markdown', 1);
doesn’t seem to be sufficient as HTML tags should be converted back to Markdown while ‘edit_text’, also extraneous P elements (paragraphs) ought to be stripped off.
does it require anything else?
PS and yes, I know about A.King’s ‘Quick Tags’.
July 18, 2007 at 2:53 pm #59159In reply to: Howto request to add a new user to plugin svn
gh3
Memberi have just tried to contact him by irc, but he was afk

btw if you have got his email, try to send him a mail to ask for this
July 18, 2007 at 1:51 pm #59158In reply to: Howto request to add a new user to plugin svn
_ck_
ParticipantWe probably need to email mdawaffle and have them add me to the move-it plugin

I think I have the email address around here somewhere or maybe Trent can do it?
July 18, 2007 at 10:03 am #58992In reply to: Missing Argument for Get_User_Profile_Link
papadoc
MemberFel,
I’ve managed to get the plugins mostly working, although not entirely well… but I’m asking for help on those in their relevant forums.
As far as that code goes, it still works fine as far as displaying the last poster, but the profile link still isn’t working… Although I think we’re moving in the right direction, as now instead of linking to a fault page, or the forum index, it’s just not showing a link at all.
July 18, 2007 at 9:15 am #59151In reply to: BB_Query class and next version of bbPress?
kjted
MemberHi fel. I’ll post up later today the process I went through. I’ll get the latest version of the class right now!
Thanks for the heads up.I’ve also done some work with CodeIgniter and Flash integration which I’ll post a link to later in case anyone does CI development (off topic I know but still valuable).
July 17, 2007 at 11:59 pm #58991In reply to: Missing Argument for Get_User_Profile_Link
fel64
MemberI can’t remember which version added what, but make sure to activate your plugins in bb-Admin/Site Management or they won’t work.
Try this:
<?php $user = bb_get_user( topic_last_poster() );
get_user_profile_link( $user->ID ); ?>You can make it one line if you want but you need those semicolons.
July 17, 2007 at 10:24 pm #58990In reply to: Missing Argument for Get_User_Profile_Link
papadoc
MemberSheesh, okay, I did that already. Before you even posted.
It didn’t fix my problem but on the other hand, it DID make the dashboard nicer.
Oh, and broke at least one of the key plugins on the site

But yeah, ultimately, I will always upgrade, when I realise there IS an upgrade.
Want to know something interesting? Now, instead of a link to a broken page, the displayed names of the most recent poster ALL link back to my forum address, apparently regardless of the user… Any suggestions?
July 17, 2007 at 9:19 pm #59124In reply to: Can we do includes?
silverwing
MemberI’ll admit I’m not that great a coder, so I may have done something wrong when I tried bb_load_template(). I’ll try again later and see, since having the whole address isn’t the best solution.
July 17, 2007 at 9:12 pm #59155In reply to: Title Tags
fel64
MemberOh, sorry. Yeah. I getchoo. Yes. The filter you want to use is bb_title. The way filters work is that you tell bbpress what you want to filter, bbpress gives you the input and you return the output. In this case:
<?php
/*
Plugin Name: Title Modifier
Author: You
*/
add_filter('bb_title', 'titlemodify');
function titlemodify( $title ) {
//your code that does something to $title;
return $title;
}
?>Paste this into an empty text file, save it as
whateveryouwant.php, edit the code so it actually does something with$title, then upload and activate.fel64
MemberCoolio. Few problems recently (apart from Sneaky
) so I uploaded. No topic for it yet but I expect there will be at https://bbpress.org/plugins/topic/56[Edit] And it is! Rate it please
July 17, 2007 at 7:03 pm #59150In reply to: BB_Query class and next version of bbPress?
fel64
MemberIt is funkin’ brilliant. I hope you downloaded the latest release ( https://trac.bbpress.org/browser/trunk, at the bottom of the page is the Zip Archive link to the latest) because it has a bunch of fixes and changes.
Can you detail anything you had to do to make it work, for future people who want to do this stuff?
July 17, 2007 at 6:58 pm #59095In reply to: WordPress/BBPress Single Sign On
fel64
MemberThis means their bbpress login will mysteriously fail.
No it won’t. No matter what cookies users have, they will not prevent them logging in.
schmitt, must say I really liked your site. Not at all interested in things financial but it was engaging nonetheless.
You could put these lines at the top of your bb-login.php:
header('Location: http://www.example.com/');
exit;Obviously changing the URL to that of your wp-login.php. I don’t know how else you’d do that. This may have all sorts of crazy adverse effects because I haven’t tried it myself; maybe ck can say how he did it?
July 17, 2007 at 6:52 pm #59123In reply to: Can we do includes?
fel64
MemberBBTHEMEDIR only takes you to the
my-templatesfolder. I’m surprised that bb_load_template() didn’t work; ah well, you solved it anyhoo.July 17, 2007 at 4:32 pm #59119In reply to: bbPress on the Profile page links position code
Inquirer
Member#profile-menu {
list-style: none;
position: absolute;
left: 200 px;
}
It fixes to the left.
I have tried varaiations.
The style_old.css has the same code for the profile menu.
I wonder how it got out of wack.
July 17, 2007 at 2:55 pm #59148In reply to: BB_Query class and next version of bbPress?
kjted
MemberI just noticed I can actually download it from the Roadmap in the development section…
https://trac.bbpress.org/ticket/657
Without documentation I guess it’ll be a case of figuring it out myself lol.
Will the new version of bbPress have any structural changes to the database? I’m hoping I can use this class with the current version of bbPress.
July 17, 2007 at 11:52 am #58974_ck_
ParticipantAh nevermind – I already knew how to do this but was so tired I didn’t put 2 + 2 together. And a new plugin was born!
This plugin will either exclude ALL sub-forums from the front page topics list AND/OR exclude any specific forums from the front page that you specify.
function filter_front_page_topics($where){
// $exclude_forums=array ("8,1,3,12"); // enable this to manually specify specific forums by id #
$forums = get_forums(); foreach ($forums as $forum) {if ($forum->forum_parent) {$exclude_forums[]=$forum->forum_id;}} // exclude ALL sub-forums
if ( is_front() ) {foreach($exclude_forums as $forum) { $where.=" AND forum_id != ".$forum." "; }}
return $where;
}
add_filter( 'get_latest_topics_where', 'filter_front_page_topics');
add_filter( 'get_latest_posts_where', 'filter_front_page_topics');July 17, 2007 at 9:34 am #2112_ck_
ParticipantSince bbpress.org doesn’t have a “tips and tricks” I’ll post this here.
If you’d like to tweak your profile.php template to show the total posts and topics started by a user, add this code under “bb_profile_data()”
<?
echo "forum posts: <b>".$bbdb->get_var("SELECT COUNT(*) FROM bb_posts WHERE poster_id = $user_id AND post_status = 0")."</b> "
." topics started: <b>".$bbdb->get_var("SELECT COUNT(*) FROM bb_posts WHERE poster_id = $user_id AND post_status = 0 AND post_position = 1")."</b>";
?>I’d make this into a plugin but I don’t know how to append information within the profile (ie. attach to bb_profile_data)
July 17, 2007 at 9:14 am #58988In reply to: Missing Argument for Get_User_Profile_Link
papadoc
MemberWell, it turns out I’m NOT using .8.2.1, just .8.1… Is the newest version REALLY new?
The code I’ve used in the template is, I think, outside the loop, and is this:
<H2><?php _e('Last Poster'); ?></H2>
<UL><LI><a href="<?php get_user_profile_link() ?>">
<?php topic_last_poster(); ?></a></LI></UL>I may not have made my problem all that clear, anyway… the fact is that the Last Poster bit works fine… it pulls up the last poster’s name fine. But when you mouseover the link, it becomes clear that it doesn’t work, presenting the problem I mentioned before…
July 17, 2007 at 5:17 am #59093In reply to: WordPress/BBPress Single Sign On
_ck_
ParticipantThere is an obscure cookie control plugin for wordpress that I found somewhere around here I think:
http://www.2diabolos.com/blog/plugins-pour-wordpress/setcookieparams/
the bbpress config options you want are like this:
$bb->wp_table_prefix = 'wp_'; // WordPress table prefix. Example: 'wp_';
$bb->wp_home = 'http://example.com/blog'; // WordPress - Options->General: Blog address (URL) // Example: 'http://example.com'
$bb->wp_siteurl = 'http://example.com'; // WordPress - Options->General: WordPress address (URL) // Example: 'http://example.com'
$bb->usercookie = 'wordpressuser_ab1b1c8b2de0ca2b381c25a6b6e812a1';
$bb->passcookie = 'wordpresspass_ab1b1c8b2de0ca2b381c25a6b6e812a1';
$bb->cookiedomain = 'example.com';
$bb->cookiepath = '/';you also obviously want this plugin:
https://bbpress.org/plugins/topic/2?replies=3
and less obviously this one is a must for WP integration:
https://bbpress.org/forums/topic/usernames-with-spaces-do-not-work?replies=24#post-7904
unfortunately it’s not setup here as a formal plugin but it should be – see my dot fix at the end
July 17, 2007 at 3:52 am #59084In reply to: WordPress/BBPress Single Sign On
Trent Adams
MemberDarn copy and paste….
Trent
-
AuthorSearch Results