Search Results for 'code'
-
AuthorSearch Results
-
April 12, 2008 at 11:17 pm #58948
In reply to: User-editable Custom Titles
citizenkeith
ParticipantHmm…. not sure to how to change that code without getting errors (I’m running 0.9.0.1 on this particular forum).
function get_profile_info_keys() {
return apply_filters(
'get_profile_info_keys',
array('user_email' => array(1, __('Email')), 'user_url' => array(0, __('Website')), 'from' => array(0, __('Location')), 'occ' => array(0, __('Occupation')), 'interest' => array(0, __('Interests')))
);
}
function get_profile_admin_keys() {
global $bbdb;
return apply_filters(
'get_profile_admin_keys',
array($bbdb->prefix . 'title' => array(0, __('Custom Title')))
);
}April 12, 2008 at 10:02 pm #64247In reply to: Change Gravatar Size?
citizenkeith
ParticipantThanks Wyvn. It would be nice if there was something in the Admin menu to change this, but for now I’ll just change that file.
April 12, 2008 at 7:11 pm #64029In reply to: avatars in wordpress and bbpress
affacat
Memberto better illustrate my issue, my current code for the profile page is:
if ( avatarupload_get_avatar(ID) ) {
avatarupload_display($user->ID);
} else {
echo bb_get_avatar( $user->ID );
}
which means if uploaded avatar exists then display it, else get gravatar.
but what i really want is:
if uploaded avatar exists then display it, else if gravatar exists then display that, but if neither exists then display the avatar upload default avatar.
Right now it displays gravatar default instead. which isn’t my first choice since avatar upload would give me control over the default image which is better for obvious reasons.
April 12, 2008 at 4:38 am #64120feelie75
MemberThis is the code that was making the call and getting the return false returned to it, thus resulting in this error:
if (!$bbdb->db_connect(‘SHOW TABLES;’)) {
$this->step_status[1] = ‘incomplete’;
$this->strings[1][] = __(‘There was a problem connecting to the database you specified.
Please check the settings, then try again.’);return ‘error’;
}
db_connect was returning false when it detected $this->$dbhname was undef. So by removing the return false when that happened, the db_connect call then succeeded and all was happy
.To answer the other person, I’m hosting on localhost. I have an old PowerPC Mac running OS X 10.4.11 or something. It’s a spare computer; thought I’d stick a forum on it and learn some php.
April 12, 2008 at 12:59 am #64239In reply to: WPMU with BBpress on Subdomain
arlene476
MemberThere is an answer here, https://bbpress.org/forums/topic/require_oncepathtowp-blog-headerphp
Saying:
Put in the full path from the server root instead of the relative path.
But I don’t know how to code it and what line to place it
April 11, 2008 at 9:54 pm #64212In reply to: using bb_users with integrated setup
precious-forever
Memberthis order: WP 2.3, bbpress 0.8 (no integration with plugins at that time!), WP 2.5, bbpress 0.9
I patently waited with integration until 0.9 was out since I did not understand the whole thing before. And everything seems to work fine. Just as soon as I add the WP_ prefix setting to my bbpress config, it seems as if bbpress can only access the WP users anymore (with the correct role mapping i set up etc.).
maybe I should just ask all registered users to reregister after integration, since the forum is pretty new anyway
April 11, 2008 at 7:23 pm #63631chrishajer
ParticipantSorry, I forgot I was talking about tags.php specifically. Here’s a tags URL.
http://www.riversideinfo.org/forum/tags.php?tag%3Dtif
is what’s in the sitemap.
curl -I "http://www.riversideinfo.org/forum/tags.php?tag%3Dtif"returns a 302 header.
If you unencode it, and then curl -I:
curl -I "http://www.riversideinfo.org/forum/tags.php?tag=tif"returns a 200 header.
Maybe it’s just the urlencoding of the = that causes it to redirect? That’s the only difference between the two URLs here.
April 11, 2008 at 7:18 pm #63630chrishajer
ParticipantHere’s an example of a URL in the sitemap.
http://www.riversideinfo.org/forum/topic.php?id%3D3%26page%26replies%3D1
If you do a
curl -I http://www.riversideinfo.org/forum/topic.php?id%3D3%26page%26replies%3D1you get a 302 header back. If you URL unencode the URL and do a curl -I, you get back a proper 200:curl -I "http://www.riversideinfo.org/forum/topic.php?id=3&page&replies=1"I am not using permalinks or slugs, and that plugin author doesn’t seem to have updated it since I installed it long ago. I actually turned it off a while ago because of the amount of time it was taking to generate the sitemap for 5000 posts.
http://boakes.org/talk/topic/31
So, I guess the question is, why does that first URL trigger a 302? Maybe the sitemap plugin is creating URLs that are poorly formed?
April 11, 2008 at 4:43 pm #63629_ck_
ParticipantI am not sure why Google would be seeing redirects. bbPress only redirects after form submits via wp_redirect to the best of my knowledge. Some plugins do too, but usually again after only form submits. Even tag URLs don’t use redirects.
Are you saying the sitemap plugin does not generate permalink urls but rather the non-slug type ie.
?topic=123If so, it’s outdated and if you are using slugs it should be modified to generate results that take advantage of slugs.April 11, 2008 at 4:11 pm #64071In reply to: PHP if… else Help Required
_ck_
ParticipantbbPress has a function to check for administrators.
if (!in_array(intval($GLOBALS['forum']->forum_id), array(2,5,9)) || bb_current_user_can('administrate')) { do something here }where 2,5,9 is the list of forum numbers you want to restrict
what you are trying to do is possible but very tricky
For example the “add new” on the front page offers all the forums for posting and you’d have to write a replacement for the list (bb_new_topic_forum_dropdown)
All the “magic” happens in post-form.php, so you could take that if statement above and wrap the entire template with that (in theory).
April 11, 2008 at 3:58 pm #64208In reply to: Disable “Latest Discussions”
_ck_
ParticipantFind
bb-templateskakumeifront-page.php(or the same template name in any alternate theme you might be using) and find the line that says<?php if ( $topics || $super_stickies ) : ?>(around line 11) and make it say<?php if ( 0 && ( $topics || $super_stickies )) : ?>which will make the if statement always fail and never show the latest discussions. If you ever want to restore it, just remove the zero &&.
April 11, 2008 at 3:38 pm #64156In reply to: New bbPress Theme: Peacemaker
refueled
Member“Interesting design.”
Hopefully that’s a good thing, and not too interesting that it’s junk.

