Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,826 through 25,850 (of 32,570 total)
  • Author
    Search Results
  • #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 ;))

    #71226
    johnhiler
    Member

    I plugged the text into Google Translate, and got this rough translation:


    http://cartoon.lamost.org/ State Academy of Sciences

    Chinese bbPress forum http://cartoon.lamost.org/forum.php?id=2

    The question now is, it can paste the Chinese but not Chinese user name registration interface, sinicized also garbled, character set problem?

    Welcome to visit and discuss


    I may be misunderstanding this, but the question sounds like it may be: “I can’t register chinese language usernames using bbPress… why is this?”

    If so, that’s because bbPress 1.0 doesn’t allow unicode usernames… only unicode display names.

    https://bbpress.org/forums/topic/arabic-translation

    https://bbpress.org/forums/topic/check-out-this-very-nice-r-t-l-arabic-bbpress

    If the post said something else entirely, let’s pretend this comment never happened! :-)

    #71705
    _ck_
    Participant

    I have no way to test this code right now

    but try putting into a file called https-mode.php

    and put it into your my-plugins directory

    (you might have to create the directory)

    and then activate it in your control panel.

    In theory it should make bbpress internal urls HTTPS when it detects you are trying to use HTTPS:// (SSL) mode, even though your main bbpress url is HTTP://

    <?php
    /*
    Plugin Name: HTTPS mode
    Description: forces internal bbPress URLs from HTTP to HTTPS only when using SSL
    */

    add_filter( 'bb_get_uri', 'https_mode',1,3);
    add_filter( 'bb_get_option_uri','https_mode',1);

    function https_mode($uri,$resource='',$context='') {
    if (!empty($_SERVER['HTTPS']) && strpos($uri,'http://')===0) {$uri=str_replace('http://','https://',$uri);}
    return $uri;
    }

    ?>

    #71704
    _ck_
    Participant

    Did you look inside the login-form.php template?

    You might be referring to the 2nd one inside the failed login form which is probably in the core.

    A plugin might be able to fix this problem by detecting if the user is in HTTP vs HTTPS mode and filtering bb_get_option_uri – this intrigues me so I might write it and post it here shortly.

    #71711
    _ck_
    Participant

    bbPress’s filters prevent users from making multiple newlines so they can’t make 1000 of them in a row.

    However you can do tricks like putting <em> </em> in between two lines for 3 lines.

    1

    3

    If you want multiple lines on a regular basis as admin, my “admin can post anything” plugin might allow you to do that, though I can’t remember for certain.

    #71693
    Malice
    Member

    Thanks for the headsup ck! Pretty glad with what I can do in alpha 1.06 so I personally don’t need any immediate change. :)

    Take all the time you need for my part.

    #71674
    _ck_
    Participant

    It’s this in your style.css

    #header h1 {

    font-family: Georgia;

    font-style: italic;

    overflow: auto;

    Take out that overflow:auto; or make it overflow:hidden;

    It’s happening because you must have the H1 in a fixed width container somehow.

Viewing 25 results - 25,826 through 25,850 (of 32,570 total)
Skip to toolbar