They can by styled through style.css:
<div class="nav">
<span class='page-numbers current'>
<a class='page-numbers'>
Check for those attributes in the CSS sheet.
Trent
Hi,
I was wondering if there is a way to have bbPress uses the style-sheet etc. from the template
I am using for WordPress, in order to have the same look and feel through the entire site.
That would be a real integration 
Thanks
Alex
I no longer have element attributes such as href, title, rel, or cite for content posted by users. For example:
This is a <a href="http://www.link.com" title="a link">Link</a>
becomes:
<a>Link</a>
i figured this was something in bb-includes/formatting functions, but everything looks right to me:
function bb_allowed_tags() {
$tags = array(
'a' => array(
'href' => array(),
'title' => array(),
'rel' => array()),
'blockquote' => array('cite' => array()),
'br' => array(),
'code' => array(),
'pre' => array(),
'em' => array(),
'strong' => array(),
'ul' => array(),
'ol' => array(),
'li' => array()
);
return apply_filters( 'bb_allowed_tags', $tags );
}
does anyone have any ideas?
Any chance that we can add smilies from the emoticon plugin into the sigature? Or at least an IMG tag?
fel, cool – the code you are using works great. Unfortunately, I’m still getting the IP address in the links that bbSync is creating in the forums – you can see an example of this here. Strangely, it’s also failing to grab the correct category when trying to make the links. Here’s the output on that page:
http://208.***.197.39/wp/uncategorized/12-year-old-boy-dies-after-rock-n-roller-coaster-ride/
I don’t really have any idea what is going on there. Oh, and one more little thing – is there anyway to have the number of replies appear on the WP page, as opposed to the replies themselves? I was discussing the plug-in with a buddy over the weekend and he suggested that might be useful. So, instead of listing the replies and then saying “Reply!” It would simply say something like “Join the discussion in the forums (4)” Just a thought.
Change it in your template.
Find your theme’s logged-in.php file. Look for bb_profile_link()
and change it to
bb_profile_link( "Use my text instead" );
(If you’re using the default theme, first copy the bb-templates/kakumei/ directory to a new directory called my-templates/my-theme/, activate that new theme from the Presentation admin panel and edit those files instead).
What’s the exact text it’s spitting out and what settings have you got?
Oh, right. I think I modified that function for my own nefarious purposes. bbreplylink()
now returns the URL to the forum topic. So that this would give you the url:
<?php echo bbreplylink(); ?>
I did that for a little more template flexibility. This is what I’m using:
<?php if($topic_id = felwptobb( $id ) ) { echo '<a href="' . bbreplylink( $topic_id ) . '">Reply!</a>'; } else { comments_popup_link(' comments', '1 comment', '% comments','',''); } ?>
Do you think that should be changed to make a single template tag? I guess it would be easier to use. Any suggestions?
the bb instructions for integration say that to include WP functions in bb you need to include the put require_once('path/to/wp-blog-header.php'
in bb’s config.php file.
i’ve done that and things work ok until I go into bb admin at which point it all dies coz it can’t find the wp file.
anyone had this, got a solution?
Update: Somebody asked me how to add a name (instead of just the e-mail address) to the new message received e-mail notification. To do this, just use this format:
$admin_email = "Your Name <you@yourdomain.com>";
When the e-mail is delivered, it will show up as being from “Your Name” and not “you@yourdomain.com”. I’m not sure that this will work on all PHP configurations, but it works on mine.
Woops, rather nasty typo above. Author is spelt with an o, so make that
<td class="num"><?php topic_author(); ?></td>
You already have those columns, dlevy, or do I misunderstand? By default it shows the last poster and when.
No, to be fair I wasn’t. Looking deep into its bowels I can’t see anything that would set $forum_id, although that could be an oversight.
Kakumei does go into main trac.
Not repeatable for me. Topics made since .8.2 in my active forums on Linux / php 4.4.4 I think have been made by a direct call to bb_new_topic()
, and under xampp topics made normally also do not have this problem.
Riddle: do please add these to trac if you haven’t already. Login is the same as here.
Why don’t you just set your custom title to “Supermegaadmin”? That should get the message across without needing you to make a new account.
Look for the block of code that makes the forums in front-page.php
and in forum.php
. Add this in there.
<td class="num"><?php topic_auther(); ?></td>
<td class="num"><?php topic_start_time(); ?></td>
The topic_start_time()
expects the format to be MySQL time. They do not need an argument to work but they can have one for whatever reason, I don’t know. I just found these by going into bb-includes/template-functions.php
.
$tag = str_replace(',', '', $tag);
(That’s not the actual code you need, just an illustration.)
You could be doing this with a plugin, which is probably preferable as you don’t have to hack the core every time. The filter you want is probably bb_tag_sanitize
but I’m not sure. Check http://bbpulp.org/wiki/API/filters and http://bbpulp.org/wiki/API/actions.
I updated to .8.2.1 and this issue isn’t resolved; in fact, it’s worse. I re-hacked the line to read
$words = explode(' ', $tags);
It no longer strips out commas. So a user entering this for tags in a new post:
“one, two, three four five”
returns these tags:
one,
two,
three
four
five
Any ideas how to fix this?
Hi.
I updated to 8.2.1 and i have problems with the plugin Google Sitemap Generator v.6
My forum:
u2fanlife.com/foro
My sitemap: http://u2fanlife.com/sitemap.bb.xml
I saw in the sitemap these URLs:
<url>
<loc>
/?</loc>
<lastmod>2007-04-02</lastmod>
<changefreq>monthly</changefreq>
<priority>0.014705882352941</priority>
</url>
What happens?
Thanks!
No, I think that means that your status is no longer keymaster. I also had this problem. Open phpMyAdmin, go to your wp_usermeta table, Browse it, click edit to modify the MySQL query (this is potentially fatal, be careful).
This query will hopefully show the record you want:
SELECT * FROM wp_usermeta where meta_key = 'bb_capabilities' AND user_id = 1
If your user_id is not one you will need to change it. You should now be seeing a record like this:
a:1:{s:9:"keymaster";b:1;}
That would make you a keymaster. If the record is like this, however:
a:1:{s:6:"member";b:1;}
then you got turned into a regular member. Click the pencil to edit this entry and replace the member thing with the keymaster value (make sure this is your account!). Save changes and check bb.
Be careful, the databases are crucial. This worked for me, but it’s not guaranteed to work or make things better – I can’t see risks but there might be some!
Thanks fel, that worked. Now my problem is it won’t let me in to the admin area – if I try to go to /path_to/forums/bb-admin/
it just spits me back out in /forums/
. I figured this must have something to do with the rewrite rules, but I tried accessing them /path_to/forums/bb-admin/rewrite-rules.php
and the same thing happens as when I try to access the normal admin area.
Hello, the specific error you have reported could be a permissions problem – although if you tried settings permission to 666 and it still failed, I’m stumped. Alternatively, it could be some other problem with PHP’s move_uploaded_file()
function.
What might be helpful is what error PHP returns itself (I’ve suppressed PHP errors in the plugin). You need to temporarily show the PHP error for the function in question by removing the @
symbol from in front of it.
Find the following line in avatar_upload.php
(~ #99) and remove the @
symbol before the move_upload_file
function.
if ($img_errs == 0 && !@move_uploaded_file($img_temp, BBPATH .$config->avatar_dir . $user_filename) )
.
Then upload the file to the server, chmod the avatars
folder to 666
and try uploading an avatar again — please report the full error message you get, including the PHP error.
Oh and I have to ask this, just in case: are all the configuration settings in my-plugins/bb-avatar-upload.php
correct? Is the avatars
folder in the root and is the $this->avatar_dir
config setting pointing to the correct location? I’m sure they are, but I have to check.
These aren’t, like, options you can set. You have to edit the style.css
file to change the way things look and sizes of things. To change the actual content and ordering of the content you have to open the corresponding .php file and edit the HTML. So you have to figure out HTML and CSS.
Colours in the .css file are set using hex colour notation. It can be a funny system to get used to. This seems to be a site where you can pick your colour and be told the version you need (in the format #028453, where the numbers can be anything from 0 – 9 or a – f). Then replace all references to the light blue colour (#CCCCEE) with the colour code you want.
To change header size, you have to add some width rules to the #header element. http://www.w3schools.com/css/ is a great guide.
To eliminate the hot tags, open the file front-page.php
with a plaintext editor (such as Notepad) and remove a section similar to this:
<div id="hottags">
<h2><?php _e('Hot Tags'); ?></h2>
<p class="frontpageheatmap"><?php tag_heat_map(); ?>
</div>
Those are the things you asked about. For everything else I suggest you do it the hard way, by yourself, learning off the internet. Because if you have a problem and you can fix it, well, you no longer have a problem. But if you’ve got a problem and you don’t know how to fix it you might have that problem for a long time. Also Firebug is the most helpful thing you could possibly have; it lets you make changes (not permanent) to the CSS that you can instanly see and you can look at the HTML very nicely too.
Hi, I am trying to install bbpress for the time. The installation process seems to be working fine but when I use the forum it is not working correctly. I can not access my profile, and when I write a new post I am taken to Apaches 404-page.
Trying to access my profile at the url http://ip/~xxx/xxx/bbpress/profile/1:
The requested URL /~xxx/xxx/bbpress/profile/1 was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I also get the same message after posting, but when I return to the forum the new post is created. So I guess the database is working at least.
The URL in the error message is shorter then the real URL. Currently I use http://ip/~xxx/xxx/bbpress/ but the error message the ip is not shown.
I am using the ip while waiting for som DNS stuff with the domain. Can that be the problem, using ip/~ ? Or do you think it might be something else? I am clueless, but the is not so strange since I am a newbie here.
Ah ha! There aren’t any records in bb_forums
, but the table is there. Any suggestions?
This is the function that checks if you’re installed.
function bb_is_installed() { // Maybe we should grab all forums and cache them.
global $bbdb;
$bbdb->hide_errors();
$installed = $bbdb->get_var("SELECT * FROM $bbdb->forums LIMIT 1");
$bbdb->show_errors();
return $installed;
}
Your database version must be correct because it connects ok. Are you sure there’s something, anything, in bb_forums
?