Forum Replies Created
-
In reply to: I demoted myself
It may be easiest to modify the database entry. Backup your databases, then open PHP MyAdmin or the like.
You need to know your user id number, which is probably the number in the URL when you go to your profile. Run a query like
SELECT * FROM wp_usermeta WHERE user_id = 1 AND meta_key = 'bb_capabilities'
(changing1
to your user id) to show the relevant field. Edit this entry so that you’re made a Key Master again. I don’t know what it should be, but for my account (I’m a Key Master) it’sa:1:{s:9:"keymaster";b:1;}
Since this may break things, you need to have a database backup first.
In reply to: OutletIt’s a simple case of a tiled (but large, so you can’t see it) background Trent. Here’s the CSS to do it.
#wrapper {
background:#202020 url(images/page_header_tile.png) repeat-x scroll 0px -25px;
}That’s a really nice forum. I like your bold black/white/pink colour scheme
In reply to: Forum didn’t read the CSSYou seem to have renamed the kakumei directory which would be a problem. It should be named
kakumei
and nothing else I think.In reply to: Posts going straight into moderationSounds like you’re getting bozo’d. Go to your profile, go to edit, and if the contents of the Bozo: field is “1” then you have a problem. Apply this patch: https://bbpress.org/forums/topic/822?replies=11, then go back to your profile > edit, change the bozo field to 0 and submit changes. You should then no longer have a problem.
In reply to: login form wordpressTo change where the user is redirected, add a hidden field to the login form called
redirect_to
, with a value of where-ever you want the user to end up (default is in the dashboard).In reply to: Forum didn’t read the CSSYou have to do it differently. To apply a css file, make a new folder in /bbpress/ called my-templates, open it, make a new folder for your “theme”, and put in your css file called style.css. Now go to the Admin Panel > Presentation and pick your theme.
Note that you can change the HTML output of files as well. If you do not have a file for a particular page (such as forum.php) bbpress will look for the default file (located in /bbpress/bb-templates/kakumei) and use that instead. If you wish to use a modified file, copy the default into your theme’s folder and change it there.
In reply to: Slug based permalinksThanks a lot Sam!
Another problem I have is that the bb Post plugin doesn’t automatically add a slug. I tried addressing this but couldn’t make it work. The function
bbpress_bb_new_topic
is responsible for adding the topic to bb.function bbpress_bb_new_topic( $title, $forum, $author, $author_name, $now ) { // making new topic in bbPress
global $wpdb ,$otherdb;
$bb_table_prefix = bbpress_getoption('bb_prefix');
if ( $forum && $title ) {
if (bbpress_getoption('bb_other_base') === "no") {
$wpdb->query("INSERT INTO <code>". $bb_table_prefix ."topics</code> (topic_title, topic_poster, topic_poster_name, topic_last_poster, topic_last_poster_name, topic_start_time, topic_time, forum_id ) VALUES ('$title', $author, '$author_name', $author, '$author_name', '$now', '$now', $forum)");
$topic_id = $wpdb->insert_id;
$wpdb->query("UPDATE <code>". $bb_table_prefix ."forums</code> SET topics = topics + 1 WHERE forum_id = $forum");
$wpdb->query("UPDATE <code>". $bb_table_prefix ."forums</code> SET posts = posts + 1 WHERE forum_id = $forum");
} else {
$otherdb->query("INSERT INTO <code>". $bb_table_prefix ."topics</code> (topic_title, topic_poster, topic_poster_name, topic_last_poster, topic_last_poster_name, topic_start_time, topic_time, forum_id, topic_slug) VALUES ('$title', $author, '$author_name', $author, '$author_name', '$now', '$now', $forum, $feltopic_slug)");
$topic_id = $otherdb->insert_id;
$otherdb->query("UPDATE <code>". $bb_table_prefix ."forums</code> SET topics = topics + 1 WHERE forum_id = $forum");
$otherdb->query("UPDATE <code>". $bb_table_prefix ."forums</code> SET posts = posts + 1 WHERE forum_id = $forum");
}
return $topic_id;
} else {
return false;
}
}What needs to be done? I need to change the INSERT INTO statement, by adding the column name to the list of columns and the variable I want to insert for that to the list of variables?
In reply to: reply and add new topicHmm, okay it’s already there so you can take it back out.
Do any plugins work for you?
In reply to: Slug based permalinksHey Sam,
it’s been working fine until someone made a thread called “1:28”. The slug set for it in the database is “128” but going to /topic/128?replies=1 redirects to /topic/?replies=1, resulting in an error. I assume this is a bug? My quick fix for this was to just change the slug.
In reply to: Candy!I can’t find the Category Patch plugin, sorry. That plugin browser is annoying. >_<
The statistics are included by default, but not linked to in the default theme. Just go to
www.example.com/forums/statistics.php
and it’s there. The file for it is in your root forum folder.In reply to: reply and add new topicI hate Tiny MCE. It’s slow and nannies you too much.
Archasek, I think you haven’t called some hooks or something. Find something like
<p>
<label for="post_content"><?php _e('Post:'); ?>
<textarea name="post_content" cols="50" rows="8" id="post_content" tabindex="3"></textarea>
</label>
</p>and insert
<?php do_action( 'post_form_pre_post' ); ?>
In front of it, on a new line. That should make it work.
In reply to: post or reply by emailHere’re a quote from Joel. I’m not arguing for the sake of it, just trying to help out in the long run.
Q. Could you make a feature where I check a box that says “email me if somebody replies to my post?”
A. This one feature, so easy to implement and thus so tempting to programmers, is the best way to kill dead any young forum. Implement this feature and you may never get to critical mass. Philip Greenspun’s LUSENET has this feature and you can watch it sapping the life out of young discussion groups.
Why?
What happens is that people go to the group to ask a question. If you offer the “notify me” checkbox, these people will post their question, check the box, and never come back. They’ll just read the replies in their mailbox. The end.
If you eliminate the checkbox, people are left with no choice but to check back every once in a while. And while they’re checking back, they might read another post which looks interesting. And they might have something to contribute to that post. And in the critical early days when you’re trying to get the discussion group to take off, you’ve increased the “stickiness” and you’ve got more people hanging around, which helps achieve critical mass a lot quicker.
In reply to: Can all WP posts automatically appear as BB posts?And everytime a visitor writes a comment in that wordpress posts, it will appear as a post in that bbpress forum? (and vice versa)
Unfortunately that bb Post plugin only toasts your bagels but doesn’t put anything on them. It’ll send WP blogposts as new topics on your forum, but comments/replies aren’t integrated. Someday.
In reply to: local computer installationThe bbPress post plugin? The one that makes a new topic for every blogpost? That also integrates comments/replies?! How? I’ve got that plugin and I’d love it if I could figure out how to do it!
In reply to: Informed Banking PressThe CSS is fine in IE 7 at least. Looking good.
In reply to: RBForumsIt’s got a lot more of a consistent feel to it now, which is very nice. But when you hover over links they still turn green, as do the rows in the thread listing.
Look for the
a:hover
item in your CSS file to change links when hovered, and look for something liketr:hover
for the thread rows. I think the specific item for thread rows is#latest tr:hover, #forumlist tr:hover, #favorites tr:hover
Just keep playing with it until you’re happy is the best advice.
In reply to: Custom Theme for WordPress integration w/ bbPressNot sure what the DXX theme is, but if it’s the one you’re using on your site yeah it’s ultra-easy.
First of all, don’t try to force bb into the WP theme … that rarely works. Your best bet is to open (or make if it doesn’t exist) your
my-templates
folder and start a new theme by making a new folder (call itdxx
or something). Go back up into your main bb folder, openbb-templates > kakumei
and copystyle.css
, then paste it into your newmy-templates > dxx
folder.Using CSS you can then modify how your page looks (not what’s on it though). The basic way to do css is like this:
html element {
property: something;
}For example, the code to colour links red with NO underline is like this:
a {
color: red;
text-decoration: none;
}To change the way your forum looks, you therefore open the copy of
style.css
you made and change properties like that. There’s much more info at http://www.w3schools.com/css/. That is all you need to know.So for example, what you would do for your theme is make links blue and no underline, make the header green, change the background of the page and put a border on the main
div
element. Some knowledge of HTML will be helpful but you can also pick this up.In reply to: RBForumsThe whole red (header) – blue (links) – green (visited links) clashes a bit anyway. I’d pick a single colour for all, for the best feel to the site, but others may disagree.
The whole visited links styling I personally find a bit unnecessary anyway – I’ve hardly ever found that to be useful, and then only in huge linklists which you won’t have on your forum.
Once you’ve picked a colour (could be anything really, although it should be distinctive from black so you can see the links), make a small yet distinct change to it and set it as the color for a:hover links – that way users can tell when they’re over links, otherwise it can be frustrating.
For example, on my forum (http://forums.loinhead.net/) I’m using colours #0C0066 for links normally and #060033 for links when you hover on them. Both fairly similar blues, but you can tell the difference.
There are very few colours I use for the site.
Dark blues for links; light blues in the threads listing, and #ffffee for my ‘alternate’ background – every second post, post forms and such. It’s a nice slightly-warmer-than-white colour. Using a small range like that can give you a good effect I think.
So to summarize the ramble: pick one and use it for almost everything.
In reply to: What is a bozo?Quoting dictionary.com:
bo·zo /ˈboʊzoʊ/
–noun, plural -zos. Slang.
1. a fellow, esp. a big, strong, stupid fellow.
2. a rude, obnoxious, or annoying person: Two or three bozos tried to cut in ahead of the rest of us in the supermarket line.
Users marked bozos means that Akismet (the part of the code responsible for spam detection) has identified these as spammers, or you have manually set their status. They can post, however posts will be visible only to themselves – they will not realise that their posts are showing up to noone else. Useful precaution against spammers (it bothers no-one, they don’t try harder since they think they’re succeeding) and perhaps against trolls, although I haven’t tried that.
In reply to: local computer installationInteresting Trent; do you also have any knowledge or personal speculation on tighter integration re. topics/blogposts and replies/comments?
In reply to: Maintenance Mode?I don’t think you’ve missed anything.
In reply to: reply and add new topicLooking at your site all I see is
Parse error: syntax error, unexpected T_STRING in /home/kmr/ftp/forum/bb-includes/bozo.php on line 237
In reply to: Cookie integration for wordpressThere’s an easier way to do this, just put in the right domain.
//cookies
define('COOKIE_DOMAIN', '.2diabolos.com');Or
//cookies
define('COOKIE_DOMAIN', 'forum.2diabolos.com');If you go with the first, in my opinion neater version, you also need to add this to bbPress’
config.php
.//try to sync cookies
$bb->cookiedomain = '.2diabolos.com';
$bb->cookiepath = '/';Then clear your cookies, log out and in and see if it works across your site.
In reply to: Plugin: BB-AdsThat’s pretty cool. Are there screenshots, is there anywhere running it so we can see what it’s like?
You’ve submitted it to the plugin db too, haven’t you?
In reply to: reply and add new topicThe plugin he linked you does give you buttons like that. Click it and it auto-inserts the code.