i am sorry to see that tag can’t work for chinese
I haven’t tested this yet, but it looks like the mods that fel64 and Sam have proposed here should work. So, instead of rushing a new version of the plugin out today, I think I’ll just save these changes (and some other functionality I’m working on) for the next major release. Hopefully I can get a new version of it out in the next couple of weeks.
@Sam, I use your excellent Page Links plugin, and I wrote mine specifically to be compatible with yours. In fact, I wouldn’t have known what filter to use if it weren’t for your plugin.
I set the priority of my filter as 99
(yours is set to 100
), so it fires directly before yours. Also, my plugin checks to see if the page_links_add_links
function exists, and if it does it automatically drops the page links to a new line below the title in order to make things a little more sightly.
@smurfdude, I thought about that, too. I initially decided against that route so I could have it function without having to edit any template files. The way it works right now is that it is inserted with a filter that is triggered when (and where) the topic title is fed to the page. If you’re feeling really ambitious, you can go into bb-topic-views.php
to see how the mechanics of the plugin work. From there, you could change some things around so you could put the views count in its own column. Eventually I may add that functionality within the plugin, but that’s not a high priority right now.
Speaking of priorities, the next to-do on my list is to add functionality where a user can add a template tag that will display the top 5 (or 10, or whatever) most viewed posts, either as <li>
items so you can use it anywhere, or in a format similar to the way the Latest Discussion area is laid out. Stay tuned…
I tested the second method on the latest build and it passes the bb_repermalink tests and loads.
I tried using standard URLs and both types of permalinks.
I didn’t try to load a template. I used a file called avatar-upload.php containing the following:
<?php
require_once('./bb-load.php');
bb_repermalink(); // The magic happens here.
echo 'test';
?>
My test plugin contained:
<?php
/*
Plugin Name: Test for fel64
Plugin URI:
Description: Test profile tab addition
Author: Scooby Doo
Version: 0.0.1
Author URI:
*/
$bb->debug = 1;
function felavatartab()
{
add_profile_tab(__('Avatar'), 'edit_profile', 'moderate', 'avatar-upload.php');
}
add_action( 'bb_profile_menu', 'felavatartab' );
?>
Thank you!
For testing if it’s bb it might be easiest to do exactly what you did but with a global variable bb uses anyway, such as $bbdb or whatever you feel like – saves you having to put in the declarations.
bb-Topic-Views keeps track of how many times each topic has been viewed, and then displays the count alongside the title of the topic on the front page, on forums pages, and on tags pages.
The plugin is written in such a way that it does not double-count views when a visitor browses to a different page in the same topic. If no view count record exists for a specific topic, the plugin will create a record for it. Rather than setting the initial view count to zero, the plugin sets it to the number of posts in the topic, because it has obviously been viewed at least as many times as people have posted in it! This is especially nice for adding the plugin to existing bbpress forums so the view count isn’t zero for every single topic.
You can download it here: http://blog.wittmania.com/bb-topic-views
You can see it in action here: http://blog.wittmania.com/bbpress
—
By the way, I’ve only tested this plugin in browser environments where cookies were enabled. This plugin doesn’t set any cookies (directly, anyway), but it does use session variables which are usually passed as cookies. So, if anyone runs into any bugs, please let me know!
I’m also very open to suggestions as to how I could streamline or improve the code. Thanks!
Thanks Trent, but that link gave me nothing 
Fel64, I don’t really get what you mean with “live Windows server”… anyhow it’s a WindowsXP server, Apache 2.2, PHP5, latest MySQL – all installed on a personal LAN server.
And the Apache/PHP installation works fine with some other simple PHP applications.
I also tried to copy an older installation of bbpress that worked fine on a previous WinXP/Apache server, but due to a disk failure I had to format the drive and re-install everything.
However, that older bbpress turned out with the exact problem (blank page) and the same line Apache’s error.log…
My guess is something’s wrong with my Apache/PHP installation.
Thx,
lokem
Oops. Sorry about that! It works now.
Latest post link is screwed for the forum named OBT. Threads from other forums work fine. WEIRD.
Forum 1 is private, and I can’t login using “test” and “test”
Last time I checked, though, the latest post thing was screwed.
Thanks for checking that… so is there a problem with the pagination of Forum ID #1? If you want to poke around, I can create a test login for you. login/pass is test/test
Just noticed… the “latest post” links don’t work via the front page, but they work when you are viewing the threads in a single forum. For example, they don’t work here:
http://www.citizenkeith.com/forums/index.php
But the DO work here:
http://www.citizenkeith.com/forums/forum.php?id=1&page
I have launched an “Area 51” forum to test and display the effects of my plugins. You can see bb-Ads in action here:
http://blog.wittmania.com/bbpress/
Also, I have now tested this plugin with pretty links, and it does work. The only changes to be made in the coding as given in ad1.php is that you have to delete the .php
from the strpos
check. This will just look for the words in the link instead of the actual .php
file names.
Version 1.0
This plugin automatically turns scripture references into links that will take the visitor to BibleGateway.com, where they can view the verse(s). The administrator can set the default version to one of more than a dozen available versions, including ESV, NIV, KJV, NASB, The Message, and so on.
The links are created dynamically each time a topic is loaded, so the actual text of the post is left alone. This is nice because it allows you to disable/delete the plugin without having to go back through and edit your posts to remove the extra markup.
This plugin is ideal for forums that are religious/spiritual in nature, as it will save your users a lot of time from having to hard-code links to passages they reference in their posts.
This plugin is almost entirely based on a similar WordPress plugin that does the same thing to WP posts. You can view the WP plugin here:
http://dev.wp-plugins.org/wiki/Scripturizer
You can read more about the plugin, or download the latest version of bb-Scripture-Links, here:
http://blog.wittmania.com/bb-scripture-links
You can see a working demo here:
http://blog.wittmania.com/bbpress/topic/2
Tried adding the TinyMCE to bbpress and it didn’t work. Asked a guy who knows more about this than I do, and he couldn’t get it to work either. Browsing for an answer, its suggested
- a javascript conflict with a plugin
- , or template.
I’m using the latest version of WordPress in case there is a conflict there. (Windows hosting)
did the latest reply thing stop working immediately after recount?
Yes, it was fine until I ran that. It immediately stopped working. Which is strange, because iI had recounted before.
Perhaps get the latest version, see if the problem persists?
I’ll wait until there’s an official release of 1.0. It’s not a huge problem, so I’ll wait. Thanks though!
The topic closed thing comes from the pagecount being too high. I think get_topic_last_post_link()
must be screwing up – did the latest reply thing stop working immediately after recount? Not sure what the solution is, sorry. Perhaps get the latest version, see if the problem persists?
I just recounted on my forum (running 1.0-alpha), but it seems to still work.
There is now!
Save this in a file, call it sumting.php
, and drop it into your my-plugins
folder. Then put <?php feltopicnav(); ?>
somewhere in a topic template. Not tested, so please tell me if it works. 
<?php
/*
Plugin Name: Topic Navs;
Plugin URI:
Description: Put <?php feltopicnav(); ?> in a topic template to show links to the previous and next topics. Optional parameters are $nexttext, $prevtext, $betweentext and $lastpost.
Author: fel64
Version: 0.7
Author URI: http://www.loinhead.net/
*/
function feltopicnav( $nexttext = '', $prevtext = '', $betweentext = ' ', $lastpost = true )
{
global $topic_id;
$nexttopic = $topic_id + 1;
$prevtopic = $topic_id - 1;
if( !$nexttext )
$nexttext = topic_title( $nexttopic );
if( !$prevtext )
$prevtext = topic_title( $prevtopic );
if( $lastpost ) {
$nextlink = topic_last_post_link( $nexttopic );
$prevlink = topic_last_post_link( $prevtopic );
} else {
$nextlink = topic_link( $nexttopic );
$prevlink = topic_link( $prevtopic );
}
echo '<a href="' . $prevlink . '">' . $prevtext . '</a>' . $betweentext . '<a href="' . $nextlink . '">' . $nexttext . '</a>';
}
?>
A few weeks ago, I recounted everything, and suddenly this plugin (in fel64’s post) doesn’t work anymore. You click on the >> to get to the latest post, and it takes you to a page without any posts, and it states that the thread is closed, even though it isn’t closed.
For example:
http://www.citizenkeith.com/forums/topic.php?id=29&page=143&replies=713#post-8940
It should have been something like this:
http://www.citizenkeith.com/forums/topic.php?id=29&page=24&replies=716#post-8943
Replies/Posts are off by 3, and pages are off by 119!!
@ box87, can you give me/sent me what you have changed and where? This error also seems to effect people that use php 5+, so if your changes fixes these errors, I realy would like to have them
(mauricederegt[at]gmail.com)
About adding menutabs (not pages); it will be in the next release. You can create new tabs in the admin area and drag&drop them around. Only downside is that the tabs won’t be highlighted when you are on the page where the new tab points too. This has to do with the bb_location and knowing-on-what-page-you-are issue (is_pagename) .
It already is possible to automaticly add a menu tab to your list when activating a plugin that has a page on its own (like the memberlist plugin). But I need to do some more testing for this and documentation of how to do this will proberly be released when bbPress 1.0 (with plugin activation) is released (cause the way this works can be changed)…
Also I am thinking of rewriting this plugin after the bbPress 1.0 release to use jQuery. 1.0 uses this libary, so why not make use of this and reduce the extra files needed to drag&drop the tabs around 
Well for now, send me your fix so I can put it in the next release. Big things are ahead!
Can you make sure you can still send email from your server? If you have ssh/command line access, you can try this:
php -r 'mail( 'you@yourdomain.com', "subject: test", "message: test", 'From: you@yourdomain.com');'
If you have FTP access, put this into a file called mailer.php (or whatever.php you want) and then navigate to it with a browser”
<html>
<body>
<?php
mail( 'you@yourdomain.com', "subject: test", "message: test", 'From: you@yourdomain.com');
echo "Mail should have been sent, check your inbox";
?>
</body>
</html>
Once you know if you can send email from your server, you can move forward.
Hello all,
When I installed bbpress intially, everything worked fine. After about a month of use though, the email message is not being sent during registration. I assume this might be due to a change with my host (dreamhost) but I don’t have any idea where to start looking for the problem.
I also have many wordpress blogs installed across dreamhost and have experienced no such problem on any of them.
Can someone please point me in a direction (to test) that might lead to a solution?
Thanks
Ryan
What I mean is, when I wrap text in backticks, it actually converts it to <pre><code>
and removes the contents, replacing it with a random character, like an “n” or whatever.
I want to be able to just use backticks for code, but I can’t. That’s the problem.
Edit: Here’s an example. I created a post that looks like this (swapping a backtick for “[backtick]” so it won’t get eaten:
[backtick]test[backtick]
What it spit out is this (swapping parens for brackets so it wont get eaten):
(pre)(code)s`
(/code) `
Cheers mirfan – your fix worked a treat! (I’ve got an XP install using WAMP as a server – just for testing stuff atm).
Beautiful, it worked, thanks!