Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '"wordpress'

Viewing 25 results - 24,576 through 24,600 (of 26,689 total)
  • Author
    Search Results
  • #62039
    ixray2
    Member

    thanks, livibetter.

    well, i tried your method, and “WordPress loaded” does show up in the error log..

    #62038
    livibetter
    Member

    I don’t have any clues to solve you problem.

    If I were you, I will

    1. put error_log('WordPress loaded'); after that request_once to make sure wp has been loaded.

    2. check error log for WordPress loaded, if I get that, that means the problem should be on bbPress, or on WordPress.

    3. keep using error_log, find out where causes a program end.

    This is my no-debugger-debugging method.

    #62035
    livibetter
    Member

    Well, I didn’t mean that kind of error message. If your hosting provider gives you cpanel, there should be a “Error Logs”

    And put that line top of original config.php is correct, but to bottom isn’t.

    Maybe you can try to use relative path? (I don’t think this will help…)

    What are the versions of WordPress and bbPress which you are using?

    Still need the error log.

    #62034
    ixray2
    Member

    Well, actually it’s a Safari error message and it’s in German, but I’ll post it anyway:

    “Safari kann die Seite „..“ nicht öffnen, da der Server die Verbindung unerwartet beendet hat. Dies tritt manchmal auf, wenn ein Server überlastet ist. Möglicherweise können Sie die Seite später öffnen.”

    Rough translation: “Safari can’t open the page .., because the connection was unexpectedly reset by the server. This may occur if the server is busy. You might try again later.”

    In Firefox, I just get a white page, no error message.

    When I add the “”require_once(‘/var/www/web7/web/wp-blog-header.php’);” line to the bottom of config.php, I get this error message:

    “Fatal error: Cannot redeclare _http_build_query() in /var/www/web7/web/wp-includes/compat.php on line 108”

    Again, both WordPress and bbPress are running fine on its own, but it seems as soon as I try to load them together, something goes wrong.

    #2709
    ixray2
    Member

    Hi,

    I have bbPress running along with WordPress. It’s working fine so far, but now I’m trying to use WP functions in my bbPress theme.

    I followed the directions and added “require_once(‘/var/www/web7/web/wp-blog-header.php’);” to the top of my bbPress config.php file.

    But all I get is “Connection Reset by Server” when I open bbPress. As soon as I remove that line, it’ll work again, but without the WP functions, of course.

    What am I doing wrong here?

    #61931

    In reply to: Excerpts

    livibetter
    Member

    fel64 is right. So I made a change.

    <?php
    // from wp_trim_excerpt() in WordPress 2.3.1 formatting.php, just removed few lines
    function make_excerpt($text) { // Fakes an excerpt if needed
    $text = str_replace(']]>', ']]>', $text);
    $text = strip_tags($text);
    $excerpt_length = 55;
    $words = explode(' ', $text, $excerpt_length + 1);
    if (count($words) > $excerpt_length) {
    array_pop($words);
    array_push($words, '[...]');
    $text = implode(' ', $words);
    }
    return $text;
    }

    if ( $topics ) :
    $last_post_ids = array();
    foreach ( $topics as $topic )
    $last_post_ids[] = $topic->topic_last_post_id;
    global $bbdb;
    $post_ids = $bbdb->get_col( "SELECT post_id, post_text FROM $bbdb->posts WHERE post_id IN (" . implode(',', $last_post_ids) . ")");
    $post_texts = $bbdb->get_col( null, 1 );
    $post_excerpts = array();
    foreach($post_ids as $idx => $post_id)
    $post_excerpts[$post_id] = make_excerpt( $post_texts[$idx] );
    endif;
    ?>
    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a>
    <?php echo $post_excerpts[$topic->topic_last_post_id]; ?>
    </td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; // $topics ?>

    On my test forum, 15 posts, without excerpts takes .119 sec, with excerpts takes .127 sec. Previous code takes .140 sec.

    #61929

    In reply to: Excerpts

    livibetter
    Member

    Replace the similar part with it in front-page.php (Kakumei):

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a>
    <?php
    // from wp_trim_excerpt() in WordPress 2.3.1 formatting.php, just removed few lines
    function make_excerpt($text) { // Fakes an excerpt if needed
    $text = str_replace(']]>', ']]>', $text);
    $text = strip_tags($text);
    $excerpt_length = 55;
    $words = explode(' ', $text, $excerpt_length + 1);
    if (count($words) > $excerpt_length) {
    array_pop($words);
    array_push($words, '[...]');
    $text = implode(' ', $words);
    }
    return $text;
    }

    echo make_excerpt( get_post_text( $topic->topic_last_post_id ) );
    ?>
    </td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; // $topics ?>

    It generates an excerpt of latest reply of topic.

    talbina
    Member

    Thanks a lot guys. I really appreciate it.

    What are you guys waiting for? Get cracking. (joking). How much do you guys think this would cost me? I know, it’s something you cant predict right now. I dont know any development/design, so i cant predict anything at all. Maybe 1000, 2000, 3000? More than 3000?

    But seriously, why doesnt Matt introduce an open source social networking software?

    Im not actually asking so i can get my hands on it. Its an analyst’s perspective.

    Im also very interested in finding out why WordPress has been so successful, and why other blog softwares might not have been as succesful. I believe it has to do a lot with the “corporate image” of wordpress/automattic and the love they have for their community.

    #61974
    Trent Adams
    Member

    Logins and such are best used with default everything until you know they work. Try the default template again and report back any specific things you have going on there. As well, once you start fiddling with integrating with WP in the config.php it will use the WordPress members. Another thing if you don’t have Akismet setup would be to put:

    $bb->akismet_key = false;

    Trent

    Trent Adams
    Member

    #1) This is simple enough as MU is built for that.

    #2) If you are talking about each member having their own bbPress forum as well in #2, I would suggest that would be a massive problem. If you just mean having them using a single forum, I think this can be done.

    #3) Avatars can be down with many plugins you can find in these forums or over at https://bbpress.org/plugins/ . Combining with MU might be a little difficult or require a plugin. I would suggest looking around to see if anyone on MU has come up with a solution already. That or use Gravatar ;)

    #4) Combination of plugins and RSS feed grabbers could do that without very much hassle. What is written already might be sufficient from the plugins area, but a couple different database requests would make new plugins for this quickly I am sure.

    #5) You didn’t have one ;)

    #6) People out there have successfully integrated bbPress and WordPressMU logins, but you might need to search a bit over at http://mu.wordpress.com/forums/ as well for the answer ;) It also depends on your answer to #2 though…..

    #7) You already know the answer and Null helped with the others.

    Trent

    Null
    Member

    [7] Private messaging. This can be done with bbpress.

    Yes, there is a plugin for this

    [8] Groups. Can this be done?

    Not yet (put it on trac as request). There is a way with an plugin I believe. Make a new group (e.g. like moderators) and put your people in it.

    [9] AND THE BIGGEST OF ALL – Can “friends” be made for a member, where you click his/her profile and friends are listed?

    I was working on a plugin that does this, but I got stuck with it, so it’s back on the selve for now.

    Can’t help you with the other questions

    Null

    #61927

    In reply to: Excerpts

    Doobus
    Member

    I’m mediocre at best when it comes to php, so I’m a bit confused as to what to call, all I really know are the functions for WordPress, any code suggestions would be greatly appreciated.

    talbina
    Member

    Come on in guys :) .

    talbina
    Member

    Hello people,

    It’s been a while since i posted here.

    I just had this great idea, and im over excited at the moment.

    A Social Network using bbpress/wordpress mu.

    THE BIG Q – Can it be done?

    Im not a developer or designer or anything. But look here.

    What do i mean by a social network? It would be more of a “professional” one. You can view examples here http://www.cafemom.com/ and http://www.gooruze.com/.

    The 2 biggest sections are forums and blogs. Each member would have a blog, and there would be a forum for everyone.

    So here:

    [1] Each person has a blog. This is using wordpress mu.

    [2] Forums. This is using bbpress.

    [3] Profile picture is your avatar. But can i have some of the avatars of the members on the front page like this http://microblogr.com/ and http://www.gooruze.com/ ?

    [4] A recent activity section, where it shows all the recent activities of all the members, ie; blog posts, forum posts, and comments on blogs. Can this be done?

    [6] The biggest question is this – Can the same login be used for all this? Is this what you call wordpress integration with bbpress?

    [7] Private messaging. This can be done with bbpress.

    [8] Groups. Can this be done?

    [9] AND THE BIGGEST OF ALL – Can “friends” be made for a member, where you click his/her profile and friends are listed?

    Would you think this would be overtly expensive? How much do you think it can be done for, with a nice clean simple design like this http://dfckr.com/?

    ***OR***

    Or, shall forget about all this and get a free social network like this http://www.adgabber.com/ from http://www.ning.com ?

    It just seems too bulky, and i won’t be able to customize it(i mean me pay someone do it). Only the theme would be customizable.

    Thanks a lot everyone.

    #60817
    anasohbet
    Member

    thanks mdawaffe…

    #61964
    Sam Bauers
    Participant

    user_nicename isn’t what you are after. You want the display_name column. user_nicename in WordPress is a URL safe version of the username. Future versions of bbPress will utilise this field for that purpose too.

    #61999
    hishamabu
    Member

    This has now been fixed. Again, thank you livibetter.

    #61998
    hishamabu
    Member

    Thank you so much for your response livibetter, but I’m not getting this at all. I’m not a programmer/coder by any stretch of the imagination. My abilities go no further than copy & pasting code.

    With regards to Unix sockets, I’m on a Dreamhost hosting package if that helps at all.

    Can you please tell me how the trac thing work?

    Thank you again.

    #61997
    livibetter
    Member
    #2700
    hishamabu
    Member

    Hello,

    I am trying to install bbPress onto the same Database I have installed WordPress. But I keep getting an error (see below).

    As far as I’m aware I have filled in the appropriate config.php information. With the same information that I’ve got on the WordPress wd_config.php.

    But still no luck. Both WordPress and bbPress have been downloaded from the official websites merely a few days back.

    Warning: mysql_get_server_info() [function.mysql-get-server-info]: Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) in /home/.stinkybutt/vault21/ibnmuslim.com/abdi/forums/bb-includes/db-mysqli.php on line 80

    Warning: mysql_get_server_info() [function.mysql-get-server-info]: A link to the server could not be established in /home/.stinkybutt/vault21/ibnmuslim.com/abdi/forums/bb-includes/db-mysqli.php on line 80

    I really do appreciate any and all help with regards to this matter.

    Kindest regards

    Hisham

    #61926

    In reply to: Excerpts

    livibetter
    Member

    If you just call the template functions of WordPress, that won’t work. I meant get the part you need. (sorry for misleading)

    PS. If you still can’t get it work, please paste your code and error message, if any.

    #61949
    Trent Adams
    Member

    bbPress and WP are easily integrated so that bbPress uses the wp_users table in the database, so what you are trying to accomplish is very easy to do. As for embedding gallery into WP, from personal experience it works fine and permalinks are configurable. I would check https://wordpress.org/support/ for more data on that though, but integrating the 3 should be pretty easy and straight forward! Integration is covered in the “FAQ” link of this forum!

    Trent

    #2699
    refueled
    Member

    I have just released my latest bbPress theme: Misty Morning.

    Demo

    Download

    I also have a matching WordPress theme:

    Demo

    Download

    Let me know what you think!

    #61970
    toxicshocktv
    Member

    I actually already tried that. Here’s my config as of now:

    <?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘toxicsho_bbpress’); // The name of the database

    define(‘BBDB_USER’, ‘toxicsho_****’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘******’); // …and password

    define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change these last few

    define(‘BBDB_CHARSET’, ‘utf8’); // If you are *upgrading*, and your old 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 the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    // The full URL of your bbPress install

    $bb->uri = ‘http://www.toxicshock.tv/board/&#8217;;

    // What are you going to call me?

    $bb->name = ‘Toxic Shock TV Forum’;

    // This must be set before you run the install script.

    $bb->admin_email = ‘toxicshocktv@gmail.com’;

    // Set to true if you want pretty permalinks, set to ‘slugs’ if you want to use slug based pretty permalinks.

    $bb->mod_rewrite = ‘false’;

    // The number of topics that show on each page.

    $bb->page_topics = 30;

    // A user can edit a post for this many minutes after submitting.

    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.

    $bb->gmt_offset = 0;

    // 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 BBLANG to ‘de’

    // to enable German language support.

    define(‘BBLANG’, ”);

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    // of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at

    // http://wordpress.com/api-keys/

    $bb->akismet_key = ”; // Example: ’64f1b30caafe’

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you’re not, just leave it as it is.

    $bb->wp_table_prefix = ”; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ”; // WordPress – Options->General: Blog address (URL) // Example: ‘http://example.com&#8217;

    $bb->wp_siteurl = ”; // WordPress – Options->General: WordPress address (URL) // Example: ‘http://example.com&#8217;

    /* Stop editing */

    if ( !defined(‘BBPATH’) )

    define(‘BBPATH’, dirname(__FILE__) . ‘/’ );

    require_once( BBPATH . ‘bb-settings.php’ );

    ?>

    #61924

    In reply to: Excerpts

    livibetter
    Member

    I think you can just copy/use WordPress’ excerpt generating function, just a thought but I know that will work.

Viewing 25 results - 24,576 through 24,600 (of 26,689 total)
Skip to toolbar