Thanks for adding it to bbshowcase.
April 11, 2008 at 11:12 am #53835In reply to: k2 for bbpress
linickx
ParticipantI had an e-mail saying that the latest bbpress broke my port, so I’ve done a re-release

http://www.linickx.com/archives/402/k2-for-bbpress-updated-v002
April 11, 2008 at 7:17 am #64152In reply to: Prblem upgrading
Sam Bauers
ParticipantIf bbPress and WordPress are in the same database then hopefully all you should have to do is add this line to your bb-config.php after the database definitions:
$wp_table_prefix = 'wp_';April 10, 2008 at 7:37 pm #64137In reply to: Gravatars and 0.9 needs plugin?
mattpeckham
MemberGood question GoeffF, looks like it used to be here:
http://bbshowcase.org/forums/view/available-themes
But clicking on it just refreshes the page. Clicking on the author’s link takes you to a rather nebulous blog which for all I know has the code for the theme (if it’s even still the blog of the original guy) but good luck finding it.
Was there a legal issue with posting that theme? Did bbPress not approve?
April 10, 2008 at 5:06 pm #64144In reply to: Newbie: Query re step 2 wordpress integration.
Hermiony
MemberHi Chris,
It is a WP blog, I just call it a website as I’ve tweaked a tad to be more websitesque and not bloggy.
Thank you for your help
April 10, 2008 at 2:22 pm #63492In reply to: Delete Post not working
citizenkeith
ParticipantI had some spam to delete today, and realized that the “Delete” function still wasn’t working for the Keymaster.
I deleted the offending post and topic name from PHPMyAdmin, but I really don’t want to do that!
Can somebody help me troubleshoot this problem? The forum gets a decent amount of traffic, and there are a few trolls waiting in the wings.
April 10, 2008 at 7:58 am #64193In reply to: Plugin problem
rbredow
MemberThis one had me stumped but I just figured it out. I should probably document the solve it here in case others encounter the same problem.
Like many people, I have bbpress installed in a subdirectory below wordpress:
/myblog/bbpress/
I also use the popular wp-super-cache plugin for wordpress. It turns out, you really need to add your bbpress directory to the list of rejected URI’s for wp-super-cache. For the above example, you’d want to add this line to the Rejected URI’s field:
/bbpress/Otherwise, your bbpress board and the administration panel will be semi-randomly showing you old cached pages. Unsurprisingly, this can cause all sorts of strangeness including apparently activating/de-activating plugins, showing plugins that you’ve deleted, etc.
-Rob
April 10, 2008 at 2:54 am #49642In reply to: Emoticons For bbPress?
citizenkeith
ParticipantAt least I’m not the only one with problems.

