Search Results for 'test'
-
AuthorSearch Results
-
February 25, 2007 at 8:43 pm #54270
In reply to: Patch: Categories for version 0.8
spencerp
MemberTo make this easier on me, I’m just going to backup ALL the current files for my forums, including plugin files, theme files, and whatever else..
Wipe it all out, except for the themes, config.php, .htaccess, and whatever, do that SVN method I mentioned above, try and apply the Forum Cat patch, run upgrade… Then, download all the latest versions of those plugins, go through those files, and adjust accordingly..
Then, the themes as needed.. because I’m on Dreamhost servers, some plugin files were a pain in the arse sigh… had to do special “tweaks” to the files…. Then, make a “not-so-perfect-release” of the Gathering theme, for bbPress…
Then, and then, and then some more.. lmao.. Always something .. LOL Hmm, I could probably shoot for another 3 days staying awake, not getting any sleep.. whee!! [Grabs another pepsi, because that’s my go-go juice, and gets back to work again!]… .
spencerp
February 25, 2007 at 6:09 pm #54694In reply to: Display latest post from WP
fel64
MemberYup, I know that; I just meant that you could quite simply add it to the arguments you took and it’d be a nice addition. My modified code at the end.
Yeah, it’s mildly annoying that the permalinks aren’t used, but it’s not a killer for me. I’d rather have this functionality than none.
Thanks again for the plugin.
function wp_show_posts( $args ) {
global $bb;
parse_str($args, $r);
if ( !isset( $r['before'] ) )
$r['before'] = "<li>n";
if ( !isset( $r['after'] ) )
$r['after'] = "<br />n</li>n";
$posts = wp_get_posts( $args );
foreach( $posts as $post ) {
echo $r['before'];
echo "<a href='".$bb->wp_home."?p=".$post->ID."'>";
echo $post->post_title;
echo "</a>";
echo $r['after'];
}
}February 25, 2007 at 5:46 pm #54947chrishajer
Participantflatworm, also, you can contact me via email and I will help get you running off-list. See my profile, go to that website and follow the the “contact us” link and email to support. I will help you out. You don’t need to get into the development of bbPress.
Also, you’re not experiencing ‘errors with graphics’ you’ve got a problem with the path to your stylesheet. That’s all. That may very well be a bug, but all software has bugs. Don’t just trade one problem for another.
vanilla support forum: http://lussumo.com/community/9/
Also, did you ever look in a rendered page (in your browser) for the stylesheet line? If you do see that (use ‘view source’ or something similar in your browser when you pull up a page similar to the one you took a screenshot of) post the information from that stylesheet line. My guess is that the slashes are backslashes.
Also, I never understood the point of installing community/forum software on localhost, unless it’s just for testing. Even if that’s the case, I prefer to test in the environment where it will be live so you’re not solving problems that won’t ever happen once it’s live, and you won’t experience new problems that you didn’t anticipate.
But, contact me off-forum and I will help you.
February 25, 2007 at 5:38 pm #54693In reply to: Display latest post from WP
nickbrady
MemberHi, fel64, you can use wp_get_posts() instead of wp_show_posts() and then use a foreach loop, much like the examples in the WP Codex for the get_posts function
You don’t mind that pretty permalinks are not being used? I think it’s a killer, let’s hope some expert can help us.
February 25, 2007 at 5:31 pm #54692In reply to: Display latest post from WP
fel64
MemberFantastic Nick, worked straight out of the box. I really like the way you take arguments as well.
Nicest addition would be a
before
andafter
so that it didn’t have to be a list.February 25, 2007 at 3:38 pm #54691In reply to: Display latest post from WP
nickbrady
MemberHi,
I am writing a plugin for BBPress that shows the latest posts from WP (if WP and BBPress are sharing the same database). It’s still in development, but it already works, you just have to write
<?php wp_show_posts(\"\" ); ?>
in any BBpress template.
As you will see, it works, but it has a problem: it does not show WP’s pretty URLs. I would like to call WP’s get_permalink() function, but it uses many WP functions that are not available when you’re in BBPress.
Any advice on how to do this? Or maybe it would be easier to read WP’s RSS?
Thanks!
Here goes the code of the plugin so far (if you don’t care about pretty permalinks, you can use it, it works):
<?php
/*
Plugin Name: WP Posts
Plugin URI: http://thesandbox.wordpress.com
Description: Get a list of WordPress posts from your bbPress (needs to be integrated with WP, sharing database)
Author: Nick Brady
Version: 0.1
Author URI: http://thesandbox.wordpress.com
Install Instructions:
- If you don't have a /my-plugins/ directory in your bbpress installaltion, create it on the same level as config.php.
- Check out: https://codex.wordpress.org/Template_Tags/get_posts
*/
function wp_get_posts($args) {
global $bbdb, $bb;
parse_str($args, $r);
if ( !isset($r['numberposts']) )
$r['numberposts'] = 5;
if ( !isset($r['offset']) )
$r['offset'] = 0;
if ( !isset($r['category']) )
$r['category'] = '';
if ( !isset($r['orderby']) )
$r['orderby'] = 'post_date';
if ( !isset($r['order']) )
$r['order'] = 'DESC';
$now = bb_current_time('mysql');
$posts = $bbdb->get_results(
\"SELECT DISTINCT * FROM \".$bb->wp_table_prefix.\"posts \" .
( empty( $r['category'] ) ? \"\" : \", \".$bb->wp_table_prefix.\"post2cat \" ) .
\" WHERE post_date <= '$now' AND (post_status = 'publish') \".
( empty( $r['category'] ) ? \"\" : \"AND \".$bb->wp_table_prefix.\"posts.ID = \".$bb->wp_table_prefix.\"post2cat.post_id AND \".$bb->wp_table_prefix.\"post2cat.category_id = \" . $r['category']. \" \" ) .
\" GROUP BY \".$bb->wp_table_prefix.\"posts.ID ORDER BY \" . $r['orderby'] . \" \" . $r['order'] . \" LIMIT \" . $r['offset'] . ',' . $r['numberposts'] );
return $posts;
}
function wp_show_posts( $args ) {
global $bb;
$posts = wp_get_posts( $args );
foreach( $posts as $post ) {
echo \"<li>n\";
echo \"<a href='\".$bb->wp_home.\"?p=\".$post->ID.\"'>\";
echo $post->post_title;
echo \"</a><br/>n\";
echo \"</li>n\";
}
}
?>
February 24, 2007 at 7:48 pm #54402In reply to: REQ: Theme demo switcher like phpBB
lonemadmax
MemberUnfortunately, I don’t have a place to show it. You can download and install, *your forum will keep its functionality*, just with an optional annoying box reminding you that you can test themes. And only if you install that part.
Also, a few things I failed to mention: it’s ugly (I just wanted it to work and I’m not a designer, anyway), it expects nice theme names, the box only appears in the pages that use bb_get_header and the template’s header file is supposed to not finish in the middle of a tag (the middle of the tag itself, not its content, of course). Those don’t seem to be great assumptions, even though I’ve only tested it with two themes.
February 24, 2007 at 4:48 pm #54957In reply to: Cookie Domain Settings?
macwise
MemberThat seems to have done the trick. Thanks for posting. I can’t tell you how much searching/testing/wild uncontrollable arm-waving code experimenting I’ve been doing. I did get the WP cookie domain issue figured out, hence the conflict.
Anyhow, all seems to be in order now, so I am just plum tickled! (no, I don’t normally say ‘plum tickled’. And yes, I really am plum tickled.) So thanks a million to you, fel64, for posting my much needed solution.
P.S. Checked out your site…I like the look of the “blog” area quite a bit. Loinhead, eh? Funny. Are you using a “Jello Mold” type layout solution for your liquid css layout? Anyway, the site looks great…
February 24, 2007 at 9:45 am #54905In reply to: Memberlist plugin: need a few testers
Null
MemberHmm we need to talk to make this plugin bbmenu compatible
Still working out some options, but it would be nice if it could detect the menu plugin and if it is add a draggable menu item to it… If not it will ignore this
So it need to check if the table bb_menu excist and then if the memberlist record excist…
Well I will contact you about this when I sort things out
February 24, 2007 at 1:45 am #54904In reply to: Memberlist plugin: need a few testers
Trent Adams
MemberActually, if you test this new version of ardentfrost’s plugin and delete a bozo user, you will know if it didn’t work because when you go the ADMIN => USERS => BOZO page and get an error, it didn’t work. If it shows up, it did work as that was the problem with the last version of the plugin and the new upgrade of bbPress.
Trent
February 23, 2007 at 9:10 pm #54820In reply to: Rewriting URLs
marky
MemberWell, I’m still having trouble getting this working. Indeed, all I’d like to do is redirect existing links to the new topics; I don’t want to change the permalink structure or anything else.
I’ve tried escaping the dot and question mark, but it’s still not rewriting the URL. I’m wondering, at this point, if ModRewrite can handle urls with parameters in them. I’ve tried some other quick tests (
RewriteRule ^/forums/blah.foo$ /forums/topic/1/
) and it worked no problem, so ModRewrite isn’t the problem itself.Any other suggestions?
February 23, 2007 at 7:06 pm #1465Topic: Memberlist plugin: need a few testers
in forum Pluginsardentfrost
MemberI’m trying to test a new deletion routine in the Memberlist plugin, but the problem is I don’t have a WPMU integrated site to test with. I usually use Trent as my tester, but he de-integrated.
So if a few of you who use the plugin and are integrated and are willing to test something, let me know. The problem being addressed is how currently the plugin does not delete usermeta data when deleting the user, which causes errors in the backend user pages (particularly when the user is a bozo). I have already tested it using non-integrated bbpress, I just need one or two people to let me email them an updated file to test with WPMU. You’ll need to know how to look in your database to make sure the data is being deleted.
Thanks!
February 23, 2007 at 3:13 pm #54328In reply to: Updated to Desmond But Theme Not Working
donnavitan
MemberHello chrishajer,
I’m definitely seeing the () error when I look at the source.
I have installed the latest xampp, wordpress and bbpress locally for testing purposes. My config is as follows:
$bb->wp_table_prefix = 'wp_';
$bb->wp_home = 'http://localhost';
$bb->wp_siteurl = 'http://localhost';
I really don’t think I should be getting this error, so must I configure something else? Any help would be greatly appreciated. Thank you.
February 23, 2007 at 10:32 am #54870In reply to: Sub-Categories?
Sam Bauers
ParticipantThere is another more vanilla implementation here.
You should use the patch that corresponds to your version. Check the ticket to find out which is which.
If you upgrade then you need to grab the latest patch (preferably made for that version) and re-apply it to your code.
February 23, 2007 at 3:47 am #54869In reply to: Sub-Categories?
macwise
MemberI believe that’s what I’m searching for…I saw the implementation at http://test.158th.com/forums. Are there any other examples of implementation for this plugin? Do I need to install the patch for bbpress v.80 if that’s my installed version, or can/should I use the latest patch?
Also, what happens when I upgrade to v1.0 or something? (I can only assume that I will need to patch it again, assuming it’s not integrated as an official feature yet.)
Thanks for the help!
February 23, 2007 at 1:05 am #1460Topic: Sub-Categories?
in forum Installationmacwise
MemberI’m looking into adding my categories for real now (testing’s pretty much over) and I am *thinking* I would like sub-categories. Is this a feature available through a plugin yet? I know this adds another level of complexity, and I apologize if in asking for this feature I am speaking heretically. Just trying to make this right before my major launch.
Thanks!
February 23, 2007 at 12:07 am #54267In reply to: Patch: Categories for version 0.8
Sam Bauers
ParticipantNew patch for 0.8.1 (build 719) just uploaded here. I have not tested this patch on a fresh install, but the changes from the last patch are minimal. Just a couple of line numbers and implementing the new attribute escape function in a couple of places.
spencerp – you should consider using an SVN client to update your live site, it is much easier to apply the changes to core using SVN, they generally don’t conflict with this patch.
February 22, 2007 at 11:44 pm #54670In reply to: Import SMF to bbPress
lonemadmax
MemberI’m very sorry. My SMF forum was not in UTF-8. If your try was in a test bbPress forum, try again deleting all
utf8_encode
calls in the script (leave the argument, of course).February 22, 2007 at 9:31 pm #54834In reply to: .htaccess/Cookie woes!
macwise
MemberSTATUS: RESOLVED
Ziyphr,
I’ll preface this by saying that I love Ahi Tuna dishes at restaurants. What is it about that huge hunk of raw fish meat that’s only seared to (probably) keep men’s wives from refusing to share a bed with a man who would eat a classic “dry heave” food. So, why do I like it? Well, it’s not the big chunk of meat that draws me in and pleases my palate. It’s the simple glaze that I often find on top; the light, sweet sauce that perfectly compliments the fish. As they say, “The secret’s in the sauce.”
So, the “sauce” for this problem was the secret, and the sauce ended up being all too simple. Ziyphr first directed my friend and I to wp-settings.php. (He said to check out line 185, but mine was around 151-160). I found the code that called the siteurl and home, both of which would have returned http://babyquestions101.com, as that is what I have listed in my admin panel. I thought I needed to modify those to somehow spit out two domains, with the www and sans.
My friend also informed me that he believed that cookie domains really need two dots, the first before the domain and the second after the domain but before the ‘com’. In my case it would be .babyquestions101.com. How to get ‘siteurl’ or ‘home’ to reflect that was a challenging thought.
One side-note for anyone trying this same thing, DON'T CHANGE YOUR SITE ADDRESS OR HOME ADDRESS TO ANYTHING OTHER THAN \"WWW.MYURL.COM\" OR \"MYURL.COM\" IN THE ADMIN PANEL.
Doing so will cause you more headaches than when you meet your mother in law for the first time. (Ok, that was an exaggeration, but only slightly).Once I got that mess sorted out, we tried to hard code in the .babyquestions101.com, replacing
define('COOKIEPATH', preg_replace('|https?
with/[^/]+|i', '', get_settings('home') . '/' ) );
define('COOKIEPATH', '.babyquestions101.com');
This didn’t work, and all hope was lost. Curiosity getting the best of me, I opened up my preferences panel in Safari and pulled up the list of all my stored cookies to see if there were any similarities/discrepencies between my cookie and other sites’ cookies. This is where I saw my cookie had the value “www.babyquestions101.com” under the heading “website” where most other sites were listed as “.siteurl.com”, missing the www that seemed to be plaguing me. I decided that was what I needed changed, and when I looked back at the code in wp-settings.php, I discovered that line 160 was unique from the others.
if ( !defined('COOKIE_DOMAIN') )
define('COOKIE_DOMAIN', false);I decided to change this to this:
if ( !defined('COOKIE_DOMAIN') )
define('COOKIE_DOMAIN', '.babyquestions101.com');
What do you know…I dumped my cookies for my site, refreshed the page, logged in, checked the cookie, and there it was, ‘.babyquestions101.com’. Now for the true test, I got rid of the ‘www’ in the address bar, hit return, and VOILA! I was still logged in. Everything was seamless. I was now the owner of a spiffy wordpress/bbpress integrated site that shared cookies across sites and subdomains. No crazy .htaccess directives, no checking and double checking every last link in my site to reflect my choice of domains.
This is the way it should be done. I’m quite surprised it was such a simple solution, and that nobody seemed to be aware of how simple the solution is. I hope this is helpful to someone else trying to share cookies across multiple subdomains.
February 22, 2007 at 6:47 pm #53878In reply to: Bozo problem
Trent Adams
MemberHave you updated to the 0.8.1 version of bbPress yet? If you upgrade, you will see the checkbox to unedit the BOZO portion as chrishajer has suggested above with screenshots. Just make sure you overwrite all the files so that you are using the most recent version of each file and then test it again with and without the Akismet turned on.
Trent
February 22, 2007 at 6:11 pm #54690In reply to: Display latest post from WP
fel64
MemberAny update on that plugin?
February 22, 2007 at 6:02 pm #51970In reply to: Latest bbPress Posts In WordPress
fel64
MemberI like this plugin a great deal, because it works so nicely right off the bat
Since my forum is in a subdomain, I had to change the code a bit (just coded in the location of my forums instead of letting it grab my blog location and adding a path). But a very minor thing to do for a very nice plugin.
February 22, 2007 at 3:01 pm #53567In reply to: Plugin: Forum Restriction
skrimpy
Memberand I fixed the latest discussion issue with the front-page-topics.php plugin (https://bbpress.org/plugins/topic/3?replies=6) and it seems to be working fine. I had one user and my sock account help me test it lol, I will work on getting everything set up this afternoon and see if it all goes well.
February 22, 2007 at 2:42 pm #53566In reply to: Plugin: Forum Restriction
skrimpy
MemberOk I seem to have it working now. I did have display-name.php installed. I think the problem was with another plugin: bb-limit-latest-discussion.php. I took that plugin down and the forum restriction plugin began to work properly.
I still get an error when I put in my display name; however it does give me access to the forum category. This afternoon I’m going to work on getting all the forum categories set up the way I want and I’ll let you know if it seems to be working right for everyone.
I like the limit discussion plugin because it makes for a cleaner forum; however having restricted access to forum categories is more important to the purpose of my boards so I’m just going to leave the limited discussion plugin off for now.
thanks David
February 22, 2007 at 4:09 am #53874In reply to: Bozo problem
Trent Adams
MemberUnless I am missing something, I think radkitten’s issue is that they are a bozo when they head back into their profile and they see a checkmark in the box. They can correct me if I am wrong. It most likely has Akismet as the problem because the user is passed through Akismet filter when you view your profile and it may keep flagging them. That is why I wanted them to set Akismet to false in the config.php to make sure that it doesn’t get passed through and test it out.
Trent
-
AuthorSearch Results