Search Results for 'code'
-
AuthorSearch Results
-
July 27, 2008 at 2:03 pm #66388
In reply to: Need help with plugin submission
_ck_
ParticipantAh there is probably a more developed guide on the WordPress side, let me see if I can find it for you.
update: here’s a few guides – essentially the process is identical to the WordPress side except the URL used is going to be
https://plugins-svn.bbpress.org/guides:
http://www.binarymoon.co.uk/2008/01/wordpress-plugin-subversion-guide/
July 27, 2008 at 8:18 am #3687Topic: Need help with plugin submission
in forum Pluginsthion
MemberI have no idea where to post it so I’m using the less-invasive section of this forum
. Is there any “guide to submitting a plugin” to bbpress.org/plugins/? I’ve clicked “Add your plugin!”, I recieved approval and “access to your SVN repository” but now what?I never used SVN or Trac before, I have no idea what to do, I just want to share my plugin with others via bbpress.org
. If there’s any “guide” or wiki page out there to help me out, please point me to it as I have no idea where to look for anything like this…PS: I want coffeeeeeeee
July 27, 2008 at 6:41 am #66336In reply to: Add a “last poster” column in the listing of forums
_ck_
ParticipantI’ve now made this into a full plugin:
https://bbpress.org/plugins/topic/forum-last-poster/
Once you install it, you’ll be able to use your code above, but change the part of the function that says
topictoforum, ie.forum_time()July 26, 2008 at 11:38 pm #66013In reply to: WordPress + bbPress Integration 101
_ck_
ParticipantHi filosofo, it’s an honor to have you here (I learned alot from studying your WordPress plugins).
I take it you are trying to do “full” integration where bbPress and WordPress run together and I guess I didn’t think of that as I try to encourage people NOT to do that because of the massive amount of code that has to execute for every page rendered.
I meant the cookies should integrate, with simple (stand-alone) integration.
Having bbPress based on BackPress and WP not based on it yet is going to become a problem for people doing full intregration. I am not sure if Sam is willing to wrap all the functions in “function_exists” clauses.
It’s great that it works when you remove them – they must have copied the most recent WordPress functions.
July 26, 2008 at 5:46 pm #65857In reply to: Please Critique my Forum Design
chrishajer
Participant[~]$ curl -I http://www.picbi.com/forum/
HTTP/1.1 404 Not Found
Date: Sat, 26 Jul 2008 15:51:13 GMT
Server: Apache/1.3.41 (Unix) mod_jk/1.2.25 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Set-Cookie: wassup=d236f9ce34fae04016f3af250c7877e2%3A%3A1217090173; expires=Sat, 26-Jul-2008 16:41:13 GMT; domain=picbi.com
X-Pingback: http://picbi.com/xmlrpc.php
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Last-Modified: Sat, 26 Jul 2008 15:51:14 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
Connection: close
Content-Type: text/html; charset=UTF-8The “404 Not Found” should be a “200 OK”.
July 26, 2008 at 4:37 pm #66012In reply to: WordPress + bbPress Integration 101
Austin Matzko
MemberFor those that know what they are doing and have subversion, you can checkout or switch to the trunk of bbPress which will give you compatibility with WordPress 2.6
Are you sure it’s compatible? I’m getting fatal errors because the functions in
bb-includes/backpress/functions.core.phpandbb-includes/backpress/functions.compat.php, which are shared with WP, are all getting re-declared.However, if I make those files blank, the integration seems to work.
July 26, 2008 at 3:47 pm #65856In reply to: Please Critique my Forum Design
chrishajer
ParticipantIf you do a
curl -I http://example.com/from the command line on a Linux or Mac machine, or check the response headers with Firebug or the Web Developer Toolbar (both Firefox add-ons) you will see the response header is a 404, but the page still loads. This has something to do with WordPress, I think.I tried to load a page on your forum just now, to show you the header output, but I keep getting a “page load error.”
July 26, 2008 at 6:18 am #60879In reply to: WordPress access to bbPress Functions
chrishajer
ParticipantDid you add that to wp-config.php as the first line, right after the
<?php?The error
cannot redeclaremeans something has already been included that it’s trying to include again.http://www.google.com/search?q=Cannot+redeclare+_http_build_query()
https://bbpress.org/forums/topic/having-trouble-integrating-wp-functions
July 26, 2008 at 3:37 am #66308RossB
MemberThanks, Chris. I know Firefox is a better browser, and the only reason I am using IE is out of habit. Currently running IE 6, and I suppose newer versions are equipped for RSS feeds. Anyway, you’ve cleared up the mystery of the RSS coded page for me! Weird thing, is, IE does show RSS feeds as they should appear on various blogs I’ve subscribed to. Why it should be different for the WP and bbPress forums…aaarrghh, not even going to think about it!
July 26, 2008 at 1:42 am #66366In reply to: Conditional Meta Tags per Page Type, and More?
_ck_
ParticipantIt’s very easy to do this via a plugin.
You have to attach to the ‘bb_head’ action.
In fact if there’s a plugin for WordPress that does it, it would take under a minute to change it for bbPress.
Here’s a mini-plugin I wrote to do noarchive and nofollow:
function no_archive() {
echo "n".'<meta NAME="robots" CONTENT="noarchive,nofollow">'."n";
} add_action('bb_head', 'no_archive');.
It would just have to be wrapped in an IF statement with a URI check to add it when you want it. To get the current location, either check
bb_get_locationor steal it’s code and modify as desired.Something like this (untested)
function no_index() {
if (in_array(bb_get_location(),array("login-page","register-page","profile-page")) {
echo "n".'<meta NAME="robots" CONTENT="noindex,nofollow">'."n";
}
} add_action('bb_head', 'no_archive');July 26, 2008 at 12:46 am #66365In reply to: Conditional Meta Tags per Page Type, and More?
Mr. Grim Reaper
MemberAnyone? Simple “if page” stuff. Yet, I don’t know what the variables are.
July 25, 2008 at 10:53 pm #65852In reply to: Please Critique my Forum Design
_ck_
ParticipantNice look but you need to look into your server configuration as the bbPress pages are being served with 404 error code instead of 200 (even though they display).
Something might be wrong with your htaccess
July 25, 2008 at 9:04 pm #66387In reply to: bbPM admin menu not working at all
_ck_
ParticipantI am not sure about the loading order of your plugin but keep in mind that stuff like
bb_is_user_logged_in()is only available when bbPress is fully initialized.Essentially you cannot execute anything but the most basic independent code until
do_action('bb_init'happens.So you have to hook bb_init, ie:
add_action('bb_init','your_function_name);`and THEN your function can check bb_is_user_logged_in.
BB_IS_ADMIN is a constant so be sure to use DEFINED to test it and not directly or you’ll get an error
if (defined('BB_IS_ADMIN')) {(also, BB_IS_ADMIN means if you are in the admin menu, not if the user is an administrator – not sure if you knew that)
July 25, 2008 at 8:31 pm #66011In reply to: WordPress + bbPress Integration 101
_ck_
ParticipantFor those that know what they are doing and have subversion, you can checkout or switch to the alpha trunk of bbPress which will give you compatibility with WordPress 2.6
svn switch http://svn.automattic.com/bbpress/trunk/Unfortunately an automated download zip cannot be created because this is the first version of bbPress that uses BackPress which is automatically added by svn, but can’t be zipped by TRAC.
Here’s a ZIP’ed snapshot from yesterday:
http://www.mediafire.com/?alvvslgmh22
Keep in mind that you should NOT use the bbPress trunk for live websites – it’s bound to have bugs and some might affect security. You are on your own if you chose to use this version – plugins may have some compatibility issues.
1.0 requires the 3 new WP matching keys inserted into
bb-config.php(see thebb-config-sample.phpfor more info)July 25, 2008 at 8:29 pm #66277In reply to: bbPress 1.0 alpha looks interesting
_ck_
ParticipantFor those that know what they are doing and have subversion, you can checkout or switch to the trunk of bbPress (which will give you compatibility with WordPress 2.6)
svn switch http://svn.automattic.com/bbpress/tags/1.0-alpha-1/Unfortunately an automated download zip cannot be created because this is the first version of bbPress that uses BackPress which is automatically added by svn, but can’t be zipped by TRAC.
Here’s a ZIP’ed snapshot from yesterday:
http://www.mediafire.com/?y33rsdhxeld
Keep in mind that you should NOT use the bbPress trunk for live websites – it’s bound to have bugs and some might affect security. You are on your own if you chose to use this version – plugins may have some compatibility issues.
1.0 requires the 3 new WP matching keys inserted into
bb-config.php(see thebb-config-sample.phpfor more info)Sam could use your bug reports via TRAC if you find problems.
July 25, 2008 at 5:40 pm #66373In reply to: Cannot change Secret Field
_ck_
ParticipantGlad to hear it worked – remember to not keep using
$bb->secretthough in your config and update the db properly as it lowers the security of your setup somewhat.(The idea being an attacker might gain access to bb-config.php and not your db to gain the second half of the key – not my design and not sure I agree with the logic but I guess it’s still better than keep both in an obvious place)
July 25, 2008 at 4:26 pm #66274In reply to: bbPress 1.0 alpha looks interesting
alexleonard
MemberIs there any estimate on when this will be coming out?
Very much looking forward to it
July 25, 2008 at 4:24 pm #66381In reply to: Rewrite url Problem
chrishajer
ParticipantThe syntax of that file is OK (I tried it on my forum), so if it is giving you a 500 error, your host does not allow the directives you’re trying to use in .htaccess. Check with your host to see if .htaccess is allowed and what directives are allowed in it.
If the 500 error was with
Options +MultiViewsthen the host just does not allow that. If this .htaccess file with all the rules does not work, please explain what happens or post a link to your forum.Also, be sure you save the file as .htaccess beginning with a period (hidden file on *nix.)
July 25, 2008 at 9:00 am #66372In reply to: Cannot change Secret Field
783210
Inactive_ck_ That worked!!!! Thank you so much!!!
chrishajer
I don’t have access to my client’s hosting plus I’m not very familiar with Plesk to guide him without looking at it myself.
Anyhow, the problem has been solved
)On a sidenote: This forum keeps telling me my username does not exist when I try going to my profile or favourites 😮
July 25, 2008 at 7:02 am #66371In reply to: Cannot change Secret Field
_ck_
ParticipantIt might be possible to do this inside bb-config.php
$bb->secret=”blah blah your key”;
and override the internal db.
I have to lookup if “secret” is the real name though.
(that’s in addition to define(‘BB_SECRET_KEY’ )
Yeah, apparently it really is
$bb->secretgive that a try.July 25, 2008 at 7:00 am #66307chrishajer
ParticipantHere is a screenshot of my iGoogle page with the bbPress.org Recent Posts feed right at the top/center. Your post is visible there
All the items on this page are RSS feeds.July 25, 2008 at 6:55 am #66368In reply to: Cannot change Secret Field
chrishajer
ParticipantHow about just putting the correct value in bb-config.php?
define('BB_SECRET_KEY',Just make that the same as the value in wp-config.php
There’s no way in Plesk to manage the database? That seems odd. Do you have shell access where you could use mysql from the command line?
July 25, 2008 at 6:52 am #66306chrishajer
ParticipantYou need a feed reader, that’s all. With FireFox, when you click on the RSS icon, while viewing a topic page, I think it asks “subscribe to topic” and if you want to use “live bookmarks” which are RSS feeds built in to Firefox (this is probably different between FF2 and FF3.)
If you are seeing code, then the browser you are using is not equipped to handle RSS feeds.
Google Reader is one RSS feed reader:
The Google Personalize Home Page allows you to add RSS feeds right there too. I follow a lot of support forums that way. Just click “Add Stuff” then skip all the pretty icons and find the text “Add feed or gadget” which used to be called “Add by url” or something.
You just need a feed reader and I think everything will be fine.
July 25, 2008 at 6:21 am #66009In reply to: WordPress + bbPress Integration 101
_ck_
Participantenergymv, there’s no real answer right now – I know it won’t happen in July and my educated guess is it’s not likely to be August. So for those that insist on a date, think September.
Sam has indicated he’s not inclined to release another version of 0.9 that changes to the 2.6 cookies, so maybe by late August there will be an early version of 1.0 beta that will be usable.
ps. sometimes Sam and MDA have been known to suddenly set a deadline and get cranking on code/bugfixes so don’t be surprised if they prove me wrong and magically churn out a new version in a few weeks – I’m just saying they have quite a bit of things to do before it’s ready…
July 25, 2008 at 6:08 am #3663RossB
MemberGuys, be gentle – I am fully aware that this is a question as technically ignorant as it gets.
I have registered for a few RSS feeds on blogs etc without problem, but I have never been able to figure out how the RSS feeds work with the bbPress and WordPress support forums.
Whenever I have decided I’d like a feed of a particular thread I’ve posted on, for example, I click on the RSS button and get a page full of code I have no idea what to do with.
Could any of you kind informed folk explain in lay language how I can turn this page of code into a way of registering for a feed, please?
-
AuthorSearch Results