Search Results for 'test'
-
AuthorSearch Results
-
March 26, 2007 at 7:49 pm #50699
In reply to: How to customize bbpress titles ?
Arlo
MemberI’m on latest trac…is this filter present? I’m not seeing it anywhere.
March 26, 2007 at 5:46 pm #55690In reply to: Plugin: Latest Replies
LMD
ParticipantHello again, just finished examining code. There are two issues.
The first issue is that the blog entries you are posting to bbPress appear as closed topics. This problem is totally unrelated to the “Add Titles to Replies” plugin, which does not touch the ‘topics’ table in the database at all. I suggest you enquire with the ‘bbPress Post’ author about this. Did you update that plugin on your forum at the same time as installing mine? That could be the source of the problem.
Now, having said all that, the second issue is going to seem to contradict it. What I mean is, are you sure the topics are ‘closed’, or is it just that the content does not appear – that is, is it a phantom topic?
This can occur when the ‘topics’ table gets updated, but the ‘posts’ table does not for some reason (usually a coding error). When you create a new topic in bbPress, you are actually simultaneously creating the topic and making the first post in that topic – so both tables get updated.
This is where the problem involves my “Add Titles to Replies” plugin, because we have altered the ‘posts’ table, which may be causing an error in the ‘bbPress Post’ plugin code (that plugin writes to the database in a different way to the bbPress core).
Still with me? Good…
Now, I do not have access to an integrated WordPress/bbPress installation, so I have made a stab in the dark at trying to fix this the easy way. I’ve written a very short function (a bit of a hack really) that you can add to the ‘bbPress Post’ plugin.
In the ‘bbPress Post’ plugin open the file called ‘bbpress_post.php’ and add the following code to the bottom of the page, just before the bottom PHP tag
?>/* Ugly 'Add Titles to Replies' Hack by LouiseDade */
function bbpress_add_reply_title( $post_id, $topic_id ) {
global $wpdb, $otherdb;
$bb_table_prefix = bbpress_getoption('bb_prefix');
if (bbpress_getoption('bb_other_base') === "no") {
$topic_title=$wpdb->get_var("SELECT topic_title FROM ". $bb_table_prefix ."topics WHERE topic_id=$topic_id LIMIT 1; ");
$wpdb->query("UPDATE ". $bb_table_prefix ."posts SET post_title='$topic_title' WHERE post_id='$post_id' LIMIT 1");
} else {
$topic_title=$otherdb->get_var("SELECT topic_title FROM ". $bb_table_prefix ."topics WHERE topic_id=$topic_id LIMIT 1; ");
$otherdb->query("UPDATE ". $bb_table_prefix ."posts SET post_title='$topic_title' WHERE post_id='$post_id' LIMIT 1");
}
}Next, scroll up to the
bbpress_new_post()function and at the bottom, before the closing curly brace, add:/* Added by LouiseDade - updates post reply title */
bbpress_add_reply_title( $post_id, $topic_id );Then scroll up again to the
bbpress_post_update()function and add the same code as above just before the closing curly brace again.Re-upload the plugin with the changes made and try posting a WordPress entry.
If it works I shall jump around for joy, but unfortunately I have grave doubts about it. I think it might need to be done the hard-way, which involves rewriting some of the ‘bbPress Post’ plugin.
Good luck!
March 26, 2007 at 4:12 pm #56102In reply to: Posts from blog closed on forum
Trent Adams
MemberI would like to help, just don’t know what would be wrong. I might even suggest going backwards to a release previous as I still am using 0.3 or something and it works fine even with the latest TRAC. Might just be a bug….
Trent
March 26, 2007 at 4:10 pm #55689In reply to: Plugin: Latest Replies
LMD
ParticipantHi,
Thank you for letting me know. I suspect the problem is something to do with the fact that an extra database field has been created, and the ‘bbPress Post’ plugin is not updating that field. I have downloaded the plugin and will look at the code to see what’s going on — the fix may have to be in ‘bbPress Post’ rather than my plugins – but it may just be a small code change you can make yourself.
So, I’ll get back to you in this topic later.
March 26, 2007 at 3:03 pm #55688In reply to: Plugin: Latest Replies
spicycauldron
MemberHi there
I installed both of these to my forums today and they look great and do exactly what they’re supposed to – but since installing I can no longer automatically cross-post blog entries to the forums using the bb Press Post plugin, http://dev.mbzeus.net/
What happens is blog entries do appear on the forums but they appear as having been closed topics – though of course I didn’t close them – and I can’t open them up while nobody comment on them in the forums.
Any ideas, please? I don’t want to undo the work I did today getting your plugins working on my forums but I do find the other plugin very useful and there’s no other out there as far as I am aware….?
March 26, 2007 at 5:23 am #55924In reply to: Show off your Forum !!
BetaCandy
MemberMy forum is at http://thehathorlegacy.info/forum/. It’s for discussing how women are portrayed in film and TV.
I’m using the Crystal theme by http://33rockers.com/. I’m using wmarcy’s fix listed above until Bozo and Akismet stop marking half the posts as spam.
For plugins:
bb-avatar
bb-limit-latest-discussion
comment_QT_4_bbpress (quick tags to make the comment box more user-friendly – awesome!)
fix-bbpress (which I think is awaiting a fix of its own, LOL)
patch-to-URL (can’t honestly recall what version this one was for?)
March 25, 2007 at 10:44 pm #55923In reply to: Show off your Forum !!
Arlo
MemberThis is my migrated phpBB forum. It’s integrated with my main site rather tightly (UI-wise, not database), and I did a bit of modification to the post layout, making the best use of the narrow column I think. Other than that, just your usual CSS tweakage.
It’s not live yet, so I welcome feedback:
http://automatorworld.com/bbpress/
The plugins I’m using are:
Comment Quicktags
Front Page Topics
Post Notification
Page links
Quote
edit: Please feel free to register and test post, I would welcome the Q&A
March 25, 2007 at 10:43 pm #56007In reply to: remove forum/”topic”/number
Trent Adams
MemberIt works if you are willing to download the latest TRAC version from https://trac.bbpress.org/browser/trunk/ and then scrolling down to the bottom of the page and clicking the ‘download in other format – Zip format’. That is the latest development version. Then you have to change your config.php to have:
$bb->mod_rewrite = 'slugs';Your .htaccess file should just be back to whatever you had before. Mine is just the + MultiViews part.
Trent
March 25, 2007 at 10:21 pm #56000In reply to: Latest posts don’t show up in threads
Trent Adams
MemberLooking at it quickly, you must be using the force login plugin. Try disabling it and find out if it is somehow stopping the posts from showing up. This will involve just taking it out of the /my-plugins/ directory for the quick test and then clearing the cache of the plugin in WP (if it caches anything) and your browser cache. Something smells funny and I would imagine that could be the problem as it doesn’t even allow an RSS feed to show up.
Trent
March 25, 2007 at 10:19 pm #55999In reply to: Latest posts don’t show up in threads
Trent Adams
Membertrent dot adams at gmail dot com
Trent
March 25, 2007 at 7:32 pm #55998In reply to: Latest posts don’t show up in threads
zapata
MemberTrent, the problem url is here:
http://passionforcinema.com/club/topic.php?id=226&page&replies=240
if you check this thread and go back to the home page you will see that there is a discrepancy between the actual thread and on the home page w.r.t. what is the most recent post in the thread.
you’ll have to log in to access the site. where I can email you your username and password.
March 25, 2007 at 7:29 pm #55997In reply to: Latest posts don’t show up in threads
zapata
Membertrent, sorry was away. no I’m keeping wp and bbpress seperate except for the user integration plugin. I’ll create a user for you and send it to you right away.
March 25, 2007 at 5:45 pm #56046In reply to: Latest WordPress & bbPress in another language!
c00l2sv
MemberLet us give him some more time…
March 25, 2007 at 5:06 pm #56061In reply to: Bug: Tags removed by askimet
Trent Adams
MemberI don’t think it was designed for ‘undelete’ on tags. I haven’t test this myself, but there is a utility in the admin to delete tags on posts that don’t exist, so I was under the assumption that the tags stay even if the post is deleted. I have some time tonight and will test this further myself. If it deletes the tags with the recent TRAC version, then I can file a ticket for you.
Trent
March 25, 2007 at 3:06 pm #56045In reply to: Latest WordPress & bbPress in another language!
Trent Adams
MemberI am over my head when combining WP and bbPress functions and know next to nothing with Ajax. Hopefully mdawaffe (Michael) will see this post or head over to https://bbpress.org/about/development/ and see if you can contact him another way!
Trent
March 25, 2007 at 3:00 pm #56039In reply to: Tags not found
Trent Adams
MemberIf you changed from 1.3 to 2.2 in Apache and it worked before the upgrade, it must have something in there that it doesn’t like with the Mod Rewrite handling. I am not sure myself, but I would change my .htaccess in the bbPress root folder of http://www.canadianbookclubs.com/forums/ to have only:
Options +MultiViewsNothing else. Try it in that and in your http://www.canadianbookclubs.com/bkrv/ test run with the new version as well. Either way, it should work for one of them. That works best with most servers I have used and they are using Apache 2+. Try that out maybe and if not, take Fel64’s suggestion and put the contents of what is outputted by: /bb-admin/rewrite-rules.php
Trent
March 25, 2007 at 2:48 pm #55640In reply to: What’s integration?
Trent Adams
MemberIf you change the config.php to have the correct information for WP and then login using a user from WP, it will start to use the users out of the wp_users versus bb_users table. I tested this back with 0.74 and it worked, so I can’t see why it would not do this with the newest version, but it is worth a go to prove it. The biggest thing is copying the information from bb_usermeta to wp_usermeta for the keymaster, admin, mods, ect because that is where the information on the user will ‘now’ need to be from that table. If I try this again in the next day or so, I can try and post up some kind of FAQ.
Trent
March 25, 2007 at 2:43 pm #1620Topic: Latest WordPress & bbPress in another language!
in forum Troubleshootingc00l2sv
MemberCurrently i’m trying to develop something using wordpress & bbpress.
Everything flows pretty good when talking on functionality and the rest of features, but there is a problem.
Actually 2 problems. First I already posted here: http://bbpress.org/forums/topic/867
And now the second one:
The final release has to be in another language but english. It’s true, I found no troubles translating bbpress in my language and the rest of updated wordpress. But after what I’ve integrated both of api’s: the wordpress and bbpress; this resulted in the following error:
Fatal error: Cannot redeclare class streamreader in /var/www/pm/forum/bb-includes/streams.php on line 26I suppose it’s because of the translations, cause when I did not defined BBLANG, everything worked well.
After a bit I thought, that a solution for my problem can be joining both of the bbpress and wordpress translation .mo’s and defining just WPLANG for my language settings. That worked, but I dont see this as a pretty simple and accessible solution for everybody!
I would be glad getting some help on that, If there is any other more easier solution, that would be cool.
March 25, 2007 at 10:59 am #56067In reply to: Spoiler plugin?
fel64
MemberIf Trent’s theory is correct (and it sounds good) I think the best thing for you to do is to plonk that javascript reference in a plugin (that’s certainly the neatest thing). This is probably the code you need.
<?php
/*
Plugin Name: Javascript Spoilers
Plugin URI: [Enhanced SS page]
Description: Makes little javascript buttons to show and hide text in spoiler tags. A port of a WP plugin.
Author: [Author of Enhanced SS]
Version: 0.1
Author URI: [Author of Enhanced SS homepage]
*/
function ess_addjs()
{
$plugin_uri = bb_get_option('uri') . str_replace(BBPATH, '', BBPLUGINDIR);
$js_uri = $plugin_uri . 'enhancedss.js';
echo '<script type="text/javascript" src="' . $js_uri . '" />' . "n";
}
add_action('bb_head', ''ess_addjs);
?>You will have to modify the javascript filename from enhancedss.js to whatever it’s actually called.
Copy and paste all that into a plain-text file, call it something.php and upload it to your plugins folder. Also upload the enhancedss.js file to that folder.
Almost all that code was totally ripped off from Sam Bauer’s Page links plugin.
March 25, 2007 at 6:10 am #55922In reply to: Show off your Forum !!
Trent Adams
MemberI went back to my roots and changed from my “onvertigo – binary moon” theme back to my trentadams.ca theme! I attempt to use every single plugin I find as I usually test them out on my forum! I always run the most recent TRAC version!
Trent
March 25, 2007 at 2:11 am #55875In reply to: links to forums broken
Trent Adams
MemberBedbugger, kannued found out that an upgraded apache server caused the permalinks problem for them and the default theme worked with permalinks turned off. Could you test that for me?
Trent
March 25, 2007 at 2:06 am #56066In reply to: Spoiler plugin?
Trent Adams
MemberIf you can just put the tags in if you don’t have the ‘visual editor’ turned on for WP and it calls a javascript in the header, it must just parse the page for those tags. Why not test this theory and include the javascript in your theme’s header.php and make a post with the tags you have! It might also need including the other files as well, but I know the anarchy media script works that way. The script called in header.php parses the page for files that end with .mp3, .mov, etc and then creates the flash file around them! Worth a try!
Trent
March 25, 2007 at 1:33 am #56024In reply to: Tags not found
Trent Adams
MemberFirst off, do this. In your config.php, turn the mod_rewrite to false and make sure that it works that way. If that works, we can try getting your URL’s working again, just make sure that it is working. If you have phpmyadmin access on your server you can check the bb_posts table to see if the actual posts are there (I am sure they are) as they are showing the topics and the number of posts still. It seems like a permalinks problem and starting by turning them off will be the quickest way to test that.
Trent
March 25, 2007 at 1:05 am #55996In reply to: Latest posts don’t show up in threads
Trent Adams
MemberOh….akismet is in the config.php and it shouldn’t have a number in there, but be false. If the posts are not showing up in Akismet, then they are most likely not being stopped by it…..you are using the plugin for WP to show the lastest bbPress topics then?
Trent
March 25, 2007 at 1:03 am #55995In reply to: Latest posts don’t show up in threads
Trent Adams
MemberStrange….could you give me a URL to see this problem in action? Maybe create me as a user if you confine bbPress registration to your WP or give me the URL of your forum? I might be able to test this and see if we can fix it.
Trent
-
AuthorSearch Results