Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,651 through 25,675 (of 32,570 total)
  • Author
    Search Results
  • patrick10128
    Member

    Hi everyone,

    I was wondering if I could get some help on an issue I am having. I am trying to integrate WP functions into bbPress. I put in the following code in my bb-config.php, and wp-blog-header.php is being accessed fine.

    <?php require_once('/home/noreason/public_html/youthbloggers.net/wp-blog-header.php'); ?>

    Now, for some reason I get a slew of strange characters when accessing my bbPress installation (the frontpage). I can’t even access /bb-admin. I can’t figure out what the problem is, I think it may have something to do with my server settings/configuration because the exact code works fine on my local machine running WAMP Server. Does anyone have any idea?

    You can see what’s going on at http://youthbloggers.net/forum/

    #72192
    superann
    Member

    Hmm, yeah someone should definitely try to get the current repository transferred to another person. I’m pretty new to bbPress so someone else would be a way better candidate than me for rewriting this plugin.

    Btw, what did detective’s mod add? I’m not even sure what I’m using…

    Anyway while I was replacing pm_new_message with ck’s mod I decided to hack email notification in there at the end (formatting stolen shamelessly from the existing notification plugin):

    $to = bb_get_user_email($id_receiver);
    $pm_link = bb_get_option('uri') . 'message.php?id=' . $bbdb->insert_id;
    $message = __("You have a new private message: %1$s nFrom: %2$s nn%3$s ");
    mail( $to, bb_get_option('name') . ':' . __('Private Message'),
    sprintf( $message, $pmtitle, get_user_name($id_sender), $pm_link ),
    'From: ' . bb_get_option('admin_email')
    );

    #72327
    chrishajer
    Participant

    You just type in a complete image tag, the full html, and it should work. Like this:

    <img src="http://www.google.com/intl/en_ALL/images/logo.gif" />

    The plugin was sort of particular about the case of the file extensions; JPG did not work (IIRC) but jpg did. Also, some image hosting services that show images but don’t have an image extension on the URI won’t work with the plugin. The plugin looks for filenames ending in common image formats and allows those.

    Also, the image needs to already be on the Internet already, hosted somewhere. If that’s not possible for your users, then you probably want the bbPress Attachments plugin:

    https://bbpress.org/plugins/topic/bb-attachments/

    #4964
    brianskiba
    Member

    I am trying to figure out how to allow people to embed images and flash code in our forums.

    I came across the allow-images.php plug-in, and installed it in “bb-plugins” and “my-plugins” under the forum directory.

    I then went to admin and activated the plug-in.

    What I can’t figure out is how to get it to work. I can’t figure out how one inserts an image still, or if what I installed and activated actually made a difference.

    Once I get this resolved, I will move on to allowing embedded flash objects.

    thank for helping…

    #72301
    wendel-brume
    Member

    LOL, my thoughts exactly! Now I’m in contact with an outfit in India to see what it would take to code the site in Joomla!

    What a rabbit hole this stuff can be!

    #72322

    In reply to: Create multiple forums

    chrishajer
    Participant

    Earlier I tagged this a BBMU, which is sort what this was sounding like, bbPress Multi User (like WPMU.) That way, you have one installation to update, but multiple blogs (or in this case, forums.)

    I don’t think that is currently possible. There was some work involved to create WPMU, although it reuses a great bit of WordPress code.

    So, I think you are stuck using multiple installations of bbPress, or just using the built in Forums that exist in bbPress. If you use the built in forums that exist, then you don’t have to worry about logins working in all forums. The logins will work in all forums because it’s all just one forum.

    But, to have multiple bbPress installations, but just one user database, you might want to investigate the advanced database options upon installation, in step two where they talk about user integration.

    Custom user tables
    Only set these options if your integrated user tables do not fit the usual mould of wp_user and wp_usermeta.

    User database "user" table
    The complete table name, including any prefix.

    User database "user meta" table
    The complete table name, including any prefix.

    I think here you would be able to enter the same settings for every installation of bbPress to point them all to the same user database. You could try it with two forums to see if that works.

    Also, managing 10 forum installations is not too bad if you have command line access to use something like subversion. Then it’s just a matter of doing an svn up or svn sw and accessing the update in a browser. You can do 10 or 20 installations pretty quickly. It’s even faster when there are no database changes. Then it’s just svn updates.

    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!

Viewing 25 results - 25,651 through 25,675 (of 32,570 total)
Skip to toolbar