Search Results for 'code'
-
AuthorSearch Results
-
April 5, 2007 at 6:11 pm #52223
In reply to: Template of this forum??
Trent Adams
MemberThat is the intended placement for the forums here as well as the other wordpress forums. It can be changed though! I would just edit style.css for this portion:
/* Profile Page
=================================== */
#profile-menu {
}
#profile-menu li {
font-size: 1.1em;
background-color: #eee;
padding: 4px 7px;
display: inline;
border-top: 3px single #9e9e9e;
position: relative;
top: -10px;
}All I did there was take out the positioning for profile-menu itself so it displays inline and then changed the border of the list items themselves to have a single border on top instead of the double. You can edit that more to get it to look the way you want as well.
That being said, I am leaving it as is because it is the closest to the ‘actual forum’ with the profile menu on the right hand side floating……but this will fix you up!
Trent
April 5, 2007 at 5:14 pm #56495In reply to: Novice Headache with WP & bb Integration
Davor Dedic
MemberYes,
I did that,
that was the first thing I did,
and then I double checked it, but still I can not log in through bbPress

Somebody !!!
April 5, 2007 at 9:54 am #1686Topic: REQ: idea plugin like at the WP-site
in forum PluginsNull
MemberWell WP has it here:
http://wordpress.org/extend/ideas/
Can we get this as a plugin aswell? Would be very handy

Null
April 5, 2007 at 9:00 am #56453In reply to: Can’t post. Topic turns yellow. Can’t delete.
Nola1974
ParticipantOh. My. Lord. This thread has basically just been a blog. lol
But, the good news is that my host figured out the cause… I forget the name of the module, but PHP was encrypting the cookies. As soon as he turned that off – everything works peachy.
What little hair I had left is gone now though.
April 5, 2007 at 1:57 am #56479michaelisc
MemberThanks Trent,
Well it works, kind of. To be more precise, if I put in three carriage returns with
<br />in the second empty CR space a single break space is inserted. Otherwise the<br />simply disappears from the post as verified during an edit.Once the breaks are successfully inserted and the post is edited again the
<br />‘s are all missing from the code in the post. Strange.April 4, 2007 at 11:51 pm #56478Trent Adams
MemberThis works for line breaks:
<br />As for the attributes of
<li>, it could be done with a little plugin. Could you post the exact code that you want to style the list item? It could also work if you just style all list items for posts in your CSS sheet. That is maybe easier than a plugin to do this.Trent
April 4, 2007 at 8:00 pm #52643In reply to: Plugin: [REL] Signature
citizenkeith
ParticipantDo I use the code and instructions in the first post, or is this downloadable somewhere? I didn’t see it on the Extend page.
April 4, 2007 at 6:54 pm #1683Topic: `<br>` tags convert to special characters, don’t work
in forum Troubleshootingmichaelisc
MemberI have WordPress 2.1.2 and BBPress 0.8.1. They are (mostly) integrated. BBPress claims that
<br>tags should work but they don’t. They are immediately converted to special characters and show up in the post as they were coded, i.e. “br” inside the brackets.Also
<li>atrributes (type=disk, circle, blah blah) don’t work. Same problem as above. Any clues?April 4, 2007 at 11:25 am #54767In reply to: German Language
fel64
MemberYou have to set the language in
config.php. Open this file and look for line #41. Change itFROM
define('BBLANG', '');TO
define('BBLANG', 'de');April 4, 2007 at 7:49 am #54766In reply to: German Language
orientoscar
MemberHi Trent,
i upload the language File like this: /bb-includes/langauges/de_DE.mo
But there doesnt work?
And I have Problemes with the Templates too. I make it all correct but it doesnt work?
April 4, 2007 at 3:46 am #56439In reply to: Can’t post. Topic turns yellow. Can’t delete.
Nola1974
Participantfel64: I’ve done that. I have the fix-bbpress plugin in and the “1” are no longer apearing. I then went through each account and put a 0 in the field and saved it. When I reload that page, it’s blank. (No 0)
Still having this problem.
SamBauers: I’ve completely deleted the bb-plugins directory and I still get the error. Could simple-onlinelist have put something int he database and corrupted it? I’ve had this plugin installed for a week. Don’t know why all of a sudden it would do this.
I looked in the database and all of the offending topics/posts were bozoed. But the authors are not. I don’t understand why whenever I try to delete ANY post (even ones from 2 weeks ago) I get “You do not have permission to do that.”
From wp_metadata:
User table value
1 bb_capabilities a:1:{s:9:"keymaster";b:1;}From bb_topicmeta:
Edit Delete meta_id topic_id meta_key meta_value
Edit Delete 19 15 deleted_posts 1
Edit Delete 20 15 bozos a:1:{i:1;i:1;}
Edit Delete 18 14 bozos a:1:{i:1;i:1;}
Edit Delete 17 14 deleted_posts 1
Edit Delete 15 13 deleted_posts 1
Edit Delete 16 13 bozos a:1:{i:1;i:1;}Can someone decypher this? (The bozo parts)
April 3, 2007 at 11:44 pm #56477In reply to: 404 Error on the edit user link
fel64
MemberAn invoice has been sent to your billing address for $215.00 to cover the support costs.
Glad you got your solution!
April 3, 2007 at 11:42 pm #56437In reply to: Can’t post. Topic turns yellow. Can’t delete.
fel64
MemberYou should install the bbpress-fix plugin, then change the field to 0 (no quotes) and save. This will hopefully fix things. The plugin only prevents you being marked as bozo, but it won’t unmark you (which is why you have to do that yourself).
Don’t reinstall yet.
April 3, 2007 at 11:31 pm #55195Sam Bauers
ParticipantBy default, the alphanumeric code is an md5 hash of the bb_table_prefix that is set in config.php
For default installs this effectively makes the cookie names:
'bb_user_' . md5('bb_')'bb_pass_' . md5('bb_')You can override the name of the cookie by setting values for the following somewhere in config.php:
$bb->usercookie = 'my_great_user_cookie_name'$bb->passcookie = 'my_great_pass_cookie_name'Then provided that your website is in the same domain as your forum, you should have no trouble reading these cookies using your own code.
April 3, 2007 at 10:27 pm #56435In reply to: Can’t post. Topic turns yellow. Can’t delete.
Nola1974
ParticipantOk, i uploaded and overwrote all of my files with a fresh archive and I’m still getting the same behavior. This makes me think it’s something that’s already in the database…
fel64: Well, after I removed the fix-bbpress.php I have “1” in the Bozo field for all of my accounts, INCLUDING the quotes. Should I change these to 0’s or delete the “1” before I install the fix?
Also, I dont know much about .htaccess.. that’s pretty much the standard wpmu file.
What does this line mean:
Topic titled test post started by bb_get_user needs a numeric IDThat stands out to me as if something is fubared in my database. But wpmu is working just dandy. Some sort of integration problem?
April 3, 2007 at 7:31 pm #56433In reply to: Can’t post. Topic turns yellow. Can’t delete.
fel64
MemberSounds like a bozo problem…? Open the profile of the troubled account, go to the “Edit” page, and see if there’s a 1 in the bozo field. If there is, you need the fix-bbPress plugin. https://bbpress.org/forums/topic/822?replies=10
I might have the wrong end of the stick entirely though.
By the way, Nola, any chance you could help me with some .htaccess code? I’ve been having trouble making it work with WP and got no help on their forums.
April 3, 2007 at 7:25 pm #56404In reply to: Freshness Linked
fel64
MemberThe only thing better than that is a “go to first new reply” link.

