Forum Replies Created
-
In reply to: New type of profile spam?
Same thing has been happening to me left and right. I’ve added in my own keyword-based spam filter, but it doesn’t catch everything.
I think there should be a heck of a lot more protection built in against spamming… there’s simply no reason to allow a URL in any field other than website.
I’ve been getting a really irritating spam lately, nothing but random characters, like 8-10 in each field.
In reply to: bbPress Top 100 – May 2008 updateSweet, looks like I’ve moved up the list a bit, #19 now!
You should add some numbers to the list.
In reply to: Getting user session info on non forum pageYou’ll need to use the PHP functions to check the cookies… bbpress doesn’t use sessions by default.
Also, you wouldn’t want to simply use the userid, because that would be insecure since anybody could hack a cookie with any username.
bbPress and WP both store two cookies, the username and the encrypted hash of the password. You’ll have to use those in combination to do a lookup to the database to make sure they both match. I’d advise taking a look through the bbpress source code… it’s not terribly difficult to understand.
The other thing you could do… you could create a plugin / hack for bbPress to assign a session parameter after a successful login, which you could then check for in your other code.
In reply to: Getting user session info on non forum pageI assume this is a non-WP page as well?
You can check the bbpress session cookie and then use that to check the user against the database. You’d have to use the same logic that WP or BB uses (the latest bbpress changes this logic). You’ll also need to make sure that the cookie domain is set correctly.
I’ve actually had to do this recently myself… it’s pretty simple and works well.
I wrote my own replacement plugin for the mail function that uses the Swift Mailer PHP class to call sendmail directly, which should provide better performance over the built-in php mail functions.
It also gives the the chance to assign a display name to the email address so it comes through as “bbPress Support Forum” instead of just “forum@bbpress.org”.
if ( !function_exists('bb_mail') ) {
function bb_mail($to, $subject, $content, $headers=''){
require_once('PATH_TO/Swift/lib/Swift.php');
require_once('PATH_TO/Swift/lib/Swift/Connection/Sendmail.php');
$swift =& new Swift(new Swift_Connection_Sendmail("/usr/sbin/sendmail -bs"));
$from = new Swift_Address("noreply@mysite.com","My bbPress Forums");
$message =& new Swift_Message($subject, $content);
if ($swift->send($message, $to, $from)) {return true;}
else{ echo "Message failed to send to ".$to." from ".$from;}
$swift->disconnect();
}
}To use this, you’d have to download Swift from their site and put it where it’s included in the above code.
You could also modify it to connect to an external SMTP server (even the Gmail server, for instance) by changing the Swift_Connection part above using this guide:
In reply to: there any way to know how many views a topic has?If you check the Extend section linked on the top, you’ll see a bunch of plugins for these types of things.
For that particular task: https://bbpress.org/plugins/topic/bb-topic-views/
In reply to: Attachments / File Uploads PluginVery nice!
In reply to: Attachments / File Uploads PluginI have an interesting idea for this plugin: Make the allowed filetypes be set per group.
That way you can say that regular participants can only upload image files (fairly safe), but moderators can upload documents, and administrators can upload anything (like executables)… it could be easily customized.
In reply to: Attachments / File Uploads PluginIt works!
Going to spend some time playing with it, will reply with more feedback.
In reply to: Proposed method for file attachments and uploadsI donated towards this plugin as well. Very happy to see this being worked on!
@Everybody: You can donate directly to _ck_ with this link:
In reply to: slug permalinks can lead to db problemsThat’s a brilliant suggestion… I’ve noticed a weird lag whenever trying to load up a topic, this could be exactly the problem.
Just tested, seems to speed up the query quite a bit, although I’ll have to do some benchmarking to be sure.
[edit]: I just ran this command manually to create the index, I’m not sure if specifying an index length would help or not.
create index ix_name on bb_topics (topic_slug);
In reply to: Dropping “MultiViews” support?Using .htaccess is more or less the standard now… any host that turns off .htaccess rewrites is surely going to turn off multiviews as well, so there’s very little benefit to keeping both.
Thanks for this, as usual you are the best!
In reply to: REQUIREMENT OF Forum – WebMasterA host that doesn’t support PHP is quite rare… I don’t think I’ve ever seen one.
That plugin didn’t work quite right for me, but I was able to hack together my own hard-coded version for both bbpress and wordpress.
Thanks!
You’ll have to create your own custom theme for bbpress in order to make it look like it’s part of your site.
Thanks for that… I’ve been meaning to look that up, but looks like you did it for me
There’s no simple way to do this… and there’s a ton of possible security holes if you do it wrong.
You will need to have a database table to store session information, and check that on every page load.
The iframe approach would need to only indicate that the user was logged on, but make sure you don’t set the password cookie that way… just the sessionid or userid, and then each application would have to check the shared session store.
The problem is that WordPress and BBpress both use cookies for login.
Since your browser will only send the cookie for the domain that it was set on, it’s not going to work automatically.
You could use the same login database, of course. It’s just not going to be transparent.
In reply to: RSS Feed Page is all Code?!!A workaround would be to use feedburner to burn the feed, because it’ll display the friendly page. Would require some theme hacking, I’d think.
In reply to: RSS Feed Page is all Code?!!I’m sure the problem is that McKrazie is still on IE6, which displays RSS feeds as xml documents, since there’s no reader built in.
Sadly many companies have not upgraded yet.
In reply to: Next/Prev page link to view older topicsThat latest discussions plugin is for wordpress… I’ve been talking about the latest discussions view in bbpress that is part of the My Views plugin.
In reply to: Next/Prev page link to view older topicsI’m using whatever the current release is…
My Views actually extends the latest discussions and makes a view out of it.. maybe _ck_ can help answer why yours isn’t working.
In reply to: Next/Prev page link to view older topicsAh, the problem appears to be that the latest discussions plugin isn’t installed, or it would show up in the list… I think it’s in a separate file.
If you downloaded the MyViews plugin a while ago, there was a bug in the svn system where some of the files weren’t getting included. You might want to grab the latest version.
ps.. your avatars are a weird size.
For my site, I’m using the bbpress login as the site-wide login… so when I put a login link on the wordpress side of the site the user would be redirected to the forum every time after login… kinda annoying.
With this new knowledge I should be able to fix it so they are redirected back, even to a non-bbpress page.