Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,926 through 28,950 (of 32,458 total)
  • Author
    Search Results
  • #61033
    jthomps
    Member

    I deativated all plugins in WP and reactivated them one by one. Event Calendar 3 is causing the error.

    “WordPress database error: [Table ‘jamtho_southerillinoiswatcher.wp_post2cat’ doesn’t exist]

    SELECT SQL_CALC_FOUND_ROWS wp_posts.* FROM wp_posts LEFT JOIN wp_post2cat ec3_post2cat ON ec3_post2cat.post_id=id LEFT JOIN wp_ec3_schedule ec3_sch ON ec3_sch.post_id=id AND ec3_sch.end>=’2007-10-08 00:00:00′ WHERE 1=1 AND (((post_title LIKE ‘%hello%’) OR (post_content LIKE ‘%hello%’))) AND post_type = ‘post’ AND (post_status = ‘publish’ OR post_status = ‘private’) AND (ec3_sch.post_id IS NOT NULL OR ec3_post2cat.category_id!=3) ORDER BY post_date DESC LIMIT 0, 10″

    I am working to resolve.

    Thanks

    #60934

    In reply to: Jump to last post

    mazdakam
    Member

    did not work foe me :(

    #49515

    In reply to: sample plugins?

    Leo Plaw
    Member

    When I figure out how to use Trac, then I WILL fix it. 8รพ

    Unless some one else beats me to it. ;-)

    And seeing as you appear to be familiar with the inner workings of all of this, perhaps you might be the person to do it.

    #61036
    Leo Plaw
    Member

    Thanks Fel64.

    That’s what I ended up doing. I figured out the changes to the function names ect from WP to BB.

    So now I’ve successfully converted the Tiger Sytle Admin and the Admin Drop Menus to BB.

    When I’m finished the last details on them, I’ll make them publicly available. ;-)

    Where should I announce these plugins?

    #61048
    chrishajer
    Participant

    Did you add anything related to cookies in your config.php or wp-config.php? Line 37 of pluggable.php deals with cookiedomain so I am just wondering if you are doing anything with cookies at all, for that to error out like that. The “cannot modify header” errors are coming because something printed an error that was unexpected.

    #61035
    fel64
    Member

    Not much documentation for bb, but it works exactly the same way as writing plugins for wp. So grab an existing bb plugin or look at the wp documentation: https://codex.wordpress.org/Writing_a_Plugin

    It’s often trivial to convert a plugin; you just need to use a slightly different API and change the hooks and filters that you use.

    #61047
    fel64
    Member

    Please copy huuuuuge swathes of code to http://pastebin.ca and link to them instead of filling the forum.

    wp_home and wp_siteurl are different in the same way that “WordPress address” and “blog address” in your Options in WP-Admin are different. Check if you need to change that.

    jschleifer
    Member

    thanks for trying to solve this chris! I went and tried your options..

    “are there any underscore plugins in the plugin directory?”

    nope, there’s nothing at all in the plugin directory.

    “What if you put an underscore plugin in that orlder, if there are none now?”

    well I’ll be.. I simply touched my-plugins/_test.php

    and it worked.

    that’s just crazy weird.. huh. thanks for the help! :)

    #49513

    In reply to: sample plugins?

    Leo Plaw
    Member

    Why have the authors of BBPress been so daft as to not add a “my-plugins” directory to the default installation of BBPress?

    It was my first question, just like everybody else on the forum, “where’s the plugin folder”.

    Hey, it might seem obvious to those of you who know the BBPress, but for heaven’s sake make it easy for the newbies. You did it for WordPress, so why not BBPress?

    Get with it and think of the users you programmers! 8)

    #60871
    fel64
    Member

    Yup.

    require_once('path/to/bb-load.php');

    in your wp config file.

    #60933

    In reply to: Jump to last post

    fel64
    Member

    Pop this in a new .php file in your plugin directory.

    <?php
    /*
    Plugin Name: Page &raquo;
    Plugin URI:
    Description: Adds &raquo; to the end of topic titles, linking to latest post.
    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> <a href="' . $felgtlpl . '">&nbsp;&raquo;&nbsp;';

    return $title;
    }
    ?>

    #61030
    fel64
    Member

    Yeah. Take out the bit that says

    <?php pm_fp_link(); ?>

    because the function you’re trying to call with that is undefined.

    [Edit] Or, you know, make sure the function is defined by activating the plugin, as per Chris.

    #50472
    chrishajer
    Participant

    Sounds like that pm plugin is not working or not activated, but it’s still being called by the template?

    It’s a good practice to call plugins like so, to prevent these sort or fatal errors if the plugin is not available:

    if ( function_exists('pm_fp_link') ) {
    // then call the function
    }

    Then there won’t be a fatal error if the plugin is not available.

    #60659

    In reply to: dutch translation

    chrishajer
    Participant

    I know of this list of translations, but it does not appear complete to me:

    http://www.bbpulp.org/wiki/Translation_files

    There is also a Dutch forum at WordPress.org for bbpress:

    https://nl.forums.wordpress.org/tags.php?tag=bbpress

    I think there have been a couple mentions of a dutch translation in this forum, but I can’t find a link to one right now. Maybe you can search this forum for dutch and contact the posters to see if they’ve ever solved their problem with the translation.

    https://bbpress.org/forums/search.php?q=dutch

    #51693

    Hmmm if I got it right, you mean the flickr Notification Style? Maybe it would be better to provide this as an extra plugin, because it would be a tooo big feature for mine (even in the upcoming, feature-loaded version :))

    The best posibility I can think of at the moment, is doing this with a cronjob, but not everyone has cronjobs on his webspace account. So the more simple version would be a visit-based cronjob…

    Anybody in for this? Or should I get my hands dirty? :D

    chrishajer
    Participant

    These are completely wild guesses, just stalling and bumping the thread until someone knowledgeable comes along.

    Are there any underscore plugins in the plugin directory? What if you put an underscore plugin in that folder, if there are none now?

    Is it possible glob is disabled in your php.ini, and the conditional in this file is not working properly when glob is disabled (create a phpinfo file and look for the disabled_functions section to see if glob is there.

    That’s all I’ve got right now :-)

    jschleifer
    Member

    I checked file permissions & tried it both with files in it, and without.. permissions were fine, and the number of files in the directory made no difference to the error. I even tried it w/out the directory there, same error. :(

    #2468
    intellivision
    Participant
    edButtons.push(
    new edButton(
    'ed_strike'
    ,'STRIKE'
    ,'<strike>'
    ,'</strike>'
    ,'s'
    )
    );

    I added that (and allowed strikethru functionality via another plugin) but the strike button does not show. Any ideas?

    #61005

    In reply to: Hot Tags Font size

    chrishajer
    Participant

    http://blueplato.com/forums/bbpress is not accessible (gives a 404). I was going to look at the theme you are using because that is not the default for the bb_tag_heat_map: <?php bb_tag_heat_map(9 38 ‘pt’ 80); ?>

    This is the default from https://trac.bbpress.org/browser/trunk/bb-templates/kakumei/front-page.php#L7

    <?php bb_tag_heat_map(); ?>

    So, what do the numbers mean? Looking at that function in bb-includes/teamplate-functions.php around line 1574, here’s what the defaults are, and mean:

    $defaults = array( 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'limit' => 45, 'format' => 'flat' );

    Looks like you define the smallest size, largest size, the unit of measure, the max size and then a format (not sure what that last one does.)

    So, my guess is you would change those. At the very least you need to put comments between the arguments in the function call in your front-page.php: your example shows none. And you might want to add that last argument – not sure what happens when it’s missing.

    #61002

    In reply to: 404 Not Found

    chrishajer
    Participant

    Sounds like your server does not support slugs or pretty permalinks, or you did not create the .htaccess file. I would start by changing your config to turn off mod_rewrite like this (like 26 in config.php):

    $bb->mod_rewrite = false;

    That should make your forum visible again.

    #60944
    warmechoco
    Member

    anyone? :(

    #2464
    inimicus
    Member

    Hi!

    I am trying out BB for the first time, but upon running install.php I get this:

    hide_errors(); $installed = $bbdb->get_results("SELECT * FROM $bbdb->forums LIMIT 1"); if ( $installed ) : if ( !$new_keymaster = bb_get_option( 'new_keymaster' ) ) die(sprintf(__('
    Already Installed

    You appear to have already installed bbPress. Perhaps you meant to upgrade instead?

    To reinstall please clear your old database tables first.
    ') . '', bb_get_option( 'uri' ) . 'bb-admin/upgrade.php')); $meta_key = $bb_table_prefix . 'capabilities'; $keymaster = false; if ( $keymasters = $bbdb->get_results("SELECT * FROM $bbdb->usermeta WHERE meta_key = '$meta_key' AND meta_value LIKE '%keymaster%'") ) { foreach ( $keymasters as $potential ) { $pot_array = unserialize($potential->meta_value); if ( is_array($pot_array) && array_key_exists('keymaster', $pot_array) && true === $pot_array['keymaster'] ) die(__('
    Already Installed

    You appear to have already installed bbPress. Perhaps you meant to run the upgrade scripts instead? To reinstall please clear your old database tables first.
    ') . ''); } } $user = new BB_User( $new_keymaster ); if ( $user->data ) : $user->set_role( 'keymaster' ); ?>

    data->user_login); ?>

    show_errors(); switch ($step): case 0: ?>

    hide_errors(); if ( $users = $bbdb->get_var("SELECT ID FROM $bbdb->users LIMIT 1") ) { $meta_key = $bb_table_prefix . 'capabilities'; if ( $keymasters = $bbdb->get_results("SELECT * FROM $bbdb->usermeta WHERE meta_key = '$meta_key' AND meta_value LIKE '%keymaster%'") ) { foreach ( $keymasters as $potential ) { $pot_array = unserialize($potential->meta_value); if ( array_key_exists('keymaster', $pot_array) && true === $pot_array['keymaster'] ) { $keymaster = (int) $potential->user_id; break; } } if ( $keymaster ) $keymaster = $bbdb->get_row("SELECT * FROM $bbdb->users WHERE ID = '$keymaster'"); } } $bbdb->show_errors(); } ?>

    everything (database information, email address, etc.) entered correctly in config.php before running this script.'); ?>
    add('domain', __('Your $bb->domain setting must not end in a backslash "/".') ); $domain = parse_url($bbd); if ( !$domain ) $errors->add('domain', __('Your $bb->domain setting cannot be parsed.') ); // Not very helpful, but should essentially never happen. if ( !$domain['scheme'] ) $errors->add('domain', __('Your $bb->domain setting must start with http://.') ); if ( $domain['path'] && '/' != $domain['path'] ) $errors->add('domain', __('Your $bb->domain setting must only include the http:// and the domain name; it may not include any directories or path information.') ); if ( '/' != $bbp{0} ) $errors->add('path', __('Your $bb->path setting must start with a backslash "/".') ); if ( '/' != substr($bbp, -1) ) $errors->add('path', __('Your $bb->path setting must end with a backslash "/".') ); // We don't really do anything with $bb->wp_site_url. if ( $wph = bb_get_option( 'wp_home' ) ) { if ( '/' == $wph{strlen($wph) - 1} ) $errors->add('wp_home', __('Your $bb->wp_home setting must not end in a backslash "/".') ); $home = parse_url($wph); if ( !$home ) $errors->add('wp_home', __('Your $bb->wp_home setting cannot be parsed.') ); if ( !$home['scheme'] ) $errors->add('wp_home', __('Your $bb->wp_home setting must start with http://.') ); if ( preg_match('|(.*.)?([^.]+.[^.]+)|', $domain['host'], $d2 ) && preg_match('|(.*.)?([^.]+.[^.]+)|', $home['host'], $h2 )) if ( $d2[2] != $h2[2] ) $errors->add('cookie', __('Your $bb->domain and $bb->wp_home settings do not have the same domain.
    You cannot share login cookies between the two.
    Remove the $bb->wp_home setting from your config.php file.') ); if ( !strstr($bbp, $home['path'] . '/') ) $notices->add('cookie', __("Your bbPress URL ({$bbd}$bbp) is not a subdirectory of your WordPress URL ($bb->wp_home).
    Sharing login cookies is possible but is more complicated. See the documentation about integrating bbPress and WordPress.
    In the meantime, remove the $bb->wp_home setting from your config.php file, or you may not be able to log in.") ); } if ( $cd = bb_get_option( 'cookiedomain' ) ) { if ( '.' == $cd{0} ) $cd = substr($cd, 1); if ( !strstr($bbd, $cd) ) $errors->add('cookie', __('Your $bb->cookiedomain is not in the same domain as your $bb->domain. You will not be able to log in.') ); } $cp = bb_get_option( 'cookiepath' ); if ( $cp != preg_replace('|https?://[^/]+|i', '', bb_get_option( 'wp_home' ) . '/') && !strstr($bbp, $cp) ) $notices->add('cookie', __('Your bbPress URL $bb->path is outside of your $bb->cookiepath. You may not be able to log in.') ); if ( $ecodes = $errors->get_error_codes() ) { echo "

    * n"; if ( in_array('domain', $ecodes) ) foreach ( $errors->get_error_messages( 'domain' ) as $message ) echo "t$message
    * n"; if ( in_array('path', $ecodes) ) foreach ( $errors->get_error_messages( 'path' ) as $message ) echo "t$message
    * n"; if ( in_array('wp_home', $ecodes) ) foreach ( $errors->get_error_messages( 'wp_home' ) as $message ) echo "t$message
    * n"; if ( array('cookie') == $ecodes ) { // Only show cookie errors if nothing else is wrong foreach ( $errors->get_error_messages( 'cookie' ) as $message ) echo "t$message
    n"; echo "

    n"; break; } echo "n"; echo "

    It continues from there…

    The problem is, I have never installed BBPress. I went to MySQL after I got the error the first time, made a database for BB called “bbpress” but still get the error (even though the database is new, fresh and entirely empty). What’s up?

    jolaedana
    Member

    I’ve been working with chrishajer from the forums here on this one, and thanks to his help the problem was discovered and solved.

    Somehow, the “parent” value of each forum was set to 1 instead of 0, but because there was no parent with an id of 1, they weren’t showing up. We went in via PHPmyAdmin, and changed that parent value in the tables from 1 to 0, and they showed up just fine. I never had these under a parent forum.

    Guessing this may have been caused somehow during the database changes during the update? Unsure, but many thanks to Chris for his great help. :)

    jolaedana
    Member

    I didn’t have any parent children forums- stayed away from that and kept it all top level.

    I basically just modified the basic theme that comes with the forums- the only thing I changed was the CSS, so the index.php file should be the same, aside from the few things I added in to call the “who’s online” list and the like.

    <?php

    require(‘./bb-load.php’);

    $bb_db_override = false;

    do_action( ‘bb_index.php_pre_db’, ” );

    if ( isset($_GET) && ‘1’ == $_GET ) :

    $forums = false;

    elseif ( !$bb_db_override ) :

    $forums = get_forums(); // Comment to hide forums

    $topics = get_latest_topics();

    $super_stickies = get_sticky_topics();

    endif;

    do_action( ‘bb_index.php’, ” );

    bb_load_template( ‘front-page.php’, array(‘bb_db_override’, ‘super_stickies’) );

    ?>

    Strange indeed. Can you open up your theme’s index.php and paste the code that displays the forum table? (If you need help finding that code, just let me know).

Viewing 25 results - 28,926 through 28,950 (of 32,458 total)
Skip to toolbar