Out of the corner of my eye I thought I saw some code for “views” in a thread, in the 1.0-alpha version. There’s a chance it’ll be in 1.5 maybe?

There’s also my “has a new reply” plugin: https://bbpress.org/plugins/topic/45?replies=5
April 3, 2007 at 7:00 pm #56403In reply to: Freshness Linked
citizenkeith
ParticipantI’ve been out-geeked!
April 3, 2007 at 6:54 pm #55194wittmania
MemberI may be reading into his post, but it sounds like he wants a list of people that are currently online (?).
If so, Thomas Klaiber’s Simple Onlinelist plugin gives you a template tag (
<?php show_online_users(); ?>) that you can drop in anywhere to generate a simple list showing users currently online.You could modify the plugin to display some kind of message, an image, part of their profile. Anything you want to keep cold, Tommy Boy.
April 3, 2007 at 6:42 pm #56402In reply to: Freshness Linked
wittmania
MemberI noticed a typo in your code. I think you meant `<C. Montgomery Burns>Excellent</C. Montgomery Burns>.
Just kidding.
April 3, 2007 at 5:49 pm #56401In reply to: Freshness Linked
citizenkeith
Participant<Montgomery Burns>Excellent</Montgomery Burns>Thanks! That’ll do the trick.
The only thing better than that is a “go to first new reply” link.
April 3, 2007 at 5:47 pm #56431In reply to: Can’t post. Topic turns yellow. Can’t delete.
Nola1974
ParticipantDoes anyone have any ideas? I’m tearing my hair out here. I was able to create a new user and it appeared in wpmu. It was able to post just fine, the post apears and everything. If I log back in as admin, I cant delete his posts. On front-page.php the admin’s name appears, but when in dashboard it sill comes up as bb_get_user needs a numeric ID
When in the admin account, I promoted the new user to Key Master.. when i log out of the admin account I get the following error:
bbPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 1' at line 1]
SELECT * FROM bb_online WHERE user_id = LIMIT 1The new account, which i made Key Master is also unable to delete any posts – but can post new ones.
The new account cannot see the posts the admin account made, that were showing up in yellow.
Anyone reading this?

/.htaccess
RewriteEngine On
RewriteBase /
# www is soooo deprecated
RewriteCond %{HTTP_HOST} ^www.blognola.org$ [NC]
RewriteRule ^(.*)$ http://blognola.org/$1 [R=301,L]
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]/forums/config.php
<?php
require_once('/home/nolageek/public_html/wp-blog-header.php');
// ** MySQL settings ** //
define('BBDB_NAME', '
'); // The name of the database
define('BBDB_USER', '
'); // Your MySQL username
define('BBDB_PASSWORD', '
'); // ...and password
define('BBDB_HOST', 'localhost'); // 99% chance you won't need to change this value
// Change the prefix if you want to have multiple forums in a single database.
$bb_table_prefix = 'bb_'; // Only letters, numbers and underscores please!
$bb->domain = 'http://blognola.org'; // Example:
$bb->path = '/forums/';
//bb->mod_rewrite = true;
// What are you going to call me?
$bb->name = 'BLOG NOLA forums';
// This must be set before running the install script.
$bb->admin_email = 'nolageek@gmail.com';
// Set to true if you want pretty permalinks.
$bb->mod_rewrite = true;
// The number of topics that show on each page.
$bb->page_topics = 30;
// A user can edit a post for this many minutes after submitting.
$bb->edit_lock = 60;
// Your timezone offset. Example: -7 for Pacific Daylight Time.
$bb->gmt_offset = -6;
$bb->cookiepath = '/';
$bb->usercookie = 'wordpressuser';
$bb->passcookie = 'wordpresspass';
// Change this to localize bbPress. A corresponding MO file for the
// chosen language must be installed to bb-includes/languages.
// For example, install de.mo to bb-includes/languages and set BBLANG to 'de'
// to enable German language support.
define('BBLANG', '');
// Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage
// of Akismet's powerful spam blocking, you'll need one. You can get an Akismet key at
// http://wordpress.com/api-keys/
$bb->akismet_key = ''; // Example: '0123456789ab'
// The rest is only useful if you are integrating bbPress with WordPress.
// If you're not, just leave the rest as it is.
$bb->wp_table_prefix = 'wp_'; // WordPress table prefix. Example: 'wp_';
$bb->wp_home = 'http://blognola.org';
$bb->wp_siteurl = 'http://blognola.org';
/* Stop editing */
if ( !defined('BBPATH') )
define('BBPATH', dirname(__FILE__) . '/' );
require_once( BBPATH . 'bb-settings.php' );
?>April 3, 2007 at 5:22 pm #56400In reply to: Freshness Linked
fel64
MemberNot sure how to do that specifically, however here’s a quick rip of Sam Bauer’s pagination plugin that’ll add a double-forward arrow to the end of each topic name linking to the latest post. Copy it into a text file, save it as something.php and upload.
<?php
/*
Plugin Name: Link to last Post
Plugin URI:
Description: Adds page links to topic lists
Author: fel64
Version: 0.7
Author URI: http://www.loinhead.net/
*/
if (!function_exists('is_tags')) {
function is_tags()
{
return is_tag();
}
}
if (is_front() || is_forum() || is_tags()) {
add_filter('topic_title', 'fel_addlatestlink', 101);
}
function fel_addlatestlink($title)
{
global $topic;
$felgtlpl = get_topic_last_post_link($topic->topic_id);
$title = $title . ' <a href="' . $felgtlpl . '"> » </a>';
return $title;
}
?>April 3, 2007 at 2:14 pm #1678Topic: Can’t post. Topic turns yellow. Can’t delete.
in forum InstallationNola1974
ParticipantI just got finished posting a whole bunch of posts a little while ago. Worked on my theme a bit.. added this to the header, that’s it:
<?php
function w3l_tl_pages($before = '', $after = '', $between = ' ') {
global $wpdb;
$query = "SELECT ID, post_title FROM $wpdb->posts WHERE (post_type = 'page' AND post_status = 'publish' AND post_parent = 0) ORDER BY menu_order";
$pages = $wpdb->get_results($query, ARRAY_A);
$temp_pages = array();
foreach ($pages as $page) {
$temp_pages[] = $before . '<a href="' . get_bloginfo('url') . '/' . get_page_uri($page['ID']) . '">' . $page['post_title'] . '</a> ' . $after;
}
echo implode($between, $temp_pages);
}
?>This is to get the menu of pages from my wordpress.mu install.
Now, whenever I try to post, after I submit a new topic, it turns yellow and doesn’t not then appear in the discussions list.
I can’t delete ANY posts. Not even old ones.
THe new topics appear in the dashboard under “Recently Moderated” and says this:
Topic titled test post started by bb_get_user needs a numeric IDApril 3, 2007 at 8:13 am #55867Null
MemberWell I know how much time it takes to write a plugin

I do want to request to make this a stand alone plugin and no modification of the private forums plugin, cause I want to merge it with my bbPortal plugin (with your permission ofcourse) and that is done most easily with a stand alone plugin…
-
AuthorSearch Results