Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,726 through 25,750 (of 32,468 total)
  • Author
    Search Results
  • #71810

    Regarding anomaly #1, WP standard does have both URL and site URL, so that’s kinda ‘WPmu is bad’ in this instance.

    About the rest … MRH. I’m a little lost. Yes, please do tell us what BB version you’re using :)

    #4811
    MrPeteH
    Member

    I’m a not-quite-noob on WP/WPmu, and a total noob here on bbPress. I’m attempting my first integrated install, from scratch. WPmu latest (2.7 trunk as of a couple weeks ago) and bb 1.0 alpha 6. I thought I’d share a new-user experience… knowing that this kind of stuff is hard to remember later.

    I’m wanting integration of users and logins, and went through the install with that in mind.

    Anomalies, strangeness and bugs found:

    1) It asks for both the site URL and blog URL. WPmu doesn’t have both items, so that’s confusing. Should mention that the same value can be copied in.

    2) It doesn’t suggest the URL needs “http://” attached until after you save settings and get an error.

    3) [suggestion] why not ask for the location of the WP/WPmu install, and pull the keys etc from wp-config.php??? That would save a ton of typing and confusion.

    4) Once I got everything entered, it let me login ok… HOWEVER:

    5) It quickly LOST all my settings and the database appeared broken. Here’s how:

    * I clicked on “Admin” to go to the admin panel

    * Went to Settings->WordPress Integration

    * Set up role mappings and saved

    * Either at that point, or with one more click (Save in User Integration), I was suddenly locked out and getting mysql connect errors in the header.

    * Examining the page I was on showed the “advanced database settings” had defaulted to different info: apparently it used my admin login (user admin) rather than the WP db user/pass I had provided.

    * It was impossible to reset this info on that page due to the DB connect error. [suggestion: maintain ‘admin’ login/pw in a bb_* table for emergency admin use of the WP connection breaks!]

    * Confusingly, the DB info in bb-config.php is correct and I could not find the (wrong) wp DB info in any text file. Presumably it is stored in the bb-* database?!

    My workaround, which is now in use: hand code the settings ($bb->user_bbdb_user etc) into bb-config.php. That works.

    Bottom line: either the integrated installation process, or perhaps the settings->Integration page, is busted.

    Hope that helps!

    [PS: I’m the author of the wptuner performance analysis/debugging plugin for WP/WPmu. Would a BB version be helpful?]

    #71212

    In reply to: List all Tags?

    deadlyhifi
    Participant

    To get the ‘who posted that tag’ functionality in 1.06 you need to edit a core file (which is frowned upon – but we really need to moderate inappropriate tags and ban if necessary).

    bb-includes/function.bb-template.php

    and replace line 2529 with this:

    $poster = get_user_name( $tag->user_id );
    return "<small> - <a href="/forum/profile.php?id=$tag->user_id">$poster</a></small> [<a href='$url' class='delete:$list_id:tag-{$tag->tag_id}_{$tag->user_id}' title='$title'>&times;</a>]";

    where /forum/ is the subfolder of your forum.

    It appears to be working well – users have their name next to the tags they posted, and the ability to delete their own tag; whilst not seeing who added the other tags.

    #4809

    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.php and the subfolder bad-behavior into 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.php change this:

    <?php
    /*
    Bad Behavior - detects and blocks unwanted Web accesses
    Copyright (C) 2005-2006 Michael Hampton

    to 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 Hampton

    4) 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 :)

    #71785
    deadlyhifi
    Participant

    in topic.php in your theme folder use

    <?php bb_topic_admin(); ?> instead of the ‘<?php topic_delete_link(); ?> <?php topic_close_link(); ?> <?php topic_sticky_link(); ?>

    <?php topic_move_dropdown(); ?>’ (line 55)

    Come to think of it I may have updated a core file.

    and topic-tags.php becomes

    <div id="topic-tags">
    <p><?php _e('Tags:'); ?></p>

    <?php if ( bb_get_topic_tags() ) : ?>

    <?php bb_list_tags(); ?>

    <?php else : ?>

    <p><?php printf(__('No <a href="%s">tags</a> yet.'), bb_get_tag_page_link() ); ?></p>

    <?php endif; ?>

    <?php tag_form(); ?>

    </div>

    (just replace the entire page)

    This does break the improvements I suggested in https://bbpress.org/forums/topic/list-all-tags#post-23142 though. Although I have edited the core files (which is not encouraged) to bring back the functionality of showing who posted a tag to moderators.

    #4806
    Daiv Mowbray
    Member

    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";

    #4807
    circuit
    Member

    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 214

    i also cannot delete any tags…

    what’s wrong?

    #71783
    deadlyhifi
    Participant

    When I switched to 1.0 the problems I remember were mostly on the administration side of things.

    deleting tags with the little x in threads broke – there was a new function that pulled in all the moderator functions.

    Moving topics to a different forum code.

    From a users point of view their username linking to their website.

    There may have been a few more…

    all these were easily fixed by comparing with the kakumei theme that came in 1.0.

    #71767

    In reply to: Use HTML code in post

    chrishajer
    Participant

    You can use the “Admin can post anything” plugin to allow certain roles to post HTML.

    https://bbpress.org/plugins/topic/admin-can-post-anything/

    Not sure what version you’re using, and what version this will work with.

    #4801
    marcoapaulo
    Member

    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

    #71752

    Try forcing in the // WordPress cookie integration speedup stuff.

    #71747
    Sam Bauers
    Participant

    This code used as a plugin should do it.

    <?php
    /*
    Plugin Name: Kill URL
    Description: Kills URL field in profile
    */

    function kill_url_in_profile_keys( $keys )
    {
    unset( $keys['user_url'] );
    return $keys;
    }

    add_filter( 'get_profile_info_keys', 'kill_url_in_profile_keys' );

    ?>

    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 !

    #71751
    lasthero
    Member

    When I view my cookies with Firefox it shows that they are setting the exact same cookie. They both set the cookie under the same site and even the same name. When I log in with bbPress it sets another cookie with the same name as the WordPress cookie. I need help :) thanks!

    #71750
    lasthero
    Member

    Here are the config files

    wp-config.php

    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'idea_orbit'); // The name of the database
    define('DB_USER', 'admin'); // Your MySQL username
    define('DB_PASSWORD', 'Am@nda5haye'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');

    // Change each KEY to a different unique phrase. You won't have to remember the phrases later,
    // so make them long and complicated. You can visit https://api.wordpress.org/secret-key/1.1/
    // to get keys generated for you, or just make something up. Each key should have a different phrase.
    define('AUTH_KEY', '7k67k67k76'); // Change this to a unique phrase.
    define('SECURE_AUTH_KEY', '67k67k76k67k76'); // Change this to a unique phrase.
    define('LOGGED_IN_KEY', '67k76'); // Change this to a unique phrase.
    define('SECRET_KEY', 'thisisone{crazy}sectret9084biugfhKey');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '/starteconome/');

    /* this is what I added for integration with bbpress
    $wp->cookiepath = '/starteconome/';
    $wp->sitecookiepath = '/starteconome/';
    define('SITECOOKIEPATH', '/starteconome/');
    /*End What I added*/

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = 'wp_econome_'; // Only numbers, letters, and underscores please!

    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-content/languages.
    // For example, install de.mo to wp-content/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');

    /* That's all, stop editing! Happy blogging. */

    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');
    require_once(ABSPATH . 'wp-settings.php');
    ?>

    bb-config.php

    <?php

    // ** MySQL settings ** //
    define('BBDB_NAME', 'idea_orbit'); // The name of the database
    define('BBDB_USER', 'root'); // Your MySQL username
    define('BBDB_PASSWORD', 'L!feisg00d'); // ...and password
    define('BBDB_HOST', ''); // 99% chance you won't need to change these last few

    define('BBDB_CHARSET', ''); // If you are *upgrading*, and your old bb-config.php does
    define('BBDB_COLLATE', ''); // not have these two contstants in them, DO NOT define them
    // If you are installing for the first time, leave them here

    // Change BB_SECRET_KEY to a unique phrase. You won't have to remember it later,
    // so make it long and complicated. You can visit https://www.grc.com/passwords.htm
    // to get a phrase generated for you, or just make something up.
    // If you are integrating logins with WordPress, you will need to match the value
    // of the "SECRET_KEY" in the WordPress file wp-config.php
    define('BB_AUTH_KEY', '7k67k67k76'); // Change this to a unique phrase.
    define('BB_SECURE_AUTH_KEY', '67k67k76k67k76'); // Change this to a unique phrase.
    define('BB_LOGGED_IN_KEY', '67k76'); // Change this to a unique phrase.
    define('BB_SECRET_KEY', 'thisisone{crazy}sectret9084biugfhKey'); // Change this to a unique phrase.

    // If you are running multiple bbPress installations in a single database,
    // you will probably want to change this.
    $bb_table_prefix = 'bb_'; // Only letters, numbers and underscores please!

    // 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 BB_LANG to 'de'
    // to enable German language support.
    define('BB_LANG', '');

    /* Stop editing */

    if ( !defined('BB_PATH') )
    define('BB_PATH', dirname(__FILE__) . '/' );
    require_once( BB_PATH . 'bb-settings.php' );

    ?>

    #70034
    tfab69fr
    Member

    Thanks to Sam for these lines, I can use the $wpdb object in bbpress which is really great !

    if ( !defined( 'ABSPATH' ) ) {

    include_once( '/Full/Path/To/wp-load.php' );

    }

    Unfortunately there is a serious drawback as it breaks the translation of bbpress. The fr_FR.mo seems to have no effect with these line.

    Could you please help ?

    #68244
    wiseacre
    Member

    I have tested with Alfa 2+. There was some changes in DB structure. bb_meta is one of them. It’s time for ( :( )

    NOTE 2: this script is compatible with trunk

    If your database size is not a big problem you can wait for next bbpress version.

    #4782
    Mihai Joldis
    Member

    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

    #67411

    In reply to: Server Overload

    _ck_
    Participant

    The problem with VPS is the system will lie to you as far as how much CPU is available to you at any given time. MySQL being at 90% may be a symptom, not the cause.

    You can have just one program running but if a neighbor on the same node is hogging the disk with heavy disk access, processes like MySQL which need fast disk access to respond timely will start to overload. There isn’t a single VPS that has decent disk I/O management.

    What you can try to do is give MySQL as much ram as you can afford. Also take a look at how many queries your bbpress pages are using via my bb-benchmark plugin, make sure they are below two dozen.

    There are specific tools you can monitor your VPS with that I highly recommend:

    1. This one is a MUST so you can show your host that you have bad neighbors

    http://www.silversoft.com/loadavg

    2. This one takes a little more install time but is very helpful too:

    http://www.labradordata.ca/home/13

    3. last but not least you want a mysql monitor like MyTop

    http://jeremy.zawodny.com/mysql/mytop/

    Keep in mind, if you discover (via loadavg) that the load time of day happens at the EXACT same time every day (like on the hour at 9am) that means your host is doing something stupid like backing up all the VPS on the node at the same time instead of staggering it. Some VPS hosts are more experienced than others. Some hosts will argue with you that your neighbors can’t be affecting you on a VPS, in which case the host is ignorant or an idiot, or even worse, a liar.

    Oh and if you don’t have a php opcode cache installed (you didn’t mention it one way or another) be sure to install one: eaccelerator, xcache or apc (eaccelerator recommended for ease of install and general compatibility)

    If all else fails, replace Apache with Litespeed or lighttpd or get a better host.

    #64943

    In reply to: Hide email addresses

    gate
    Member

    Hello,

    there is a webpage, http://www.emailhide.org, that encrypts your email address in a secure manner. All you nedd to do is type in your email address and is returned html code with a link with your encrypted email. I’ve tried and now i use it everytime. There’s also a automatic gen for webmasters. Check it out.

    #71724
    ganzua
    Member

    Mmmmh… in my forum, google indexed the information that the header was showing when the thread was posted; date, web age, moon phase, hit counter count and next, the thread title and the title of the first sticky :/ Great work.

    Now, is there any bbpress plugin that can insert meta tags in the wp header after a deep integration? just like the all in one seo wp plugin?

    #71721

    In reply to: hidden forum

    ffranz
    Member

    :D oh thank you….johnhiler and _ck_

    #71718

    In reply to: hidden forum

    _ck_
    Participant

    This will hide forum #5 and only allow keymaster,administrator, or moderator to see it.

    $hidden_forums['hidden_forums']=array(5);	// hide these forums, list by comma seperated number

    $hidden_forums['allow_roles']['all_forums']=array('keymaster'); // these roles can always see ALL forums regardless
    $hidden_forums['allow_roles'][5]=array('administrator','moderator'); // exact formal role name, *not* ability

    #4777
    fwilson789
    Member

    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() with get_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?).

    #4774

    Topic: Just a Community

    in forum Showcase
    Snat
    Member

    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.

    Just a Community

    (Still being designed ;))

Viewing 25 results - 25,726 through 25,750 (of 32,468 total)
Skip to toolbar