I have the plugin activated, and if you type the shortcut, the image does appear. But you can’t click on the image links to make them appear in your post.
April 10, 2008 at 12:02 am #64126In reply to: Cookies not shared between 0.9 and 2.5
intellivision
ParticipantSame behavior when I don’t check “remember me”. Logging in one logs me out of the other.
Note: I just today moved the site from a dev area at
coloradoboards.com/appleswitcher/wp/to
appleswitcher.com/wp/so further cookie path examples will reflect that.
April 9, 2008 at 6:34 pm #64140In reply to: Newbie: Query re step 2 wordpress integration.
chrishajer
ParticipantIn wp-config.php, there is this line:
define('SECRET_KEY', 'put your unique phrase here');Whatever value you have there is what you need for bbPress.
For WordPress address and Blog address, log into your WordPress control panel and under “Settings” you will find these two entries. Whatever is here is what you put into your bbPress installation.
They are entries three and four I believe.
April 9, 2008 at 5:14 pm #64079In reply to: “I could not find the file bb-config-sample.php”
mattpeckham
MemberI’m not sure why, but the file wasn’t there. Perhaps I inadvertently deleted it? I downloaded the install again and bingo, there it was. Uploaded it and the install went off without a hitch.
Conclusion? Bad user on device error.

Matt
April 9, 2008 at 5:08 pm #3164Topic: Cookies not shared between 0.9 and 2.5
in forum Installationintellivision
ParticipantLogging in to WP 2.5 logs me out of bbPress 0.9.0.1, and vice-versa.
Cookie information with bbPress .9
name: wordpress_613ba28cb41760cadf1f08a898f98620
contents: xxxx%7C1208969840%7C594bfc5f83a1e8af5dd70d130d4c0b89
website: coloradoboards.com
path: /appleswitcher/wp/
date: Wed, Apr 23, 2008 10:57:19 AMCookie information with WP 2.5
name: wordpress_613ba28cb41760cadf1f08a898f98620
contents: xxxx%7C1208969965%7Cba3e6d706d0ec0feff73e34afde5d9f0
website: coloradoboards.com
path: /appleswitcher/wp/
date: Wed, Apr 23, 2008 10:59:23 AM…where xxxx is a not my username… just using that for security.
April 9, 2008 at 4:14 pm #64061In reply to: Newbie: Which file should I upload bbpress to?
Hermiony
MemberThank you Feldman
April 9, 2008 at 3:42 pm #63919Sam Bauers
ParticipantThanks so1o, that’s the quick an dirty fix. That code uses jQuery methods, and jQuery is not available in topic pages.
It didn’t get picked up because that code falls back to non-ajax requests when it fails.
We are half way through removing all prototype in favour of jQuery, and this snuck under the radar.
-
AuthorSearch Results