Search Results for 'code'
-
AuthorSearch Results
-
November 10, 2007 at 12:55 pm #61393
In reply to: Spam Registration
Null
MemberHow about a different direction, ad an activation code in the e-mail while registrating. The password is already e-mailed, so put in an activation link aswell. If not activated using the link in 1 or 2 days, the person wont be registrated at all.
Many forum software have something like this, why not bbpress?
November 10, 2007 at 12:41 pm #61322In reply to: Now that interface is dead…
Sam Bauers
Participant> why is this forum here anyway?
Support…
The mailing list has less non-dev chatter. In fact it has none, so if people post dev related stuff there, they are more likely to get noticed. Most of the traffic here is community support – high quality community support I might add – but not generally stuff that directly relates to development of the codebase.
As for the question about jQuery UI, I guess we’ll move if there is a compelling reason. I’m sure there could be, and if you put a case either here or on the dev mailing list we can discuss it further.
November 10, 2007 at 12:06 pm #2581Topic: Spam Registration
in forum Requests & FeedbackNull
MemberCan we PLZ get someting against the Spam Registration??? Captcha perhaps??? Or a Captcha like plugin?
My board is getting spam regisdtrated to death if this keeps up
fel64
MemberYo!
What you could do is make bbsync look at your custom data, create the tables and hang them onto the post it puts into bbpress. However, there’s a better way IMO.
Every synced topic has the attribute
wp_post
, giving the id of the wordpress post. Since you probably run wp when you run bb (if you’re fully integrated), you can do (something like …) this in your bbpress template:if( isset( $topic->wp_post ) ) {
$wp_post = get_postdata( $topic->wp_post );
if( isset( $wp_post->custom attribute you're interested in ) ) {
// some code to output a table into your template here
}
}Much more interestingly, you could probably make that into a plugin so you can switch this behaviour on and off, and probably reuse it somewhere too. Could be very neat.
It’s feasible to replicate the functionality to want, but the best way would be to write a seperate plugin that only relies on bbsync for one thing: providing the ID of the wordpress post you’re interested in.
[As a general note: every wordpress post in wordpress has the attribute
bb_topic
too, giving the topic id for bbpress.]November 9, 2007 at 8:28 pm #60815In reply to: bbPress 0.8.3 is compatible with WordPress 2.3
andorko
MemberAre the two fully integrated? Just users or functions as well?
With MU 1.2.4/bbpress 0.8.3 I am able to put this in the end of the wp-config.php file just fine.
// Include bbPress functions
define('WP_BB', true); // Avoid duplicate functions
require_once( ABSPATH . '../forums/bb-load.php');
With MU 1.3/bbpress 0.8.3 having that yields a Cannot redeclare update_user_status error.
dreamstruck
MemberHey fel…
Basically the way I use it right now is I have about a dozen custom fields that I’ve created and I use these to put certain data into a table format in my posts. I have the custom fields hard coded into my my wordpress templates inside the loop section. If on a certain post I need to put data into this table format I fill out the custom field section on the Write Post screen when I’m writing the post. Then of course when I publish the post the custom fields that I’ve filled out show up in the table format in my post. I hope that makes sense…
Basically I guess what I need to know is if there is a way for me to hard code the custom field tags into the bbsync.php file so that it would pull those from the word press post and if so where I would put them in the bbsync.php file. I guess I don’t really need to use the plugin I told you about in my earlier post. If I could just put the custom field tags into the bbysync file and have them pull in that would be great.
Anyway, I hope that makes sense… Thanks for your help!
November 9, 2007 at 12:25 pm #2575Topic: get favorites list
in forum Themesjaxxx
MemberHi,
Is there a way of getting a user’s favorites to display without on a forum page other than /profile/#/favorite ?
I’ve looked at the code but I don’t want to dig too deeply into it as I’m sure it will change a lot during the next year.
Basically what I want to do is create a unified profile page, which has been possible with everything except favorites.
See http://www.surrealroad.com/forum/1 if this doesn’t make sense
November 9, 2007 at 2:45 am #61337In reply to: Theming Issue!
mikeygyse
Memberand also ensure that
#forumlist tr td div.nest {
padding-left: 2.5ex;
}is added to Style.css
November 9, 2007 at 2:05 am #61336In reply to: Theming Issue!
mikeygyse
MemberThe solution is to rip out the code
<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 foreach ( $forums as $forum ) : ?>
<tr<?php alt_class('forum'); ?>>
<td><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a> — <small><?php forum_description(); ?></small></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
</tr>
<?php endforeach; ?>
</table>from Superbold-bbpress/front-page.php
and replace it with
<?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() ?>from Kakumei/front-page.php
November 8, 2007 at 8:07 pm #59145In reply to: Installing bbPress
jim12345
Member“what I thought was my database password was incorrect. The correct password will be the same as in wp-config.php”
Wow, that worked!! I changed the password in config.php to the match the one in wp-config.php, and now my forum is up and running!
Many thanks.
November 8, 2007 at 7:28 pm #61305In reply to: Forum-wide RSS Feed not working
Arcsin
MemberHad the same error myself. After some debugging I found out that $tag is assigned a value where it shouldn’t.
These lines solved it (inserted as lines 28-29):
if (strlen($tag) == 0)
unset($tag);November 8, 2007 at 5:37 pm #61363In reply to: How to get the id from the second row? (Mysql)
fel64
Member$data = $bbdb->query('stuff');
$what_you_want = $data[1]->column_name;If I recall correctly.
$data[1]
should be the second item (0-based arrays), which is an object. Access its property by the name of the column the ID is stored in. bbdb is based on ezSQL. Look for some documentation. It’s actually pretty well documented for wpdb; did you not find anything there?November 8, 2007 at 5:34 pm #61356In reply to: A way to ping-o-matic when a new post comes in?
fel64
MemberWrite a plugin to do it. There’s some actions you can hook into. Writing bb plugins is like writing wp plugins: https://codex.wordpress.org/Writing_a_Plugin
However the actions are different. Look for the actions on http://bbpulp.org/wiki/API/actions .
November 8, 2007 at 3:46 pm #61362In reply to: How to get the id from the second row? (Mysql)
Null
MemberI am at work so can’t show the query
The results are always different, but I need the id from the sec row no matter what the outcome is…
So sometimes it’s:
Row 1 – id 23 – tekst
Row 2 – id 12 – tekst
Row 3 – id 44 – tekst
etc
Or sometimes it’s:
Row 1 – id 7863 – tekst
Row 2 – id 56557 – tekst
Row 3 – id 665 – tekst
etc
dreamstruck
MemberHi fel64…
Wow, thanks for the quick reply! I use the Get Custom Field Values plugin in WordPress and this allows me to pull in custom fields that I’ve set up in my posts. I typically use this if a post is going to have some information that needs to be laid out in a format thats a little different than my regular post format. I’m not sure how these custom field values could be pulled into bbpress. Here’s the link to the Custom Field Values plugin if that helps:
Thanks for looking…
fel64
MemberYo Dreamstruck. When you say that you also have bbPress Post 0.41 installed, I hope you realise that bbsync (intentionally) kills its functioning? If it didn’t, you would get duplicate topics.
I recommend pressing that Migrate button in the bbsync admin, as it will mean that bbsync will work on all topics previously synced with bbPress Post. It would, however, also stop bbPress Post working with that old data, so if you’re (understandably; I am
) hesitant about bbsync you probably wouldn’t want to do that.
Cheers muchly, if you hadn’t pointed that out I would have had that error for all time – I entirely forgot to test if the topic was synced before replacing comments. I’ll upload .91 in a few minutes.
There is unfortunately no way to bulk sync old topics (unless they were done using bbPress Post), as topics can only be posted at the current time (while still using the API) (so you could sync them, but it would flood the forum with out-of-date stuff). But maybe that can be made to work; not in the immediate future, but it’s something that I would also like for my setup so I’ll give it a shot at least.
Custom fields don’t show up right now, but I could come some functionality to do it for sures. What specifically would you want to happen?
dreamstruck
MemberI really like this plugin, but I am getting an error on all of my older WP posts. I’m using bbSync 0.9 and bbPress Post .041 with WP 2.2.3.
What’s happening is that all of my old WP posts have this error showing up right above the comment section:
Warning: Invalid argument supplied for foreach() in /home/public_html/test/wp-content/plugins/
bbsync.php on line 465All new posts that I make to WP are posting fine to bbPress and this error message doesn’t show up for these new posts. I have about 500 old posts that existed in WP before I installed bbSync or bbPress Post and the error message is showing up on all of these old posts. Is there a way for me to bulk add all of these old post to my bbPress forum? It seems that this error is showing up because these old posts don’t exist in bbPress.
Thanks…
November 7, 2007 at 12:49 am #61334In reply to: Theming Issue!
mikeygyse
MemberFixed it, it’s an issue with incorrect/missing code in the SuperBold Front-Page.php file
November 6, 2007 at 5:20 pm #61332In reply to: Theming Issue!
fel64
MemberCan you provide some links and/or code please?
fel64
MemberA modicum of tinkering later, and now all that nonsense with felbbreplies is gone; bbsync hooks into some more filters to achieve the same thing, so ordinary wp comment.php template code shows all posts (including bb’s) now. Should also display trackbacks (although out of order). This is 0.9.
November 5, 2007 at 4:59 pm #61307In reply to: user profile link – bb vs wp
fel64
Memberwp uses a static, non-user specific link. You can therefore go to your profile in admin and use the URL of that as the link for everybody.
bb has a function you can call:
user_profile_link()
, just like that as far as I can tell.Just change the theme appropriately for both bb and wp.
November 4, 2007 at 9:24 pm #60519In reply to: after integration -> some problems!
Jaithn
Memberi call it like this:
if ( !defined('BBDB_NAME') )
require_once(ABSPATH.'forum/bb-load.php');the problem started after the integration of wordpress and bbpress…so i don’t know what the problem ist.
mdawaffe do you have a idea how i can fix this?
i have one more problem…i can’t add links to my posts…when i post a link in the entry it shows only
<a>test</a>
…any idea?jaithn
i’m running now bbpress.83 and wpmu 1.3…
November 4, 2007 at 7:43 am #61303In reply to: Forum-wide RSS Feed not working
livibetter
MemberOkay. I finally got it. I think this is a bug of bbPress.
line 29-55 in
rss.php
ensures there is a post found at least, if not thendie()
.Normally, we see no entries in a feed if there is no posts matched. But bbPress choose to die. You can replace each line of
die();
with a dummy statement like1; // die();
However, this is no enough. The third statement from bottom:
bb_send_304( $posts[0]->post_time );
Replace it with
if ($posts)
bb_send_304( $posts[0]->post_time );Since bbPress can’t find any posts, therefore it has no way to decide that should it send a 304.
Can anyone confirm this is a bug about choosing to die?
November 4, 2007 at 5:32 am #59140In reply to: Installing bbPress
EricBobrow
MemberI installed wordpress without problem for two different blogs, but cannot get bbpress to install. I’ve spent a few hours trying out things this past week with no success. The patch by mdawaffe fixes my error messages related to mysql_get_server_info, however I still get some other strange messages:
Warning: Cannot modify header information – headers already sent by (output started at /homepages/10/d171407036/htdocs/bcg/mastertemplate/blog/bbpress/bb-includes/db-mysqli.php:473) in /homepages/10/d171407036/htdocs/bcg/mastertemplate/blog/bbpress/bb-admin/install.php on line 10
Warning: Cannot modify header information – headers already sent by (output started at /homepages/10/d171407036/htdocs/bcg/mastertemplate/blog/bbpress/bb-includes/db-mysqli.php:473) in /homepages/10/d171407036/htdocs/bcg/mastertemplate/blog/bbpress/bb-includes/functions.php on line 1898
Can anyone help me with this? I just set up a WordPress blog for a new product we’re distributing, and would like a forum in conjunction with it, so bbPress would be perfect.
If I can’t set up bbPress right now because the code is buggy, does anyone have suggestions for other forum software? I would even be ok with temporarily using a different forum setup, then porting it over to bbPress later (if that’s straightforward???).
Thanks in advance for any help or advice. I’m a knowledgeable computer consultant, but pretty inexperienced in blogs/forums. I can follow the conversation about patching the php files, and did so using standard web authoring tools. However, I’m not interested in becoming an expert on code versions or using diff tools. I just want a forum software that works well with my new blog for the benefit of our clients, with a minimum of fuss.
November 3, 2007 at 12:58 am #59139In reply to: Installing bbPress
chrishajer
ParticipantNormally, bbPress is not this bad. A couple bugs were introduced which create problems on some systems. My install from a year ago was no where near this hard, but I checked out the new code and if I installed it I would have had this same trouble.
I think the line 80 being referenced is line 80 of /bb-includes/db-mysqli.php
https://trac.bbpress.org/browser/trunk/bb-includes/db-mysqli.php#L80
I think there are 3 possible workarounds:
1. You can try overwriting /bb-includes/db-mysqli.php with /bb-includes/db.php
2. You can manually modify line 80 of /bb-includes/db-mysqli.php
3. You can apply the 745c.diff patch attached to trac ticket 745
4. Wait for mdawaffe to fix it permanently.
I guess a 5th option is to move on to other forum software. I hope you don’t do that. bbPress is nice when it works (which is 99.9% of the time.)
-
AuthorSearch Results