Search Results for 'code'
-
Search Results
-
BadBehavior is one of my favorite plugins for web-apps, EVER. You can insert it on pretty much any php driven site, even SMF and IPB, so I went one extra step and slapped the ‘standard’ bbpress plugin header to make it a plugin.
I do not support BadBehavior, so if these directions don’t work, I can’t really offer much help, and for that, I apologize. That said, it’s really straight forward, and using this and Akismet, I’ve had very few spammers on my blog/forum since I co-mingled them in November.
1) Download Bad Behavior (current version 2.0.26)
2) Put the file
bad-behavior-generic.phpand the subfolderbad-behaviorinto your my-plugins folder so it looks like this:my-pluginsbad-behaviorbad-behavior-generic.php
my-pluginsbad-behaviorbad-behavior(many files)3) In
bad-behavior-generic.phpchange this:<?php
/*
Bad Behavior - detects and blocks unwanted Web accesses
Copyright (C) 2005-2006 Michael Hamptonto this:
<?php
/*
Plugin Name: Bad Behavior
Version: 2.0.26
Description: Deny automated spambots access to your PHP-based Web site.
Plugin URI: http://www.bad-behavior.ioerror.us/
Author: Michael Hampton
Author URI: http://www.homelandstupidity.us/
License: GPL
Bad Behavior - detects and blocks unwanted Web accesses
Copyright (C) 2005-2006 Michael Hampton4) Activate bad-behavior as a plugin in the bbPress admin side.
Now, this DOES NOT give you the tracking like it does in WP. I tried to find a way to make all that work, but it kept telling me things existed. It’s probably because I’m sharing DBs, but that’s okay by me. I’ve been using it this way with the 1.0-alpha string of installs without issue.
I hope this helps someone else out
I wanted all info on the admin page which lists all users, so I have edited admin-functions.php.
I thought someone may be looking to do the same , so here you are. Nothing to difficult.
Just change the function bb_user_role to something like the following:
function bb_user_row( $user_id, $role = '', $email = false ) {$user = bb_get_user( $user_id );
$r = "t<tr id='user-$user->ID'" . get_alt_class("user-$role") . ">n";
$r .= "tt<td>$user->ID</td>n";
$r .= "tt<td>ID ) . "'>" . get_user_name( $user->ID ) . "</td>n";
if ( $email ) {
$a = bb_get_user_email( $user->ID );
$r .= "tt<td>$a</td>n";
$a = $user->user_url;
$r .= "tt<td>$a</td>n";
$a = $user->from;
$r .= "tt<td>$a</td>n";
$a = $user->occ;
$r .= "tt<td>$a</td>n";
$a = $user->interest;
$r .= "tt<td>$a</td>n";
...
And change function display to have somthing like this:
$r .= "<thead>n";$r .= "t<tr>n";
$r .= "tt<th style='width:10%;'>" . __('ID') . "</th>n";
if ( $show_email ) {
$r .= "tt<th style='width:10%;'>" . __('Username') . "</th>n";
$r .= "tt<th style='width:20%;'>" . __('Email') . "</th>n";
$r .= "tt<th style='width:20%;'>" . __('Url') . "</th>n";
$r .= "tt<th style='width:10%;'>" . __('From') . "</th>n";
$r .= "tt<th style='width:10%;'>" . __('Occ') . "</th>n";
$r .= "tt<th style='width:10%;'>" . __('Interest') . "</th>n";
} else {
$r .= "tt<th style='width:60%;'>" . __('Username') . "</th>n";
}
$r .= "tt<th style='width:15%;'>" . __('Registered Since') . "</th>n";
$r .= "tt<th style='width:5%;'>" . __('Actions') . "</th>n";
$r .= "t</tr>n";
$r .= "</thead>nn";
i was merrilly adding tags to a topic and then hit a weird error.
DB Error in BB_Taxonomy::set_object_terms: Duplicate entry '3609-10' for key 1
INSERT INTO bb_term_relationships (<code>object_id</code>,<code>term_taxonomy_id</code>,<code>user_id</code>) VALUES ('3609','10','1')
Warning: Cannot modify header information - headers already sent by (output started at /home/xx/public_html/messageboard/bb-includes/backpress/class.bpdb.php:293) in /home/xx/public_html/messageboard/bb-includes/functions.bb-pluggable.php on line 214i also cannot delete any tags…
what’s wrong?
Topic: Use HTML code in post
Hi
As said in the title, can I use HTML code in the posts I made in bbpress? I don’t want to show the code itself, I want to use code to insert, for example, tables and that sort of thing.
Thanks in advance
Ehlo all,
i just want to share a solution for BBPress 1.0 Alpha 6 – WordPress MU 2.7 cookie integration — or a hack. My problem is that after installation of WPMU and BBPress, i can not make a single sign on : to make a user log in to BBPress can access WordPress without another login and a user log in to WordPress can access BBPress without another login.
I just use Cookie integration with WordPress installed at
/home/usr1/myweb
And bbpress at
/home/usr2/myweb/bbpress
After Googling i found hint about cookie domain, SECRET KEY etc, but it does not work …
When i check the cookie, the cookie from BBPress is appended with some words for example :
wordpress_logged_in_170v36454
meanwhile the cookie for wordpress is simply
wordpress_logged_in
I then change a line of code at bb-settings.php from
define(‘BB_HASH’, $bb->wp_cookies_integrated ? md5($bb->wp_siteurl) : md5($bb->uri));
to
define(‘BB_HASH’, ”);
Somehow IT WORK !
Ok hey alll.
Lets say i have something like: http://www.mysite.php/?cat=623
and inside that category i have one post
and i want to show in that post the bbpress forum
dunno if u get my point here on what i want to do
i want to have bbpress to show inside a page that belongs to a category that lets say i called it Forums
is there some integration code that i have to put in that page or something ?
thanks
I hate to bring this up again, but do to the lack of documentation for bbPress, I have to. I know the approach I’m taking will use more server resources and that most bbPress people tell you not to do it, but whatever.
I’m shooting for 100% seamless integration, with the same exact sidebar as the rest of my WP pages that updates with the rest of the site.
WordPress 2.7 is installed in / on my server, while bbpress 1.0-alpha is installed in /bbpress.
I added the following to/bbpress/bb-config.php:
include('../wp-config.php');Then I replaced
bb_get_header()withget_header()in the theme files, so my WordPress header loads just as expected, BUT wp_head does not execute, so most of the styling for my template is not loaded.At what point does wp_head fail or get canceled? I tried this exact same thing with the stable version of bbPress, and wp_head executed fine, but I couldn’t log in (it logged into WordPress instead, weird?).
Topic: Just a Community
Might as well, add my forums that I and a friend is working on.
I am using bbPress and WordPress for user intergation from my blog.
(Still being designed
)
)
Great work.
oh thank you….johnhiler and _ck_