Search Results for 'code'
-
AuthorSearch Results
-
June 26, 2009 at 11:49 pm #75029
In reply to: Error messages with bbPress and WP’s WP_CACHE
r-a-y
ParticipantHi Sam,
Thanks for that detailed post. I’ve added this post to my favorites so I can come back to it.
However, at this time, I’m not going to upgrade until bbPress reaches official version 1 status.
I’ve temporarily gotten rid of the warning messages by doing the following:
Line 71 of bbPress 1.o alpha 6:
$_cached_ids = join( ',', array_map( 'intval', (array)$cached_ids ) );
Lines 86-89 of bbPress 1.o alpha 6:
if(!empty($cached_ids)) {
foreach ( $cached_ids as $cached_id )
$this->results[] = $trans[$cached_id];
}Yeah I know it isn’t ideal as I’m probably not using the latest, optimized build of bbPress, but it gets rid of the warning messages.
June 26, 2009 at 10:36 pm #74846In reply to: Name of Header and Footer Files for Kakumei Theme
crimsonmai
MemberThey are named header.php and footer.php in the Kakumei directory
Just make sure you’re looking at the default Kakumei directory and not, for example, the alternate blue one.
June 26, 2009 at 9:19 pm #75028In reply to: Error messages with bbPress and WP’s WP_CACHE
Sam Bauers
ParticipantOK then, you really need to upgrade.
Here’s how I would do it…
- De-integrate cookies, clear out all cookie settings in bbPress/WordPress including hardcoded ones in configs with the exception of you secret keys (BB_AUTH_KEY and friends)
- Upgrade to the latest Trunk of bbPress
- Upgrade to the latest release of the bbPress Integration plugin
- Clear all relevant cookies in your browser
- Setup integration in WordPress first, go to the admin panel for the plugin – use the settings it gives you to use in your wp-config.php file
- Setup integration in bbPress second, if the plugin in WordPress tells you to add a special constant to bb-config.php, do that now too. You’ll need to login to bbPress separately at this stage. Only enter settings into the admin, don’t try to add anything back into your bb-config.php except that one line from the WordPress plugin
- Now you should be good to go again, clear your browser cookies and try various ways to login and logout
June 26, 2009 at 9:18 pm #75080In reply to: How to remove Occupation & Interest META data?
johnhiler
MemberAh ok, that looks pretty similar to johnbillion’s plugin. Glad it worked out.
June 26, 2009 at 9:07 pm #75027In reply to: Error messages with bbPress and WP’s WP_CACHE
Sam Bauers
ParticipantVisit the WordPress Codex and search for information on
apply_filters()
.You can filter that array with a simple plugin.
June 26, 2009 at 9:07 pm #75078In reply to: How to remove Occupation & Interest META data?
frooyo
MemberHmm … looks like it’s hardcoded in the bb-include/functions.bb-core.php
/meta_key => (required?, Label, hCard property). Don’t use user_{anything} as the name of your meta_key.
function bb_get_profile_info_keys( $context = null ) {
return apply_filters( ‘get_profile_info_keys’, array(
‘first_name’ => array(0, __(‘First name’)),
‘last_name’ => array(0, __(‘Last name’)),
‘display_name’ => array(1, __(‘Display name as’)),
‘user_email’ => array(1, __(‘Email’), ’email’),
‘user_url’ => array(0, __(‘Website’), ‘url’),
‘from’ => array(0, __(‘Location’)),
‘occ’ => array(0, __(‘Occupation’), ‘role’),
‘interest’ => array(0, __(‘Interests’)),
), $context );
}
Anyone know of a good way to remove Occupation and Interests without having to modify the bb-core.php file (to make future upgrading easier)
June 26, 2009 at 8:57 pm #75077In reply to: How to remove Occupation & Interest META data?
frooyo
MemberThanks, I’m looking into the database right now myself.
If you find anything, please let me know. Back to looking myself
June 26, 2009 at 8:47 pm #75073In reply to: How to remove Occupation & Interest META data?
johnhiler
MemberThat’s not standard… did you add a plugin to support this? If so, turning off the plugin should do the trick.
June 26, 2009 at 7:51 pm #74487In reply to: Intergration problem, when upgrading wordpress 2.8
Markus Pezold
ParticipantAfter the Update to bbPress Version 1.0-rc-3 my problems are gone. I think everyone should test there used plugins, backup and then test the update. Can’t wait for bbPress 1.
https://bbpress.org/forums/topic/cookie-integration-problem-wp28-bb-10-rc-2
June 26, 2009 at 7:45 pm #74954In reply to: Can admin but not browse to forum
stevebooth
MemberKnow what? I got fed up with my hosting service. ;P
I spent the entire morning working on my bbPress implementation, and had an epiphany about ten minutes ago. I asked myself… ‘Why in the name of the seven seas are you using Concentric?’ When I couldn’t come up with a better answer than ‘it’s what I always use’, I whipped out Google, entered the term ‘best wordpress hosting service’, was routed to WordPress’ hosting page, and I just signed up with bluehost.
So… this is now all moot (hopefully). I’m planning on just working on CONTENT after my nameserver updates happen! YAY!!!!!!!
I feel like going on vacation
June 26, 2009 at 6:21 pm #75060In reply to: User profile link in post – replacement link
Ipstenu (Mika Epstein)
ModeratorYou just want to change the output from
<a href="http://mbforum.letsdoo.org/profile/michael">Key Master</a>
to<a href="http://mbforum.letsdoo.org/profile/michael">Profile</a>
?Try this:
<div class="threadauthor">
<?php avatarupload_display(get_post_author_id()); ?>
<p>
<strong><?php post_author_link(); ?></strong><br />
<small><a href="/profile/<?php post_author(); ?>">User Profile</a></small>
</p>
</div>June 26, 2009 at 6:01 pm #74953In reply to: Can admin but not browse to forum
Ipstenu (Mika Epstein)
Moderator@johnhiller – On the other hand, going gold will mean more people using it and thus more people screaming for help and bitching at bugs
Which is stressful, but honestly there’s nothing like a real-world test. (She says, having spend 6 months beta testing new software, had NO bugs in her queue, and then twenty minutes in the wild had a fill ticket queue again
You just can’t test everything.)
June 26, 2009 at 5:56 pm #75012In reply to: Limiting my forum’s post size
Ipstenu (Mika Epstein)
ModeratorCSS doesn’t control everything. Yet.
Actually, it can control that, but not reliably or consistently, due to browser independence.
chris’s idea is probably best in the long run.
June 26, 2009 at 5:53 pm #73363In reply to: Menu Links
Ipstenu (Mika Epstein)
ModeratorI’m not sure why they decided it should be that way, I just go with the flow
What are the folder permissions on my-templates, when compared to bb-templates?
June 26, 2009 at 5:25 pm #71873In reply to: .pot File for 1.0 Alpha
Markus Pezold
ParticipantHi Sumit,
i have the same problems today … the problems lies in the msig_plural-Tag in the POT-File.
Poedit must have the right configuration in the catalog settings to work with the plural forms.
For a german translation the Plural-Forms is: nplurals=2; plural=n != 1;
#: bb-admin/content-forums.php:46
#: bb-admin/index.php:23
#, php-format
msgid "%d topic"
msgid_plural "%d topics"
msgstr[0] ""
msgstr[1] ""
June 26, 2009 at 5:21 pm #74952In reply to: Can admin but not browse to forum
stevebooth
MemberNope, no offense at all. And I’m more than happyto work with the community as a contributing member. I second your thoughts regarding the release. I don’t think we’re ready either. I suspect WP is under a lot of pressure to bet bb out.
I’ll make it work… sooner or later
June 26, 2009 at 1:21 pm #15097Topic: User profile link in post – replacement link
in forum Troubleshootingmichael3185
MemberI’m trying to change the post author link which is displayed as ‘Key Master’ (for example) to ‘User profile’. Tried lots of variations having looked through the bbPress template functions file, but can’t get it to work. The top part of my post.php code is this at present;
<div class="threadauthor">
<?php avatarupload_display(get_post_author_id()); ?>
<p>
<strong><?php post_author_link(); ?></strong><br />
<small><?php post_author_title(); ?></small>
</p>
</div>The post_author_link() line becomes;
<a href="http://mbforum.letsdoo.org/profile/michael">Key Master</a>
I realise I’m just not grasping how the PHP code/functions work, so if anyone thinks, “Oh yeah, all you do is…” I’d be very grateful for an answer.
June 26, 2009 at 7:06 am #74641In reply to: Deep Integration Issue
crimsonmai
MemberImmelody, just curious if you could give a quick run through of how you were able to apply (or convert) your wordpress theme to bbpress. I’ve been trying to learn how to do it, and so far what I’ve read is to copy the header and footer from wordpress to bbpress. Problem is I’m not that great at programming so it’s a bunch of guess work. I’ve been trying to do it unsuccessfully for about 3 months now…
Sorry to bother you, but if you could help I’d really appreciate it and I’m sure it would help others as well!
Edit: I forgot to mention I have the databases integrated although I’m not sure how I managed that
It’s just recreating the theme that is really stumping me.
June 26, 2009 at 6:08 am #74951In reply to: Can admin but not browse to forum
johnhiler
MemberBy going gold, I just meant that the bbPress staff is about to officially declare a release as version 1.0:
http://en.wikipedia.org/wiki/Software_release_life_cycle#RTM
I personally think that there have been a lot of code changes (and new features) recently, and some extra time to focus as a community on identifying and debugging issues would be really good for the release. But obviously it’s not my call.
After version 1 comes out, a wiki-based codex will be added to the site and we’ll work as a community to get the documentation up. Hopefully there can be more documentation around what functions like bb_permalink are intended to do. I’ll do my best to see if we can’t nail down bb_permalink’s specs asap!
Hope I didn’t say anything to offend… I’m just a bbPress user, trying to help out another user.
June 26, 2009 at 5:15 am #75020In reply to: Error messages with bbPress and WP’s WP_CACHE
Sam Bauers
ParticipantThat article on the BuddyPress Codex is a little confused.
Are you using WP-Super-Cache (output caching) or an object based cache like the memcached object cache?
June 26, 2009 at 4:49 am #74950In reply to: Can admin but not browse to forum
stevebooth
MemberWordPress is working great. I had a couple of minor config details on the install, but it went in marvelously.
I know what the problem is. It’s bb_repermalink. It’s creating 404s and endless loops because the code inside it can’t handle the way SunOS sets up it’s system variables. The problem is, I don’t know what the stupid thing is supposed to do, so I cant figure out if the code is fixed or broken (and of course there are exactly zero tech docs on either it or bbPress). There are some REALLY strange regex replace operations in there that frankly look wrong to me, but I don’t know enough about bb at the moment to know how to fix them.
I’m going to completely disable repermalink tomorrow, and see if I can get the rest of the system to work without it. I tried that a bit ago and at least got past the first page. (although it told me, when I clicked on one of the forums it was displaying that the forum didn’t exist. At least that’s better than 404s and infinite loops.)
Not caring about SunOS is shortsighted in my view, and calling the current code ‘Golden’ would be a mistake. What I’m seeing in bb_permalink is going to cause major problems in tons of non-Sun machines, I believe. If they release 1.0 the way it is, I predict it will crash on a large percentage of WP users’ machines and engender a great deal of dissatisfaction as a result.
My 2c, for what it’s worth.
June 25, 2009 at 6:19 pm #75010In reply to: Limiting my forum’s post size
michael3185
MemberThanks for the link Ipstenu. I guess I wasn’t thinking along the right lines, as it needs to be done in the browser, not on the bbPress PHP side. I’m not sure how to implement that JavaScript and HTML code, but I’ll give it a go sometime soon. It’d be nice if the CSS TextArea had a setting for that, wouldn’t it?
June 25, 2009 at 6:02 pm #73361In reply to: Menu Links
Ipstenu (Mika Epstein)
ModeratorI’m … not sure. Can you show me what you have in bb-templates and my templates? I’m assuming it’s this:
/public_html/bbpress/bb-templates/kakumei
/public_html/bbpress/bb-templates/kakumei-blue
/public_html/bbpress/my-templates/kakumei
/public_html/bbpress/my-templates/kakumei-blueIf so, rename the folders under my-templates to something like ‘my-kakumei’.
June 25, 2009 at 5:51 pm #75002In reply to: help, comments link to bbpress now, not comments!
Ipstenu (Mika Epstein)
Moderatorchrishajer – Not exactly.
I NEVER put WP in the root, after (in the 1.* days) it pitched a hissy fit with another web app over permalinks and htaccess. And since you can run WP out of root while having it in a subfolder, and no one can tell the difference, it works rather well.
I have this:
/var/www/example/index.php <which points to the wordpress folder>
/var/www/example/wordpress/<wordpress files>accessible here http://www.example.com/ and here http://www.example.com/wordpress/wp-admin
/var/www/example/bbpress/
accessible here http://www.example.com/bbpress/
With this, once I got my auth keys in order, it worked fine. I’m not saying it can’t be done your way (and hey, if it works, leave it alone!
), I’m just saying that I’ve seen it cause more headaches.
June 25, 2009 at 5:42 pm #75044In reply to: Email blocks – response from my ISP
Ipstenu (Mika Epstein)
ModeratorI ‘resell’ space to a friend with an InvisionBoard setup, and that site spits out a lot of ‘bounced’ emails from spammers registering. I send out 1000s of emails from my domains a day. The ONLY time I had any issues was Yahoo being a bint about me sending emails to non-existent accounts. They realized the problem and apologized.
A ‘normal’ board has little to worry about. You have to work hard to get blacklisted
Or be spoofed enough.
-
AuthorSearch Results