Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,576 through 25,600 (of 32,481 total)
  • Author
    Search Results
  • chrishajer
    Participant

    I think this is due to the server using PHP4:

    Warning: cannot yet handle MBCS in html_entity_decode()!

    What version bbPress did you install, did you integrate with WordPress, and what software is the server running?

    wendel-brume
    Member

    Here’s a Joomla! plugin that does what I want, except it’s for Joomla!:

    http://boygj.com/juser-204-extended-joomla-registration

    Excerpt:

    • Ability to extend registration form with unlimited additional fields
    • Different types of fields like Check Boxes, Radio Buttons, Select List, Text Field, Data
    • Ability to create your own list of values to choose for fields of type Select List,
    Check Box, Radio Buttons

    Does anyone know of a WordPress/bbPress plugin that will do this?

    calman
    Member

    Hey Guys,

    Just recently discovered that I can’t get my bbPress Forum to load. I get this error all down the page, and to the best of my knowledge, I haven’t changed a single thing since it last worked?

    Any help appreciated.

    Kind Regards,

    Cal :)

    wendel-brume
    Member

    It appears that the ‘deep integration’ between bbPress and WordPress will provide the basis for doing this, I’d need to be able to re-code the registration screen to make the ‘occupation’ field a required field. I also want it to be coded so it’s a dropdown list of choices that I determine.

    This issue is way huge for anyone wanting to monetize a website through advertising. Advertisers on the web want to know who your audience is before they will pay reasonable CPMs. I’m showing videos that will eventually incorporate ads, and I want the site to know how to identify a registered visitor so that the video ads can be targeted based on their self-identified occupation.

    I also need the forum to be incorporated into a WordPress page, the way I have a test of Simple:Press set up here:

    http://architecturecartoon.com/forum/

    Is there a relatively simple way to make bbPress look like that?

    #72189

    +1 chrishajer – PM was a way for people to stalk and harass each other on my old forums :/ ‘ef it.

    Now, perhaps a ‘show/hide email’ option would be nice, but PM? Ick. It makes you (the site owner) responsible for people being asshats in a way you can’t easily monitor.

    reprocessor
    Member

    For starters my site runs the following WPMU 2.7, Buddypress RC-1 and BBpress 1.0 alpha 6 – if you’ve had problems with any of the following then this is worth a read …

    This is a weird one but totally worth mentioning. I just re-installed bbpress for the fifth time and found a wee error that seems to bugger everything up.

    If you’ve got everything working properly and you’re in the admin screen on bbpress ‘Settings/Wordpress Integration’ DO NOT hit the ‘Save Changes’ button at the bottom of the user integration menu.

    The reason being is that it breaks everything and you have to reinstall bbpress. I can’t remember the exact error as I did this late last night but the error occurs in ‘bb-includes/backpress/class.bpdb.php’ on line 123 and 377

    I also noticed that (once you get it back up and running) you can’t post on existing group forums but if you create new groups then everything is hunky-dory :)

    Just as well I hadn’t populated the site LOL

    It’s been a hell of a learning curve this but not a bad one by any means – I’s say I’m very proficient now at reinstalling bbpress and integrating!

    After all this rant I’m not sure if this is a problem specific to me but please let me know if you’ve suffered the same. I’ll put something on the BBpress forums too shortly.

    Cheers,

    Phil

    #72232

    In reply to: error when logging out

    chrishajer
    Participant

    Actually, if it’s this plugin:

    https://bbpress.org/plugins/topic/simple-onlinelist/

    There are lots of people with the same issue, or there were lots of people a year ago. Looks like it always tries to use bb_ as the table prefix instead of $bbdb (i.e. $bbdb->online). Take a look at some of the replies.

    #72231

    In reply to: error when logging out

    chrishajer
    Participant

    Looks like you’re using the bb-online plugin. Does this still happen if you disable that plugin? My guess is the plugin hard coded the bb_ table prefix when it should be using $bbdb.

    #72288
    chrishajer
    Participant

    bbPress is not a plugin for WordPress. Get it out of your WordPress plugin folder. It does not belong in /home/m4inform/public_html/wordpress/wp-content/plugins/bbpress/ it belongs here /home/m4inform/public_html/wordpress/bbpress/ as a sub-directory of WordPress.

    #62764

    In reply to: Announcement Board

    chrishajer
    Participant

    In your template files, wherever there is a call to post_form(); just change it to

    post_form('Custom Title Here'); – you can even put a space in the single quotes and not have any title at all. The “New Topic in this Forum” is part of bbPress, but you can override it in your template wherever post_form is called.

    #71338

    Updating post-count-plus fixed the issue! Thanks a lot! :)

    I thought about linking to profile field but bbPress uses a template tag to retrieve all profile data and I found it not reasonable to change:

    <?php bb_profile_data(); ?>

    #72230

    In reply to: error when logging out

    Check your bb-config.php file for blank lines outside of

    <?php

    [foo]
    ?>

    #72124
    Patrick Daly
    Member

    I’m having the same issue. Any other suggestions?

    My setup:

    Integrated:

    WP 2.7.1

    bbPress 1.0-alpha-6

    Using the default bb-config charset & collation:

    define(‘BBDB_CHARSET’, ‘utf8’);

    define(‘BBDB_COLLATE’, ”);

    Using the defauly wp-config charset & collation:

    define(‘DB_CHARSET’, ‘utf8’);

    define(‘DB_COLLATE’, ”);

    Using the default language file. In other words, I haven’t changed anything and it should be using the English.

    Database is:

    UTF-8 Unicode (utf8)

    utf8_unicode_ci

    #72275
    chrishajer
    Participant

    Remove the second forum link/page.

    Hardcoding the first forum link in your WordPress header.php is fine. Without any styling, that means it will just be a link to your forum page, and inside WordPress, it would NEVER need to be styled as current, because you’ll never be in WordPress when you are in your forum, right?

    How are you getting the WordPress navigation in the forum? That’s where we need to focus on getting the current class on the forum page tab. If you’re including the WordPress navigation by integrating WordPress inside bbPress, then there needs to be a little work done on getting the current class on the forum tab (since you won’t actually ever be on a page called forum for is_page('forum') or is_page('190') to work properly from WordPress.

    #4956
    batesy
    Member

    Hey guys,

    I just installed bbpress at http://www.halifamous.com/staff for writers of a new blog to discuss ideas for the site. I am able to view the main forum page, and get into the admin section. The problem is that I’m getting a blank page any time I try to click through to the test post or into the ‘Introductions’ forum section I created. I also get a blank page when I try to access my user profile.

    I haven’t touched the code. Any idea why this might be happening?

    Thanks,

    Greg

    #4954
    thindery
    Member

    I am using the StudioPress theme and I have fully integrated bbpress into the theme. I think it looks great, and all the pages seem to be working. View at http:.//mipages.net/forum/ The only problem is that the “forum” tab isn’t hilited when viewing the forum. It always does the “home” one instead.

    In my theme I hardcoded the first forum link to http://mipages.net/forum/

    The second forum link is actually to just a page I created in wordpress called “forum”. I thought I could edit the link in phpmyadmin to http://mipages.net/forum/ somehow but I couldn’t seem to figure it out. So the link for the second forum tab is actually just a page, and not the actual forum.

    So basically I just want one of those forum tabs to be hilited when viewing the forums. It doesn’t matter to me how to get it done. Any suggestions by anyone?

    below is my header code for the forum page.

    Code:
    <div id=”nav”>
    <?php function get_the_pa_ges() {
    global $wpdb;
    if ( ! $these_pages = wp_cache_get(‘these_pages’, ‘pages’) ) {
    $these_pages = $wpdb->get_results(‘select ID, post_title from ‘. $wpdb->posts .’ where post_status = “publish” and post_type = “page” order by ID’);

    }
    return $these_pages;
    }

    function list_all_pages(){

    $all_pages = get_the_pa_ges ();
    foreach ($all_pages as $thats_all){
    $the_page_id = $thats_all->ID;

    if (is_page($the_page_id)) {
    $addclass = ‘ class=”current_page”‘;
    } else {
    $addclass = ”;
    }
    $output .= ‘<li’ . $addclass . ‘>ID).'” title=”‘.$thats_all->post_title.'”><span>’.$thats_all->post_title.'</span>‘;
    }

    return $output;
    }
    ?>

      <?php

      if (is_home()) {
      $addclass = ‘ class=”current_page”‘;
      } else {
      $addclass = ”;
      }
      echo “<li” . $addclass . “><span>Home</span>“;

      if (is_page(‘190’) ) {
      $addclass = ‘ class=”current_page”‘;
      } else {
      $addclass = ”;
      }
      echo “<li” . $addclass . “><span>Forum</span>“;

      echo list_all_pages();?>

    <div class=”cleared”></div>
    </div> <!– Closes Nav –>

    I changed the code to use the function is_page() when trying to identify it as a forum because that is what it looked like I needed to use, but I’m still pretty new to wordpress functions. the “190” is the id of the entry in my wp_posts table that contains the guid of http://mipages.net/forum/ (the link itself)

    So I know it is kind of working, because it is grabbing the right url and everything, I just can’t get it to recognize that is is viewing that current page to add the class.

    Help anyone! As soon as I can get this resolved I’d like to publish the modified theme files so other users can easily implement bbpress with their studiopress theme.

    #72181
    johnhiler
    Member

    I just noticed that the unpatched PM plugin is still available in the plugins section, where it’s listed as one of the most popular downloads.

    Is it possible to disable the download for now, until the code is updated with the security patch?

    #72180

    Also: Having it be a plugin means that people who don’t wont those ‘features’ don’t have to disable. It’s the basic idea of bbPress: Simple :)

    #72179
    johnhiler
    Member

    It’s because it is a plugin that we’re all able to patch it without upgrading the entire bbPress install itself!

    I agree that it’d be nice if the top plugins had security audits of some kind. Thank goodness a user reported this and another one fixed it though – that’s exactly how open source communities should work (ideally). Thanks merlin214365 and _ck_!

    I do feel dumb for just installing this plugin without even looking at the code. I’m going to do a personal security audit, and report back if any of the plugins I’m using turn up with security holes. Hopefully we can use this incident to improve the overall security of the most popular bbPress plugins!

    Is there then a way that when a registered bbPress member visits the WordPress area of the site, that WordPress will recognize them as registered bbPress members

    Integrated login will do that. If you only want to use the BB side of things, you can use a ‘Hide Dashboard’ plugin for WP (to … hide things ;) ), and then just never link to the WP profile stuff. I’m doing that and the three smarties who know they can login on the WP side quickly learned: Ain’t nutin’ there.

    As for targeting ads, I suspect you can do that, though it’d be a question for the WP side methinks.

    Hide Dashboard: http://www.kpdesign.net/wp-plugins/wp-hide-dashboard/

    #72262
    masterpo
    Member

    thank you Chris for your reply.

    Now I have try a fresh, clean install.

    Step 1 – Database configuration: I put my data, I don’t edit the advanced settings, I click on “Save configuration database file” and I got this message:

    Step 1 – Database configuration

    !

    Your settings could not be saved to a configuration file. You will need to save the text shown below into a file named bb-config.php in the root directory of your bbPress installation before you can continue.

    So I copy the “Contents for bb-config.php” in a file and i put this one on my site.

    After I follow the instruction:

    “Once you have created the configuration file, you can check for it below”

    I check and i get another time the same error. :(

    What do I do, now? I have not idea! can you give me some further help?

    thank you so much!

    #72260

    All it takes is one borked file :) Glad the reinstall worked!

    #72243
    chrishajer
    Participant

    That’s weird – I never saw that wp(); before. I have no idea what to say in this case.

    What happens if you undo the integration, including whatever you included in the bb-config or wp-config to make them talk to each other? Does the problem go away?

    #72242
    psheld
    Member

    Thanks again Chris for coming back on this thread. I am surprised to read your statement about integration though, as it was this feature of bbpress that made me go for it over other forums! Oh well, may be it’ll come out good in the end.

    Here’s the code for wp-blog-header.php. Line 14 simply says “wp();”.

    <?php

    /**

    * Loads the WordPress environment and template.

    *

    * @package WordPress

    */

    if ( !isset($wp_did_header) ) {

    $wp_did_header = true;

    require_once( dirname(__FILE__) . '/wp-load.php' );

    wp();

    require_once( ABSPATH . WPINC . '/template-loader.php' );

    }

    ?>

    #72174
    _ck_
    Participant

    This is a quick and dirty security fix. Only tested on a basic level.

    This code is for the original, not detective’s mod which I will examine tomorrow unless Detective wants to apply the stuff below himself…

    replace around line 100 the entire function pm_new_message

    from:

    function pm_new_message( $id_receiver, $id_sender, $pmtitle, $message ){
    ...
    }

    to this:

    function pm_new_message( $id_receiver, $id_sender, $pmtitle, $message ){
    global $bbdb, $bb_table_prefix;

    $created_on = bb_current_time('mysql');
    $id_receiver = intval($id_receiver);
    $id_sender = intval($id_sender);

    $pmtitle=substr(strip_tags($pmtitle),0,64);
    remove_filter('pre_post', 'post_regulation');
    $message=substr($message,0,2048);
    $message=force_balance_tags($message);
    $message=apply_filters('pre_post',$message,0,0);
    $message=apply_filters('post_text',$message,0);

    $pmtitle=mysql_real_escape_string($pmtitle);
    $message=mysql_real_escape_string($message);

    $bbdb->query("INSERT INTO ".$bb_table_prefix."privatemessages
    (id_sender, id_receiver, pmtitle, message, created_on)
    VALUES
    ('$id_sender', '$id_receiver', '$pmtitle', '$message','$created_on')");
    }

    This patch should in theory make it virtually completely sanitized (but still not completely validated unfortunately) and has the added bonus that most other plugins that affect posts like bb-smilies, etc. should work inside PM’s

Viewing 25 results - 25,576 through 25,600 (of 32,481 total)
Skip to toolbar